Skip to main content
GET
Quote an Ondo asset

Authorizations

Authorization
string
header
required

OAuth 2.0 authorization and token endpoints

Query Parameters

symbol
string
required

Ondo asset symbol

Example:

"AAPLon"

side
enum<string>
required

Whether to price a buy or a sell

Available options:
buy,
sell
Example:

"buy"

token_amount
string

Quantity of the asset to price, as a decimal string of whole tokens. This is not the response's token_base_units, which is the same quantity in the asset's smallest unit. Exactly one of token_amount or notional_value is required.

Example:

"5"

notional_value
string

Dollar amount to price, as a decimal string. Exactly one of token_amount or notional_value is required. No CoinList fee is deducted: Ondo prices exactly this amount, so if you are sizing against a user's approval, subtract the fee before passing it here or the quote will overstate what they receive.

Example:

"1000"

duration
enum<string>

Requested quote duration. Omit to let Ondo apply its own default.

Available options:
short,
long
Example:

"short"

Response

Successful response.

Indicative, size- and side-aware price for an Ondo asset. Free to poll and does not consume an attestation.

asset_address
string
required

ERC-20 contract address of the quoted asset

Example:

"0x14c3abf95cb9c93a8b82c1cdcb76d72cb87b2d4c"

asset_decimals
integer
required

Decimals of the asset_address contract. token_base_units is denominated in these, so divide by 10^asset_decimals to display whole tokens.

Example:

18

chain_id
string
required

EIP-155 chain id the quote is priced on. Always "1": Ondo runs no testnet, so every environment prices against Ethereum mainnet.

Example:

"1"

object
enum<string>
required

String representing the object's type. Objects of the same type share the same value.

Available options:
ondo_swap_quote
price
string
required

Price per whole token in USD, already scaled and so needing none of the handling token_base_units does. Ondo denominates it in USDon, which is 18 decimals on Ethereum, the only chain quoted here.

Example:

"225.273151158540753535"

side
enum<string>
required

Side the quote was priced for

Available options:
buy,
sell
Example:

"buy"

symbol
string
required

Ondo asset symbol

Example:

"AAPLon"

ticker
string
required

Ticker of the underlying security

Example:

"AAPL"

token_base_units
string
required

Quantity of the asset in its smallest unit, as a decimal string. Use it as-is to build calldata, or scale it by asset_decimals to display it. Note this is not the token_amount request parameter, which is in whole tokens.

Example:

"5000000000000000000"