I crawl options data from Yahoo Finance but actually, Yahoo returned fake data if I send a thousand requests. I research and use TD Ameritrade API to get options, both github.com/areed1192/td-ameritrade-python-api and github.com/timkpaine/tdameritrade is a good rating. However, every time I send a request a new token is generated then the TD Ameritrade API team noticed me. I like tdameritrade package than td-ameritrade-python-api because of the handled tokens. ====================== Major changes in the v0.1.0 update to the way tokens are handled. You will still need the original authentication instructions, but the TDClient now takes the refresh token and client id, not the access token. A new session class handles token expiration and will automatically call a new token as needed. ====================== And I used Redis to keep tokens in 30 minutes, then my project works smoothly.
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.