跳到主要内容

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

请求参数

字段名是否必填类型说明
symbolstring产品 ID
typestring时间粒度,默认 1m
limitinteger最大 200,默认 200

返回示例

[
{
"timestamp": "1710000000",
"open": "38700",
"close": "38750",
"high": "38800",
"low": "38600",
"volume": "123"
}
]

合约 K 线

请求地址

GET /cryptorank/swap/kline

请求参数

字段名是否必填类型说明
symbolstring产品 ID
typestring时间粒度,默认 1m
limitinteger最大 200,默认 200

返回示例

[
{
"timestamp": "1710000000",
"open": "38700",
"close": "38750",
"high": "38800",
"low": "38600",
"volume": "123"
}
]

现货成交记录

请求地址

GET /cryptorank/spot/trades

请求参数

字段名是否必填类型说明
symbolstring交易对
sizeinteger每页数量 [10, 50],默认 50
fromIdstring从指定成交 id 开始返回

返回示例

[
{
"tid": "10001",
"Price": 38700.5,
"amount": 0.01,
"Direction": "buy",
"timestamp": "1710000000"
}
]

合约成交记录

请求地址

GET /cryptorank/swap/trades

请求参数

字段名是否必填类型说明
symbolstring交易对
sizeinteger每页数量 [10, 50],默认 50
fromIdstring从指定成交 id 开始返回

返回示例

[
{
"tid": "10001",
"Price": 38700.5,
"amount": 0.01,
"Direction": "sell",
"timestamp": "1710000000"
}
]