KoinBXKoinBX
MarketsTradeCrypto BasketsEarnFeesQuest

Loading…

  • Help
  • Cookies
  • Privacy Policy
  • Terms of Service

Public API Documentation

Access public market data and trading information

Documentation

Introduction

This document specifies the use of KoinBX's REST API for spot exchange. This helps you in the real-time automation of crypto trades, live streaming of crypto rates, and building integrations for the crypto trading journey.

Our REST API is organized into publicly accessible endpoints (Base URL, Endpoint of the interface, Request, Types, and Authentication), and private authenticated endpoints (trading, funding, user data) that require signing of the requests.

Frequently Asked Questions

1. What is the KoinBX Public API?

The KoinBX Public API allows users and developers to access market data and trading services on the KoinBX platform.

2. Does KoinBX offer API documentation?

Yes. KoinBX offers comprehensive API documentation to help users understand the request formats, response structures, and integration guidelines. You can access the API documentation at https://koinbx.com/publicapi

3. Are there any rate limits for API requests?

Yes. To ensure fair usage and maintain platform stability, we enforce limits on API requests. Refer to our API documentation to learn more about rate limits.

4. Is authentication required to use the Public API?

No. The public APIs do not require authentication and can be accessed without API keys.

5. Is the Public API free to use?

Yes. The KoinBX Public API is free to use for all registered users.

6. Are there read-only APIs available for KoinBX Public APIs?

Yes. KoinBX provides read-only endpoints for its Public APIs.

Base URL

The REST API has endpoints for the account and order management as well as public market data.

The base URL for Public Api is https://api.koinbx.com

The requested URL needs to be determined by the BASE and a specific endpoint combination.

Endpoint of the Interface

Each interface has its own endpoint, described by the field HTTP REQUEST in the docs.

For the GET METHOD API, the endpoint needs to contain the query parameters string.

Request

All requests and responses are application/json content type.

Parameters:

For the GET, DELETE request, all query parameters need to be included in the request URL. For the POST, and PUT requests, all query parameters need to be included in the request body with JSON. Do not include extra spaces in JSON strings.

Authentication

General Notes:

• Public APIs do not require authentication and can be accessed without API keys.

• All public API endpoints use the GET method.

• The request body must contain parameters passed in the form of JSON.

• Public APIs are rate-limited to ensure fair usage across all users.

Rate Limiting:

Public APIs have rate limits to ensure fair usage. Please respect these limits and implement appropriate retry logic with exponential backoff if you encounter rate limit errors.

Rate limits may vary by endpoint and are subject to change. Check response headers for rate limit information.

Markets

GET/markets
Base URL: https://api.koinbx.com

Response Fields

FieldDescription
trading_pairsA valid trading symbol code. e.g. XRP_BTC
last_priceRecent market price
lowest_asklowest ask price for seller
highest_bidhighest bid price for buyer
base_volumebase volume of XRP
quote_volumequote volume of BTC
price_change_percent_24hprice variation for 24 hours in percentage
highest_price_24hhighest price in 24 hours
lowest_price_24hlowest price in 24 hours
volume_24hTrading volume in 24 hours

Sample Response

{
  "status": "1",
  "markets": [
    {
      "trading_pairs": "XRP_BTC",
      "last_price": "0.00100687",
      "lowest_ask": "0.0000238",
      "highest_bid": "0.000024",
      "base_volume": 1.04271625,
      "quote_volume": 43686.31268506,
      "price_change_percent_24h": 0,
      "highest_price_24h": "0",
      "lowest_price_24h": "0",
      "volume_24h": 1.04271625
    }
  ]
}

Currencies

GET/asset
Base URL: https://api.koinbx.com

Response Fields

FieldDescription
nameCurrency name, will change after renaming
unified_cryptoasset_idA unique currency code that will never change
can_withdrawSupport withdrawal or not
can_depositSupport deposit or not
min_withdrawMinimum withdrawal amount
max_withdrawMaximum withdrawal amount
maker_feeTrading Fee charged for the buyer
taker_feeTrading Fee charged for the seller

Sample Response

{
  "status": "1",
  "message": "success",
  "assets": [
    {
      "name": "Bitcoin",
      "unified_cryptoasset_id": "1",
      "can_withdraw": "true",
      "can_deposit": "true",
      "min_withdraw": "0.00100000",
      "max_withdraw": "2.00000000",
      "maker_fee": 0.25,
      "taker_fee": 0.25
    }
  ]
}

Tickers

GET/ticker
Base URL: https://api.koinbx.com

Response Fields

FieldDescription
base_idunique id for base currency
quote_idunique id for quote currency
last_priceRecent trading market price
quote_volumequote volume of BTC
base_volumebase volume of XRP
isFrozenFrozen status

Sample Response

{
  "status": "1",
  "message": "success",
  "tickers": {
    "XRP_BTC": {
      "base_id": "52",
      "quote_id": "1",
      "last_price": "0.00001685",
      "quote_volume": 43678.49836427,
      "base_volume": 1.04240522,
      "isFrozen": 0
    }
  }
}

Orderbook

GET/orderbook?market_pair=ETH_BTC
Base URL: https://api.koinbx.com

Request Parameters

FieldRequiredExampleDescription
market_pairRequiredETH_BTCTrading pair symbol

Response Fields

FieldDescription
asksList of Sell orders
bidsList of Buy orders

Sample Response

{
  "status": "1",
  "asks": [
    {
      "0": "0.03221",
      "1": "0.20000000"
    }
  ],
  "bids": [
    {
      "0": "0.0321121",
      "1": "0.20000000"
    }
  ]
}

Orderbook (Level)

GET/orderbook?market_pair=ETH_BTC&level=1
Base URL: https://api.koinbx.com

Request Parameters

FieldRequiredExampleDescription
market_pairRequiredETH_BTCTrading pair symbol
levelOptional1Orderbook level (1, 2, or 3)

Response Fields

FieldDescription
asksList of Sell orders
bidsList of Buy orders

Sample Response

{
  "status": "1",
  "asks": [
    {
      "0": "0.03221",
      "1": "0.20000000"
    }
  ],
  "bids": [
    {
      "0": "0.0321121",
      "1": "0.20000000"
    }
  ]
}

Orderbook (Depth)

GET/orderbook?market_pair=ETH_BTC&depth=5
Base URL: https://api.koinbx.com

Request Parameters

FieldRequiredExampleDescription
market_pairRequiredETH_BTCTrading pair symbol
depthOptional5Number of price levels to return

Response Fields

FieldDescription
asksList of Sell orders
bidsList of Buy orders

Sample Response

{
  "status": "1",
  "asks": [
    {
      "0": "0.03221",
      "1": "0.20000000"
    }
  ],
  "bids": [
    {
      "0": "0.0321121",
      "1": "0.20000000"
    }
  ]
}

Trade History

GET/trades?market_pair=ETH_BTC
Base URL: https://api.koinbx.com

Request Parameters

FieldRequiredExampleDescription
market_pairRequiredETH_BTCTrading pair symbol

Response Fields

FieldDescription
trade_idExecuted order Id
priceorder price
base_volumebase volume of ETH
quote_volumequote volume of BTC
timestampTransaction time
typeorder type: (buy / sell)

Sample Response

{
  "status": "1",
  "message": "success",
  "data": [
    {
      "trade_id": "81070157222157334001",
      "price": "0.07541045",
      "base_volume": 0.012389811753653,
      "quote_volume": 0.16429834,
      "timestamp": 1681352273,
      "type": "buy"
    }
  ]
}