API Documentation
Integrate with NexChange using our RESTful API. All endpoints use JSON request/response bodies.
https://api.nexchange.ioBearer <JWT>⚡ Rate Limiting
Rate limit headers (X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset) are included in all responses.
🔐 Authentication
Register, login, manage sessions and 2FA.
💰 Wallet
Manage balances, deposits, withdrawals, and ledger.
📊 Trading
Place orders, manage positions, and access market data.
📈 Market Data
Public market data endpoints. No authentication required.
🏦 Earn & Staking
Staking products, allocations, and DCA plans.
⚡ Futures
Perpetual futures trading with leverage.
👤 Account
Profile, API keys, notifications, and support.
🏧 Fiat
Fiat deposit and withdrawal endpoints.
📥 Export
Data export for tax reporting and analysis.
🔌 WebSocket API
wss://api.nexchange.io/wsThe WebSocket connection provides real-time orderbook updates and trade data. Connection automatically sends heartbeat pings every 30 seconds.
Message Types
// Example message
{
"type": "orderbook_update",
"pair": "BTCUSDT",
"bids": [{ "price": "67500.00", "amount": "0.5" }],
"asks": [{ "price": "67510.00", "amount": "0.3" }]
}