Quote Limit Order
quote_limitGet 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. For an immediate market swap use quote_swap.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from_asset": "<from_asset>",
"to_asset": "<to_asset>",
"amount": "<amount>",
"target_out": "<target_out>"
},
"name": "quote_limit"
}
}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 |