jmfernandes / robin_stocks

This is a library to use with Robinhood Financial App. It currently supports trading crypto-currencies, options, and stocks. In addition, it can be used to get real time ticker information, assess the performance of your portfolio, and can also get tax documents, total dividends paid, and more. More info at
http://www.robin-stocks.com
MIT License
1.68k stars 457 forks source link

robin_stocks.helper.id_for_chain(symbol) returning None #173

Open tmc5227 opened 3 years ago

tmc5227 commented 3 years ago

Seems like the API query that ties a symbol to an option chain has derailed. Any insight?

MBernards commented 3 years ago

I'm not fully sure how to interpret this, but I came across this thread on reddit today https://www.reddit.com/r/algotrading/comments/j39kaa/robinhood_api_change_last_night/

tmc5227 commented 3 years ago

I actually came across the same thing while tracing back the calls. The fact that I never had to look through the code before is a testament to the work done here by everyone else. Hoping someone else has the time to restructure the call to the API to search by stock id rather than stock symbol. I won't have the time for a few days probably.

solarplex commented 3 years ago

robin_stock.helper.id_for_chain("AAPL") '7dd906e5-7d4b-4161-a3fe-2c3b62038482'

Seems to work properly? They might have reverted the api change.