using HA trading-calendar and config service

This commit is contained in:
2025-02-03 15:31:34 -05:00
parent d5e1f0a446
commit 9f789738e9
20 changed files with 24 additions and 24 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ is_business_day() {
dt=${1}
date=$(date -d "${dt}" +"%Y-%m-%d")
CalendarURL=http://cloud23.cvtt.vpn:8000/api/v1/markets/hours?mic=XNYS
CalendarURL=https://trading-calendar.cvtt.net/api/v1/markets/hours?mic=XNYS
URL="${CalendarURL}&start=${date}&end=${date}"
open_time=$(curl -s "${URL}" | jq '.[] | .open_time')
if [ -n "${open_time}" ]; then