wenrange — API reference
Three API surfaces document everything you can call from outside the system: the orchestrator's quote-broker REST endpoints, the read-only API service, the solver WebSocket protocol, and the on-chain contract interfaces. Specs are the source of truth and live next to the code they describe.
Surfaces
Orchestrator
Quote a buy or buyback, get a signed commitment, read the current spot price. The trading surface.
API service
Read-only views of indexed chain state: positions, settlement prices, and solver liquidity.
Solver protocol
EIP-191 handshake plus four quote commands. The wire protocol every solver implements.
On-chain
The OptionsMarket and PythSettlementOracle contract surfaces.
Where to go for context
For the model behind these interfaces — what positions are, how settlement works, what the trust assumptions are — see the Protocol reference. For audience-specific guides see For traders, For integrators, and For solvers.
Specs as source of truth
These pages are generated from machine-readable specifications checked in next to the code they describe:
| Surface | Spec |
|---|---|
| Orchestrator REST | backend/orchestrator/openapi.yaml |
| API service REST | backend/api/openapi.yaml |
| Solver WebSocket | backend/orchestrator/asyncapi.yaml |
| On-chain ABI | contracts/abis/ (per release) |