Skip to main content
POST
Create Rate

Authorizations

x-api-key
string
header
required

Body

application/json
fromAsset
string
required

The symbol of the asset you are converting from.

Example:

"FROM_ASSET_SYMBOL"

toAsset
string
required

The symbol of the asset you are converting to.

Example:

"TO_ASSET_SYMBOL"

rate
string
required

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

Example:

"ASSET_PAIR_RATE"

minAmount
string
required

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

Example:

"MIN_AMOUNT"

maxAmount
string

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

Example:

"MAX_AMOUNT_OPTIONAL"

Response

201 - application/json

201

data
object
message
string
Example:

"Rate created successfully"

statusCode
number
Example:

201