CoinDCX API

Cryptocurrency / API Key Intermediate HTTPS
63 C
Measured Score 0 50 100 Speed 22/30 Consistency 13/20 Security 20/20 Browser access 0/15 Transparency 8/15 TESTED 2026-09-21

Overview

CoinDCX is an Indian cryptocurrency exchange offering REST APIs for market data, trading, and account management. Public endpoints expose order books, recent trades, and ticker data for all listed pairs without authentication. Authenticated endpoints enable order placement, balance queries, and trade history retrieval for CoinDCX accounts.

Beginner Tip

Start with the public ticker endpoint which needs no key: curl https://api.coindcx.com/exchange/ticker — it returns an array of all market pairs including current price and volume.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://api.coindcx.com/exchange/ticker
Result
HTTP 200 · application/json · 199,806 bytes · compressed
Response time
80 ms (median of 3) · fastest 66 ms
Transport
TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Let's Encrypt
Browser CORS
No Access-Control-Allow-Origin header — call it from a server, not the browser
Served by
cloudflare
Answered
8 of 8 weekly checks (100%, since 2026-07-31)
Recorded
2026-09-21

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
market string 0GUSDT
change_24_hour string 2.917
high string 0.23530000
low string 0.21500000
volume string 2752815.01638700
last_price string 0.22930000
bid string 0.22920000
ask string 0.22940000
timestamp integer 1790019087

Captured Response

Captured from a real request to https://api.coindcx.com/exchange/ticker on 2026-09-21. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
[
  {
    "market": "0GUSDT",
    "change_24_hour": "2.917",
    "high": "0.23530000",
    "low": "0.21500000",
    "volume": "2752815.01638700",
    "last_price": "0.22930000",
    "bid": "0.22920000",
    "ask": "0.22940000",
    "timestamp": 1790019087
  }
]

Field Reference

market Trading pair identifier (e.g., BTCUSDT).
last_price Most recent trade price for the pair.
bid Highest buy order price currently in the order book.
ask Lowest sell order price currently in the order book.
volume 24-hour trading volume in the base currency.

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://api.coindcx.com/exchange/ticker";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-09-21. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 404 Requesting a path that does not exist application/json
{
  "status": "error",
  "message": "not_found",
  "code": 404
}

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

401 Unauthorized on private endpoints HMAC signature computed incorrectly
✓ Generate the signature by HMAC-SHA256 hashing the JSON body string with your secret key, then pass it in the X-AUTH-SIGNATURE header alongside X-AUTH-APIKEY.
Market pair not found Using wrong pair format (e.g., BTC/USDT instead of BTCUSDT)
✓ CoinDCX uses concatenated pair symbols without separators — check /exchange/v1/markets for valid market names.
Timestamp mismatch error The timestamp in the request body is too old
✓ Use the current Unix timestamp in milliseconds and send the request within 5 seconds of generating it.

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 22/30
Consistency 13/20
Security 20/20
Browser access 0/15
Transparency 8/15
Endpoint Response Time 80ms

Fully tested on Sep 21, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Cryptocurrency
Difficulty Intermediate
Endpoint last called: 2026-09-21

Similar APIs

View All →