REST API
Data
Every REST endpoint is a GET with query parameters, under https://api.datamaxiplus.com/api/v1. Datasets:
- CEX (Candle, Ticker, Funding rate, Open interest, Liquidation, Symbol, Trading fees, Wallet status, Announcements, Token updates)
- Premium
- Forex
- Trend (Naver)
- Telegram
- Index price
- Listing
- Margin borrow
Authentication
Paid endpoints take your API key in the X-DTMX-APIKEY header. Sign up at datamaxiplus.com and copy the key from My page → API keys (open). Details: Authentication.
Pricing
Pay per call, from the prepaid balance the WebSocket API and MCP server also draw from. Lists and metadata endpoints are free; data endpoints cost 1 (Latest), 5 (History) or 20 (Aggregated) credits per call (1 credit = $0.0001). Only successful responses are charged. When the balance can't pay for a call, the API returns HTTP 402. See Pricing and billing for the price of every endpoint.
Limits
Rate limits are enforced per account, per minute: the account's key and its MCP clients share the same budget. Free list and metadata endpoints called without a key are limited to 10 requests per minute per IP. If you need more headroom, reach us from Contact.
Rows per call
History endpoints cap how much one call returns. Long ranges take several calls (each billed once):
| Endpoint | Per-call limit |
|---|---|
/api/v1/funding-rate/history | limit up to 100 rows (default 10); page with page or move from/to. |
/api/v1/cex/candle | Up to 1,000 candles per call; a longer from–to range is rejected. Data starts 2024-01-01. |
/api/v1/liquidation/symbol-history | 5m up to 24 h, 15m up to 72 h, 1h up to 7 days. |
/api/v1/liquidation, /api/v1/liquidation/feed | limit 1–1,000 (default 100). |
/api/v1/telegram/messages | limit up to 100 (default 10). |
/api/v1/index-price | Range under 30 days (default: the last 30 days). |
Rate limits are enforced to ensure fair usage of the API, so it's important to monitor and control the frequency of your requests to avoid hitting these limits.
Exceeding the limit
When you exceed your limit, the server responds with HTTP status code 429 and the following JSON body:
{ "error": "rate limit exceeded" }
Every 429 carries a Retry-After: 60 header, indicating the number of seconds to wait before retrying. This applies to both the free endpoints (ping, server time, lists and metadata) and the paid data endpoints (CEX, Premium, Forex, and so on). Requests rejected with 429 are not charged.
Rate-limit headers
Data API responses carry the standard rate-limit trio — on successful responses and on 429s alike:
| Header | Meaning |
|---|---|
x-ratelimit-limit | Your cap for the current window, in requests per minute. |
x-ratelimit-remaining | Requests left in the current window. |
x-ratelimit-reset | Unix timestamp (epoch seconds, UTC) at which the window resets. |
Pace your requests using x-ratelimit-remaining and x-ratelimit-reset rather than by counting locally, and honor Retry-After when you do receive a 429. Treat the headers as advisory: they are omitted in the rare case where the limiter backend is unavailable, so your client should tolerate their absence.
Balance headers
Paid responses also carry your prepaid balance, so a bot can top up before it gets a 402:
| Header | Meaning |
|---|---|
x-credit-balance | Your balance in credits (1 credit = $0.0001) before this request. |
x-credit-cost | What this request costs, in credits. It is deducted only if the response is 200. |
Free endpoints called without a key don't carry them. For the full balance, ledger and auto top-up state, see Check your balance.