Documentation Index
Fetch the complete documentation index at: https://docs.numofx.com/llms.txt
Use this file to discover all available pages before exploring further.
Execution service
execution-service is a thin HTTP wrapper around the trusted executor.
It exposes:
GET /healthzPOST /POST /execute
marketasset_addressmodule_addressmaker_order_idtaker_order_idactionssignaturesorder_data
Execution contracts
execution-contracts contains the Matching and action-verification contracts used by the backend.
These contracts are responsible for:
- verifying signed user actions
- constraining which modules can execute those actions
- forwarding matched transfers into the account system
Risk core
risk-core is the account and margin layer underneath the orderbook.
Important concepts:
SubAccountsstores{asset, subId, balance}state per account- managers validate final account state and can handle settlement and liquidation
- assets define transfer semantics and settlement hooks
CashAssetis the main cash accounting railPerpAssettracks unsettled PnL, funding, and price state for perpetual-style instruments
Why this split exists
This architecture keeps concerns separate:markets-servicehandles order intake and market dataexecution-servicehandles verified transaction submissionexecution-contractshandles onchain match executionrisk-corehandles solvency, settlement, and liquidation

