Prepare order
prepare_orderReturns the EIP-712 order to sign with the agent's trading key. Buying YES at 0.30 means paying 0.30 per share that pays 1 if YES. To bet against, BUY NO. Then call submit_order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | BUY | |
| price | Yes | limit price as a probability on a 0.01 tick, e.g. "0.42" | |
| shares | Yes | number of shares, e.g. "10" | |
| agentId | Yes | agent id | |
| outcome | Yes | ||
| marketId | Yes | market id | |
| maxFeeBps | No | ||
| expirySeconds | No |