alexgolec / tda-api

A TD Ameritrade API client for Python. Includes historical data for equities and ETFs, options chains, streaming order book data, complex order construction, and more.
https://tda-api.readthedocs.io
MIT License
1.26k stars 338 forks source link

Advanced Auth Method for Serverless #262

Closed KJJorgensen closed 3 years ago

KJJorgensen commented 3 years ago

I'm having a problem with the token path not being found when deploying to the cloud with both chalice and flask. The token path is not an issue when I run the app locally. I think the fix lies in the advanced functionality section of the client authorization. There it lists 'tda.auth.client_from_access_functions(api_key, token_read_func, token_write_func, asyncio=False' as being used in a serverless application. Could this be my problem? My feature request is adding a script to this repository that shows how to make this authentification method work. Maybe just as a template to replace the other Auth methods for those of us struggling to get this app working in the cloud.

Thank you for your time and all the awesome information

alexgolec commented 3 years ago

Issues are not an appropriate venue for support. Please visit our discord to ask the community for help:

https://discord.gg/nfrd9gh

KJJorgensen commented 3 years ago

This is a feature request... the issue tab allows for feature requests to be submitted.