Coinmate Market Data API
Public endpoints — no authentication required
Public endpoints — no authentication required
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/coinmate:coinmate-market-data-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a 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.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Coinmate.io - Trading Market Data 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:
- name: Market Data
description: Public endpoints — no authentication required
paths:
/transactions:
get:
tags:
- Market Data
summary: Get recent transactions
description: '**Public operation** — no authentication required.
Returns recent public trades. Consider using the WebSocket API for real-time data.'
operationId: getTransactions
parameters:
- name: minutesIntoHistory
in: query
description: How many minutes into history. Max 1440 (24 hours).
required: true
schema:
type: integer
format: int32
- name: currencyPair
in: query
description: Currency pair identifier
required: true
schema:
type: string
example: BTC_EUR
responses:
'200':
description: List of recent trades
content:
application/json:
schema:
$ref: '#/components/schemas/ResultContainerListPublicTransaction'
examples:
success:
summary: Successful response
value:
error: false
errorMessage: null
data:
- timestamp: 1506062496538
transactionId: '813218'
price: 3123.57
amount: 0.00270141
currencyPair: BTC_EUR
tradeType: BUY
'400':
$ref: '#/components/responses/ErrorResponse'
security: []
/tradingPairs:
get:
tags:
- Market Data
summary: Get trading pairs
description: '**Public operation** — no authentication required.
Returns available trading pairs with parameters.'
operationId: getTradingPairs
responses:
'200':
description: List of trading pairs
content:
application/json:
schema:
$ref: '#/components/schemas/ResultContainerListTradingPair'
examples:
success:
summary: Successful response
value:
error: false
errorMessage: null
data:
- name: BTC_EUR
firstCurrency: BTC
secondCurrency: EUR
priceDecimals: 2
lotDecimals: 8
minAmount: 0.0002
tradesWebSocketChannelId: trades-BTC_EUR
orderBookWebSocketChannelId: order_book-BTC_EUR
tradeStatisticsWebSocketChannelId: statistics-BTC_EUR
- name: BTC_CZK
firstCurrency: BTC
secondCurrency: CZK
priceDecimals: 2
lotDecimals: 8
minAmount: 0.0002
tradesWebSocketChannelId: trades-BTC_CZK
orderBookWebSocketChannelId: order_book-BTC_CZK
tradeStatisticsWebSocketChannelId: statistics-BTC_CZK
'400':
$ref: '#/components/responses/ErrorResponse'
security: []
/ticker:
get:
tags:
- Market Data
summary: Get ticker
description: '**Public operation** — no authentication required.
Returns ticker for specified currency pair.'
operationId: getTicker
parameters:
- name: currencyPair
in: query
description: Currency pair identifier
required: true
schema:
type: string
example: BTC_EUR
responses:
'200':
description: Ticker data
content:
application/json:
schema:
$ref: '#/components/schemas/ResultContainerTickerData'
examples:
success:
summary: Successful response
value:
error: false
errorMessage: null
data:
last: 3120.52
high: 3334.98
low: 3020.61
amount: 103.28
bid: 3114.86
ask: 3152.58
change: -5.1
open: 3288.29
timestamp: 1506062222
status: TRADING
'400':
$ref: '#/components/responses/ErrorResponse'
security: []
/tickerAll:
get:
tags:
- Market Data
summary: Get all tickers
description: '**Public operation** — no authentication required.
Returns tickers for all currency pairs.'
operationId: getTickerAll
responses:
'200':
description: Tickers for all pairs
content:
application/json:
schema:
$ref: '#/components/schemas/ResultContainerMapStringTickerData'
examples:
success:
summary: Successful response
value:
error: false
errorMessage: null
data:
BTC_EUR:
last: 3120.52
high: 3334.98
low: 3020.61
amount: 103.28
bid: 3114.86
ask: 3152.58
change: -5.1
open: 3288.29
timestamp: 1506062222
status: TRADING
'400':
$ref: '#/components/responses/ErrorResponse'
security: []
/products:
get:
tags:
- Market Data
summary: Get currency pairs
description: '**Public operation** — no authentication required.
Returns all available currency pairs (alternate format).'
operationId: getProducts
responses:
'200':
description: List of currency pairs
content:
application/json:
schema:
$ref: '#/components/schemas/ResultContainerListCurrencyPairInfo'
examples:
success:
summary: Successful response
value:
error: false
errorMessage: null
data:
- id: BTC-EUR
fromSymbol: BTC
toSymbol: EUR
status: TRADING
- id: LTC-EUR
fromSymbol: LTC
toSymbol: EUR
status: TRADING
'400':
$ref: '#/components/responses/ErrorResponse'
security: []
/orderBook:
get:
tags:
- Market Data
summary: Get order book
description: '**Public operation** — no authentication required.
Returns current order book. Consider using the WebSocket API for real-time data.'
operationId: getOrderBook
parameters:
- name: currencyPair
in: query
description: Currency pair identifier
required: true
schema:
type: string
example: BTC_EUR
- name: groupByPriceLimit
in: query
description: Group orders by equal price
required: true
schema:
type: boolean
responses:
'200':
description: Order book snapshot
content:
application/json:
schema:
$ref: '#/components/schemas/ResultContainerOrderBookData'
examples:
success:
summary: Successful response
value:
error: false
errorMessage: null
data:
asks:
- price: 3152.96
amount: 0.02
- price: 3156.28
amount: 0.3
bids:
- price: 3115.34
amount: 0.3
- price: 3115.33
amount: 0.16
timestamp: 1506062222
status: TRADING
'400':
$ref: '#/components/responses/ErrorResponse'
security: []
components:
schemas:
ResultContainerTickerData:
type: object
properties:
data:
$ref: '#/components/schemas/TickerData'
error:
type: boolean
errorMessage:
type:
- string
- 'null'
required:
- data
- error
- errorMessage
ErrorResponse:
type: object
properties:
data:
type:
- object
- 'null'
description: Always null for error responses
error:
type: boolean
example: true
errorMessage:
type: string
description: Human-readable error message. Not a machine-readable code — branch on it only as a last resort, and expect the wording to change.
example: error.invalid.request
required:
- data
- error
- errorMessage
TickerData:
type: object
properties:
amount:
type: number
description: 24h volume
ask:
type: number
description: Best ask price
bid:
type: number
description: Best bid price
change:
type: number
description: 24h price change percentage
high:
type: number
description: 24h high
last:
type: number
description: Last trade price
low:
type: number
description: 24h low
open:
type: number
description: Opening price
status:
type: string
description: Currency pair trading status
enum:
- TRADING
- BREAK
- HALT
timestamp:
type: integer
format: int64
description: Ticker timestamp (Unix epoch, seconds)
ResultContainerOrderBookData:
type: object
properties:
data:
$ref: '#/components/schemas/OrderBookData'
error:
type: boolean
errorMessage:
type:
- string
- 'null'
required:
- data
- error
- errorMessage
ResultContainerListPublicTransaction:
type: object
properties:
data:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/PublicTransaction'
error:
type: boolean
errorMessage:
type:
- string
- 'null'
required:
- data
- error
- errorMessage
ResultContainerListTradingPair:
type: object
properties:
data:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/TradingPair'
error:
type: boolean
errorMessage:
type:
- string
- 'null'
required:
- data
- error
- errorMessage
TradingPair:
type: object
properties:
firstCurrency:
type: string
description: Base currency
lotDecimals:
type: integer
format: int32
description: Number of decimal places for amount
minAmount:
type: number
description: Minimum order amount
name:
type: string
description: Trading pair identifier
orderBookWebSocketChannelId:
type: string
description: WebSocket channel ID for order book
priceDecimals:
type: integer
format: int32
description: Number of decimal places for price
secondCurrency:
type: string
description: Quote currency
tradeStatisticsWebSocketChannelId:
type: string
description: WebSocket channel ID for trade statistics
tradesWebSocketChannelId:
type: string
description: WebSocket channel ID for trades
OrderBookData:
type: object
properties:
asks:
type: array
description: Sell orders, ordered by price ascending
items:
$ref: '#/components/schemas/OrderBookEntry'
bids:
type: array
description: Buy orders, ordered by price descending
items:
$ref: '#/components/schemas/OrderBookEntry'
status:
type: string
description: Currency pair trading status
enum:
- TRADING
- BREAK
- HALT
timestamp:
type: integer
format: int64
description: Snapshot timestamp (Unix epoch, seconds)
ResultContainerMapStringTickerData:
type: object
properties:
data:
type:
- object
- 'null'
additionalProperties:
$ref: '#/components/schemas/TickerData'
error:
type: boolean
errorMessage:
type:
- string
- 'null'
required:
- data
- error
- errorMessage
PublicTransaction:
type: object
properties:
amount:
type: number
description: Trade amount
currencyPair:
type: string
description: Currency pair
price:
type: number
description: Trade price
timestamp:
type: integer
format: int64
description: Trade timestamp in milliseconds (Unix epoch)
tradeType:
type: string
description: Trade side
enum:
- BUY
- SELL
transactionId:
type: string
description: Transaction identifier
ResultContainerListCurrencyPairInfo:
type: object
properties:
data:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/CurrencyPairInfo'
error:
type: boolean
errorMessage:
type:
- string
- 'null'
required:
- data
- error
- errorMessage
OrderBookEntry:
type: object
properties:
amount:
type: number
description: Total amount at this price level
price:
type: number
description: Price level
CurrencyPairInfo:
type: object
properties:
fromSymbol:
type: string
description: Base currency symbol
id:
type: string
description: Currency pair identifier, e.g. BTC-EUR
status:
type: string
description: Currency pair trading status
enum:
- TRADING
- BREAK
- HALT
toSymbol:
type: string
description: Quote currency symbol
responses:
ErrorResponse:
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
validationError:
summary: Validation error
value:
error: true
errorMessage: error.invalid.request
data: null
authenticationError:
summary: Authentication error
value:
error: true
errorMessage: error.access.denied
data: null
securitySchemes:
hmacAuth:
type: apiKey
description: 'HMAC-SHA256 authentication. Requires the following headers:
- `X-Coinmate-Client-ID` — your Client ID
- `X-Coinmate-Nonce` — unique incrementing number
- `X-Coinmate-Public-Key` — your API public key (optional)
- `X-Coinmate-Signature` — `HMAC_SHA256(nonce + clientId + publicKey, privateKey)` uppercased hex
Alternatively for POST endpoints, authentication can be provided via form parameters:
`clientId`, `publicKey`, `nonce`, `signature`.
'
name: X-Coinmate-Signature
in: header