Replace the Python executor with direct C execution in a dedicated
executor thread. Removes UDS JSON serialization, Python async
overhead, and the 2+ms pipeline gap between signal creation and
order fire.
New components:
- src/rest_client.c/h: Keepalive HTTPS, HMAC-SHA256 signing,
order_place, order_test, Content-Length response parsing
- src/fill_handler.c/h: SPSC ring buffer for WS match events,
hot thread -> executor thread fill dispatch
- src/executor.c/h: execute_triangle() cascade, fee hold
reduction, increment floor, paper mode simulation, PnL,
concurrency isolation, reporting
Modified:
- src/ws_client.c: Subscribe to tradeOrdersV2 + account.balance,
dispatch orderChange match events to fill SPSC, private token
fetch via bullet-private, token cleared on reconnect
- src/http_client.c: Added https_post_auth() for signed POST
- src/events.c: Cold thread replaced with executor thread
(poll on wake_fd + fill_fd, direct execution)
- config.yaml.example: initial_capital moved to fused_engine,
added cooldown_seconds, kcs_discount_active
Removed:
- src/kucoin_sign.c/h (redundant with http_client.c helpers)