Skip to main content
POST
Request market quote

Authorizations

Authorization
string
header
required

Pass a Kaleido API key such as kld_live_c_....

Body

application/json

Request for a quote on a trading pair using SwapLegInput.

from_asset
SwapLegInput · object
required

Source leg specification (asset_id, layer, amount)

to_asset
SwapLegInput · object
required

Destination leg specification (asset_id, layer, amount)

Response

Quote created successfully.

Response containing a quote for a trading pair.

Uses full SwapLeg for both sides, providing complete asset details including ticker, name, precision, layer, and amount.

rfq_id
string
required
Example:

"1234567890"

from_asset
SwapLeg · object
required

Complete source leg specification with amount and details

to_asset
SwapLeg · object
required

Complete destination leg specification with amount and details

price
integer<int64>
required

Price of 1 whole unit of from_asset (e.g., 1 BTC) in terms of the smallest unit of to_asset (e.g., USDT with precision 6). Matches PriceData.price for the given rfq_id.

Example:

50000123456

fee
Fee · object
required
timestamp
integer
required

Quote creation timestamp (seconds since epoch)

expires_at
integer
required

Quote expiry timestamp (seconds since epoch)