[general]
assets = ["btc", "eth"]
log_level = "info"
metrics_port = 9090

[feeds.binance_spot]
enabled = true
ws_url = "wss://stream.binance.com:9443"
rest_url = "https://api.binance.com"
reconnect_base_ms = 1000
reconnect_max_ms = 60000

[feeds.binance_futures]
enabled = true
ws_url = "wss://fstream.binance.com"
rest_url = "https://fapi.binance.com"
reconnect_base_ms = 1000
reconnect_max_ms = 60000

[feeds.bybit_spot]
enabled = true
ws_url = "wss://stream.bybit.com/v5/public/spot"
rest_url = "https://api.bybit.com"
reconnect_base_ms = 1000
reconnect_max_ms = 60000

[feeds.bybit_perps]
enabled = true
ws_url = "wss://stream.bybit.com/v5/public/linear"
rest_url = "https://api.bybit.com"
reconnect_base_ms = 1000
reconnect_max_ms = 60000

[feeds.deribit]
enabled = true
ws_url = "wss://www.deribit.com/ws/api/v2"
rest_url = "https://www.deribit.com/api/v2"
reconnect_base_ms = 1000
reconnect_max_ms = 60000

[bar]
interval_secs = 60
flush_delay_ms = 200
gap_threshold_secs = 30

[costs.btc]
fee_bps = 2.0
spread_bps = 1.0
slip_bps = 1.0

[costs.eth]
fee_bps = 2.0
spread_bps = 1.5
slip_bps = 1.5

[features]
book_levels = 5

[regime]
lookback_days = [7, 30, 90]

[model]
weights_dir = "models/microstructure"
reload_interval_secs = 300
p_flat_cap = 0.6

[risk]
max_daily_loss = 1000.0
max_position_size = 0.1
max_concurrent_positions = 4
risk_budget = 100.0
drawdown_kill_pct = 5.0
vol_stop_multiplier = 2.0

[api]
enabled = false
rest_port = 8080
grpc_port = 50051
ws_enabled = false
cors_origins = []
dashboard_dir = ""

[storage.postgres]
dsn = ""
schema = "uforia"
buffer_size = 1000
