Trading
How Time Seventeen orders work — YES and NO in one book, limit and market orders, time in force, reservations, sizing in dollars and reading results.
YES and NO in one book
Each market has one order book in YES prices. An order names an outcome (YES or NO), a side (buy or sell) and a price in its own outcome:
| You send | Rests on the YES book as |
|---|---|
| Buy YES at p | Bid at p |
| Sell YES at p | Ask at p |
| Buy NO at q | Ask at 1 − q |
| Sell NO at q | Bid at 1 − q |
A YES buyer meeting a NO buyer creates a new YES/NO pair (each pays their price, together $1.00). A YES seller meeting a NO seller retires a pair and both receive cash.
Reservations
- Buy: price × quantity is reserved from your cash when the order is accepted (plus the maximum fee, 0 on testnet). It is released as the order fills or is cancelled.
- Sell: the contracts are reserved. Selling more than you hold is refused (
InsufficientPosition); to bet against an outcome, buy the other outcome instead.
Order types
| Type | How to send it | Behaviour |
|---|---|---|
| Limit, GTC | Limit + gtc | Trades what it can now, rests the rest until filled or cancelled |
| Limit, IOC | Limit + ioc | Trades what it can now, cancels the rest |
| Limit, FOK | Limit + fok | Trades the whole quantity now or nothing |
| Post-only | Limit + post-only flag | Refused (WouldCrossPostOnly) if it would trade on arrival |
| Reduce-only | Limit + reduce-only flag | Can only reduce your position |
| Market | Limit at the touch ± your slippage, ioc | Sweeps the book up to your slippage limit; the rest is cancelled |
| Market, keep remainder | Limit at the last level within slippage, gtc | Sweeps the same levels; the rest rests at that price |
The engine also has stop, stop-limit, trailing-stop, pegged and iceberg orders. They are available over FIX today and will be added to the REST encoding.
Sizing in dollars
The exchange takes whole contracts. To spend a dollar amount B:
- Limit: contracts = ⌊B / limit price⌋.
- Market: walk the opposite side from the touch, taking whole contracts while the money lasts, no further than your slippage limit. The web terminal shows the result (”≈ 1,000 contracts”) before you send.
Remember that a buy reserves its limit price × quantity, so cap the quantity at ⌊available cash / limit price⌋.
Reading the result
A sequenced command returns its events in order:
| Event | Meaning |
|---|---|
Accepted | Passed admission (balance, terms, limits). |
Fill | A trade: YES price, no_price, qty, both legs, quantity left and filled on each order. |
Book | The remainder joined the book. |
Done | The order left the book: Filled, Cancelled, IocRemainder, SelfTrade, Expired, MarketClosed. |
Rejected | Refused at admission, with a reason (see Errors). |
Fills of your resting orders caused by other participants are pushed on the WebSocket ({"type":"private"}), FIX and BOE.