Skip to navigation

Overview

The REST API for an organisation on Immix: its users and API keys, venue credentials and accounts, the balances those accounts hold at their venues, addresses, portfolios and policies, the orders it places, the positions its fills build and the risk the platform values them at, and the algo instances it runs.

Base URL https://api.immix.xyz/v1 for Reference data, whose endpoints you can try from their pages with your bearer token. No public environment serves the rest of this API yet.

  • Authentication — a bearer token from your identity provider, or an API key your organisation issued (immix_<keyId>_<secret>). Your organisation and your principal — the member or the key, the actor on every write and row — are taken from the bearer: no request carries an orgId or an actor.
  • Reads serve the platform’s current state: every row carries the position it was read at (X-Immix-Global-Sequence) and an entity its version (ETag).
  • Writes take an Idempotency-Key; entity writes require If-Match — the ETag the read minted, or * to overwrite on purpose; a write not answered within the deadline returns 202 and is polled on /operations/{key}.
  • Money is a decimal string, in and out; ids are opaque integers, unique per resource.

The API guide explains each of these in full — authentication and admission, maker-checker, idempotency and preconditions, money and sentinels, errors — and the changelog lists every change to this document.

Resources

Organisation

ResourceDescription
UsersMembers of the organisation — people, who join by invitation — your own row, and the capability presets a member’s grants can start from.
API keysThe organisation’s machine principals: a key is issued with a grant (its secret served once, on that answer), restated, rotated (a fresh secret, served once), disabled, enabled and deleted by an api-keys:manage holder; it authenticates with Authorization: Bearer immix_<keyId>_<secret> and acts under its own id — the actor of kind API_KEY on every row it writes.
AccountsVenue accounts discovered through a credential: named and assigned a portfolio, approved, disabled, deleted.
Venue keysWhat a key must be at each venue — its legs with form hints, the roles the venue’s connectors fill, what to grant at the venue — with, for this deployment, which venues it serves and the egress addresses to allowlist; and the keys beneath an account: added with it or later, amended, rotated, enabled and deleted as proposals on the account — POST /accounts/{id}/approve concludes them, /withdraw returns them (0.65.0) — disabled at once, deleted with the account. The key material is taken once and never served.
PortfoliosHow the organisation groups its accounts.
Account addressesDeposit and withdrawal addresses declared on an account and verified by a second user.
ApprovalsThe organisation’s proposals across the families — awaiting approval, or returned with a reason — each with what changed and who may approve.
Approval rulesHow many approvals a proposal in each family needs — your organisation’s own rules, one per family: none by default, so a permitted member’s change takes effect at once; raising a count is the organisation’s own act, and lowering one is approved by a second administrator.

Risk

ResourceDescription
Trading policiesPer-instrument and organisation-wide order limits, and the trading halt.
Asset policiesPer-asset limits: ticket size, approval threshold, reconciliation tolerance.
Chain policiesPer-chain transfer limits.
RiskEach account’s risk as the platform values it: its latest risk record — net liquidation value, the PnL lines in USD, the eight leverage figures and the data quality — its exposure in each asset, the risk limits it is held to, and its posture: the record judged against those limits.

Trading

ResourceDescription
OrdersSubmit, read and cancel orders.
ExecutionsFills, joined to their order by orderId.
PositionsThe derivative positions each account’s fills have built, one row per account and instrument — the platform’s own derivation from the executions, never a venue’s report.
Account balancesWhat each account holds at its venue, as the venue last stated it: the latest reading per account and asset, published by the platform’s account connectors — never the platform’s own books.
AlgosThe organisation’s algo instances: created with a config document, started and stopped, re-configured while they run, halted all at once; the documents’ history, the orders an instance placed, and the catalog of loaded algo versions.

Reference data

ResourceDescription
VenuesThe trading venues IMMIX connects to.
InstrumentsThe markets IMMIX serves, on every venue: search, filters, facets and statistics.
AssetsThe coins, tokens, fiat currencies and indexes that instruments are made of.

Operations

The outcome of a write that answered 202.