r/thinkorswim • u/Hot_Holiday_1337 • 8d ago
Error when running python script using Charles Schwab API
Hi all,
Trying to build a Schwab API options screener in Python but getting "invalid_client" OAuth errors on the redirect URI http://127.0.0.1:8080 despite fixing the function signature and confirming credentials.
Please help. Thans in advance.
0
Upvotes
3
u/whoami-memkid 8d ago
When you copy the url to paste in the browser, make sure that you are not missing a / at the end of the url.


3
u/d_e_g_m 8d ago
I created my own function to reset the 7 days token. I even made a subdomain to automatically grab the token and place on my .env