Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
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.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/coinmate:coinmate-history-api"
All apis
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.
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.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Coinmate.io - Trading History 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: History
description: Transaction, trade, and transfer history
paths:
/transfer:
post:
tags:
- History
summary: Get transfer
description: '**Authenticated operation.**
Returns a specific transfer by transaction ID.'
operationId: getTransfer
parameters:
- $ref: '#/components/parameters/XCoinmateClientID'
- $ref: '#/components/parameters/XCoinmateSignature'
- $ref: '#/components/parameters/XCoinmatePublicKey'
- $ref: '#/components/parameters/XCoinmateNonce'
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/TransferDetailRequest'
required: true
responses:
'200':
description: Transfer details
content:
application/json:
schema:
$ref: '#/components/schemas/ResultContainerTransferItem'
examples:
success:
summary: Successful response
value:
error: false
errorMessage: null
data:
id: 10061
fee: 0
transferType: DEPOSIT
timestamp: 1541785057888
transferStatus: COMPLETED
amount: 100
amountCurrency: CZK
walletType: BANK_WIRE
txid: null
destination: null
destinationTag: null
'400':
$ref: '#/components/responses/ErrorResponse'
security:
- hmacAuth: []
/transferHistory:
post:
tags:
- History
summary: Get transfer history
description: '**Authenticated operation.**
Returns history of transfers.'
operationId: getTransferHistory
parameters:
- $ref: '#/components/parameters/XCoinmateClientID'
- $ref: '#/components/parameters/XCoinmateSignature'
- $ref: '#/components/parameters/XCoinmatePublicKey'
- $ref: '#/components/parameters/XCoinmateNonce'
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/TransferHistoryRequest'
required: true
responses:
'200':
description: Transfer history
content:
application/json:
schema:
$ref: '#/components/schemas/ResultContainerListTransferHistoryItem'
examples:
success:
summary: Successful response
value:
error: false
errorMessage: null
data:
- transactionId: 10061
amountCurrency: CZK
amount: 100
fee: 0
walletType: BANK_WIRE
transferType: DEPOSIT
transferStatus: COMPLETED
timestamp: 1554712810853
txid: null
destination: null
destinationTag: null
'400':
$ref: '#/components/responses/ErrorResponse'
security:
- hmacAuth: []
/transactionHistory:
post:
tags:
- History
summary: Get transaction history
description: '**Authenticated operation.**
Returns list of user transactions, ordered by timestamp.'
operationId: getTransactionHistory
parameters:
- $ref: '#/components/parameters/XCoinmateClientID'
- $ref: '#/components/parameters/XCoinmateSignature'
- $ref: '#/components/parameters/XCoinmatePublicKey'
- $ref: '#/components/parameters/XCoinmateNonce'
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/TransactionHistoryRequest'
required: true
responses:
'200':
description: Transaction history
content:
application/json:
schema:
$ref: '#/components/schemas/ResultContainerListTransactionHistoryItem'
examples:
success:
summary: Successful response
value:
error: false
errorMessage: null
data:
- transactionId: 1394384
timestamp: 1505823601032
transactionType: DEPOSIT
price: null
priceCurrency: null
amount: 1000
amountCurrency: CZK
fee: 0
feeCurrency: CZK
description: 'BANK_WIRE: 1000.00, CZK'
status: PENDING
orderId: null
- transactionId: 1394385
timestamp: 1505823601902
transactionType: BUY
price: 24243.86
priceCurrency: CZK
amount: 0.02055184
amountCurrency: BTC
fee: 1.74
feeCurrency: CZK
description: null
status: OK
orderId: null
'400':
$ref: '#/components/responses/ErrorResponse'
security:
- hmacAuth: []
/tradeHistory:
post:
tags:
- History
summary: Get trade history
description: '**Authenticated operation.**
Returns user''s trade history.'
operationId: getTradeHistory
parameters:
- $ref: '#/components/parameters/XCoinmateClientID'
- $ref: '#/components/parameters/XCoinmateSignature'
- $ref: '#/components/parameters/XCoinmatePublicKey'
- $ref: '#/components/parameters/XCoinmateNonce'
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/TradeHistoryRequest'
required: true
responses:
'200':
description: Trade history
content:
application/json:
schema:
$ref: '#/components/schemas/ResultContainerListOrderTrade'
examples:
success:
summary: Successful response
value:
error: false
errorMessage: null
data:
- transactionId: 10103
createdTimestamp: 1555053595141
currencyPair: BTC_EUR
type: SELL
orderType: INSTANT
orderId: 1082
amount: 0.018
price: 1
fee: 4.5e-05
feeType: TAKER
- transactionId: 10102
createdTimestamp: 1555053595077
currencyPair: BTC_EUR
type: BUY
orderType: LIMIT
orderId: 1066
amount: 0.983
price: 1
fee: 0.0011796
feeType: TAKER
'400':
$ref: '#/components/responses/ErrorResponse'
security:
- hmacAuth: []
components:
schemas:
TransactionHistoryRequest:
type: object
properties:
archived:
type: boolean
default: false
description: Include archived transactions
clientId:
type: integer
format: int64
description: Client ID (account number)
limit:
type: integer
format: int32
description: Maximum number of items to return; the server caps the value by a configurable limit
nonce:
type: integer
format: int64
description: Unique incrementing nonce
offset:
type: integer
format: int32
default: 0
description: Result offset
orderId:
type: integer
format: int64
description: Filter by order ID
publicKey:
type: string
description: API public key
signature:
type: string
description: HMAC-SHA256 signature
sort:
type: string
default: DESC
description: Sort direction
enum:
- ASC
- DESC
timestampFrom:
type: integer
format: int64
description: Unix ms, inclusive
timestampTo:
type: integer
format: int64
description: Unix ms, inclusive
required:
- clientId
- nonce
- signature
ResultContainerListTransactionHistoryItem:
type: object
properties:
data:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/TransactionHistoryItem'
error:
type: boolean
errorMessage:
type:
- string
- 'null'
required:
- data
- error
- errorMessage
TransferHistoryItem:
type: object
properties:
amount:
type: number
description: Transfer amount
amountCurrency:
type: string
description: Currency of the transfer
destination:
type:
- string
- 'null'
description: Destination address
destinationTag:
type:
- string
- 'null'
description: Destination tag
fee:
type: number
description: Transfer fee
timestamp:
type: integer
format: int64
description: Transfer creation time as Unix timestamp in milliseconds
transactionId:
type: integer
format: int64
description: Transfer transaction ID
transferStatus:
type: string
description: Transfer status
enum:
- NEW
- BEFORE_SEND
- SENT
- PENDING
- NOTIFIED
- COMPLETED
- CANCELLED
- ERROR
- VERIFIED
- WAITING
transferType:
type: string
description: Transfer direction
enum:
- DEPOSIT
- WITHDRAWAL
txid:
type:
- string
- 'null'
description: On-chain transaction id
walletType:
type: string
description: Wallet or network type
required:
- amount
- amountCurrency
- fee
- transferStatus
- transferType
- walletType
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
TransferHistoryRequest:
type: object
properties:
clientId:
type: integer
format: int64
description: Client ID (account number)
currency:
type: string
description: Filter by currency
lastId:
type: integer
format: int64
description: Return items after this id
limit:
type: integer
format: int64
description: Maximum number of items to return; the server caps the value by a configurable limit
nonce:
type: integer
format: int64
description: Unique incrementing nonce
publicKey:
type: string
description: API public key
signature:
type: string
description: HMAC-SHA256 signature
sort:
type: string
default: DESC
description: Sort direction
enum:
- ASC
- DESC
timestampFrom:
type: integer
format: int64
description: Lower bound timestamp (ms)
timestampTo:
type: integer
format: int64
description: Upper bound timestamp (ms)
required:
- clientId
- nonce
- signature
ResultContainerListTransferHistoryItem:
type: object
properties:
data:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/TransferHistoryItem'
error:
type: boolean
errorMessage:
type:
- string
- 'null'
required:
- data
- error
- errorMessage
TransferDetailRequest:
type: object
properties:
clientId:
type: integer
format: int64
description: Client ID (account number)
nonce:
type: integer
format: int64
description: Unique incrementing nonce
publicKey:
type: string
description: API public key
signature:
type: string
description: HMAC-SHA256 signature
transactionId:
type: integer
format: int64
description: Transaction ID of the transfer
required:
- clientId
- nonce
- signature
- transactionId
ResultContainerTransferItem:
type: object
properties:
data:
$ref: '#/components/schemas/TransferItem'
error:
type: boolean
errorMessage:
type:
- string
- 'null'
required:
- data
- error
- errorMessage
TradeHistoryRequest:
type: object
properties:
clientId:
type: integer
format: int64
description: Client ID (account number)
currencyPair:
type: string
description: Currency pair identifier
lastId:
type: integer
format: int64
description: Only trades with ID lower/greater depending on sort
limit:
type: integer
format: int64
description: Maximum number of items to return; the server caps the value by a configurable limit
nonce:
type: integer
format: int64
description: Unique incrementing nonce
orderId:
type: integer
format: int64
description: Filter by order id
publicKey:
type: string
description: API public key
signature:
type: string
description: HMAC-SHA256 signature
sort:
type: string
default: DESC
description: Sort direction
enum:
- ASC
- DESC
timestampFrom:
type: integer
format: int64
description: Lower bound timestamp (ms)
timestampTo:
type: integer
format: int64
description: Upper bound timestamp (ms)
required:
- clientId
- nonce
- signature
TransactionHistoryItem:
type: object
properties:
amount:
type: number
description: Transaction amount
amountCurrency:
type: string
description: Currency of the amount
description:
type:
- string
- 'null'
description: Transaction description
fee:
type: number
description: Fee charged
feeCurrency:
type: string
description: Currency of the fee
orderId:
type:
- integer
- 'null'
format: int64
description: Associated order ID (null for non-trade transactions)
price:
type:
- number
- 'null'
description: Trade price (null for non-trade transactions)
priceCurrency:
type:
- string
- 'null'
description: Currency of the price
enum:
- PLN
- GBP
- HUF
- USD
- BCH
- LUNA
- DAI
- DASH
- CZK
- EUR
- ADA
- BTC
- ETH
- LTC
- SOL
- TRX
- USDT
- XRP
- DOGE
- BNB
- AVAX
- LINK
- DOT
- STX
- NEAR
- FIL
- WIF
- ETC
- FET
- ARB
- TAO
- AR
- S
- INJ
- ATOM
- UNI
- ICP
- SUI
- HBAR
- APT
- MKR
- RUNE
- AGIX
- AAVE
- OP
- IO
- JTO
- PEPE
- SHIB
- POL
- WLD
- USDC
- null
status:
type: string
description: Transaction status
enum:
- OK
- NEW
- WAITING
- PENDING
- BEFORE_SEND
- SENT
- NOTIFIED
- COMPLETED
- CANCELLED
- ERROR
- VERIFIED
- CREATE
- USED
timestamp:
type: integer
format: int64
description: Transaction timestamp (Unix epoch)
transactionId:
type: integer
format: int64
description: Transaction ID
transactionType:
type: string
description: Type of transaction
enum:
- BUY
- SELL
- INSTANT_BUY
- INSTANT_SELL
- QUICK_BUY
- QUICK_SELL
- DEPOSIT
- WITHDRAWAL
- DEBIT
- CREDIT
- BALANCE_MOVE_DEBIT
- BALANCE_MOVE_CREDIT
- CONVERSION
- AFFILIATE
- REFERRAL
- CONSULTANT_REWARD
- CONSULTANT_FEE
- EARN_REWARD
- CREATE_VOUCHER
- USED_VOUCHER
ResultContainerListOrderTrade:
type: object
properties:
data:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/OrderTrade'
error:
type: boolean
errorMessage:
type:
- string
- 'null'
required:
- data
- error
- errorMessage
TransferItem:
type: object
properties:
amount:
type: number
description: Transfer amount
amountCurrency:
type: string
description: Currency of the transfer
destination:
type:
- string
- 'null'
description: Destination address
destinationTag:
type:
- string
- 'null'
description: Destination tag (for XRP, etc.)
fee:
type: number
description: Transfer fee
id:
type: integer
format: int64
description: Transfer ID
timestamp:
type: integer
format: int64
description: Transfer timestamp (Unix epoch)
transferStatus:
type: string
description: Transfer status
enum:
- NEW
- BEFORE_SEND
- SENT
- PENDING
- NOTIFIED
- COMPLETED
- CANCELLED
- ERROR
- VERIFIED
- WAITING
transferType:
type: string
description: Transfer direction
enum:
- DEPOSIT
- WITHDRAWAL
txid:
type:
- string
- 'null'
description: Blockchain transaction ID
walletType:
type: string
description: Wallet or network type
OrderTrade:
type: object
properties:
amount:
type: number
description: Trade amount
createdTimestamp:
type: integer
format: int64
description: Trade timestamp (Unix epoch)
currencyPair:
type: string
description: Currency pair
fee:
type: number
description: Fee charged
feeType:
type: string
description: Fee type
enum:
- MAKER
- TAKER
- REFERRAL
orderId:
type: integer
format: int64
description: Parent order ID
orderType:
type: string
description: Order type that generated this trade
enum:
- LIMIT
- INSTANT
- QUICK
price:
type: number
description: Trade price
transactionId:
type: integer
format: int64
description: Trade transaction ID
type:
type: string
description: Trade side
enum:
- BUY
- SELL
required:
- amount
- createdTimestamp
- currencyPair
- fee
- feeType
- orderId
- orderType
- price
- transactionId
- type
parameters:
XCoinmateNonce:
name: X-Coinmate-Nonce
in: header
description: Unique incrementing nonce
required: false
schema:
type: string
example: '15472079411'
XCoinmateSignature:
name: X-Coinmate-Signature
in: header
description: HMAC-SHA256 signature
required: false
schema:
type: string
example: B86351D1D11167B64A00CFC1C8D2D91E389F5752CBA00436E0D64D4D861758AD
XCoinmateClientID:
name: X-Coinmate-Client-ID
in: header
description: Client ID (account number)
required: false
schema:
type: string
example: '1011'
XCoinmatePublicKey:
name: X-Coinmate-Public-Key
in: header
description: API public key (optional)
required: false
schema:
type: string
example: CpmRVUJL0OGByT2otAfCKeeDdU6yfi6OzvnXcAwaHvE
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