check_order
Check whether a resting order (limit, stop, DCA, trailing) for this pair and size would be executable: oracle support, liquidity, minimum size. Run this before signing any resting order; it does not price the trade — get_route does. Amounts are RAW token units.
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": {
"tokenIn": "<tokenIn>",
"tokenOut": "<tokenOut>",
"amountIn": "<amountIn>"
},
"name": "check_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenIn | Yes | ERC-20 address of the token being sold (0x-hex) | |
| amountIn | Yes | amount of tokenIn in RAW token units (decimal string, already scaled by the token's decimals) | |
| tokenOut | Yes | ERC-20 address of the token being bought (0x-hex) |