hookr_build_limit_order · Build a limit order
read-onlyBuilds 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.
Input schema
{
"type": "object",
"properties": {
"wallet": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "The wallet that signs; it is the order's recipient and owner."
},
"poolId": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{64}$",
"description": "A listed pool's PoolId, from hookr_pools."
},
"side": {
"type": "string",
"enum": [
"buy",
"sell"
],
"description": "buy spends the pool's quote currency for the token; sell spends the token for the quote currency."
},
"amount": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,30})(?:\\.[0-9]{1,36})?$",
"description": "What the order spends, in the input currency's own units."
},
"price": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,30})(?:\\.[0-9]{1,36})?$",
"description": "The limit price, in the quote currency per token."
},
"lifetimeSeconds": {
"type": "integer",
"minimum": 60,
"maximum": 31536000,
"description": "How long the order stays open, in seconds (default 604800, seven days)."
},
"tip": {
"type": "string",
"enum": [
"none",
"standard",
"most"
],
"description": "The keeper tip the Limit tab offers: none, standard (the default) or most."
}
},
"required": [
"wallet",
"poolId",
"side",
"amount",
"price"
],
"additionalProperties": false
}