Skip to main content

Overview

Welcome to the Sparky Perpetual Contracts API reference. Sparky's developer API is Binance USDT-M Futures compatible: request formats, response fields and the HMAC signing rule match Binance's /fapi so an existing Binance SDK can be pointed at Sparky by swapping the base URL. The structure of this section follows the Binance USDT-M sidebar one-to-one, so gaps are visible at a glance.

Two HTTP surfaces

SurfacePath prefixAudienceAuth
Native API/api/v1/*Web front end, deposits/withdrawals, referralAuthorization: Bearer <JWT> from the EIP-712 login
FAPI/fapi/v1/*, /fapi/v2/*, /futures/data/*Bots, market makers, SDKsX-MBX-APIKEY header + HMAC-SHA256 signature

Both surfaces share the same matching engine, positions and balances. /fapi is mounted at the root of the host (https://api-avax.sparkydex.app/fapi/v1/order) exactly like Binance — there is no /api/v1 prefix on FAPI routes.

Base URLs

One deployment per chain; accounts, balances and API keys are not shared across deployments. Hostnames below are placeholders until DNS is assigned.

ChainChain IDREST base URLWebSocket
Avalanche C-Chain43114https://api-avax.sparkydex.appwss://api-avax.sparkydex.app/ws
Arbitrum One42161https://api-arb.sparkydex.appwss://api-arb.sparkydex.app/ws
BNB Chain56https://api-bnb.sparkydex.appwss://api-bnb.sparkydex.app/ws
Avalanche Fuji (testnet)43113https://api-fuji.sparkydex.appwss://api-fuji.sparkydex.app/ws
Arbitrum Sepolia (testnet)421614https://api-arb-sepolia.sparkydex.appwss://api-arb-sepolia.sparkydex.app/ws

How to read this section

Every endpoint page carries a status:

  • Implemented — Sparky serves this endpoint today; the page documents the request, response, and every place Sparky's behaviour differs from Binance.
  • Not yet implemented (空缺) — Sparky has not added this Binance endpoint. The page records the Binance method/path and, where one exists, the Sparky alternative. These stubs exist so SDK authors can see the gap at a glance.

Endpoints that Sparky adds on top of Binance (slippage report, algo orders, listenKey, API-key management, health) live under Sparky-specific Endpoints.