Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Coinmate.io - Trading Orders API
description: 'Coinmate Trading API provides programmatic access to cryptocurrency trading, account management, and fund transfers. API examples in Java, TypeScript, Python, PHP: coinmate-api-examples
## Rate Limits
The API is rate-limited to **100 requests per minute** per API key. For real-time market data,
use the WebSocket API instead of polling. ## Authentication
Private endpoints require HMAC-SHA256 message signing. Generate your API key pair in the
application GUI (Account → API). ### Authentication Headers
| Header | Description |
|---|---|
| `X-Coinmate-Client-ID` | Your Client ID (account number) |
| `X-Coinmate-Nonce` | Unique incrementing number for each request |
| `X-Coinmate-Public-Key` | Your API public key (optional when using request params) |
| `X-Coinmate-Signature` | HMAC-SHA256 signature: `HMAC_SHA256(nonce + clientId + publicKey, privateKey)` |
### Authentication via Request Parameters
For POST endpoints, credentials can alternatively be sent as form fields: `clientId`, `publicKey`, `nonce`, `signature`. ### Signature Example (Python)
```python
import hashlib
import hmac
def createSignature(clientId, publicKey, privateKey, nonce):
message = bytes(f"{nonce}{clientId}{publicKey}", encoding="utf-8")
signature = hmac.new(bytes(privateKey, encoding="utf-8"), message, digestmod=hashlib.sha256).hexdigest()
return signature.upper()
```
## Response Format
All endpoints (except `GET /system/time`) return a consistent envelope:
```json
{
"error": false,
"errorMessage": null,
"data": { ... }
}
```
## Maintenance mode
During planned maintenance, the API is temporarily unavailable and every request returns HTTP 503 Service Unavailable, regardless of endpoint or method. The response honours the Accept header:
- If it includes application/json, you get the standard error response described in Response Format:
```json
{"error": true, "errorMessage": "Planned maintenance is underway. Please try again in a few minutes.", "data": null}
```
- Otherwise, an HTML maintenance page is returned. Maintenance windows are short — typically under a minute. Treat 503 as a temporary condition and retry with a reasonable delay. ## WebSocket API
Coinmate offers a standard WebSocket API in **two versions**. **Version 1.0** — each channel has its own URL. Once connected, the client is automatically subscribed to that channel. **Version 2.0** — single connection URL with subscribe/unsubscribe messages. Connect to:
```
wss://coinmate.io/api/websocket
```
### Subscribe / Unsubscribe
After connecting to the v2.0 endpoint, send a JSON message to subscribe to a channel:
```json
{
"event": "subscribe",
"data": {
"channel": "trades-BTC_EUR"
}
}
```
For **private channels**, include authentication fields in `data`:
```json
{
"event": "subscribe",
"data": {
"channel": "private-open_orders-123456",
"clientId": "123456",
"publicKey": "your-public-key",
"nonce": "1234567890",
"signature": "HMAC-SHA256-SIGNATURE"
}
}
```
To unsubscribe, send the same message with `"event": "unsubscribe"`. ### Event Types
Every WebSocket message from Coinmate is one of these event types:
| Event | Description |
|---|---|
| `data` | Contains a `payload` field with the requested data |
| `ping` | Sent periodically to keep the connection alive |
| `pong` | Response to a client-sent ping (not required to keep connection alive) |
| `subscribe_success` | Confirmation of successful subscription |
| `unsubscribe_success` | Confirmation of successful unsubscription |
| `error` | Response to an invalid message, contains a `message` field with details |
### Public Channels
**Version 1.0** URL prefix: `wss://coinmate.io/api/websocket/channel`
No authentication is required. #### New Trades
| Version | Address |
|---|---|
| v1.0 URL | `/trades/{CURRENCY_PAIR}` |
| v2.0 channel | `trades-{CURRENCY_PAIR}` |
`CURRENCY_PAIR` — any valid pair, e.g.'
version: '1'
servers:
- url: https://coinmate.io/api
tags:
# --- truncated at 32 KB (50 KB total) ---
# Full source: https://artifacts.apis.io/coinmate/openapi/coinmate-orders-api-openapi.yml