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:
10
getAccountNumbers.sh
Executable file
10
getAccountNumbers.sh
Executable 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}
|
||||
|
||||
Reference in New Issue
Block a user