Skip to main content

Module mids

Module mids 

Source
Expand description

allMids: every coin’s mid on one perp dex, the same map from /info and from the socket.

Structs§

Mids
Every coin’s mid on one dex, in the venue’s order. The main dex’s also carries spot pairs (@107, PURR/USDC) and outcome sides (#14730). Where a book is empty the venue prints its last trade instead, and a mid can sit between two ticks.

Functions§

all_mids
all_mids_request
{"type":"allMids","dex"?}: the main dex, spot and outcomes with it, unless a HIP-3 dex is named.