streamQuotes
Changed onStream cross-chain quotes as they become available
Request
- Base URLhttps://api.0x.org
- Authnone declared. Required headers: 0x-api-key
Query parameters
The source chain from which the cross-chain swap will originate. Can be specified as chain ID or name. See here for the list of supported chains
The destination chain where tokens will be received after the cross-chain swap. Can be specified as chain ID or name. See here for the list of supported chains
The contract address of the token to sell on the origin chain. Format varies by chain type (EVM address for EVM/HyperCore chains, token mint address for Solana, base58check address for Tron). For Bitcoin, the only accepted value is bc1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqmql8k8.
The contract address of the token to buy on the destination chain. Format varies by chain type (EVM address for EVM/HyperCore chains, token mint address for Solana, base58check address for Tron). For Bitcoin, the only accepted value is bc1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqmql8k8.
The amount of sellToken (in sellToken's base units) to sell on the origin chain
The wallet address on the origin chain that holds the sellToken balance and will initiate the cross-chain transaction. For Bitcoin, quotes are supported from one native SegWit (P2WPKH, bc1q) address with confirmed coins. The quote returns a PSBT to sign with SIGHASH_ALL.
The wallet address on the destination chain that will receive the buyToken. If not specified, defaults to originAddress on the destination chain. A Bitcoin destination accepts any mainnet address type.
The Solana address that will pay for transaction fees when the origin chain is Solana. Only applicable for Solana origin chains
Pubkey of an integrator-held ephemeral keypair used as a one-shot extra transaction signer for Solana origin routes that require one (e.g. the CCTP event account). Generate a fresh keypair per request and sign the returned transaction with it; the account must not already exist on-chain and is not reusable afterwards. Routes requiring an ephemeral signer are only quoted when this is set. Only applicable for Solana origin chains
The maximum acceptable slippage for each swap or bridge step of the cross-chain swap in basis points (100 = 1%)
Comma-separated list of bridge providers to exclude from routing
Comma-separated list of bridge providers to include in routing. Mutually exclusive with excludedBridges
Comma-separated list of DEX sources to exclude from routing on both chains
The trading fee amounts in basis points to charge on the origin chain (supports single or comma-separated values). Mutually exclusive with feePpm. Must be used together with feeRecipient. When multiple values are provided, must match the length of feeRecipient. Note: integrator fee collection is not yet supported for Tron-originated or Bitcoin-originated routes.
The trading fee amounts in parts-per-million (PPM) to charge on the origin chain (supports single or comma-separated values). Mutually exclusive with feeBps. Must be used together with feeRecipient. Each value must be an integer from 0 to 1000000. When multiple values are provided, must match the length of feeRecipient. e.g. 5000 PPM = 50 BPS = 0.5%. Note: integrator fee collection is not yet supported for Tron-originated or Bitcoin-originated routes.
The wallet addresses to receive trading fees on the origin chain (supports single or comma-separated values). Must be used together with feeBps or feePpm. When multiple values are provided, must match the length of feeBps or feePpm. Note: integrator fee collection is not yet supported for Tron-originated or Bitcoin-originated routes.
The token addresses for fee collection on the origin chain (supports single or comma-separated values). Must be the same as sellToken. When multiple values are provided, must match the length of feeBps or feePpm. If omitted, defaults to sellToken. Some routes collect the integrator fee through the bridge provider instead of on-chain; the fee still goes to feeRecipient, but it comes out of the token entering the bridge, which is not sellToken when the route swaps before bridging. Read fees.integratorFee.token for the token actually charged. Note: integrator fee collection is not yet supported for Tron-originated or Bitcoin-originated routes.
The maximum number of cross-chain quotes to return, between 1 and 10. Each quote represents a different combination of bridges and DEXs
Headers
Visit dashboard.0x.org to get your API Key
Response
Successful response
Changes
- info
added
subschema #4to the////response propertyanyOflist for the response status - info
added
subschema #5to the//////response propertyanyOflist for the response status - info
added
subschema #5to the//////response propertyanyOflist for the response status - info
added
subschema #5to the//////response propertyanyOflist for the response status - info
added
subschema #5to the//////response propertyanyOflist for the response status - info
added
subschema #5to the///////response propertyanyOflist for the response status - info
added
subschema #5to the///////response propertyanyOflist for the response status
- info
- info
added the new optional
queryrequest parameterfeePpm
- info