Documentation
API reference, SDK guides, and integration patterns for connecting algo trading bots to Alfax challenges.
OpenAPI Specification
The complete Alfax API is documented in an OpenAPI 3.1 spec. All paths are byte-compatible with Binance Futures USDT-M.
Python SDK Quickstart
Install the first-party alfax package from PyPI for a typed, ergonomic client with challenge-aware helpers.
ccxt / python-binance
Any library that supports Binance Futures works with a single base_url (or urls.api) override. No code changes required.
TradingView webhook
PineScript strategies and chart alerts can fire orders straight into a challenge — no bot process required. Each challenge issues its own webhook URL on the dashboard; the alert Message field is parsed as a single-line grammar.
Freqtrade
Freqtrade speaks ccxt under the hood — the ccxt_config.urls override is enough to point it at Alfax. Both ccxt_config and ccxt_async_config need the same urls block since Freqtrade runs sync REST + async data fetch in parallel.
Hummingbot
Hummingbot's binance_perpetual connector hardcodes its URLs as Python constants. Three working paths: (1) reverse-proxy fapi.binance.com → api.alfax.trade with a hosts-file rewrite, (2) fork the connector and patch the constants file (recommended), (3) run Hummingbot Gateway in ccxt-connector mode.
HMAC-SHA256 Authentication
Private endpoints require an X-MBX-APIKEY header and a signature query parameter — identical to Binance Futures auth.
Alfax Challenge Extensions
Two non-Binance endpoints provide challenge-specific data: GET /fapi/v1/challenge and GET /fapi/v1/challenge/rules. The user-data WebSocket stream also emits challengeUpdate events.
The Alfax API is under active development. For questions, open an issue on the GitHub repository. Contract gaps or spec discrepancies should be flagged there, not worked around.