Developer Reference
API Documentation
Build trading bots, analytics dashboards, and integrations with clear REST and WebSocket references.
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/prices | Returns current market prices and metadata for active assets. |
| GET | /api/orderbook/{pair} | Returns order book depth snapshots for a market pair. |
| GET | /api/ticker/{pair} | Returns ticker-level pricing metrics for a market pair. |
| POST | /api/cryptapi/callback | Receives settlement callbacks from approved blockchain gateway services. |
Authentication
All private endpoints require HMAC-SHA256 signed headers. Generate keys in your dashboard under API Management.
Rate Limits
Public endpoints: 10 req/s. Authenticated endpoints: 30 req/s. WebSocket connections: 5 concurrent streams.
Response Format
All responses are JSON. Timestamps use Unix milliseconds. Decimal fields are returned as strings for precision.
Example Request
curl -X GET "https://api.dexcange.com/v1/ticker/24hr?symbol=BTCUSDT" \
-H "X-API-KEY: your_api_key" \
-H "X-SIGNATURE: hmac_sha256_signature" \
-H "X-TIMESTAMP: 1700000000000"
{
"symbol": "BTCUSDT",
"lastPrice": "43250.00",
"volume24h": "12458.376",
"change24h": "2.45",
"high24h": "43800.00",
"low24h": "42100.00"
}