Firm Quote Orders
Last updated
Last updated
One approach to execute a swap via Native is by using the /firm-quote
endpoint, which provides a firm quote along with signed calldata for on-chain execution.
For further details, refer to the following link:
Swappers query the /orderbook
endpoint to obtain pricing and depth information and generate an initial quote.
Swappers submit the swap parameters, including the amount and token addresses, via the /firm-quote
endpoint to receive a firm quote and executable calldata.
The calldata is executed on the blockchain to finalize the swap.
Utilize the /orderbook
or /indicative-quote
endpoints for initial pricing estimates, typically displayed on the primary swap interface. The /firm-quote
endpoint should be used for finalizing quotes before on-chain transactions.
The /firm-quote
endpoint may experience rate limits and slightly higher latency due to inventory control, additional checks, and signing processes.
Specify the "expiry" parameter when requesting a firm quote. Note that longer expiries may reduce PMM liquidity, potentially resulting in less favorable quotes.
Native aggregates liquidity from on-chain AMM DEX sources. Consequently, final signed orders may include swaps involving external liquidity. However, Swap API keys can be configured to exclusively utilize PMM quotes.