place_order
Place an order against a betslip. THIS SPENDS REAL MONEY. Requires an existing betslip from create_betslip. The price is snapped onto the tick schedule (down for back, up for lay) and the snapped value is what the order runs with. Always pass request_uuid: it makes the call idempotent, so a retry after a timeout cannot create a second order, and get_order can then find it by that uuid. Confirm the stake with the user before calling this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | Desired decimal price. | |
| stake | Yes | Stake amount in USDT. | |
| duration | No | Seconds the order stays open (default 15). | |
| user_data | No | Opaque tag stored with the order (max 512 chars). | |
| betslip_id | Yes | Betslip to order against. | |
| keep_open_ir | No | Keep the order open when the event goes in-play. | |
| request_uuid | No | Idempotency key. Strongly recommended. | |
| exchange_mode | No | 'make_and_take' (default), 'take_only' or 'dark'. | |
| accept_better_price | No | Accept a better price (default true). | |
| accept_partial_fill | No | Accept a partial fill (default true). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | Yes | ||
| warning | No | ||
| price_snapped | No |