Time SeventeenDocs

Binary order entry (BOE)

Time Seventeen BOE v2 — SBE-encoded order entry over TLS 1.3 with sequenced, recoverable reports and drop-copy sessions for the lowest latency.

BOE is a compact binary protocol for latency-sensitive order entry. Messages are SBE (Simple Binary Encoding), schema id 17, version 2, so you can generate encoders and decoders with the official SBE tool.

Framing

SOFH (length u32, encoding 0xEB50) | SBE message header | fixed-length block

All integers little-endian. Prices are ticks (u32, own outcome), quantities u64 contracts.

Session

  • TLS 1.3 from an allow-listed source IP; request a session as in Testnet access.
  • Logon (id 1) with session name and password → LogonAck (101) with epoch (core term), storeId and flags, or LogonReject (102: 1 bad credentials, 2 session already connected).
  • Heartbeat (2) both ways; Logout (3).
  • Order-entry sessions are bound to one account. Drop-copy sessions receive reports for a list of accounts (empty = all) and cannot send orders (NOT_PERMITTED); LogonAck.flags marks them.

Client messages

MessageIdPurpose
NewOrder10clOrdId (u32), market, outcome, side, kind, TIF, price, qty, display, flags
Cancel11clOrdId
Replace12clOrdId, new price, new qty
MassCancel13One market or all

Reports

MessageIdWhen
Accepted110Order admitted: qty, price (own outcome), side, outcome
Booked116Joined the book; carries the public orderRef (a new ref after any loss of priority)
Fill112Trade: own-outcome price, qty, leavesQty, cumQty, tradeId (= public trade seq)
Replaced115Amend applied; priorityKept says whether time priority was kept
Triggered114Stop order triggered
Done113Left the book (filled, cancelled, IOC remainder, …)
Rejected111Refused; request names which instruction (an unchanged original order stays live)

tsNs on every report is the core commit time (Unix ns), identical on every gateway.

Recovery

  • Reports are stored per session with sequence numbers that are never reused. After a reconnect, the gateway replays from your nextExpectedSeq.
  • After a crash on the primary, missing reports are rebuilt deterministically from the journal, with the same numbers and content.
  • If reports cannot be rebuilt (failover across nodes, gateway change), the session gets a new storeId and the next LogonAck carries FLAG_RESET: re-read state over REST and continue.

Schema

The schema file t17-boe.xml is provided together with your session credentials.