Trading and fees
Place binary options orders, calculate fees, and handle market-specific restrictions.
Binary options use the same CreateOrder, ModifyOrder and CancelOrder transactions and the same SDK / WASM signer calls as other markets.
Pass the binary options market_id and the following parameters:
price
Integer price ticks: 51 = 0.51 USDC. Must be > 0 and < settlement_cap (100)
baseAmount
Integer shares × 10^size_decimals: 1000000 = 100.0000 shares
isAsk
0 buy = Up, 1 sell = Down
orderType
0 Limit or 1 Market only
timeInForce
0 IOC · 1 Good-till-time · 2 Post-only
reduceOnly
Must be 0
triggerPrice
Must be 0 (no stop / take-profit / TWAP)
Place an order
Python
Use an initialized SignerClient from Signing transactions. Set MARKET_ID to a current binary options market ID from Discover markets.
tx, resp, err = await client.create_order(
market_index=MARKET_ID, # market_id from /api/v1/events
client_order_index=1234,
base_amount=1000000, # 100.0000 shares
price=51, # 0.51 USDC per Up share
is_ask=False, # buy = Up
order_type=client.ORDER_TYPE_LIMIT,
time_in_force=client.ORDER_TIME_IN_FORCE_GOOD_TILL_TIME,
reduce_only=False,
order_expiry=client.DEFAULT_28_DAY_ORDER_EXPIRY,
)TypeScript (WASM)
This snippet uses the signer and submission helpers from the TypeScript quickstart.
Order rules
Create and modify requests must pass the same trading-window, frozen-book and price-cap checks:
start_timestamp ≤ block time ≤ end_timestamp,is_frozen = false, and0 < price < settlement_cap. Astart_timestampof0means trading can start from listing. Cancellation is allowed outside the trading window.For resting orders, buy cost is
P × sizeand sell cost is(1 − P) × size, wherePis the Up price in USDC andsizeis shares. The USDC reserve is calculated per market asmax(Σ buy costs − Down shares held × 1.00, Σ sell costs − Up shares held × 1.00, 0). Buy and sell requirements are not added together; existing shares offset the opposite side. IOC and market orders are funded at fill time.The
min_quote_amountcheck usesP × sizefor both buys and sells, even though opening a Down position costs(1 − P) × size. Read both minimums from events. For example, mainnet markets checked on October 19, 2026 havemin_base_amount = 5shares andmin_quote_amount = 0.000001USDC. A 5-share sell atP = 0.02has an Up notional of 0.10 USDC and passes that quote minimum; its Down cost is 4.90 USDC. In this configuration the 5-share base minimum is the binding minimum. Also respectorder_quote_limit.A market order's
priceis the worst acceptable Up price, as on other markets.Public pool and insurance fund accounts cannot trade binary options.
Errors
21618
invalid order type for market
Stop, take-profit, TWAP or reduceOnly = 1
21631
market is outside its trading window
Create or modify request before start_timestamp or after end_timestamp
21632
order price must be below the full payout
Create or modify request with price ≥ settlement_cap
21638
order book is frozen
Create or modify request while the operator has frozen the market
21752
pools are not allowed to trade in binary options markets
Public pool / insurance fund account
Orders and trades
accountActiveOrders, accountInactiveOrders and trades accept market_type=bo (all by default) and work with a binary options market_id. Trades carry market_kind: "bo". Settlement records use type: "market-settlement"; see Positions and settlement.
recentTrades returns an empty list once a binary options market has settled. Use trades with market_id for historical fills and settlement records. exchangeStats includes binary options symbols such as ETH-UPDOWN-…; filter its market entries by symbol when separating market types.
Fees
Each market has a maximum taker_fee and maker_fee (Up/Down series: taker 1%, maker 0%). Both sides pay in USDC on the trade notional, scaled by the trade price and by the account's binary options fee multiplier:
Use decimal rates in the formula: marketFee = 0.01 for a 1% market fee. P is the Up price in USDC (0.51, not 51 price ticks).
size × Pis the Up-price notional in USDC. Opening Down costs(1 − P) × size; resting-order reserves follow the per-market rule above. Use the same fee formula for both sides.P × (1 − P)makes fees smaller as the outcome becomes certain: highest atP = 0.50, near zero at0.01and0.99.bo_fee_rateis the account's multiplier, the product of its binary options volume tier and LIT staking tier,1by default.
Binary options fees are separate from the perps/spot account tiers. feeTiers with filter=bo returns the bo_tiers (by trailing volume) and staking_tiers tables; accountLimits returns the account's bo_user_tier_name and bo_fee_rate. Read the current tables from the endpoint instead of hard-coding volume thresholds or staking discounts.
Fees in trade responses
In trade JSON, taker_fee / maker_fee are the effective rate in fee ticks (1e6 = 100%): with bo_fee_rate = 1, a 1% market taker fee on a fill at 0.51 shows as taker_fee: 4900 (10000 × (1 − 0.51)), i.e. 51.00 × 0.49% = 0.2499 USDC on 100 shares.
Last updated
Was this helpful?