Passer au contenu principal
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 }

Autorisations

x-api-key
string
header
requis

Paramètres de requête

fromAsset
string

Source asset symbol. Required when pairs is not provided.

Exemple:

"USDT"

toAsset
string

Destination asset symbol. Required when pairs is not provided.

Exemple:

"cNGN"

amount
string

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

Exemple:

"500"

pairs
string

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

Exemple:

"USDT:cNGN,cNGN:USDT"

Réponse

200 - application/json

200

data
object
message
string
Exemple:

"Market benchmark retrieved"

statusCode
number
Exemple:

200