API v0.1 · pre-release

Endpoints

Guard is delivered over WebSocket and HTTPS. Both return the same signed messages.

The base address and your access details are sent to each pilot partner with the pilot terms. Paths below are relative to that address.

Summary

WebSocket/v1/stream
Every new message as a JSON text frame. The latest message for each asset is sent on connection.
GET/v1/price/{asset}
The latest message for one asset.
GET/v1/signer
The signer address and signature scheme.
GET/v1/health
Uptime and, for each asset, the age of the last message and its state.

We recommend the WebSocket stream for trading systems and the HTTPS endpoints for reconciliation and monitoring.

WebSocket stream

Connect

wss://<base>/v1/stream

Each text frame is one message (see Message format). On connection you receive the latest message for every asset at once, so you never start without a price. After that, one message per asset every 500 ms.

If the connection drops, reconnect with a short back-off (for example 0.5, 1, 2, 4 seconds, then every 5 seconds). The latest messages arrive on reconnection; seq tells you whether you missed any.

Latest price

Request

GET /v1/price/XAU

Returns the latest signed message for the asset, in the same format as the stream. Asset codes are not case-sensitive.

Signer

Request

GET /v1/signer

Returns the address that signs Guard’s messages and the signature scheme. Use it to confirm the address we give you, then pin that address in your code. Do not fetch the signer at run time and trust it automatically.

Health

Request

GET /v1/health

Returns Guard’s uptime and, for each asset, the age of the last message and its state. Suitable for your monitoring and alerting.