API v0.1 · pre-release
Market states
Every message carries the state of the underlying market. It follows the official calendar of that market, including its daily break and public holidays.
The four states
- OPEN
- The underlying market is trading.
- Suggested handlingNormal operation.
- CLOSED
- Weekend, daily break or holiday. Guard continues to publish a price from markets that remain open.
- Suggested handlingApply the band to marks and liquidations.
- REOPENING
- The first 15 minutes after the underlying market reopens.
- Suggested handlingOpen with a call auction rather than continuous trading.
- DEGRADED
- Too few healthy independent sources. The last price is held and the band widens.
- Suggested handlingDo not liquidate on this price alone.
A typical week
For gold, a week moves through OPEN on weekdays, a short CLOSED period at each daily break, CLOSED from Friday evening to Sunday evening (UTC), and REOPENING for 15 minutes after each reopening. The underlying gold market is closed approximately 32% of an ordinary week; US and Korean equities approximately 81%.
Signals by state
guard.auctionistrueon the first message of a reopening, and for as long as a pause lasts. Act on the change ofstatetoREOPENINGas well, so that a missed message does not mean a missed auction.guard.band_breachandguard.pausecan occur in any state, most often while the underlying market is closed.- In
DEGRADED, act conservatively whatever the signals say.
Calendars
Guard maintains the trading calendars of each underlying market, including holidays and early closes. If you list an asset whose underlying market has its own calendar, tell us and we will confirm how it is handled before the pilot.