Build a limit order
hookr_build_limit_orderBuilds a limit order on Hookr's order book as the Limit tab places it, an unsigned call simulated from the wallet that escrows its input until a keeper fills it at the price or better; its status is ok (send the call), needs_approval (send the approval, then build again), or refused or unknown with the reason and no call.
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": {
"wallet": "<wallet>",
"poolId": "<poolId>",
"side": "<side>",
"amount": "<amount>",
"price": "<price>"
},
"name": "hookr_build_limit_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tip | No | The keeper tip the Limit tab offers: none, standard (the default) or most. | |
| side | Yes | buy spends the pool's quote currency for the token; sell spends the token for the quote currency. | |
| price | Yes | The limit price, in the quote currency per token. | |
| amount | Yes | What the order spends, in the input currency's own units. | |
| poolId | Yes | A listed pool's PoolId, from hookr_pools. | |
| wallet | Yes | The wallet that signs; it is the order's recipient and owner. | |
| lifetimeSeconds | No | How long the order stays open, in seconds (default 604800, seven days). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | Yes | Unsigned calls, in the order to send them. | |
| order | No | ||
| reason | No | Why the answer is not ok, in words an agent can act on. | |
| status | Yes | ok, needs_approval, refused or unknown. |