Preview Order (Dry-Run Simulation)
arena_preview_orderRun a stateless, zero-mutation order simulation via POST /order/preview (never mutates WAL, L3 book, or balances; supports account_id=0 anonymous zero-key preview as well as authenticated Eigen-SPAN IMR/MMR/free-margin checks). Always call this to verify fill price, net fee/rebate, and margin impact before calling arena_place_order to execute live. Provide mutually exclusive market (symbol vs market_id), price (price_usd, price_ticks, or SpreadBook differential_usd), and size (amount_base vs qty_lots) fields.
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": {
"side": "<side>"
},
"name": "arena_preview_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stp | No | Simulated Self-Trade Prevention mode against same-account resting orders. | cancel_resting |
| tif | No | Simulated time-in-force policy: 'gtc', 'ioc', 'fok', or 'post_only'. | gtc |
| side | Yes | Simulated order direction: 'buy'/'bid' or 'sell'/'ask'. | |
| symbol | No | Unified or native market symbol (e.g. 'BTC/USD:USD', 'BTC/USD', or 'BTC-USD-PERP'); mutually exclusive with market_id. | |
| mark_peg | No | When true, simulates an oracle/index mark-price pegged order plus peg_offset_ticks. | |
| qty_lots | No | Simulated order size in fixed-point integer lots (1 lot = 1e-4 base, minimum 1); mutually exclusive with amount_base. | |
| is_market | No | When true, simulates an immediate market order sweep (defaults tif to 'ioc'). | |
| market_id | No | Numeric Arena market identifier (>= 1); mutually exclusive with symbol. | |
| price_usd | No | Simulated limit price in exact USD decimal string or number (e.g. '50000.00', multiple of $0.01); mutually exclusive with price_ticks and differential_usd. | |
| account_id | No | Account ID for simulation (0 = anonymous zero-key preview without credentials; >= 1 = simulate against account's live Eigen-SPAN portfolio; defaults to session account or 0 when unauthenticated). | |
| client_tag | No | Optional unsigned strategy/OCO client tag (0 = untagged). | |
| oco_linked | No | When true, simulates OCO bracket validation alongside client_tag. | |
| amount_base | No | Simulated order size in exact base units (e.g. '0.1000', multiple of 1e-4); mutually exclusive with qty_lots. | |
| margin_spot | No | When true on a Spot market, simulates cross-margined Spot execution under Eigen-SPAN. | |
| price_ticks | No | Simulated limit price in fixed-point integer ticks (1 tick = $0.01; 0 allowed for market/pegged orders); mutually exclusive with price_usd and differential_usd. | |
| primary_peg | No | When true, simulates a primary same-side BBO pegged order plus peg_offset_ticks. | |
| reduce_only | No | When true, simulates a strict position-reducing order. | |
| midpoint_peg | No | When true, simulates a BBO midpoint pegged order plus peg_offset_ticks. | |
| min_qty_lots | No | Minimum immediate fill quantity in integer lots (1 lot = 1e-4 base, 0 = no minimum). | |
| trailing_peg | No | When true, simulates a one-way ratcheting trailing pegged order. | |
| dark_midpoint | No | When true, simulates a non-displayed dark-midpoint order. | |
| auto_flip_ticks | No | Simulated passive counter-order flip distance in ticks (0..500, 1 tick = $0.01, 0 = disabled). | |
| auto_skew_ticks | No | Simulated inventory-skew step in integer ticks (0..500, 1 tick = $0.01, 0 = disabled). | |
| post_only_slide | No | When true, simulates passive 1-tick BBO sliding if the order would cross resting liquidity. | |
| differential_usd | No | Signed USD spread differential relative to $10,000.00 par (e.g. '-5.25') for SpreadBook markets only; mutually exclusive with price_usd and price_ticks. | |
| display_qty_lots | No | Simulated visible iceberg clip size in integer lots (1 lot = 1e-4 base, 0 = full size displayed). | |
| jit_elastic_mult | No | Simulated elastic liquidity / dynamic iceberg reload multiplier (0..50, 0 or 1 = standard). | |
| peg_offset_ticks | No | Signed tick offset (-500..500, 1 tick = $0.01) applied to pegged reference price. | |
| priority_fee_ppm | No | Simulated priority fee bid in parts-per-million of notional (0..50000 ppm, 0 = none). | |
| max_lifetime_wal_seqs | No | Simulated Good-Til-Sequence auto-expiry lifetime in WAL sequences (0..65535, 0 = none). | |
| stp_decrement_and_cancel | No | When true, simulates decrement-and-cancel self-trade prevention. |