Sonar exact-output quote
strata_exact_output_quoteGet a short-lived Sonar quote for an exact output amount, returning the required input via an inverted best route. Specify your target output and optional tolerance to get a fail-closed quote.
Instructions
Request a short-lived Sonar quote for an exact output amount (for example: buy 1 SOL). Strata inverts its best route and returns the input that delivers it as amount_in_atoms; minimum_output_atoms is the requested amount lowered by the optional maximumToleranceBps (default 0: exactly the requested amount or the execution fails closed). Execute it with the same quote_id flow as strata_quote.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | Buy or sell the market's base asset. | |
| market | Yes | Market label such as SOL/USDC, or its public market ID. | |
| amountOutAtoms | Yes | Output amount to receive at least, in the output token's smallest atomic unit (base atoms for a buy, quote atoms for a sell). | |
| maximumToleranceBps | No | The most you accept below the quoted output, in basis points (default 0: the quoted output exactly). This is YOUR choice. It is not price impact — price_impact_pct in the response is measured from the book and is not a setting. |