Skip to navigation

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

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

idintegerRequired

The instance’s id — a positive 32-bit integer the platform minted; the value an algo’s orders carry as algoInstanceId.

seqintegerRequired

A document’s sequence number on its instance: 1 for the document the instance was created with, one more for every accepted write.

Headers

X-Request-IdstringOptional

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

minGlobalSequencestringOptionalformat: "^[0-9]{1,19}$"

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.

accountIdslist of integers

Every account the document references, once each, ascending — the accounts the instance may trade.

commandKeystring

The write’s Idempotency-Key, as sent.

configSeqinteger

The document’s sequence number on its instance: 1 for the document the instance was created with, one more for every accepted write.

detailstring

The engine’s reason where it refused the document; empty otherwise.

documentstring

The document as authored, comments included — at most 6144 bytes of UTF-8.

globalSequencestringformat: "^[0-9]+$"

The position as a decimal string — the last change this member had applied, orders, balance readings and algo instances included.

instanceIdinteger
The instance the document belongs to.
instrumentIdslist of strings

Every instrument the document references, once each, ascending — 64-bit ids as decimal strings.

orgIdinteger
The organisation that owns the instance.
outcomeenum

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.

Allowed values:
remarkstring

The submitter’s remark; empty when none was given.

submittedAtNsstringformat: "^-?[0-9]+$"

When it was submitted — epoch nanoseconds as a decimal string.

actorobjectOptional

Who submitted it — a member or an API key.

outcomeAtNsstring or nullOptionalformat: "^-?[0-9]+$"

When the engine’s verdict landed — epoch nanoseconds as a decimal string; null while staged.

pendingByUserIdinteger or nullOptional

Reserved; always null.

Errors

400
Get Instance Config Algos Request Bad Request Error
401
Get Instance Config Algos Request Unauthorized Error
403
Get Instance Config Algos Request Forbidden Error
404
Get Instance Config Algos Request Not Found Error
503
Get Instance Config Algos Request Service Unavailable Error