The live OpenAPI schema is always in sync with the running service. Fetch it directly at
https://exchange.jamesxu.dev/api-doc/openapi.json to generate client code, run contract tests, or import into any OpenAPI-compatible toolchain.Base URL
OpenAPI schema and Swagger UI
| Resource | URL |
|---|---|
| OpenAPI JSON | https://exchange.jamesxu.dev/api-doc/openapi.json |
| Swagger UI | https://exchange.jamesxu.dev/docs |
API guides
The guides below document the same surface in human-readable form, with explanations, behavioral notes, and concrete examples.REST API
All REST endpoints: health, markets, account reads, order entry, and admin control.
WebSocket API
Socket protocol for authentication, L3 market data, trading, and user events.
Authentication
Trader
x-api-key headers and admin bearer tokens.Error codes
Structured error responses and rejection codes for REST and WebSocket.