Improved error handling and taking special ITM/OTM handling out of XSP but just restricting to 200 days out.

This commit is contained in:
2024-05-27 12:10:08 -05:00
parent d1103e6120
commit 499c16eb28
2 changed files with 26 additions and 3 deletions

View File

@@ -4,6 +4,10 @@
systemd-cat -t "`basename $0`" -p info <<< "Started"
./getNewAccessToken.sh
if [[ $? -ne 0 ]]; then
systemd-cat -t "`basename $0`" -p err <<< "Child process to get access token reported error. Exiting."
exit 1
fi
jq -r '.[].Symbol' allSymbols.json | sort | while read theSymbol; do
# I am not interested in detail quotes at the moment
@@ -13,7 +17,11 @@ jq -r '.[].Symbol' allSymbols.json | sort | while read theSymbol; do
#fi
if [[ '$XSP' = ${theSymbol} ]]; then
./recordOptionChainSingleSymbolSpecialRun.sh ${theSymbol}
#./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