- Fix SPX auto trading by differntiation of SPX and SPWX

- Prevent destruciton of the refresh token when things go wrong
- add auto trading wip code for order getting, and long trading
- add recording of 90 days out expiration tracking
- Add TSLA
This commit is contained in:
2024-07-17 14:08:55 -05:00
parent d242be4d5e
commit e9a651f92e
9 changed files with 255 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ jq -r '.[].Symbol' allSymbols.json | sort | while read theSymbol; do
./recordOptionChainSingleSymbolSingleRun.sh ${theSymbol} toDate $(date "+%Y-%m-%d" -d "+200 days")
if [[ $? -ne 0 ]]; then
systemd-cat -t "`basename $0`" -p warning <<< "falling back to stitching for ${theSymbol}"
./recordOptionChainSingleSymbolSpecialRun.sh ${theSymbol}
./recordOptionChainSingleSymbolSpecialRun.sh ${theSymbol} toDate $(date "+%Y-%m-%d" -d "+400 days")
if [[ $? -ne 0 ]]; then
touch temp/hadErrors.$$.tmp
fi
@@ -43,7 +43,7 @@ jq -r '.[].Symbol' allSymbols.json | sort | while read theSymbol; do
fi
if [[ '$SPX' = ${theSymbol} ]]; then
./recordOptionChainSingleSymbolSingleRun.sh ${theSymbol} fromDate $(date "+%Y-%m-%d" -d "+40 days") toDate $(date "+%Y-%m-%d" -d "+45 days")
./recordOptionChainSingleSymbolSingleRun.sh ${theSymbol} fromDate $(date "+%Y-%m-%d" -d "+40 days") toDate $(date "+%Y-%m-%d" -d "+46 days")
if [[ $? -ne 0 ]]; then
touch temp/hadErrors.$$.tmp
fi