Integration

CoinGecko

Endpoint 1 (Overview)

Response:

[
  { "ticker_id": "BTCUSDT", "base": "BTC", "target": "USDT" },
  { "ticker_id": "ETHUSDT", "base": "ETH", "target": "USDT" },
  { "ticker_id": "UNIUSDT", "base": "UNI", "target": "USDT" },
  { "ticker_id": "BCHUSDT", "base": "BCH", "target": "USDT" },
  { "ticker_id": "LTCUSDT", "base": "LTC", "target": "USDT" },
  { "ticker_id": "XRPUSDT", "base": "XRP", "target": "USDT" },
  { "ticker_id": "ETCUSDT", "base": "ETC", "target": "USDT" },
  { "ticker_id": "ADAUSDT", "base": "ADA", "target": "USDT" },
  { "ticker_id": "MATICUSDT", "base": "MATIC", "target": "USDT" }
]

GET /cgk/pairs

Parameters:

NameTypeMandatoryDescription
ticker_idSTRINGNOA ticker such as "BTC_ETH", with delimiter between different cryptoassets
baseSTRINGNO
targetSTRINGNO

Endpoint 2 (Market Info)

Response:

[
  {
    "ticker_id": "BTCUSDT",
    "base": "BTC",
    "target": "USDT",
    "last_price": "36630.08",
    "base_volume": "5.40982",
    "target_volume": "198505.91",
    "bid": "37044.97",
    "ask": "36206.79",
    "high": "37020.96",
    "low": "36245.48"
  },
  {
    "ticker_id": "ETHUSDT",
    "base": "ETH",
    "target": "USDT",
    "last_price": "2063.9",
    "base_volume": "122.8839",
    "target_volume": "253657.03",
    "bid": "2117.58",
    "ask": "2032.07",
    "high": "2105.92",
    "low": "2033.25"
  },
  {
    "ticker_id": "UNIUSDT",
    "base": "UNI",
    "target": "USDT",
    "last_price": "5.282",
    "base_volume": "44855.96",
    "target_volume": "240513.24",
    "bid": "5.626",
    "ask": "5.12",
    "high": "5.538",
    "low": "5.156"
  }
]

GET /cgk/tickers

Parameters:

NameTypeMandatoryDescription
ticker_idSTRINGNOA ticker such as "BTC_ETH", with delimiter between different cryptoassets
base_currencySTRINGNO
target_currencySTRINGNO
last_priceSTRINGNO
base_volumeSTRINGNO
target_volumeSTRINGNO
bidSTRINGNO
askSTRINGNO
highSTRINGNO
lowSTRINGNO

Endpoint 3 (Order book depth details)

Response:

{
  "ticker_id": "BTC_USDT",
  "timestamp": 1699942142872,
  "bids": [
    ["36606.82", "0.3182"],
    ["36606.69", "0.54618"],
    ["36606.57", "0.00127"],
    ["36606.56", "0.00159"],
    ["36606.15", "0.00067"],
    ["36606.06", "0.23999"],
    ["36605.8", "0.00159"],
    ["36605.73", "0.00067"],
    ["36605.43", "0.00501"]
  ],
  "asks": [
    ["36606.83", "12.77047"],
    ["36606.84", "0.01"],
    ["36606.85", "0.01"],
    ["36606.89", "0.02693"],
    ["36607.41", "0.00067"],
    ["36607.6", "0.02693"],
    ["36607.83", "0.00067"],
    ["36607.94", "0.072"],
    ["36608.08", "0.00159"]
  ]
}

GET /cgk/orderbook

Parameters:

NameTypeMandatoryDescription
ticker_idSTRINGYESA ticker such as "BTC_ETH", with delimiter between different cryptoassets
depthINTEGERNO

Endpoint 4 (Historical Data)

Response:

{
  "buy": [
    {
      "trade_id": 20956763482,
      "price": 26554.46,
      "base_volume": 0.00329,
      "target_volume": "87.3641734",
      "trade_timestamp": "2023-09-28T13:29:33.932Z",
      "type": "buy"
    },
    {
      "trade_id": 20956763437,
      "price": 26550.98,
      "base_volume": 0.001,
      "target_volume": "26.55098",
      "trade_timestamp": "2023-09-28T13:29:09.916Z",
      "type": "buy"
    },
    {
      "trade_id": 20956763416,
      "price": 26547.83,
      "base_volume": 0.00071,
      "target_volume": "18.8489593",
      "trade_timestamp": "2023-09-28T13:29:03.895Z",
      "type": "buy"
    },
    {
      "trade_id": 20956763359,
      "price": 26550,
      "base_volume": 0.00233,
      "target_volume": "61.8615",
      "trade_timestamp": "2023-09-28T13:28:32.882Z",
      "type": "buy"
    }
  ]
}

GET /cgk/historical_trades

Parameters:

NameTypeMandatoryDescription
ticker_idSTRINGYESA pair such as "BTC_ETH", with delimiter between different cryptoassets
typeSTRINGNONO
limitINTEGERNONO
start_timeDATENONO
end_timeDATENONO
Previous
API Key