11 lines
261 B
Bash
Executable File
11 lines
261 B
Bash
Executable File
#!/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}
|
|
|