跳转到主要内容
GET
/
v1
/
rates
/
market-benchmark
Get Market Benchmark
curl --request GET \
  --url https://api.blockradar.co/v1/rates/market-benchmark \
  --header 'x-api-key: <api-key>'
{ "data": { "fromAsset": "USDT", "toAsset": "cNGN", "bestRate": "1547.50" }, "message": "Market benchmark retrieved", "statusCode": 200 }

授权

x-api-key
string
header
必填

查询参数

fromAsset
string

Source asset symbol. Required when pairs is not provided.

示例:

"USDT"

toAsset
string

Destination asset symbol. Required when pairs is not provided.

示例:

"cNGN"

amount
string

Amount to benchmark — only rates whose band covers this amount are considered.

示例:

"500"

pairs
string

Comma-separated from:to pairs for batch lookup (max 20).

示例:

"USDT:cNGN,cNGN:USDT"

响应

200 - application/json

200

data
object
message
string
示例:

"Market benchmark retrieved"

statusCode
number
示例:

200