Quote an Ondo asset
Prices a buy or sell of an Ondo asset and returns the quantity, the per-token USD price and the decimals the quantity is denominated in. Free to poll while the user edits an order; it consumes no attestation. Takes no chain parameter, since Ondo runs no testnet and every environment prices against Ethereum mainnet.
Authorizations
OAuth 2.0 authorization and token endpoints
Query Parameters
Ondo asset symbol
"AAPLon"
Whether to price a buy or a sell
buy, sell "buy"
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.
"5"
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.
"1000"
Requested quote duration. Omit to let Ondo apply its own default.
short, long "short"
Response
Successful response.
Indicative, size- and side-aware price for an Ondo asset. Free to poll and does not consume an attestation.
ERC-20 contract address of the quoted asset
"0x14c3abf95cb9c93a8b82c1cdcb76d72cb87b2d4c"
Decimals of the asset_address contract. token_base_units is denominated in these, so divide by 10^asset_decimals to display whole tokens.
18
EIP-155 chain id the quote is priced on. Always "1": Ondo runs no testnet, so every environment prices against Ethereum mainnet.
"1"
String representing the object's type. Objects of the same type share the same value.
ondo_swap_quote 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.
"225.273151158540753535"
Side the quote was priced for
buy, sell "buy"
Ondo asset symbol
"AAPLon"
Ticker of the underlying security
"AAPL"
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.
"5000000000000000000"