Time SeventeenDocs

Conventions

Units, prices in ticks, contract quantities, order and market ids, integer encodings and timestamps used across all Time Seventeen APIs.

Money and prices

QuantityUnitExample
Price (gateway, FIX tags in ticks, BOE)Tick = $0.000001250000 = $0.25
Cash, reserved, feesTick = $0.00000110000000000 = $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 testnet0.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

IdFormat
Marketu32, e.g. 1
Accountu32
Orderu64 = account × 2^32 + local
Withdrawalu64, same namespace rule as orders
Trade / public sequenceper-market seq, u64
Journal sequenceseq 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.