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.
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 |