openapi: 3.1.0
info:
  title: Coinmate.io - Trading 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](https://github.com/coinmate-io/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](https://coinmate.io/api/websocket) 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. `BTC_EUR`

    **Payload fields:**

    | Field | Description |
    |---|---|
    | `date` | Trade timestamp (milliseconds) |
    | `price` | Trade price |
    | `amount` | Trade amount (quantity of the last fill) |
    | `type` | `BUY` or `SELL` |
    | `buyOrderId` | Buy order ID |
    | `sellOrderId` | Sell order ID |

    #### Order Book

    | Version | Address |
    |---|---|
    | v1.0 URL | `/order-book/{CURRENCY_PAIR}` |
    | v2.0 channel | `order_book-{CURRENCY_PAIR}` |

    `CURRENCY_PAIR` — any valid pair, e.g. `BTC_EUR`

    **Payload fields:**

    | Field | Description |
    |---|---|
    | `bids` | List of bids, each with `price` and `amount` |
    | `asks` | List of asks, each with `price` and `amount` |

    #### Trade Statistics

    | Version | Address |
    |---|---|
    | v1.0 URL | `/trade-stats/{CURRENCY_PAIR}` |
    | v2.0 channel | `statistics-{CURRENCY_PAIR}` |

    `CURRENCY_PAIR` — any valid pair, e.g. `BTC_EUR`

    **Payload fields:**

    | Field | Description |
    |---|---|
    | `lastRealizedTrade` | Price of last realized trade |
    | `todaysOpen` | Price of today's open trade |
    | `dailyChange` | Daily percentual price change |
    | `volume24Hours` | Daily traded volume |
    | `high24hours` | Today's highest traded price |
    | `low24hours` | Today's lowest traded price |

    ### Private Channels

    **Version 1.0** URL prefix: `wss://coinmate.io/api/websocket/channel` — authentication parameters are required as request parameters.

    **Version 2.0** — include authentication fields (`clientId`, `publicKey`, `nonce`, `signature`) in the subscribe message `data` (see [Subscribe / Unsubscribe](#section/WebSocket-API/Subscribe-Unsubscribe) above).

    `ACCOUNT_ID` is the account ID (same as `clientId` from authentication).

    #### User Open Orders

    | Version | Address |
    |---|---|
    | v1.0 URL | `/my-open-orders/{CURRENCY_PAIR}` or `/my-open-orders` (all pairs) |
    | v2.0 channel | `private-open_orders-{ACCOUNT_ID}-{CURRENCY_PAIR}` or `private-open_orders-{ACCOUNT_ID}` (all pairs) |

    A **snapshot** of all open orders is sent immediately after subscription.

    **Payload fields** (list of orders):

    | Field | Description |
    |---|---|
    | `id` | Order ID |
    | `clientOrderId` | Order ID specified by the API client |
    | `amount` | Order size in first currency (e.g. BTC for BTC_EUR) |
    | `original` | Original order size |
    | `price` | Price |
    | `type` | `BUY` or `SELL` |
    | `currencyPair` | Currency pair |
    | `date` | Order creation time (unix timestamp, milliseconds) |
    | `orderChangePushEvent` | One of: `CREATION`, `UPDATE`, `REMOVAL`, `SNAPSHOT` |

    **`orderChangePushEvent` values:**

    | Value | Meaning |
    |---|---|
    | `CREATION` | Order has been created |
    | `UPDATE` | Order has been updated (e.g. partially filled) |
    | `REMOVAL` | Order has been removed (e.g. cancelled or filled) |
    | `SNAPSHOT` | Initial order state snapshot |

    #### User Balances

    | Version | Address |
    |---|---|
    | v1.0 URL | `/my-balances` |
    | v2.0 channel | `private-user_balances-{ACCOUNT_ID}` |

    **Payload fields** (list of balances):

    | Field | Description |
    |---|---|
    | `balance` | Current financial amount |
    | `reserved` | Amount reserved for open orders |

    #### User Trades

    | Version | Address |
    |---|---|
    | v1.0 URL | `/my-trades/{CURRENCY_PAIR}` or `/my-trades` (all pairs) |
    | v2.0 channel | `private-user-trades-{ACCOUNT_ID}-{CURRENCY_PAIR}` or `private-user-trades-{ACCOUNT_ID}` (all pairs) |

    **Payload fields** (list of trades):

    | Field | Description |
    |---|---|
    | `transactionId` | Transaction ID |
    | `date` | Transaction creation time (unix timestamp, milliseconds) |
    | `amount` | Traded volume |
    | `price` | Trade price |
    | `buyOrderId` | Buy order ID in the transaction |
    | `sellOrderId` | Sell order ID in the transaction |
    | `orderType` | User's order type: `BUY` or `SELL` |
    | `type` | Trade type: `BUY` or `SELL` (indicates which order is the taker) |
    | `fee` | Transaction fee amount |
    | `tradeFeeType` | Fee type from user's perspective: `MAKER` or `TAKER` |
    | `currencyPair` | Currency pair |
    | `clientOrderId` | Order ID specified by the API client |

    #### User Transfers

    | Version | Address |
    |---|---|
    | v1.0 URL | `/my-transfers` |
    | v2.0 channel | `private-user-transfers-{ACCOUNT_ID}` |

    **Payload** (sent when a transfer is created or updated):

    | Field | Description |
    |---|---|
    | `id` | Transaction ID |
    | `date` | Transaction creation time (unix timestamp, milliseconds) |
    | `type` | `DEPOSIT` or `WITHDRAWAL` |
    | `currency` | Currency name |
    | `amount` | Transfer amount |
    | `fee` | Transfer fee |
    | `total` | Amount without fee |
    | `destination` | Destination address or account number |
    | `description` | Transaction hash or bank transfer details |
    | `status` | Current status: `NEW`, `PENDING`, etc. |

    ## XChange Library

    The [XChange library](https://github.com/knowm/XChange) supports Coinmate, including WebSocket streams.
    The latest XChange configuration file is available at [`/api/xchange`](https://coinmate.io/api/xchange).

    ## Changelog

    - **2026-07-29**
      - **`GET /transactions`: `currencyPair` is now required.** It was documented as optional, but omitting it never returned data — the response was always an empty list. A request without it is now rejected with the error envelope.
      - Removed the `currencyPair` parameter from `POST /traderFees`: maker and taker fees come from the account's fee zone and apply to every currency pair, so the value never influenced the result. Requests that still send it are accepted and unaffected.
      - Corrected the documented `transactionType` and `status` values of `/transactionHistory` to what responses actually carry: added `AFFILIATE`, `EARN_REWARD`, `CONSULTANT_REWARD`, `CONSULTANT_FEE`, `CONVERSION`, `BALANCE_MOVE_DEBIT`, `BALANCE_MOVE_CREDIT` (`transactionType`) and `CREATE`, `USED` (`status`); removed `NEW_USER_REWARD`, `OTHER` (`transactionType`) and `CANCELED`, `CREATED` (`status`), which no response ever contained
    - **2026-02-20**
      - Removed stop loss order parameters from documentation (feature disabled since 2025-02-27): removed `stopPrice` and `trailing` inputs from `/buyLimit`, `/sellLimit`, `/replaceByBuyLimit`, `/replaceBySellLimit`; removed stop loss output fields from `/orderHistory`, `/openOrders`, `/order`, `/orderById`
      - Removed `hidden` order parameter from documentation: removed `hidden` input from `/buyLimit`, `/sellLimit`, `/replaceByBuyLimit`, `/replaceBySellLimit`; removed `hidden` output from `/orderHistory`, `/openOrders`
    - **2025-06-16** — Added `POST /bankWireWithdrawal` endpoint
    - **2025-02-27** — Disabled stop loss orders (`stopPrice` returns error); added `POST /currencies`
    - **2025-02-11** — Updated `transferStatus` enum description
  version: "1"
servers:
- url: https://coinmate.io/api
tags:
- name: Market Data
  description: Public endpoints — no authentication required
- name: Account
  description: "Account balances, trading fees, sub-account listing and transfers\
    \ between own accounts"
- name: Currencies
  description: Currency and network information
- name: Orders
  description: "Order placement, cancellation, and queries"
- name: History
  description: "Transaction, trade, and transfer history"
- name: Bitcoin
  description: Bitcoin and Lightning Network operations
- name: Litecoin
  description: Litecoin withdrawal and deposit
- name: Ethereum
  description: Ethereum withdrawal and deposit
- name: Ripple
  description: Ripple (XRP) withdrawal and deposit
- name: Cardano
  description: Cardano (ADA) withdrawal and deposit
- name: Solana
  description: Solana (SOL) withdrawal and deposit
- name: Virtual Currency
  description: "Generic virtual currency operations (ADA, BTC, ETH, LTC, SOL, USDT,\
    \ XRP)"
- name: FIAT
  description: Bank wire withdrawal
- name: System
  description: System-level endpoints
paths:
  /withdrawVirtualCurrency:
    post:
      tags:
      - Virtual Currency
      summary: Withdraw virtual currency
      description: |-
        **Authenticated operation.**

        Generic endpoint for withdrawing any supported virtual currency. Maximum **6 decimal places for XRP and ADA**, 8 for others.
      operationId: withdrawVirtualCurrency
      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/WithdrawVirtualCurrencyRequest"
        required: true
      responses:
        "200":
          $ref: "#/components/responses/TransactionIdResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /virtualCurrencyDepositAddresses:
    post:
      tags:
      - Virtual Currency
      summary: Get virtual currency deposit addresses
      description: |-
        **Authenticated operation.**

        Returns deposit addresses for the specified virtual currency.
      operationId: getVirtualCurrencyDepositAddresses
      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/VirtualCurrencyRequest"
        required: true
      responses:
        "200":
          $ref: "#/components/responses/AddressListResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /unconfirmedVirtualCurrencyDeposits:
    post:
      tags:
      - Virtual Currency
      summary: Get unconfirmed virtual currency deposits
      description: |-
        **Authenticated operation.**

        Returns unconfirmed deposits for the specified virtual currency.
      operationId: getUnconfirmedVirtualCurrencyDeposits
      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/VirtualCurrencyRequest"
        required: true
      responses:
        "200":
          $ref: "#/components/responses/UnconfirmedDepositsResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /unconfirmedSolDeposits:
    post:
      tags:
      - Solana
      summary: Get unconfirmed Solana deposits
      description: |-
        **Authenticated operation.**

        Returns list of unconfirmed Solana deposits.
      operationId: getUnconfirmedSolDeposits
      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":
          $ref: "#/components/responses/UnconfirmedDepositsResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      deprecated: true
      security:
      - hmacAuth: []
  /unconfirmedRippleDeposits:
    post:
      tags:
      - Ripple
      summary: Get unconfirmed Ripple deposits
      description: |-
        **Authenticated operation.**

        Returns list of unconfirmed Ripple deposits.
      operationId: getUnconfirmedRippleDeposits
      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: List of unconfirmed deposits
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResultContainerListUnconfirmedRippleDeposit"
              examples:
                success:
                  summary: Successful response
                  value:
                    error: false
                    errorMessage: null
                    data: []
        "400":
          $ref: "#/components/responses/ErrorResponse"
      deprecated: true
      security:
      - hmacAuth: []
  /unconfirmedLitecoinDeposits:
    post:
      tags:
      - Litecoin
      summary: Get unconfirmed litecoin deposits
      description: |-
        **Authenticated operation.**

        Returns list of unconfirmed litecoin deposits.
      operationId: getUnconfirmedLitecoinDeposits
      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":
          $ref: "#/components/responses/UnconfirmedDepositsResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      deprecated: true
      security:
      - hmacAuth: []
  /unconfirmedEthereumDeposits:
    post:
      tags:
      - Ethereum
      summary: Get unconfirmed Ethereum deposits
      description: |-
        **Authenticated operation.**

        Returns list of unconfirmed Ethereum deposits.
      operationId: getUnconfirmedEthereumDeposits
      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":
          $ref: "#/components/responses/UnconfirmedDepositsResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      deprecated: true
      security:
      - hmacAuth: []
  /unconfirmedBitcoinDeposits:
    post:
      tags:
      - Bitcoin
      summary: Get unconfirmed bitcoin deposits
      description: |-
        **Authenticated operation.**

        Returns list of unconfirmed bitcoin deposits.
      operationId: getUnconfirmedBitcoinDeposits
      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":
          $ref: "#/components/responses/UnconfirmedDepositsResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      deprecated: true
      security:
      - hmacAuth: []
  /unconfirmedAdaDeposits:
    post:
      tags:
      - Cardano
      summary: Get unconfirmed Cardano deposits
      description: |-
        **Authenticated operation.**

        Returns list of unconfirmed Cardano deposits.
      operationId: getUnconfirmedAdaDeposits
      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":
          $ref: "#/components/responses/UnconfirmedDepositsResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      deprecated: true
      security:
      - hmacAuth: []
  /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: []
  /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: []
  /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: 0.000045
                      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: []
  /solWithdrawal:
    post:
      tags:
      - Solana
      summary: Withdraw Solana
      description: |-
        **Authenticated operation.**

        Withdraws SOL to the specified address. Maximum **8 decimal places** (differs from Solana's native 9).
      operationId: withdrawSol
      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/SolWithdrawalRequest"
        required: true
      responses:
        "200":
          $ref: "#/components/responses/TransactionIdResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      deprecated: true
      security:
      - hmacAuth: []
  /solDepositAddresses:
    post:
      tags:
      - Solana
      summary: Get Solana deposit addresses
      description: |-
        **Authenticated operation.**

        Returns list of Solana deposit addresses.
      operationId: getSolDepositAddresses
      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":
          $ref: "#/components/responses/AddressListResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      deprecated: true
      security:
      - hmacAuth: []
  /sellLimit:
    post:
      tags:
      - Orders
      summary: Place sell limit order
      description: |-
        **Authenticated operation.**

        Creates a new sell limit order.
      operationId: sellLimit
      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/LimitOrderRequest"
        required: true
      responses:
        "200":
          $ref: "#/components/responses/OrderIdResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /sellInstant:
    post:
      tags:
      - Orders
      summary: Place sell instant order
      description: |-
        **Authenticated operation.**

        Creates a sell instant (market) order. Specify the amount to sell in the first currency.
      operationId: sellInstant
      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/SellInstantOrderRequest"
        required: true
      responses:
        "200":
          $ref: "#/components/responses/OrderIdResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /rippleWithdrawal:
    post:
      tags:
      - Ripple
      summary: Withdraw Ripple
      description: |-
        **Authenticated operation.**

        Withdraws XRP to the specified address. Maximum **6 decimal places** for amount.
      operationId: withdrawRipple
      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/RippleWithdrawalRequest"
        required: true
      responses:
        "200":
          $ref: "#/components/responses/TransactionIdResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      deprecated: true
      security:
      - hmacAuth: []
  /rippleDepositAddresses:
    post:
      tags:
      - Ripple
      summary: Get Ripple deposit addresses
      description: |-
        **Authenticated operation.**

        Returns list of Ripple deposit addresses with destination tags.
      operationId: getRippleDepositAddresses
      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: List of addresses
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResultContainerListRippleDepositAddress"
              examples:
                success:
                  summary: Successful response
                  value:
                    error: false
                    errorMessage: null
                    data: []
        "400":
          $ref: "#/components/responses/ErrorResponse"
      deprecated: true
      security:
      - hmacAuth: []
  /replaceBySellLimit:
    post:
      tags:
      - Orders
      summary: Replace order with sell limit
      description: |-
        **Authenticated operation.**

        Atomic cancel-and-create operation. Cancels the existing order first; the new order is created only if cancellation succeeds. If creation fails, the cancellation is reverted.
      operationId: replaceBySellLimit
      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/ReplaceLimitOrderRequest"
        required: true
      responses:
        "200":
          $ref: "#/components/responses/ReplaceOrderResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /replaceBySellInstant:
    post:
      tags:
      - Orders
      summary: Replace order with sell instant
      description: |-
        **Authenticated operation.**

        Atomic cancel-and-create operation. Cancels the existing order first; the new order is created only if cancellation succeeds. If creation fails, the cancellation is reverted.
      operationId: replaceBySellInstant
      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/ReplaceSellInstantOrderRequest"
        required: true
      responses:
        "200":
          $ref: "#/components/responses/ReplaceOrderResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /replaceByBuyLimit:
    post:
      tags:
      - Orders
      summary: Replace order with buy limit
      description: |-
        **Authenticated operation.**

        Atomic cancel-and-create operation. Cancels the existing order first; the new order is created only if cancellation succeeds. If creation fails, the cancellation is reverted.
      operationId: replaceByBuyLimit
      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/ReplaceLimitOrderRequest"
        required: true
      responses:
        "200":
          $ref: "#/components/responses/ReplaceOrderResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /replaceByBuyInstant:
    post:
      tags:
      - Orders
      summary: Replace order with buy instant
      description: |-
        **Authenticated operation.**

        Atomic cancel-and-create operation. Cancels the existing order first; the new order is created only if cancellation succeeds. If creation fails, the cancellation is reverted.
      operationId: replaceByBuyInstant
      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/ReplaceBuyInstantOrderRequest"
        required: true
      responses:
        "200":
          $ref: "#/components/responses/ReplaceOrderResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /order:
    post:
      tags:
      - Orders
      summary: Get order by clientOrderId
      description: |-
        **Authenticated operation.**

        Returns orders matching the given client-specified order ID.
      operationId: getOrderByClientOrderId
      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/OrderByClientOrderIdRequest"
        required: true
      responses:
        "200":
          description: Orders matching client order ID
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResultContainerListOrderDetail"
              examples:
                success:
                  summary: Successful response
                  value:
                    error: false
                    errorMessage: null
                    data:
                    - id: 2227
                      timestamp: 1645540411407
                      type: BUY
                      price: 1
                      remainingAmount: 0
                      originalAmount: 1.001
                      cumulativeAmount: 1
                      status: FILLED
                      orderTradeType: LIMIT
                      avgPrice: 1
                      trades:
                      - transactionId: 11620
                        createdTimestamp: 1651824240638
                        currencyPair: BTC_CZK
                        type: SELL
                        orderType: QUICK
                        orderId: 2642
                        amount: 1
                        price: 205825.242
                        fee: 0
                        feeType: TAKER
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /orderHistory:
    post:
      tags:
      - Orders
      summary: Get order history
      description: |-
        **Authenticated operation.**

        Returns order history for the specified currency pair.
      operationId: getOrderHistory
      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/OrderHistoryRequest"
        required: true
      responses:
        "200":
          description: Order history
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResultContainerListOrderHistoryItem"
              examples:
                success:
                  summary: Successful response
                  value:
                    error: false
                    errorMessage: null
                    data:
                    - id: 3729783
                      timestamp: 1495529716367
                      type: SELL
                      price: 7700
                      remainingAmount: 0
                      originalAmount: 0.23
                      status: FILLED
                      orderTradeType: LIMIT
                      avgPrice: 7700
                    - id: 3729782
                      timestamp: 1495529701629
                      type: BUY
                      price: 5000
                      remainingAmount: 0.123
                      originalAmount: 0.123
                      status: OPEN
                      orderTradeType: LIMIT
                      avgPrice: null
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /orderById:
    post:
      tags:
      - Orders
      summary: Get order by orderId
      description: |-
        **Authenticated operation.**

        Returns the order with the given order ID.
      operationId: getOrderById
      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/OrderByIdRequest"
        required: true
      responses:
        "200":
          description: Order details
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResultContainerOrderDetail"
              examples:
                success:
                  summary: Successful response
                  value:
                    error: false
                    errorMessage: null
                    data:
                      id: 2642
                      timestamp: 1651824240630
                      type: SELL
                      price: null
                      remainingAmount: 0
                      originalAmount: 1
                      cumulativeAmount: 1
                      status: FILLED
                      orderTradeType: QUICK
                      avgPrice: 200000
                      trades:
                      - transactionId: 11620
                        createdTimestamp: 1651824240638
                        currencyPair: BTC_CZK
                        type: SELL
                        orderType: QUICK
                        orderId: 2642
                        amount: 1
                        price: 205825.242
                        fee: 0
                        feeType: TAKER
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /openOrders:
    post:
      tags:
      - Orders
      summary: Get open orders
      description: |-
        **Authenticated operation.**

        Returns a list of open orders.
      operationId: getOpenOrders
      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/OpenOrdersRequest"
        required: true
      responses:
        "200":
          description: List of open orders
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResultContainerListOpenOrder"
              examples:
                success:
                  summary: Successful response
                  value:
                    error: false
                    errorMessage: null
                    data:
                    - id: 32780
                      timestamp: 1404383652640
                      type: SELL
                      currencyPair: BTC_EUR
                      price: 1000000
                      amount: 1
                      orderTradeType: LIMIT
                      clientOrderId: null
                    - id: 32784
                      timestamp: 1404383662360
                      type: BUY
                      currencyPair: BTC_CZK
                      price: 5000
                      amount: 1
                      orderTradeType: LIMIT
                      clientOrderId: null
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /litecoinWithdrawal:
    post:
      tags:
      - Litecoin
      summary: Withdraw litecoins
      description: |-
        **Authenticated operation.**

        Withdraws litecoins to the specified address.
      operationId: withdrawLitecoin
      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/LitecoinWithdrawalRequest"
        required: true
      responses:
        "200":
          $ref: "#/components/responses/TransactionIdResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      deprecated: true
      security:
      - hmacAuth: []
  /litecoinDepositAddresses:
    post:
      tags:
      - Litecoin
      summary: Get litecoin deposit addresses
      description: |-
        **Authenticated operation.**

        Returns list of litecoin deposit addresses.
      operationId: getLitecoinDepositAddresses
      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":
          $ref: "#/components/responses/AddressListResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      deprecated: true
      security:
      - hmacAuth: []
  /lightningWithdraw:
    post:
      tags:
      - Bitcoin
      summary: Withdraw via Lightning
      description: |-
        **Authenticated operation.**

        Withdraws BTC via Lightning Network. Amount limits are the same as on web.
      operationId: withdrawLightning
      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/LightningWithdrawRequest"
        required: true
      responses:
        "200":
          $ref: "#/components/responses/TransactionIdResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /lightningDeposit:
    post:
      tags:
      - Bitcoin
      summary: Create Lightning deposit invoice
      description: |-
        **Authenticated operation.**

        Creates a Lightning Network deposit invoice. Amount limits are the same as on web.
      operationId: createLightningDeposit
      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/LightningDepositRequest"
        required: true
      responses:
        "200":
          description: Lightning deposit invoice
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResultContainerLightningDepositResult"
              examples:
                success:
                  summary: Successful response
                  value:
                    error: false
                    errorMessage: null
                    data:
                      currency: btc
                      address: lnbc1pj7d5u...
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /ethereumWithdrawal:
    post:
      tags:
      - Ethereum
      summary: Withdraw Ethereum
      description: |-
        **Authenticated operation.**

        Withdraws Ether to the specified address.
      operationId: withdrawEthereum
      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/EthereumWithdrawalRequest"
        required: true
      responses:
        "200":
          $ref: "#/components/responses/TransactionIdResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      deprecated: true
      security:
      - hmacAuth: []
  /ethereumDepositAddresses:
    post:
      tags:
      - Ethereum
      summary: Get Ethereum deposit addresses
      description: |-
        **Authenticated operation.**

        Returns list of Ethereum deposit addresses.
      operationId: getEthereumDepositAddresses
      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":
          $ref: "#/components/responses/AddressListResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      deprecated: true
      security:
      - hmacAuth: []
  /currencies:
    post:
      tags:
      - Currencies
      summary: Get currencies
      description: |-
        **Authenticated operation.**

        Returns list of available currencies with network and fee information.
      operationId: getCurrencies
      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: List of currencies
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResultContainerListCurrencyInfo"
              examples:
                success:
                  summary: Successful response
                  value:
                    error: false
                    errorMessage: null
                    data:
                    - currency: BTC
                      currencyName: Bitcoin
                      depositEnabled: true
                      withdrawEnabled: true
                      precision: 8
                      networks:
                      - network: BTC
                        deposit:
                          enabled: true
                          fixFee: 0
                          percentageFee: 0
                          minAmount: 0.0001
                          maxAmount: null
                          minConfirmations: 3
                        withdraw:
                          enabled: true
                          requiresTag: false
                          fee:
                          - fixFee: 0.00005
                            percentageFee: 0
                            variant: NORMAL
                          minAmount: 0.0005
                          maxAmount: null
                          max24hLimit: 10
                      - network: BTC_LIGHTNING
                        deposit:
                          enabled: true
                          fixFee: 0
                          percentageFee: 0
                          minAmount: 0.00001
                          maxAmount: 0.04
                          minConfirmations: 0
                        withdraw:
                          enabled: true
                          requiresTag: false
                          fee:
                          - fixFee: 0
                            percentageFee: 0
                            variant: NORMAL
                          minAmount: 0.00001
                          maxAmount: 0.04
                          max24hLimit: 10
                    - currency: ETH
                      currencyName: Ethereum
                      depositEnabled: true
                      withdrawEnabled: true
                      precision: 8
                      networks:
                      - network: ETH
                        deposit:
                          enabled: true
                          fixFee: 0
                          percentageFee: 0
                          minAmount: 0.001
                          maxAmount: null
                          minConfirmations: 12
                        withdraw:
                          enabled: true
                          requiresTag: false
                          fee:
                          - fixFee: 0.001
                            percentageFee: 0
                            variant: NORMAL
                          minAmount: 0.005
                          maxAmount: null
                          max24hLimit: 100
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /cancelOrder:
    post:
      tags:
      - Orders
      summary: Cancel order
      description: |-
        **Authenticated operation.**

        Cancels an open order.
      operationId: cancelOrder
      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/CancelOrderRequest"
        required: true
      responses:
        "200":
          description: Cancel order result
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResultContainerBoolean"
              examples:
                success:
                  summary: Successful response
                  value:
                    error: false
                    errorMessage: null
                    data: true
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /cancelOrderWithInfo:
    post:
      tags:
      - Orders
      summary: Cancel order with info
      description: |-
        **Authenticated operation.**

        Cancels an open order and returns cancellation details.
      operationId: cancelOrderWithInfo
      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/CancelOrderRequest"
        required: true
      responses:
        "200":
          description: Cancel order with info result
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResultContainerCancelOrderWithInfoResult"
              examples:
                success:
                  summary: Successful response
                  value:
                    error: false
                    errorMessage: null
                    data:
                      success: true
                      remainingAmount: 0.1
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /cancelAllOpenOrders:
    post:
      tags:
      - Orders
      summary: Cancel all open orders
      description: |-
        **Authenticated operation.**

        Cancels all open orders for the specified currency pair, or all pairs if not specified.
      operationId: cancelAllOpenOrders
      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/CancelAllOpenOrdersRequest"
        required: true
      responses:
        "200":
          description: Map of cancelled order IDs to remaining amounts
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResultContainerMapLongBigDecimal"
              examples:
                success:
                  summary: Successful response
                  value:
                    error: false
                    errorMessage: null
                    data:
                      "111": 11
                      "222": 22
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /buyLimit:
    post:
      tags:
      - Orders
      summary: Place buy limit order
      description: |-
        **Authenticated operation.**

        Creates a new buy limit order.
      operationId: buyLimit
      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/LimitOrderRequest"
        required: true
      responses:
        "200":
          $ref: "#/components/responses/OrderIdResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /buyInstant:
    post:
      tags:
      - Orders
      summary: Place buy instant order
      description: |-
        **Authenticated operation.**

        Creates a buy instant (market) order. Specify the total amount to spend in the second currency.
      operationId: buyInstant
      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/BuyInstantOrderRequest"
        required: true
      responses:
        "200":
          $ref: "#/components/responses/OrderIdResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /bitcoinWithdrawal:
    post:
      tags:
      - Bitcoin
      summary: Withdraw bitcoins
      description: |-
        **Authenticated operation.**

        Withdraws bitcoins to the specified address.
      operationId: withdrawBitcoin
      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/BitcoinWithdrawalRequest"
        required: true
      responses:
        "200":
          $ref: "#/components/responses/TransactionIdResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      deprecated: true
      security:
      - hmacAuth: []
  /bitcoinWithdrawalFees:
    post:
      tags:
      - Bitcoin
      summary: Get bitcoin withdrawal fees
      description: |-
        **Authenticated operation.**

        Returns current bitcoin withdrawal fee rates.
      operationId: getBitcoinWithdrawalFees
      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: Bitcoin withdrawal fees
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResultContainerBitcoinWithdrawalFees"
              examples:
                success:
                  summary: Successful response
                  value:
                    error: false
                    errorMessage: null
                    data:
                      low: 0.0003
                      high: 0.0005
                      timestamp: 1527079474463
        "400":
          $ref: "#/components/responses/ErrorResponse"
      security:
      - hmacAuth: []
  /bitcoinDepositAddresses:
    post:
      tags:
      - Bitcoin
      summary: Get bitcoin deposit addresses
      description: |-
        **Authenticated operation.**

        Returns list of bitcoin deposit addresses.
      operationId: getBitcoinDepositAddresses
      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":
          $ref: "#/components/responses/AddressListResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      deprecated: true
      security:
      - hmacAuth: []
  /bankWireWithdrawal:
    post:
      tags:
      - FIAT
      summary: Withdraw via bank wire
      description: |-
        **Authenticated operation.** Authentication via headers only (no form params).

        Withdraws funds to the user's bank account. Supports domestic (CZK) and SEPA (EUR) transfers.

        **Important:**
        - Bank accounts must be saved as a withdrawal template beforehand
        - Permission for bank withdrawals must be enabled by the user for the specific API key
        - SEPA transfers are not processed immediately

        **CZK:** accountNumber in domestic format (e.g. "123456789"), bankCode as 4 digits (e.g. "0800")
        **EUR:** accountNumber in IBAN format (e.g. "DE89370400440532013000"), bankCode in BIC/SWIFT (e.g. "DEUTDEFF")
      operationId: bankWireWithdrawal
      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/BankWireWithdrawalRequest"
        required: true
      responses:
        "200":
          $ref: "#/components/responses/TransactionIdResponse"
        "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: []
  /adaWithdrawal:
    post:
      tags:
      - Cardano
      summary: Withdraw Cardano
      description: |-
        **Authenticated operation.**

        Withdraws ADA to the specified address. Maximum **6 decimal places** for amount.
      operationId: withdrawAda
      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/AdaWithdrawalRequest"
        required: true
      responses:
        "200":
          $ref: "#/components/responses/TransactionIdResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      deprecated: true
      security:
      - hmacAuth: []
  /adaDepositAddresses:
    post:
      tags:
      - Cardano
      summary: Get Cardano deposit addresses
      description: |-
        **Authenticated operation.**

        Returns list of Cardano deposit addresses.
      operationId: getAdaDepositAddresses
      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":
          $ref: "#/components/responses/AddressListResponse"
        "400":
          $ref: "#/components/responses/ErrorResponse"
      deprecated: true
      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: []
  /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: []
  /system/time:
    get:
      tags:
      - System
      summary: Get server time
      description: |-
        **Public operation** — no authentication required.

        Returns current server time as Unix timestamp in milliseconds.
      operationId: getServerTime
      responses:
        "200":
          description: Server time
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ServerTime"
              examples:
                success:
                  summary: Successful response
                  value:
                    serverTime: 1499827319559
        "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: []
  /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:
    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)
    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
    AdaWithdrawalRequest:
      type: object
      properties:
        address:
          type: string
        amount:
          type: number
          description: Number of ADA (max 6 decimals)
        amountType:
          type: string
          default: GROSS
          enum:
          - NET
          - GROSS
        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:
      - address
      - amount
      - clientId
      - nonce
      - signature
    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
    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)
    BankWireWithdrawalRequest:
      type: object
      properties:
        accountNumber:
          type: string
          minLength: 1
        amount:
          type: number
          minimum: 0
        bankCode:
          type: string
          minLength: 1
        currencyName:
          type: string
          enum:
          - EUR
          - CZK
      required:
      - accountNumber
      - amount
      - bankCode
      - currencyName
    BitcoinWithdrawalFees:
      type: object
      properties:
        high:
          type: number
          description: High-priority fee estimate
        low:
          type: number
          description: Low-priority fee estimate
        timestamp:
          type: integer
          format: int64
          description: Fee estimate timestamp (Unix epoch)
    BitcoinWithdrawalRequest:
      type: object
      properties:
        address:
          type: string
          description: Bitcoin address
        amount:
          type: number
          description: Number of bitcoins to withdraw
        amountType:
          type: string
          default: GROSS
          description: Whether amount includes fee (GROSS) or not (NET)
          enum:
          - NET
          - GROSS
        clientId:
          type: integer
          format: int64
          description: Client ID (account number)
        feePriority:
          type: string
          default: HIGH
          description: Withdrawal fee priority
          enum:
          - HIGH
          - LOW
        nonce:
          type: integer
          format: int64
          description: Unique incrementing nonce
        publicKey:
          type: string
          description: API public key
        signature:
          type: string
          description: HMAC-SHA256 signature
      required:
      - address
      - amount
      - clientId
      - nonce
      - signature
    BuyInstantOrderRequest:
      type: object
      properties:
        clientId:
          type: integer
          format: int64
          description: Client ID (account number)
        clientOrderId:
          type: integer
          format: int64
          description: "Client-specified order ID, max 20 digits"
        currencyPair:
          type: string
          description: Currency pair
        nonce:
          type: integer
          format: int64
          description: Unique incrementing nonce
        publicKey:
          type: string
          description: API public key
        signature:
          type: string
          description: HMAC-SHA256 signature
        total:
          type: number
          description: "Amount to pay in second currency, e.g. EUR for BTC_EUR"
      required:
      - clientId
      - currencyPair
      - nonce
      - signature
      - total
    CancelAllOpenOrdersRequest:
      type: object
      properties:
        clientId:
          type: integer
          format: int64
          description: Client ID (account number)
        currencyPair:
          type: string
          description: "Currency pair (optional, cancels all pairs if omitted)"
        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
    CancelOrderRequest:
      type: object
      properties:
        clientId:
          type: integer
          format: int64
          description: Client ID (account number)
        nonce:
          type: integer
          format: int64
          description: Unique incrementing nonce
        orderId:
          type: integer
          format: int64
          description: ID of order to cancel
        publicKey:
          type: string
          description: API public key
        signature:
          type: string
          description: HMAC-SHA256 signature
      required:
      - clientId
      - nonce
      - orderId
      - signature
    CancelOrderWithInfoResult:
      type: object
      properties:
        remainingAmount:
          type: number
          description: Remaining amount at cancellation time
        success:
          type: boolean
          description: Whether the cancellation was successful
    CurrencyInfo:
      type: object
      properties:
        currency:
          type: string
          description: Currency code
        currencyName:
          type: string
          description: Currency display name
        depositEnabled:
          type: boolean
          description: Whether deposits are enabled
        networks:
          type: array
          items:
            $ref: "#/components/schemas/NetworkInfo"
        precision:
          type: integer
          format: int32
          description: Currency decimal precision
        withdrawEnabled:
          type: boolean
          description: Whether withdrawals are enabled
    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
    DepositResult:
      type: object
      properties:
        enabled:
          type: boolean
        fixFee:
          type: number
        maxAmount:
          type:
          - number
          - "null"
        minAmount:
          type:
          - number
          - "null"
        minConfirmations:
          type: integer
          format: int32
        percentageFee:
          type: number
    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
    EthereumWithdrawalRequest:
      type: object
      properties:
        address:
          type: string
        amount:
          type: number
        amountType:
          type: string
          default: GROSS
          enum:
          - NET
          - GROSS
        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:
      - address
      - amount
      - clientId
      - nonce
      - signature
    FeeResult:
      type: object
      properties:
        fixFee:
          type: number
        percentageFee:
          type: number
        variant:
          type: string
    LightningDepositRequest:
      type: object
      properties:
        amount:
          type: number
          description: Amount for deposit in BTC
        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:
      - amount
      - clientId
      - nonce
      - signature
    LightningDepositResult:
      type: object
      properties:
        address:
          type: string
          description: Lightning invoice or address
        currency:
          type: string
          description: Currency code
    LightningWithdrawRequest:
      type: object
      properties:
        address:
          type: string
          description: Lightning invoice/address
        amount:
          type: number
          description: "Amount in BTC, required if not specified in the invoice"
        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:
      - address
      - clientId
      - nonce
      - signature
    LimitOrderRequest:
      type: object
      properties:
        amount:
          type: number
          description: "Order size in first currency, e.g. BTC for BTC_EUR"
        clientId:
          type: integer
          format: int64
          description: Client ID (account number)
        clientOrderId:
          type: integer
          format: int64
          description: "Client-specified order ID, max 20 digits"
        currencyPair:
          type: string
          description: Currency pair
        hidden:
          type: integer
          format: int32
          deprecated: true
          description: 1 to hide the order from the public order book
        immediateOrCancel:
          type: integer
          format: int32
          default: 0
          description: "If set to 1, unfilled portion is cancelled immediately"
          enum:
          - 0
          - 1
        nonce:
          type: integer
          format: int64
          description: Unique incrementing nonce
        postOnly:
          type: integer
          format: int32
          default: 0
          description: "If set to 1, order is placed as maker only or cancelled entirely"
          enum:
          - 0
          - 1
        price:
          type: number
          description: Order price
        publicKey:
          type: string
          description: API public key
        signature:
          type: string
          description: HMAC-SHA256 signature
        stopPrice:
          type: number
          deprecated: true
          description: Stop price of a stop order
        trailing:
          type: integer
          format: int32
          deprecated: true
          description: 1 to trail the market price
      required:
      - amount
      - clientId
      - currencyPair
      - nonce
      - price
      - signature
    LitecoinWithdrawalRequest:
      type: object
      properties:
        address:
          type: string
        amount:
          type: number
        amountType:
          type: string
          default: GROSS
          enum:
          - NET
          - GROSS
        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:
      - address
      - amount
      - clientId
      - nonce
      - signature
    NetworkInfo:
      type: object
      properties:
        deposit:
          $ref: "#/components/schemas/DepositResult"
        network:
          type: string
          description: Network identifier
        withdraw:
          $ref: "#/components/schemas/WithdrawResult"
    OpenOrder:
      type: object
      properties:
        amount:
          type: number
          description: Remaining order amount
        clientOrderId:
          type:
          - integer
          - "null"
          format: int64
          description: Client-specified order ID
        currencyPair:
          type: string
          description: Currency pair
        hidden:
          type: boolean
          description: Whether the order is hidden from the public order book
        id:
          type: integer
          format: int64
          description: Order ID
        marketPriceAtLastUpdate:
          type: number
          description: Market price at the last trailing update
        marketPriceAtOrderCreation:
          type: number
          description: Market price at order creation
        orderTradeType:
          type: string
          description: Order type
          enum:
          - LIMIT
          - INSTANT
          - QUICK
          - MARKET
          - LIMIT_STOP
          - INSTANT_STOP
          - QUICK_STOP
          - MARKET_STOP
        originalStopPrice:
          type: number
          description: Stop price the order was created with
        price:
          type: number
          description: Order price
        stopPrice:
          type: number
          description: Stop price of a stop order
        timestamp:
          type: integer
          format: int64
          description: Order creation timestamp (Unix epoch)
        trailing:
          type: boolean
          description: Whether the order trails the market price
        trailingUpdatedTimestamp:
          type: integer
          format: int64
          description: Timestamp of the last trailing update in milliseconds (Unix
            epoch)
        type:
          type: string
          description: Order side
          enum:
          - BUY
          - SELL
    OpenOrdersRequest:
      type: object
      properties:
        clientId:
          type: integer
          format: int64
          description: Client ID (account number)
        currencyPair:
          type: string
          description: Currency pair (optional)
        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
    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)"
    OrderBookEntry:
      type: object
      properties:
        amount:
          type: number
          description: Total amount at this price level
        price:
          type: number
          description: Price level
    OrderByClientOrderIdRequest:
      type: object
      properties:
        clientId:
          type: integer
          format: int64
          description: Client ID (account number)
        clientOrderId:
          type: integer
          format: int64
          description: Client-specified order ID
        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
      - clientOrderId
      - nonce
      - signature
    OrderByIdRequest:
      type: object
      properties:
        clientId:
          type: integer
          format: int64
          description: Client ID (account number)
        nonce:
          type: integer
          format: int64
          description: Unique incrementing nonce
        orderId:
          type: integer
          format: int64
          description: Order ID
        publicKey:
          type: string
          description: API public key
        signature:
          type: string
          description: HMAC-SHA256 signature
      required:
      - clientId
      - nonce
      - orderId
      - signature
    OrderDetail:
      type: object
      properties:
        avgPrice:
          type:
          - number
          - "null"
          description: Average fill price
        cumulativeAmount:
          type: number
          description: Total filled amount
        hidden:
          type: boolean
          description: Whether the order is hidden from the public order book
        id:
          type: integer
          format: int64
          description: Order ID
        marketPriceAtLastUpdate:
          type: number
          description: Market price at the last trailing update
        marketPriceAtOrderCreation:
          type: number
          description: Market price at order creation
        orderTradeType:
          type: string
          description: Order type
          enum:
          - LIMIT
          - INSTANT
          - QUICK
          - MARKET
          - LIMIT_STOP
          - INSTANT_STOP
          - QUICK_STOP
          - MARKET_STOP
        originalAmount:
          type: number
          description: Original order amount
        originalOrderId:
          type: integer
          format: int64
          description: Id of the order this order replaced
        originalStopPrice:
          type: number
          description: Stop price the order was created with
        price:
          type:
          - number
          - "null"
          description: Order price (null for market orders)
        remainingAmount:
          type: number
          description: Remaining unfilled amount
        status:
          type: string
          description: Order status
          enum:
          - CANCELLED
          - FILLED
          - PARTIALLY_FILLED
          - OPEN
        stopLossOrderId:
          type: integer
          format: int64
          description: Id of the stop-loss order that created this order
        stopPrice:
          type: number
          description: Stop price of a stop order
        timestamp:
          type: integer
          format: int64
          description: Order creation timestamp (Unix epoch)
        trades:
          type: array
          description: Trades that filled this order
          items:
            $ref: "#/components/schemas/OrderTrade"
        trailing:
          type: boolean
          description: Whether the order trails the market price
        trailingUpdatedTimestamp:
          type: integer
          format: int64
          description: Timestamp of the last trailing update in milliseconds (Unix
            epoch)
        type:
          type: string
          description: Order side
          enum:
          - BUY
          - SELL
    OrderHistoryItem:
      type: object
      properties:
        avgPrice:
          type:
          - number
          - "null"
          description: Average fill price
        cumulativeAmount:
          type: number
          description: Total filled amount
        hidden:
          type: boolean
          description: Whether the order is hidden from the public order book
        id:
          type: integer
          format: int64
          description: Order ID
        marketPriceAtLastUpdate:
          type: number
          description: Market price at the last trailing update
        marketPriceAtOrderCreation:
          type: number
          description: Market price at order creation
        orderTradeType:
          type: string
          description: Order type
          enum:
          - LIMIT
          - INSTANT
          - QUICK
          - MARKET
          - LIMIT_STOP
          - INSTANT_STOP
          - QUICK_STOP
          - MARKET_STOP
        originalAmount:
          type: number
          description: Original order amount
        originalOrderId:
          type: integer
          format: int64
          description: Id of the order this order replaced
        originalStopPrice:
          type: number
          description: Stop price the order was created with
        price:
          type:
          - number
          - "null"
          description: Order price
        remainingAmount:
          type: number
          description: Remaining unfilled amount
        status:
          type: string
          description: Order status
          enum:
          - CANCELLED
          - FILLED
          - PARTIALLY_FILLED
          - OPEN
        stopLossOrderId:
          type: integer
          format: int64
          description: Id of the stop-loss order that created this order
        stopPrice:
          type: number
          description: Stop price of a stop order
        timestamp:
          type: integer
          format: int64
          description: Order creation timestamp (Unix epoch)
        trades:
          type: array
          description: Trades that filled this order
          items:
            $ref: "#/components/schemas/OrderTrade"
        trailing:
          type: boolean
          description: Whether the order trails the market price
        trailingUpdatedTimestamp:
          type: integer
          format: int64
          description: Timestamp of the last trailing update in milliseconds (Unix
            epoch)
        type:
          type: string
          description: Order side
          enum:
          - BUY
          - SELL
    OrderHistoryRequest:
      type: object
      properties:
        clientId:
          type: integer
          format: int64
          description: Client ID (account number)
        currencyPair:
          type: string
          description: Currency pair
        limit:
          type: integer
          format: int32
          description: Maximum number of orders to return
        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
      - currencyPair
      - nonce
      - signature
    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
    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
    ReplaceBuyInstantOrderRequest:
      type: object
      properties:
        clientId:
          type: integer
          format: int64
          description: Client ID (account number)
        clientOrderId:
          type: integer
          format: int64
          description: "Client-specified order ID, max 20 digits"
        currencyPair:
          type: string
          description: Currency pair
        nonce:
          type: integer
          format: int64
          description: Unique incrementing nonce
        orderIdToBeReplaced:
          type: integer
          format: int64
          description: ID of order to replace
        publicKey:
          type: string
          description: API public key
        signature:
          type: string
          description: HMAC-SHA256 signature
        total:
          type: number
          description: Amount to pay in second currency
      required:
      - clientId
      - currencyPair
      - nonce
      - orderIdToBeReplaced
      - signature
      - total
    ReplaceLimitOrderRequest:
      type: object
      properties:
        amount:
          type: number
          description: "Order size in first currency, e.g. BTC for BTC_EUR"
        clientId:
          type: integer
          format: int64
          description: Client ID (account number)
        clientOrderId:
          type: integer
          format: int64
          description: "Client-specified order ID, max 20 digits"
        currencyPair:
          type: string
          description: Currency pair
        hidden:
          type: integer
          format: int32
          deprecated: true
          description: 1 to hide the order from the public order book
        immediateOrCancel:
          type: integer
          format: int32
          default: 0
          description: "If set to 1, unfilled portion is cancelled immediately"
          enum:
          - 0
          - 1
        nonce:
          type: integer
          format: int64
          description: Unique incrementing nonce
        orderIdToBeReplaced:
          type: integer
          format: int64
          description: ID of order to replace
        postOnly:
          type: integer
          format: int32
          default: 0
          description: "If set to 1, order is placed as maker only or cancelled entirely"
          enum:
          - 0
          - 1
        price:
          type: number
          description: Order price
        publicKey:
          type: string
          description: API public key
        signature:
          type: string
          description: HMAC-SHA256 signature
        stopPrice:
          type: number
          deprecated: true
          description: Stop price of a stop order
        trailing:
          type: integer
          format: int32
          deprecated: true
          description: 1 to trail the market price
      required:
      - amount
      - clientId
      - currencyPair
      - nonce
      - orderIdToBeReplaced
      - price
      - signature
    ReplaceOrderResult:
      type: object
      properties:
        createdOrderId:
          type: integer
          format: int64
          description: ID of the newly created order
        replacedOrderCancellationFinished:
          type: boolean
          description: Whether the replaced order cancellation has finished
        replacedOrderCancellationResult:
          type: string
          description: Result of the replaced order cancellation
        replacedOrderRemainingAmount:
          type: number
          description: Remaining amount of the replaced order at cancellation time
    ReplaceSellInstantOrderRequest:
      type: object
      properties:
        amount:
          type: number
          description: Amount to sell in first currency
        clientId:
          type: integer
          format: int64
          description: Client ID (account number)
        clientOrderId:
          type: integer
          format: int64
          description: "Client-specified order ID, max 20 digits"
        currencyPair:
          type: string
          description: Currency pair
        nonce:
          type: integer
          format: int64
          description: Unique incrementing nonce
        orderIdToBeReplaced:
          type: integer
          format: int64
          description: ID of order to replace
        publicKey:
          type: string
          description: API public key
        signature:
          type: string
          description: HMAC-SHA256 signature
      required:
      - amount
      - clientId
      - currencyPair
      - nonce
      - orderIdToBeReplaced
      - signature
    ResultContainerBitcoinWithdrawalFees:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/BitcoinWithdrawalFees"
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerBoolean:
      type: object
      properties:
        data:
          type:
          - boolean
          - "null"
          description: true if cancelled successfully
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerCancelOrderWithInfoResult:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CancelOrderWithInfoResult"
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerLightningDepositResult:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/LightningDepositResult"
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      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
    ResultContainerListCurrencyInfo:
      type: object
      properties:
        data:
          type:
          - array
          - "null"
          items:
            $ref: "#/components/schemas/CurrencyInfo"
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerListCurrencyPairInfo:
      type: object
      properties:
        data:
          type:
          - array
          - "null"
          items:
            $ref: "#/components/schemas/CurrencyPairInfo"
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerListOpenOrder:
      type: object
      properties:
        data:
          type:
          - array
          - "null"
          items:
            $ref: "#/components/schemas/OpenOrder"
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerListOrderDetail:
      type: object
      properties:
        data:
          type:
          - array
          - "null"
          items:
            $ref: "#/components/schemas/OrderDetail"
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerListOrderHistoryItem:
      type: object
      properties:
        data:
          type:
          - array
          - "null"
          items:
            $ref: "#/components/schemas/OrderHistoryItem"
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerListOrderTrade:
      type: object
      properties:
        data:
          type:
          - array
          - "null"
          items:
            $ref: "#/components/schemas/OrderTrade"
        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
    ResultContainerListRippleDepositAddress:
      type: object
      properties:
        data:
          type:
          - array
          - "null"
          items:
            $ref: "#/components/schemas/RippleDepositAddress"
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerListString:
      type: object
      properties:
        data:
          type:
          - array
          - "null"
          items:
            type: string
        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
    ResultContainerListTransactionHistoryItem:
      type: object
      properties:
        data:
          type:
          - array
          - "null"
          items:
            $ref: "#/components/schemas/TransactionHistoryItem"
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerListTransferHistoryItem:
      type: object
      properties:
        data:
          type:
          - array
          - "null"
          items:
            $ref: "#/components/schemas/TransferHistoryItem"
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerListUnconfirmedDeposit:
      type: object
      properties:
        data:
          type:
          - array
          - "null"
          items:
            $ref: "#/components/schemas/UnconfirmedDeposit"
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerListUnconfirmedRippleDeposit:
      type: object
      properties:
        data:
          type:
          - array
          - "null"
          items:
            $ref: "#/components/schemas/UnconfirmedRippleDeposit"
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerLong:
      type: object
      properties:
        data:
          type:
          - integer
          - "null"
          format: int64
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerMapLongBigDecimal:
      type: object
      properties:
        data:
          type:
          - object
          - "null"
          additionalProperties:
            type: number
          description: Map of cancelled order ID to remaining amount
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerMapStringBalanceEntry:
      type: object
      properties:
        data:
          type:
          - object
          - "null"
          additionalProperties:
            $ref: "#/components/schemas/BalanceEntry"
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerMapStringTickerData:
      type: object
      properties:
        data:
          type:
          - object
          - "null"
          additionalProperties:
            $ref: "#/components/schemas/TickerData"
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerOrderBookData:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/OrderBookData"
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerOrderDetail:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/OrderDetail"
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerReplaceOrderResult:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ReplaceOrderResult"
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerTickerData:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/TickerData"
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerTraderFees:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/TraderFees"
        error:
          type: boolean
        errorMessage:
          type:
          - string
          - "null"
      required:
      - data
      - error
      - errorMessage
    ResultContainerTransferItem:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/TransferItem"
        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
    RippleDepositAddress:
      type: object
      properties:
        address:
          type: string
          description: Deposit address
        destinationTag:
          type: string
          description: Destination tag assigned to the account
    RippleWithdrawalRequest:
      type: object
      properties:
        address:
          type: string
        amount:
          type: number
          description: Number of XRP (max 6 decimals)
        amountType:
          type: string
          default: GROSS
          enum:
          - NET
          - GROSS
        clientId:
          type: integer
          format: int64
          description: Client ID (account number)
        destinationTag:
          type: string
          description: XRP destination tag
        nonce:
          type: integer
          format: int64
          description: Unique incrementing nonce
        publicKey:
          type: string
          description: API public key
        signature:
          type: string
          description: HMAC-SHA256 signature
      required:
      - address
      - amount
      - clientId
      - nonce
      - signature
    SellInstantOrderRequest:
      type: object
      properties:
        amount:
          type: number
          description: Amount to sell in first currency
        clientId:
          type: integer
          format: int64
          description: Client ID (account number)
        clientOrderId:
          type: integer
          format: int64
          description: "Client-specified order ID, max 20 digits"
        currencyPair:
          type: string
          description: Currency pair
        nonce:
          type: integer
          format: int64
          description: Unique incrementing nonce
        publicKey:
          type: string
          description: API public key
        signature:
          type: string
          description: HMAC-SHA256 signature
      required:
      - amount
      - clientId
      - currencyPair
      - nonce
      - signature
    ServerTime:
      type: object
      properties:
        serverTime:
          type: integer
          format: int64
          description: Current server time in milliseconds (Unix epoch)
    SolWithdrawalRequest:
      type: object
      properties:
        address:
          type: string
        amount:
          type: number
          description: Number of SOL (max 8 decimals)
        amountType:
          type: string
          default: GROSS
          enum:
          - NET
          - GROSS
        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:
      - address
      - amount
      - clientId
      - nonce
      - signature
    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)"
    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
    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)
    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
    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
    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
    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
    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
    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
    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
    UnconfirmedDeposit:
      type: object
      properties:
        address:
          type: string
          description: Deposit address
        amount:
          type: number
          description: Deposit amount
        id:
          type: integer
          format: int64
          description: Deposit identifier
        numberOfConfirmations:
          type: integer
          format: int64
          description: Current number of blockchain confirmations
    UnconfirmedRippleDeposit:
      type: object
      properties:
        address:
          type: string
          description: Deposit address
        amount:
          type: number
          description: Deposit amount
        destinationTag:
          type: string
          description: Destination tag of the deposit
        id:
          type: integer
          format: int64
          description: Deposit identifier
        numberOfConfirmations:
          type: integer
          format: int64
          description: Current number of blockchain confirmations
    VirtualCurrencyRequest:
      type: object
      properties:
        clientId:
          type: integer
          format: int64
          description: Client ID (account number)
        currencyName:
          type: string
          description: "Currency code: ADA, BTC, ETH, LTC, SOL, USDT, XRP"
        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
      - currencyName
      - nonce
      - signature
    WithdrawResult:
      type: object
      properties:
        enabled:
          type: boolean
        fee:
          type: array
          items:
            $ref: "#/components/schemas/FeeResult"
        max24hLimit:
          type:
          - number
          - "null"
        maxAmount:
          type:
          - number
          - "null"
        minAmount:
          type:
          - number
          - "null"
        requiresTag:
          type: boolean
    WithdrawVirtualCurrencyRequest:
      type: object
      properties:
        address:
          type: string
          description: Destination address
        amount:
          type: number
          description: Amount to withdraw
        amountType:
          type: string
          default: GROSS
          enum:
          - NET
          - GROSS
        clientId:
          type: integer
          format: int64
          description: Client ID (account number)
        currencyName:
          type: string
          description: "Currency code: ADA, BTC, ETH, LTC, SOL, USDT, XRP"
        destinationTag:
          type: string
          description: Destination tag (XRP only)
        feePriority:
          type: string
          description: "Fee priority (BTC only), default HIGH"
          enum:
          - HIGH
          - LOW
        nonce:
          type: integer
          format: int64
          description: Unique incrementing nonce
        publicKey:
          type: string
          description: API public key
        signature:
          type: string
          description: HMAC-SHA256 signature
      required:
      - address
      - amount
      - clientId
      - currencyName
      - nonce
      - signature
  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
    OrderIdResponse:
      description: Order ID response
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: boolean
              errorMessage:
                type:
                - string
                - "null"
              data:
                type: integer
                format: int64
                description: Order ID
          examples:
            success:
              summary: Successful response
              value:
                error: false
                errorMessage: null
                data: 32817
    ReplaceOrderResponse:
      description: Replace order result
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: boolean
              errorMessage:
                type:
                - string
                - "null"
              data:
                $ref: "#/components/schemas/ReplaceOrderResult"
          examples:
            success:
              summary: Successful response
              value:
                error: false
                errorMessage: null
                data:
                  createdOrderId: 32818
                  replacedOrderCancellationFinished: true
                  replacedOrderCancellationResult: OK
                  replacedOrderRemainingAmount: 0.5
    TransactionIdResponse:
      description: Transaction ID response
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: boolean
              errorMessage:
                type:
                - string
                - "null"
              data:
                type: integer
                format: int64
                description: Coinmate transaction ID
          examples:
            success:
              summary: Successful response
              value:
                error: false
                errorMessage: null
                data: 12345
    AddressListResponse:
      description: List of addresses
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: boolean
              errorMessage:
                type:
                - string
                - "null"
              data:
                type: array
                items:
                  type: string
          examples:
            success:
              summary: Successful response
              value:
                error: false
                errorMessage: null
                data: []
    UnconfirmedDepositsResponse:
      description: List of unconfirmed deposits
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: boolean
              errorMessage:
                type:
                - string
                - "null"
              data:
                type: array
                items:
                  $ref: "#/components/schemas/UnconfirmedDeposit"
          examples:
            success:
              summary: Successful response
              value:
                error: false
                errorMessage: null
                data: []
  parameters:
    XCoinmateClientID:
      name: X-Coinmate-Client-ID
      in: header
      description: Client ID (account number)
      required: false
      schema:
        type: string
      example: "1011"
    XCoinmateSignature:
      name: X-Coinmate-Signature
      in: header
      description: HMAC-SHA256 signature
      required: false
      schema:
        type: string
      example: B86351D1D11167B64A00CFC1C8D2D91E389F5752CBA00436E0D64D4D861758AD
    XCoinmatePublicKey:
      name: X-Coinmate-Public-Key
      in: header
      description: API public key (optional)
      required: false
      schema:
        type: string
      example: CpmRVUJL0OGByT2otAfCKeeDdU6yfi6OzvnXcAwaHvE
    XCoinmateNonce:
      name: X-Coinmate-Nonce
      in: header
      description: Unique incrementing nonce
      required: false
      schema:
        type: string
      example: "15472079411"
  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
