jmwalletd.routers.obwatch
jmwalletd.routers.obwatch
Orderbook proxy endpoints.
Proxies JAM's /obwatch/ requests to the orderbook_watcher HTTP server.
The orderbook_watcher runs independently on its own port (default 8000) and
provides the live orderbook data from directory servers.
Set OBWATCH_URL to override the connect-to URL (e.g. in Docker where the
watcher runs in a separate container).
Attributes
router = APIRouter()
module-attribute
Classes
Functions:
get_orderbook(state: DaemonState = Depends(get_daemon_state)) -> JSONResponse
async
Proxy orderbook data from the orderbook_watcher service.
Source code in jmwalletd/src/jmwalletd/routers/obwatch.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | |
refresh_orderbook_get(state: DaemonState = Depends(get_daemon_state)) -> JSONResponse
async
GET compatibility endpoint for orderbook refresh.
Source code in jmwalletd/src/jmwalletd/routers/obwatch.py
106 107 108 109 110 111 | |
refresh_orderbook_post(state: DaemonState = Depends(get_daemon_state)) -> JSONResponse
async
POST compatibility endpoint for JAM frontend refresh calls.
Source code in jmwalletd/src/jmwalletd/routers/obwatch.py
114 115 116 117 118 119 | |