Reputation: 1367
I am trying to retrieve but I cannot manage to get it to retrieve data.
The query I am using is: SELECT * FROM yahoo.finance.options WHERE symbol="AAPL"
So that you can try: Yahoo Finance API
Is there any other good and reliable source for option chains that I can retrieve easily with some Scala
code?
Upvotes: 1
Views: 12811
Reputation: 640
This is a pretty common question. Since the remake of finance.yahoo.com many API and scraping tools are broken. This API is working and has been for the past month+ without incidence.
https://stackoverflow.com/a/40243903/933972
Not sure about Scala, but I'm using it with the JSON return in my MeteorJS framework.
The old tried-and-true API still works: 'http://finance.yahoo.com/d/quotes.csv?s=amd&f=nb4t8' (well documented, this particular call asks for n=name; b4=book value; t8=1yr target price).
Upvotes: 1