Adding account number program and auto-trading, but the auto-trading does not work - sent e-mail to API team.

This commit is contained in:
2024-05-28 15:25:56 -05:00
parent 499c16eb28
commit 6d2059f0e2
2 changed files with 93 additions and 0 deletions

10
getAccountNumbers.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
#set -x
mkdir -p temp
./getNewAccessToken.sh
tempFile=temp/accountNumbers.tmp.$$.json
curl -s -X GET "https://api.schwabapi.com/trader/v1/accounts/accountNumbers" -H "Authorization: Bearer $(<access_token.dat)" > ${tempFile}
jq '.' < ${tempFile}