TNowalk / stock-slack-bot

A near realtime Slack Stock Bot
MIT License
5 stars 2 forks source link

New Command - Order Book #16

Open TNowalk opened 8 years ago

TNowalk commented 8 years ago

There is no API endpoint for Yahoo's Finance to expose this data, but could potentially use YQL to scrap the orders table on Yahoo Finance.

Example URL: http://finance.yahoo.com/q/ecn?s=AAPL+Order+Book

Example YQL to query the entire table found here:

select * from html where url='http://finance.yahoo.com/q/ecn?s=CLDX+Order+Book' and xpath='//table[@class="orderbook"]'