Skip to main content
POST
TypeScript

Headers

Idempotency-Key
string

A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.

Body

application/json
scope
object[]
required

One or more providers/accounts to request rates from. At least one scope item is required.

Minimum array length: 1
baseAssetId
string
required

The source asset identifier.

Example:

"BTC"

quoteAssetId
string
required

The target asset identifier.

Example:

"USD"

baseAmount
string

The amount to convert from

Pattern: ^\d+(\.\d+)?$
Example:

"100.00"

side
enum<string>
default:SELL

Side to price on a quote, rate or offer request. BUY: receive base / pay quote; SELL: give base / receive quote; BOTH: request pricing for both sides at once. Providers that support only one of the sides return entries for that side only. BOTH is accepted on requests only, never on order execution requests, and responses never return it: every returned quote, rate or offer carries a concrete BUY or SELL. When omitted, defaults to SELL.

Available options:
BUY,
SELL,
BOTH

Response

Rate response

rates
object[]
required

List of indicative rates returned for the requested asset pair.

errors
object[]
required

Partial failures encountered while requesting rates. Empty when all rate requests succeed.