CryptoRank
CryptoRank
现货行情
请求地址
GET /cryptorank/spot/tickers
请求参数
无
返回示例
[
{
"from": "BTC",
"to": "USDT",
"bid": "38703.65",
"ask": "38729.78",
"last": "38715.7",
"open": "39004.87",
"high": "39074.47",
"low": "38177.47",
"change": "-0.0022",
"baseVolume": "33983.6373687487",
"quoteVolume": "655729682.1670185"
}
]
合约行情
请求地址
GET /cryptorank/swap/tickers
请求参数
无
返回示例
[
{
"from": "BTC",
"to": "USDT",
"bid": "38703.65",
"ask": "38729.78",
"last": "38715.7",
"open": "39004.87",
"high": "39074.47",
"low": "38177.47",
"change": "-0.0022",
"baseVolume": "33983.6373687487",
"quoteVolume": "655729682.1670185"
}
]
合约基础信息
请求地址
GET /cryptorank/swap/contracts
请求参数
无
返回示例
[
{
"symbol": "BTCUSDT",
"base_currency": "BTC",
"target_currency": "USDT",
"last_price": "38599",
"base_volume": "64903.37",
"target_volume": "1260192387.609877",
"bid": "38597.5",
"ask": "38601",
"high": "39067",
"low": "38160",
"product_type": "Swap",
"open_interest": "26262478",
"index_price": "38618.656",
"index_name": "BTC/USDT",
"mark_price": "38600",
"index_currency": "USDT",
"start_timestamp": "0",
"end_timestamp": "0",
"funding_rate": "0.00018783",
"next_funding_rate": "0.00018783",
"next_funding_rate_timestamp": "1710000000",
"contract_type": "Vanilla",
"contract_price": "0.001",
"contract_price_currency": "BTC"
}
]
合约基础信息(兼容)
请求地址
GET /cryptorank/swap/contract-info
请求参数
无
返回示例
[
{
"ticker_id": "BTCUSDT",
"base_currency": "BTC",
"target_currency": "USDT",
"last_price": "38599",
"base_volume": "64903.37",
"target_volume": "1260192387.609877",
"bid": "38597.5",
"ask": "38601",
"high": "39067",
"low": "38160",
"product_type": "Swap",
"open_interest_usd": "26262478",
"index_price": "38618.656",
"index_name": "BTC/USDT",
"index_currency": "USDT",
"mark_price": "38600",
"start_timestamp": "0",
"end_timestamp": "0",
"funding_rate": "0.00018783",
"next_funding_rate": "0.00018783",
"next_funding_rate_timestamp": "1710000000",
"contract_type": "Vanilla",
"contract_price": "0.001",
"contract_price_currency": "BTC"
}
]
现货 K 线
请求地址
GET /cryptorank/spot/kline
请求参数
| 字段名 | 是否必填 | 类型 | 说明 |
|---|---|---|---|
| symbol | 是 | string | 产品 ID |
| type | 否 | string | 时间粒度,默认 1m |
| limit | 否 | integer | 最大 200,默认 200 |
返回示例
[
{
"timestamp": "1710000000",
"open": "38700",
"close": "38750",
"high": "38800",
"low": "38600",
"volume": "123"
}
]
合约 K 线
请求地址
GET /cryptorank/swap/kline
请求参数
| 字段名 | 是否必填 | 类型 | 说明 |
|---|---|---|---|
| symbol | 是 | string | 产品 ID |
| type | 否 | string | 时间粒度,默认 1m |
| limit | 否 | integer | 最大 200,默认 200 |
返回示例
[
{
"timestamp": "1710000000",
"open": "38700",
"close": "38750",
"high": "38800",
"low": "38600",
"volume": "123"
}
]
现货成交记录
请求地址
GET /cryptorank/spot/trades
请求参数
| 字段名 | 是否必填 | 类型 | 说明 |
|---|---|---|---|
| symbol | 否 | string | 交易对 |
| size | 否 | integer | 每页数量 [10, 50],默认 50 |
| fromId | 否 | string | 从指定成交 id 开始返回 |
返回示例
[
{
"tid": "10001",
"Price": 38700.5,
"amount": 0.01,
"Direction": "buy",
"timestamp": "1710000000"
}
]
合约成交记录
请求地址
GET /cryptorank/swap/trades
请求参数
| 字段名 | 是否必填 | 类型 | 说明 |
|---|---|---|---|
| symbol | 否 | string | 交易对 |
| size | 否 | integer | 每页数量 [10, 50],默认 50 |
| fromId | 否 | string | 从指定成交 id 开始返回 |
返回示例
[
{
"tid": "10001",
"Price": 38700.5,
"amount": 0.01,
"Direction": "sell",
"timestamp": "1710000000"
}
]