Skip to main content

Module context

Module context 

Source
Expand description

Asset contexts: what a market is doing now. PerpCtx for a perp on any dex, SpotCtx for a spot pair or an outcome side, each the same shape from /info and from the socket.

Structs§

PerpCtx
What a perp is doing now. The venue writes midPx, premium and impactPxs as null on a market with no book.
SpotCtx
What a spot pair or an outcome side (#<encoding>) is doing now. An outcome side’s open interest is its circulating supply.