Get an instance's document
Serves one document of the instance by its sequence number; any other instance or sequence number is 404. Documents carry no version and no ETag: a document is immutable once staged — its outcome is the only field that moves. Needs algos:read or any algos capability.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
The instance’s id — a positive 32-bit integer the platform minted; the value an algo’s orders carry as algoInstanceId.
A document’s sequence number on its instance: 1 for the document the instance was created with, one more for every accepted write.
Headers
Your own id for the request: 8 to 128 of [A-Za-z0-9._-]. It becomes the request’s id and is echoed on the response. A value off that grammar is replaced with a fresh id, never refused.
Query parameters
A position you hold — an X-Immix-Global-Sequence you read, or a 202’s commandGlobalSequence: this member answers only once it has folded the platform’s stream through it, waiting up to its deadline, then 503 PROJECTION_BEHIND with Retry-After. Within that stream a read is never older than what you have seen; drop your positions after an announced stream cut. A retry stating its 202’s position attaches to or replays that operation while the journal holds its key, never publishing twice. Stated once: one to nineteen digits, at most 9223372036854775807; else 400 MALFORMED_REQUEST.
Response
One document of the instance as submitted — a name its author gave an account or an instrument reads as the id it named, the name beside it as a comment where it fits — with its outcome. Documents carry no version, so no ETag.
Every account the document references, once each, ascending — the accounts the instance may trade.
The write’s Idempotency-Key, as sent.
The document’s sequence number on its instance: 1 for the document the instance was created with, one more for every accepted write.
The engine’s reason where it refused the document; empty otherwise.
The document as authored, comments included — at most 6144 bytes of UTF-8.
The position as a decimal string — the last change this member had applied, orders, balance readings and algo instances included.
Every instrument the document references, once each, ascending — 64-bit ids as decimal strings.
STAGED until the engine answers, then APPLIED or REFUSED; PENDING_APPROVAL is reserved and never served today. The value set is append-only: read an unknown name as UNKNOWN.
The submitter’s remark; empty when none was given.
When it was submitted — epoch nanoseconds as a decimal string.
Who submitted it — a member or an API key.
When the engine’s verdict landed — epoch nanoseconds as a decimal string; null while staged.
Reserved; always null.