#!/bin/bash
# Multi-asset order book collector wrapper
# Ensures correct Python environment

cd /home/ubuntu/.hermes/workspace/projects/ORDER_FLOW_GRAPH/scripts

# Use explicit Python path
/home/ubuntu/.hermes/hermes-agent/.venv/bin/python3 -c "
import sys
print('Python:', sys.executable)
print('websocket module:', 'websocket' in sys.modules)

# Now import and run
import websocket
print('✓ websocket imported successfully')

# Read and execute the collector
with open('collect_multi_asset.py') as f:
    code = f.read()

exec(code)
"
