Re-introduced stiching as a fallback for SPY too big; automatic order entry creation for SPX Put Spread works now.

This commit is contained in:
2024-05-30 10:53:17 -05:00
parent 6d2059f0e2
commit 5f49216a88
3 changed files with 29 additions and 15 deletions

View File

@@ -17,14 +17,27 @@ jq -r '.[].Symbol' allSymbols.json | sort | while read theSymbol; do
#fi
if [[ '$XSP' = ${theSymbol} ]]; then
#./recordOptionChainSingleSymbolSpecialRun.sh ${theSymbol} toDate $(date "+%Y-%m-%d" -d "+200 days")
# 2024-05-27, it seems that the ITM/OTM/NTM handling no longer makes an impact, therefore falling back to the normal method but restricting to 200 days
# for XSP this is no a break of the leg I guess...
./recordOptionChainSingleSymbolSingleRun.sh ${theSymbol} toDate $(date "+%Y-%m-%d" -d "+200 days")
if [[ $? -ne 0 ]]; then
touch temp/hadErrors.$$.tmp
fi
# The above one might fail, so we also try with stitching
./recordOptionChainSingleSymbolSpecialRun.sh ${theSymbol}
continue
fi
if [[ 'SPY' = ${theSymbol} ]]; then
./recordOptionChainSingleSymbolSingleRun.sh ${theSymbol}
if [[ $? -ne 0 ]]; then
systemd-cat -t "`basename $0`" -p warning <<< "falling back to stitching for ${theSymbol}"
./recordOptionChainSingleSymbolSpecialRun.sh ${theSymbol}
if [[ $? -ne 0 ]]; then
touch temp/hadErrors.$$.tmp
fi
fi
# The above one might fail, so we also try with stitching
continue
fi
@@ -36,7 +49,6 @@ jq -r '.[].Symbol' allSymbols.json | sort | while read theSymbol; do
continue
fi
./recordOptionChainSingleSymbolSingleRun.sh ${theSymbol}
if [[ $? -ne 0 ]]; then
touch temp/hadErrors.$$.tmp