Improved error handling and taking special ITM/OTM handling out of XSP but just restricting to 200 days out.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user