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

@@ -3,7 +3,7 @@ set -x
IFS=$'\0'
daysOutMin=90
daysOutMax=91
daysOutMax=95
deltaMin=0.35
deltaMax=0.40
@@ -104,10 +104,10 @@ fi
./getNewAccessToken.sh
curl -s -X POST \
'https://api.schwabapi.com/trader/v1/accounts/5A5B921917D97B89FDA53E1E1D13D2EB11E488ADA20A20B3C787477DE59A770E/orders' \
-H "Authorization: Bearer $(<access_token.dat)" \
echo curl -s -X POST \
"https://api.schwabapi.com/trader/v1/accounts/$(./getAccountNumbers.sh Roth)/orders" \
-H "Authorization: Bearer $(<access_token.dat)" \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d "${orderJson}"
-d "${orderJson}"