Files
OptionRecorderSchwab/getAccountNumbers.sh

11 lines
261 B
Bash
Raw Normal View History

#!/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}