hn4002 / schwab-api-scripts

Some scripts to test Schwab APIs
GNU General Public License v3.0
1 stars 2 forks source link

error running scripts do_app_auth_n_get_refresh_token.py - please update documentation #1

Open jj-github-jj opened 1 month ago

jj-github-jj commented 1 month ago

Thanks for the scripts. I was not getting the do_app_auth_n_get_refresh_token.py to run properly and kept getting authentication errors even though I have been approved for access at schwab developer portal. Found that logging in first time on the portal . as done in the video at the link below first tested the api access via schwab developer portal as shown in the video. Once I tested that I have access to the api via the tests at schwab developer portal, the scripts you have shared such as do_app_auth_n_get_refresh_token.py worked and now I am able to use all your scripts. The video is for R scripts but testing the api access is the part that is independent of language and useful for getting your scripts to work by first logging in via developer portal. https://www.youtube.com/watch?v=AOiFYj5iM5U

hn4002 commented 1 month ago

Thanks for the feedback and reporting your findings!

I wrote these scripts when there were no libraries to wrap the Schwab API.

Now there are a couple of good libraries to do same things. I recommend using this library as this has got much more comprehensive documentation and much more comprehensive error handling: