Skip to main content

CryptoRank

CryptoRank

Spot tickers

Request URL

GET /cryptorank/spot/tickers

Request Parameters

None

Response Example

[
{
"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"
}
]

Swap tickers

Request URL

GET /cryptorank/swap/tickers

Request Parameters

None

Response Example

[
{
"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"
}
]

Swap contracts

Request URL

GET /cryptorank/swap/contracts

Request Parameters

None

Response Example

[
{
"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"
}
]

Swap contract info

Request URL

GET /cryptorank/swap/contract-info

Request Parameters

None

Response Example

[
{
"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"
}
]

Spot kline

Request URL

GET /cryptorank/spot/kline

Request Parameters

Field NameRequiredTypeDescription
symboltruestringInstrument ID
typefalsestringGranularity, default 1m
limitfalseintegerMax 200, default 200

Response Example

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

Swap kline

Request URL

GET /cryptorank/swap/kline

Request Parameters

Field NameRequiredTypeDescription
symboltruestringInstrument ID
typefalsestringGranularity, default 1m
limitfalseintegerMax 200, default 200

Response Example

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

Spot trades

Request URL

GET /cryptorank/spot/trades

Request Parameters

Field NameRequiredTypeDescription
symbolfalsestringTrading pair
sizefalseintegerPage size, range [10, 50], default 50
fromIdfalsestringStart trade id for pagination

Response Example

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

Swap trades

Request URL

GET /cryptorank/swap/trades

Request Parameters

Field NameRequiredTypeDescription
symbolfalsestringTrading pair
sizefalseintegerPage size, range [10, 50], default 50
fromIdfalsestringStart trade id for pagination

Response Example

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