samjtro / schwab

⚡ fast unofficial schwab traderapi hook
https://pkg.go.dev/github.com/samjtro/schwab
GNU General Public License v2.0
3 stars 1 forks source link

account woes #3

Closed samjtro closed 1 year ago

samjtro commented 2 years ago

GetBearerToken refuses to work. I am not entirely sure what I am doing wrong, but I predict it is something to do with the request validity. I am screwing up some parameters somewhere and it's annoying me. Will have to do more testing privately, but for now I can't move on with any other account modules. trade is going well. I have most of the strings, as well as the endpoints & Place function ready to go, and as soon as I fix the Bearer Token API call, I will be able to start trading (I think). The only worry I have is in my http.POST configuration. I haven't used http.POST extensively before, and I'm worried the setup I have is going to cause errors. But until I have the Bearer, who knows.

samjtro commented 1 year ago

Deprecated by issue #9, but the problem still stands.