Coinmate Account API

Account balances, trading fees, sub-account listing and transfers between own accounts

GitHub OpenAPI

Operations 4

POST /traderFees Get trading fees #
POST /balances Get account balances #
POST /accounts/transfer Transfer between accounts #
GET /accounts List accounts #

Work with this as data

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-account-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 Specification

coinmate-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Coinmate.io - Trading Account 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: Account
  description: Account balances, trading fees, sub-account listing and transfers between own accounts
paths:
  /traderFees:
    post:
      tags:
      - Account
      summary: Get trading fees
      description: '**Authenticated operation.**


        Returns the maker and taker fees of the account''s fee zone. The fees apply to every

        currency pair.'
      operationId: getTraderFees
      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/AuthFormParams'
        required: true
      responses:
        '200':
          description: Trading fees
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResultContainerTraderFees'
              examples:
                success:
                  summary: Successful response
                  value:
                    error: false
                    errorMessage: null
                    data:
                      maker: 0.12
                      taker: 0.25
                      timestamp: 1537352733783
        '400':
          $ref: '#/components/responses/ErrorResponse'
      security:
      - hmacAuth: []
  /balances:
    post:
      tags:
      - Account
      summary: Get account balances
      description: '**Authenticated operation.**


        Returns balances for all currencies.'
      operationId: getBalances
      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/AuthFormParams'
        required: true
      responses:
        '200':
          description: Account balances
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResultContainerMapStringBalanceEntry'
              examples:
                success:
                  summary: Successful response
                  value:
                    error: false
                    errorMessage: null
                    data:
                      EUR:
                        currency: EUR
                        balance: 19057043.75
                        reserved: 6.5
                        available: 19057037.25
                      BTC:
                        currency: BTC
                        balance: 999984.1
                        reserved: 25.95
                        available: 999958.15
        '400':
          $ref: '#/components/responses/ErrorResponse'
      security:
      - hmacAuth: []
  /accounts/transfer:
    post:
      tags:
      - Account
      summary: Transfer between accounts
      description: '**Authenticated operation.** Authentication via headers only.


        Transfers funds from the current account to another account of the same

        user. Both accounts must belong to the authenticated user. Requires the "transfer between

        accounts" permission on the API key.


        - Omit `currencyName` to move the whole balance of every currency (`amount` must also be omitted).

        - Provide `currencyName` without `amount` to move the whole available balance of that currency.

        - Provide both `currencyName` and `amount` to move a specific amount of that currency.'
      operationId: transferBetweenAccounts
      parameters:
      - $ref: '#/components/parameters/XCoinmateClientID'
      - $ref: '#/components/parameters/XCoinmateSignature'
      - $ref: '#/components/parameters/XCoinmatePublicKey'
      - $ref: '#/components/parameters/XCoinmateNonce'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccountTransferRequest'
        required: true
      responses:
        '200':
          description: Transfer accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResultContainerVoid'
              examples:
                success:
                  summary: Successful response
                  value:
                    error: false
                    errorMessage: null
                    data: null
        '400':
          $ref: '#/components/responses/ErrorResponse'
      security:
      - hmacAuth: []
  /accounts:
    get:
      tags:
      - Account
      summary: List accounts
      description: '**Authenticated operation.** Authentication via headers only.


        Returns all accounts of the authenticated user. The `selectedAccount` flag marks

        the account the API key was generated for.

        Requires the "transfer between accounts" permission on the API key.'
      operationId: getAccounts
      parameters:
      - $ref: '#/components/parameters/XCoinmateClientID'
      - $ref: '#/components/parameters/XCoinmateSignature'
      - $ref: '#/components/parameters/XCoinmatePublicKey'
      - $ref: '#/components/parameters/XCoinmateNonce'
      responses:
        '200':
          description: List of accounts
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResultContainerListAccount'
              examples:
                success:
                  summary: Successful response
                  value:
                    error: false
                    errorMessage: null
                    data:
                    - accountId: 1011
                      name: Main
                      mainAccount: true
                      selectedAccount: true
                    - accountId: 1012
                      name: Savings
                      mainAccount: false
                      selectedAccount: false
        '400':
          $ref: '#/components/responses/ErrorResponse'
      security:
      - hmacAuth: []
components:
  schemas:
    TraderFees:
      type: object
      properties:
        maker:
          type: number
          description: Maker fee percentage
        taker:
          type: number
          description: Taker fee percentage
        timestamp:
          type: integer
          format: int64
          description: Fee timestamp (Unix epoch)
    ResultContainerTraderFees:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/TraderFees'
        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
    ResultContainerListAccount:
      type: object
      properties:
        data:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/Account'
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - 'null'
      required:
      - data
      - error
      - errorMessage
    ResultContainerVoid:
      type: object
      properties:
        data:
          type: 'null'
          description: Always null on success
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - 'null'
      required:
      - data
      - error
      - errorMessage
    BalanceEntry:
      type: object
      properties:
        available:
          type: number
          description: Available for trading
        balance:
          type: number
          description: Total balance
        currency:
          type: string
          description: Currency code
        reserved:
          type: number
          description: Reserved (in open orders)
    AccountTransferRequest:
      type: object
      properties:
        amount:
          type: number
          description: Amount to move. Omit to move the whole (available) balance.
          example: 0.5
          minimum: 0
        currencyName:
          type: string
          description: Currency code. Omit to move all currencies.
          example: BTC
          minLength: 3
        toAccountId:
          type: integer
          format: int64
          description: Target account ID (cannot be the same as the source account)
          minimum: 1
      required:
      - toAccountId
    Account:
      type: object
      properties:
        accountId:
          type: integer
          format: int64
          description: Account ID
        mainAccount:
          type: boolean
          description: Whether this is the user's main account
        name:
          type: string
          description: Account name
        selectedAccount:
          type: boolean
          description: Whether this is the account the API key was generated for (the fixed source of transfers)
    AuthFormParams:
      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
      required:
      - clientId
      - nonce
      - signature
    ResultContainerMapStringBalanceEntry:
      type: object
      properties:
        data:
          type:
          - object
          - 'null'
          additionalProperties:
            $ref: '#/components/schemas/BalanceEntry'
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - 'null'
      required:
      - data
      - error
      - errorMessage
  parameters:
    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'
    XCoinmateNonce:
      name: X-Coinmate-Nonce
      in: header
      description: Unique incrementing nonce
      required: false
      schema:
        type: string
      example: '15472079411'
    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