- Separate getting option chains from recording
- Add checking for market open - Remove SPX from recording - Hopefully precent the refresh token from being overwritten sometimes
This commit is contained in:
@@ -10,12 +10,7 @@ if [[ $? -ne 0 ]]; then
|
||||
fi
|
||||
|
||||
jq -r '.[].Symbol' allSymbols.json | sort | while read theSymbol; do
|
||||
# I am not interested in detail quotes at the moment
|
||||
#./recordQuoteSingleSymbolSingleRun.sh ${theSymbol}
|
||||
#if [[ $? -ne 0 ]]; then
|
||||
# touch temp/hadErrors.$$.tmp
|
||||
#fi
|
||||
|
||||
#The result of XSP is too big causing a problem at the server, therefore limiting to future 400 days and splitting if needed
|
||||
if [[ '$XSP' = ${theSymbol} ]]; then
|
||||
./recordOptionChainSingleSymbolSingleRun.sh -ErrorAsWarning ${theSymbol} toDate $(date "+%Y-%m-%d" -d "+400 days")
|
||||
if [[ $? -ne 0 ]]; then
|
||||
@@ -29,14 +24,6 @@ jq -r '.[].Symbol' allSymbols.json | sort | while read theSymbol; do
|
||||
continue
|
||||
fi
|
||||
|
||||
if [[ '$SPX' = ${theSymbol} ]]; then
|
||||
./recordOptionChainSingleSymbolSingleRun.sh -ErrorAsWarning ${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
|
||||
continue
|
||||
fi
|
||||
|
||||
#Default behavior - fall back to stitching on error
|
||||
./recordOptionChainSingleSymbolSingleRun.sh -ErrorAsWarning ${theSymbol}
|
||||
if [[ $? -ne 0 ]]; then
|
||||
|
||||
Reference in New Issue
Block a user