create_market_order
Automatically match a buy or sell order at the best available price in an Alpha Arcade prediction market. Specify price, quantity, and slippage tolerance in microunits.
Instructions
Place a market order with auto-matching against best available counterparty orders. Price, quantity, and slippage in microunits (500000 = $0.50, 1000000 = 1 share, 50000 = $0.05 slippage). Locks ~0.957 ALGO collateral. Returns escrowAppId, matched quantity, and actual fill price.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | Price in microunits (e.g. 500000 = $0.50) | |
| isBuying | Yes | true = buy order, false = sell order | |
| position | Yes | 1 = Yes, 0 = No | |
| quantity | Yes | Quantity in microunits (e.g. 1000000 = 1 share) | |
| slippage | Yes | Slippage tolerance in microunits (e.g. 50000 = $0.05) | |
| marketAppId | Yes | The market app ID |