Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions backend/app/price_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,17 +528,9 @@ def __init__(self) -> None:
self.initial_cash = 1000.0 # BitMEX initial cash

def update_realtime_prices_and_values(self) -> None:
"""Update BitMEX contract prices and account values (synced with stock market hours)."""
"""Update BitMEX contract prices and account values (24/7 trading)."""
try:
# Check if it's trading hours (sync with stock market to prevent file conflicts)
if not is_trading_day():
logger.info("πŸ“… Not a trading day, skipping BitMEX price update")
return

if not is_market_hours():
logger.info("πŸ•’ Outside market hours, skipping BitMEX price update")
return

# BitMEX trades 24/7, no need to check market hours
logger.info("πŸ”„ Starting BitMEX price update...")
models_data = _load_models_data()
if not models_data:
Expand Down
Loading