-
Notifications
You must be signed in to change notification settings - Fork 4
0.0 quick start
samjtro edited this page Jan 3, 2025
·
4 revisions
go to https://developer.schwab.com, create an account, create an app, get app credentials from https://developer.schwab.com/dashboard/apps
- create any file with the
.env
extension in your project directory (can also have multiple, if necessary), formatted as such:
APPKEY=KEY0 // App Key
SECRET=KEY1 // App Secret
CBURL=https://127.0.0.1 // App Callback URL
run the following command in your cwd to generate ssl certs for secure tls transmission of your bearer token:
openssl req -x509 -out localhost.crt -keyout localhost.key -newkey rsa:2048 -nodes -sha256 -subj '/CN=localhost' -extensions EXT -config <( \
printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS.1:localhost,IP:127.0.0.1\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")
go get github.com/go-schwab/[email protected]