various smaller maintenance changes

This commit is contained in:
2024-12-07 09:56:54 -06:00
parent bbb9d5dce6
commit aabc2d235e
4 changed files with 12 additions and 2 deletions

View File

@@ -4,6 +4,11 @@ IFS=$'\0'
. helpers.sh
marketOpen=$([[ $(./getMarketHours.sh | jq '.option[].isOpen' | grep true | wc -l) -ne 0 ]] && echo true || echo false)
if [[ ${marketOpen} == false ]]; then
throw "The market is closed, exiting." info 2
fi
daysOutMin=87
daysOutMax=91
deltaMin=0.35