quote_limit
Get a limit order quote with expected output, expiry time, and a generated memo for executing the limit order. Limit orders execute when the target price is reached.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | The amount in base units (1e8 for most assets) | |
| to_asset | Yes | The target asset (e.g. ETH.ETH) | |
| affiliate | No | The affiliate address or THORName | |
| custom_ttl | No | Custom TTL in blocks for the limit order | |
| from_asset | Yes | The source asset (e.g. BTC.BTC) | |
| target_out | Yes | The limit price: minimum acceptable output amount in base units (1e8). The order executes only at this price or better | |
| destination | No | The destination address for the swap output | |
| affiliate_bps | No | The affiliate fee in basis points (0-1000; protocol caps total affiliate fees at 1000 bps) | |
| refund_address | No | The refund address if the swap fails | |
| streaming_quantity | No | Number of sub-swaps for streaming |