Private investor · Southeast Asia · 2025–2026
Delta-neutral crypto funding bot with two legs and a kill switch
Long spot and short perpetual on separate accounts of one exchange, with neutrality checks, a daily stop and real-capital runs at minimum size.
The problem
The client wanted to collect funding with no directional exposure. The exchange ties each API key to a single account and its sandbox has a broken index feed, so the sandbox could prove the mechanics but not the economics.
What I built
- Entry and exit of both legs, with single-leg incident detection and automatic unwind.
- Kill switch, daily loss stop and safe restart, tested live with minimum-size orders.
- Funding and fees read from the venue instead of hardcoded values, with break-even computed on that data.
- VPS deployment with live commissioning, a reboot with the hedge open and a health check every morning.
- IB Gateway connectivity groundwork for the next options and forex strategies.
- leg.spot
- LONG BTC ok
- leg.perp
- SHORT BTC ok
- delta
- 0.000 neutral
- funding
- read from venue
- daily_stop
- armed
- kill_switch
- armed
- health
- fresh · 08:00 UTC
Result
The system ran with real capital and stayed neutral the whole time. The measurements showed that spot-leg fees set the break-even, which led to the decision to change venue before scaling size.
