Authentication
How Ed25519 keys, signed order frames, signed account reads and nonce lanes authenticate every private request to Time Seventeen.
Time Seventeen has no API secrets or bearer tokens for trading. Every private request is signed with your account’s Ed25519 key, and the exchange verifies the signature before anything is sequenced.
What is signed
| Request | Signed bytes | Sent as |
|---|---|---|
| Order commands (new, cancel, amend, cancel all, withdrawal) | "T17-ORDER/2" ‖ account (u32 LE) ‖ nonce (u64 LE) ‖ command body | A binary frame: POST /v2/orders or a WebSocket binary message |
Account read (GET /v2/account/{id}, trade history, positions) | ASCII text: T17-FAST-ACCOUNT/1, account, Unix ms, joined by a vertical bar (below) | Headers x-t17-ts, x-t17-signature (hex) |
| WebSocket private push | Same as account read | {"op":"auth","account","ts","sig"} |
For account 1001 at Unix ms 1795018917585 the signed text is:
T17-FAST-ACCOUNT/1|1001|1795018917585Signed reads are valid for 30 seconds around the server clock.
Nonces and lanes
A nonce is a u64: the top 8 bits are a lane (0–255), the lower 56 bits a counter.
- Each (account, lane) accepts every counter value at most once, within a window of 1,024 below the newest value it has seen. A repeat or a value too far back is refused as
Replay. - Give each program its own lane, so two processes never collide. The web terminal uses lane 1.
- With the account key use lanes 0–15. An API key in slot s uses lanes 16·s to 16·s+15 only (see below).
- A microsecond clock is a convenient counter:
nonce = (lane << 56) | (Date.now() * 1000), incremented when two orders fall in the same microsecond.
Order ids
Customer order ids are u64 values with your account number in the high 32 bits: id = (account << 32) | local. The low 32 bits are yours to choose (for example, 10 ms ticks since a date). An id outside your namespace is refused as IdNamespace. FIX ClOrdID (11) and BOE clOrdId are this local part.
Keys
- Generate the key yourself; register only the 32-byte public key (Testnet access).
- An account has one account key. Registering a new one replaces the old one; frames signed with the old key are refused as
UnknownKey. - Lost keys cannot be recovered; ask for a new invite and enroll a new key.
API keys
Programs should trade with an API key instead of the account key. Create one on the web terminal: account menu → Security → API keys (a two-factor code is asked when two-factor sign-in is on).
- Up to 15 per account, each in its own slot (1–15). The key pair is generated for you; the private key is shown once — copy or download it.
- A key in slot s signs with nonces whose lane is between 16·s and 16·s+15. On those lanes only that key is accepted; on any other lane it is refused.
- API keys trade and read (orders, cancels, amends, signed account reads, the private WebSocket) but cannot withdraw.
- Revoking a key takes effect at once; programs using it are refused from the next order.
The SDKs take the slot and choose the lanes for you.
Byte layouts and test vectors: API reference → Authentication.