b3b28bb44a37a4750e347219b05193e4bec8f499
ExchangeFeeConfig in AccountState: taker_rate, maker_rate, lot_step, tick_size, funding_interval_secs calibration_ratio: EMA of actual/expected, updated on every fill Kernel now predicts fees at fill time (PREDICTED_FILL event): k_capital updated immediately without waiting for WS FILL_SETTLED When actual fee arrives, prediction is replaced and ratio recalibrated Reconcile delta: 0.000000 (was ~0.9 USDT in canary without prediction) Calibration loop on connect(): Fetches recent fill history, validates model vs exchange actuals deviation < 1pct -> OK; < 5pct -> WARN; >= 5pct -> ERROR (pre-trade gate) New FFI: dita_kernel_set_exchange_config_json, dita_kernel_calibrate_fee_json New ExecutionKernel methods: set_exchange_config(), calibrate_fee() pink_direct.py: loads BingX fee config on connect, calibrates before stream 131/131 offline pass.
Description
No description provided
Languages
Python
100%