DocsKernel ↗Trade
Prices

Prices

A market has two prices.

  • Index: the price from its feed. Margin, liquidation and funding are measured against it.
  • Mark: the median of three values: the index, the book's mid, and the index plus a smoothed difference between the book's mid and the index. It is kept within 5% of the index.

Feeds

A listed market reads a set of feeds posted by independent publishers and takes their median; it needs a majority of them to have a fresh price. A market opened by anyone reads one feed, posted by its creator.

Guards

GuardRule
FreshnessA price older than the market allows (120 seconds for listed markets) stops new orders. Closing, cancelling and withdrawing keep working.
ConfidenceA price whose stated uncertainty is wider than 1% of it is not used.
Jump, single feedA move of more than 5% in one post is held, and new risk waits, until a later post confirms it.
Two sourcesWhere a market has a second source and the two differ by more than 1%, new risk stops until they are within 0.5% again.

When the underlying market is closed

A market whose asset does not trade at that hour can be put in a closed session. Its price then comes from its own book, kept inside a band around the last outside price. Each time the price reaches the edge the band may be re-centred, a limited number of times.