Messages
{
"op": "sub",
"id": 5,
"t": "allMids@f@500",
"feedEpoch": 0
}Exchange WebSocket methods
All mids stream
Receive finalized mid prices for every active market.
WSS
/
ws
allMids@f[@<coalesceMs>]
m nor u. The duration is
optional and defaults to 50 milliseconds.
Subscribe
{"op":"sub","id":5,"t":"allMids@f@500","feedEpoch":0}
Decoded event
The shape below is the innermessage returned by decodeExchangeWsEnvelope
or decodeExchangeWsMessage. Every binary socket message also carries an outer
id: bigint, matching your subscription ID. Use it to route snapshots, replay,
and live updates. See binary subscription envelopes.
interface ExchangeWsAllMidsFrame {
wireVersion: 1;
feedEpoch: bigint;
view: "finalized";
kind: "allMids";
mids: Array<{
marketAddress: string;
midpoint: bigint;
}>;
}
Messages
{
"op": "sub",
"id": 5,
"t": "allMids@f@500",
"feedEpoch": 0
}allMids@f subscription
type:object