Introduce mnemonic account name resolution in getAccountNumbers

This commit is contained in:
2024-08-26 21:44:43 -05:00
parent 5535bdae7f
commit d8891ec75f
8 changed files with 42 additions and 21 deletions

View File

@@ -97,9 +97,9 @@ fi
./getNewAccessToken.sh
curl -s -X POST \
'https://api.schwabapi.com/trader/v1/accounts/CEF970366D4CC9553B5E8846E35FD92A1867F3E73C1082A52647256F42E4746B/orders' \
-H "Authorization: Bearer $(<access_token.dat)" \
"https://api.schwabapi.com/trader/v1/accounts/$(./getAccountNumbers.sh IRA)/orders" \
-H "Authorization: Bearer $(<access_token.dat)" \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d "${orderJson}"
-d "${orderJson}"