Fixing more of the log conversions to exit with errorleve even when logging as warning. Also, hardcode the Price of the 1DTE trade
This commit is contained in:
@@ -40,9 +40,10 @@ marketsCheck=$(jq -e -r '.. | .isOpen?' temp/markets.tmp.$$.json | grep -v null
|
||||
if [[ ${marketsCheck} -eq 0 ]]; then
|
||||
errMsg="ERROR: THE RESPONSE IS INCORRECT! markets: _${markets}_ Check: _${marketsCheck}_ check file _temp/markets.tmp.$$.json_"
|
||||
if [[ "${ErrorLogLevel}" == "err" ]]; then
|
||||
throw "${errMsg}" ${ErrorLogLevel}
|
||||
throw "${errMsg}" ${ErrorLogLevel} 2
|
||||
else
|
||||
log "${errMsg}" ${ErrorLogLevel}
|
||||
exit 2
|
||||
fi
|
||||
else
|
||||
jq < temp/markets.tmp.$$.json
|
||||
|
||||
Reference in New Issue
Block a user