Scaffold createOrder calldata
build_order_txConstruct unsigned createOrder calldata for futures or perps orders. Simulate and validate order eligibility before generating the transaction payload.
Instructions
PROTOTYPE ONLY. Returns unsigned createOrder calldata. Run simulate_order and check_can_place_order first. Production bots encode via the npm ABI packages.
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": {
"venue": "<venue>",
"price": "<price>",
"quantity": "<quantity>"
},
"name": "build_order_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | ||
| venue | Yes | ||
| quantity | Yes | Signed quantity; positive = buy, negative = sell | |
| timeInForce | No | GTC | |
| expirationAt | No | Required for futures |