Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for stocks that Yahoo Finance doesn't return a name for #37

Merged
merged 2 commits into from
Aug 4, 2016

Conversation

pauljz
Copy link
Contributor

@pauljz pauljz commented Aug 2, 2016

This is a weird one. I've found some stocks that don't return a name, but seem fine otherwise.

$ curl "http://download.finance.yahoo.com/d/quotes.csv?f=nsl1c1p2&s=300024.SZ"
N/A,"300024.SZ",23.75,+0.14,"+0.59%"

300024.SZ

As a quick fix we can still display these by using the symbol in place of the name. We still filter out things that are N/As using the last share price.

@dblock
Copy link
Owner

dblock commented Aug 2, 2016

Looks good. The test doesn't actually cover this case, could you please add a VCR recording test for this? Thx.

@pauljz
Copy link
Contributor Author

pauljz commented Aug 4, 2016

Yup, added the VCR test!

@dblock dblock merged commit 76b6540 into dblock:master Aug 4, 2016
@dblock
Copy link
Owner

dblock commented Aug 4, 2016

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants