Conventions
Units, prices in ticks, contract quantities, order and market ids, integer encodings and timestamps used across all Time Seventeen APIs.
Money and prices
| Quantity | Unit | Example |
|---|---|---|
| Price (gateway, FIX tags in ticks, BOE) | Tick = $0.000001 | 250000 = $0.25 |
| Cash, reserved, fees | Tick = $0.000001 | 10000000000 = $10,000 |
| Face (payout) | 1,000,000 ticks = $1.00 | — |
Site endpoints (/api/markets/…) | Dollars (decimal) | 0.25 |
| FIX prices (44, 99, 6, 31) | Decimal dollars with 6 places on testnet | 0.250000 |
A NO price is 1,000,000 − YES price (in ticks). Order prices are always in the order’s own outcome; book prices are always YES.
Quantities
Contracts are whole numbers (qty_step = 1 on testnet). There are no fractional contracts.
Ids
| Id | Format |
|---|---|
| Market | u32, e.g. 1 |
| Account | u32 |
| Order | u64 = account × 2^32 + local |
| Withdrawal | u64, same namespace rule as orders |
| Trade / public sequence | per-market seq, u64 |
| Journal sequence | seq of an applied command, u64 |
JSON numbers stay below 2^53 for every value a client sends or receives on testnet.
Binary integers
Order frames and command bodies use little-endian unsigned integers (i32 for the peg offset). BOE uses SBE little-endian encoding.
Time
Timestamps are Unix milliseconds (x-t17-ts, REST times) or nanoseconds (BOE tsNs). FIX uses UTC YYYYMMDD-HH:MM:SS.sss.