Passer au contenu principal
POST
/
v1
/
rates
Create Rate
curl --request POST \
  --url https://api.blockradar.co/v1/rates \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "fromAsset": "FROM_ASSET_SYMBOL",
  "minAmount": "MIN_AMOUNT",
  "rate": "ASSET_PAIR_RATE",
  "toAsset": "TO_ASSET_SYMBOL"
}
'
{
  "data": {
    "createdAt": "2026-02-19T07:50:17.042Z",
    "fromAsset": "BNB",
    "id": "d69078ef-2467-40f4-bb00-63394efe32c0",
    "isActive": true,
    "maxAmount": null,
    "minAmount": "0.000005",
    "network": "testnet",
    "rate": "1",
    "status": "active",
    "toAsset": "USDC",
    "version": 1
  },
  "message": "Rate created successfully",
  "statusCode": 201
}

Autorisations

x-api-key
string
header
requis

Corps

application/json
fromAsset
string
Exemple:

"FROM_ASSET_SYMBOL"

minAmount
string
Exemple:

"MIN_AMOUNT"

rate
string
Exemple:

"ASSET_PAIR_RATE"

toAsset
string
Exemple:

"TO_ASSET_SYMBOL"

Réponse

201 - application/json

201

data
object
message
string
Exemple:

"Rate created successfully"

statusCode
number
Exemple:

201