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:
| Name | Type | Mandatory | Description |
|---|---|---|---|
| ticker_id | STRING | NO | A ticker such as "BTC_ETH", with delimiter between different cryptoassets |
| base | STRING | NO | |
| target | STRING | NO |
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:
| Name | Type | Mandatory | Description |
|---|---|---|---|
| ticker_id | STRING | NO | A ticker such as "BTC_ETH", with delimiter between different cryptoassets |
| base_currency | STRING | NO | |
| target_currency | STRING | NO | |
| last_price | STRING | NO | |
| base_volume | STRING | NO | |
| target_volume | STRING | NO | |
| bid | STRING | NO | |
| ask | STRING | NO | |
| high | STRING | NO | |
| low | STRING | NO |
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:
| Name | Type | Mandatory | Description |
|---|---|---|---|
| ticker_id | STRING | YES | A ticker such as "BTC_ETH", with delimiter between different cryptoassets |
| depth | INTEGER | NO |
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:
| Name | Type | Mandatory | Description |
|---|---|---|---|
| ticker_id | STRING | YES | A pair such as "BTC_ETH", with delimiter between different cryptoassets |
| type | STRING | NO | NO |
| limit | INTEGER | NO | NO |
| start_time | DATE | NO | NO |
| end_time | DATE | NO | NO |