API v0.1 · pre-release
Message format
Each message is a JSON object for one asset. The same signed message is delivered on the stream and by the HTTPS endpoints.
Example
Guard’s live gold message at 23:00:00 UTC on Sunday 22 November 2026, the second the underlying market reopened, reproduced in full.
{
"asset": "XAU",
"t": 1795388400000,
"seq": 378581,
"price": 3557.36,
"lo": 3550.88,
"hi": 3563.85,
"state": "REOPENING",
"sources_used": 9,
"sources_total": 9,
"since_reference_s": 0.0,
"guard": {
"band_breach": false,
"pause": false,
"auction": true
},
"sig": "0x676d70dceb30a1cb511044ba0b113249d310f6a291a0f1fe1953890f0d9d274f3d5f2124183309597cfa3e37f2887a4efcc2156b3aca5c22f54d3a4bb17012251c"
}
Fields
assetstring- Asset code, for example
XAUfor gold. tinteger- Publication time in milliseconds since the Unix epoch (UTC).
seqinteger- Increases by one with every message Guard publishes, across all assets. On the stream, a gap means messages were missed. It keeps increasing across restarts of Guard, where it jumps forward.
pricenumber- Guard’s reference price, in US dollars (per troy ounce for gold).
lo,hinumber- The confidence band: the range in which the underlying market’s price is expected to lie. It widens at weekends, when sources disagree and when the feed is degraded.
statestring- State of the underlying market:
OPEN,CLOSED,REOPENINGorDEGRADED. See Market states. sources_used,sources_totalinteger- Healthy independent sources contributing to the price, and sources connected.
since_reference_snumber- Seconds since the last price from the underlying market; 0 while it is open.
guard.band_breachboolean- Your venue’s price is outside the band.
guard.pauseboolean- Recommendation: stop continuous trading and run a call auction.
guard.auctionboolean- Recommendation: run a call auction now. It is
truefor as long as a pause lasts, and on the first message after the underlying market reopens. sigstring- Signature over the rest of the message. See Verifying signatures.
Numbers and precision
Prices are decimal numbers in the asset’s quote currency. Parse them as decimals if your system needs exact arithmetic. When you verify a signature, use the message exactly as received: do not reformat numbers before canonicalising.
Compatibility
New fields may be added to messages. Ignore fields you do not recognise; never reject a message because of an unknown field. Changes that remove or rename a field are announced in the changelog in advance and come with a new API version.