Documentation

Athanor, for the systems that work with it.

The tenant API for a dealer's or a custodian's own software: how a workload proves who it is without a secret, what it can read and do, what it is told as orders move. And Alembic, the data graph the product and the API are both built on, for the engineers working in the app.

For partnersAPI
For engineersAlembic
The graph
  1. The builder, then the graphTwo phases, because declarations reference each other in both directions: declare against a builder, build the graph once from the roots.
  2. Declare a nodeA node is a record: identified, batched over one service, cached once per entity. Four things are load-bearing, and one row property makes tenant isolation possible.
  3. Objects, fields and the Query rootAn object is fields with no identity and derives from its parent. Seven field kinds, field arguments, nullable edges and null propagation.
  4. Fragments and viewsA fragment is a declared field slice whose return type is the mask. A view is a fragment that renders itself; match is the inline fragment per union variant.
  5. The entity cacheOne use cache function for the whole graph, keyed by typename and id, with a bucketed clock so a cached read is deterministic.
  6. Queriesquery binds a selector to the Query root and decodes its input at the boundary. Nesting is where the page's boundaries are; execute hands back each part on its own, never a promise for the whole.
  7. MutationsAn ordinary Effect function with a declared input and a payload, registered under its name, recording the writes it made so the cache tags derive from the graph.
  8. Wiring: layers and the runtimeThe graph reconciles its own requirements once, off the request path; request-scoped services come per execute; there is no codegen.
  9. TestingA test builds the graph the way the app does and hands it a runtime and a request, so it exercises the wiring that ships.
At a glance
Sandbox API
https://sandbox.athanor.trade/api/graphql
Live API
https://app.athanor.trade/api/graphql
Token endpoint
https://auth.athanor.trade/api/oauth2/token
Grants
token exchange (RFC 8693) · client_credentials with private_key_jwt
Secrets
none issued
SDK
npm install @athanor-trade/sdk
Webhooks
Standard Webhooks, v2a (Ed25519)
Budgets
1,500 requests · 250,000 points, per client per hour