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 blockAll 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),storeIdand flags, or LogonReject (102:1bad credentials,2session 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.flagsmarks them.
Client messages
| Message | Id | Purpose |
|---|---|---|
| NewOrder | 10 | clOrdId (u32), market, outcome, side, kind, TIF, price, qty, display, flags |
| Cancel | 11 | clOrdId |
| Replace | 12 | clOrdId, new price, new qty |
| MassCancel | 13 | One market or all |
Reports
| Message | Id | When |
|---|---|---|
| Accepted | 110 | Order admitted: qty, price (own outcome), side, outcome |
| Booked | 116 | Joined the book; carries the public orderRef (a new ref after any loss of priority) |
| Fill | 112 | Trade: own-outcome price, qty, leavesQty, cumQty, tradeId (= public trade seq) |
| Replaced | 115 | Amend applied; priorityKept says whether time priority was kept |
| Triggered | 114 | Stop order triggered |
| Done | 113 | Left the book (filled, cancelled, IOC remainder, …) |
| Rejected | 111 | Refused; 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
storeIdand the next LogonAck carriesFLAG_RESET: re-read state over REST and continue.
Schema
The schema file t17-boe.xml is provided together with your session credentials.