From d242be4d5ec77b4f2b1e97af57fb8ef57503c2e9 Mon Sep 17 00:00:00 2001 From: Joe Tretter Date: Thu, 20 Jun 2024 09:34:11 -0500 Subject: [PATCH] Implement stitiching as fallback, better error handling, add new symbols. --- .gitignore | 2 -- allSymbols.json | 6 ++++++ autoTradeSPXPutCreditSpread.sh | 2 -- recordAllSymbolsSingleRun.sh | 9 +++++---- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 0bd77b0..36bc71d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,5 @@ data/* temp/* appCredentials.dat refresh_token.dat -Unstaged changes after reset: -M .gitignore appKey.dat cert.pem diff --git a/allSymbols.json b/allSymbols.json index 8b12e70..b5fc96c 100644 --- a/allSymbols.json +++ b/allSymbols.json @@ -44,12 +44,18 @@ { "Symbol": "HD" }, + { + "Symbol": "HEI" + }, { "Symbol": "INTC" }, { "Symbol": "IWM" }, + { + "Symbol": "KHC" + }, { "Symbol": "KMB" }, diff --git a/autoTradeSPXPutCreditSpread.sh b/autoTradeSPXPutCreditSpread.sh index c5edb8c..4cae87a 100755 --- a/autoTradeSPXPutCreditSpread.sh +++ b/autoTradeSPXPutCreditSpread.sh @@ -77,8 +77,6 @@ systemd-cat -t "`basename $0` $1" -p debug <<< "Order: _${orderJson}_" #read ./getNewAccessToken.sh -set -x -tempFile=temp/order.tmp.$$.json curl -s -X POST \ 'https://api.schwabapi.com/trader/v1/accounts/C819AC820A502BA92E55D775B22BDF0E1BC91D86C62685714347734A5827CCB3/orders' \ -H "Authorization: Bearer $(