yql / yql-tables

YQL is extensible using a table definition. This repository will hold community contributed definitions.
http://developer.yahoo.com/yql
725 stars 416 forks source link

yahoo.finance.option* is broken #437

Open yeldarby opened 9 years ago

yeldarby commented 9 years ago

I'm trying to get an options chain but it looks like Yahoo Finance has changed the markup on their page which has broken these calls.

It looks like these are the two errors:

Exception while converting tidy sanitized html to Dom

The content of elements must consist of well-formed character data or markup., url: http://finance.yahoo.com/q/op?s=GOOG&m=2015-01

I was previously using yahoo.finance.options in an old project and it did indeed used to work (early this year is the last time I had tested it).

Direct Link to Broken Query

Anyone know how I can fix this?

mazar commented 9 years ago

I had the same problem a couple of weeks ago, and decided to use google instead. I suggest to do the same. See http://www.focalshift.com/2014/06/24/the-google-finance-api-is-still-ticking/

yeldarby commented 9 years ago

I'm looking into the TradeKing and E*TRADE right now; ideally if I'm going to switch this out I'll switch to something that's officially supported.

But if I can't get an API key for those and this doesn't get fixed I may resort to Google Finance. Thanks for the tip!