v1

latestOpenAPI 3.0.32026-07-26184851.6 MB
Liquidity Pool

Create Rate

This endpoint allows you to create a rate for a specific asset pair.

Endpoint POST https://api.blockradar.co/v1/rates

Body Parameters

KeyRequiredTypeDescription
fromAssettruestringThe symbol of the asset you are converting from.
toAssettruestringThe symbol of the asset you are converting to.
ratetruestringThe exchange rate for the asset pair. Provided as a string to avoid floating point precision issues.
minAmounttruestringThe minimum amount allowed for this rate/pair. Provided as a string.
maxAmountfalsestringThe maximum amount allowed for this rate/pair. Optional. Provided as a string.
post/v1/rates

Request body

fromAssetstring required

The symbol of the asset you are converting from.

toAssetstring required

The symbol of the asset you are converting to.

ratestring required

The exchange rate for the asset pair. Provided as a string to avoid floating point precision issues.

minAmountstring required

The minimum amount allowed for this rate/pair. Provided as a string.

maxAmountstring

The maximum amount allowed for this rate/pair. Optional. Provided as a string.

Example request

{
  "fromAsset": "FROM_ASSET_SYMBOL",
  "toAsset": "TO_ASSET_SYMBOL",
  "rate": "ASSET_PAIR_RATE",
  "minAmount": "MIN_AMOUNT",
  "maxAmount": "MAX_AMOUNT_OPTIONAL"
}

Response

201

messagestring
statusCodenumber

Example response

{
  "data": {
    "createdAt": "2026-02-19T07:50:17.042Z",
    "fromAsset": "BNB",
    "id": "d69078ef-2467-40f4-bb00-63394efe32c0",
    "isActive": true,
    "minAmount": "0.000005",
    "network": "testnet",
    "rate": "1",
    "status": "active",
    "toAsset": "USDC",
    "version": 1
  },
  "message": "Rate created successfully",
  "statusCode": 201
}