Order book
/sigmafi/zc/markets/{market}/orderbookAsks (each carrying borrowedByMe) and bids around a maturity, around ± band blocks, or up to to blocks out. A bid and an ask are only compared at the same maturity: each ask carries the best bid at its own maturity (bidAtBps) and the gap to it (spreadBps, zero or less when it crosses), and the top-level spreadBps is the tightest such gap, with spreadBlocks, spreadBidBps and spreadAskBps saying where. It is null when no ask shares a maturity with a bid. Each bid is read at the anchor maturity (anchorBlocks: to, around, or a year), with minBps and maxBps across the range; anchorBidBps is the best bid at the anchor.
Path parameters
marketstringrequiredERG | SigUSDThe market:
ERGorSigUSD.
Query parameters
coverageinteger · int64Asks with cover of at least this many bps; offers with a floor of at most this many. Default 15000.
kindstringall | new | resale | sharesall,new(borrow orders),resale(bond units and shares) orshares. Defaultall.matchablebooleanLeave out paused, expired and flagged boxes. Default true.
gridbooleanOnly maturities on the 21,600-block grid, and window orders that can pick one. Default false.
tointeger · int64Most blocks to maturity shown.
aroundinteger · int64Blocks to maturity the book centres on.
bandinteger · int64Blocks either side of
around.ifRevisioninteger · int64Answer 304 when the snapshot revision still equals this.
Responses
200The order bookZcObject▶
▶
atZcAtThe snapshot a read or quote was taken from.
heightintegerblockIdstringindexedHeightintegerrevisioninteger · int64Changes whenever anything a read returns changes, the mempool included.
cutbooleanTrue when the book is at its size cap and left boxes out.
mempoolbooleanWhether unconfirmed boxes are laid over the confirmed book.
304Nothing changed since `ifRevision`.▶
400A malformed field, or terms the contracts refuse.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
429Too many concurrent quotes, simulations, or heavy reads (`/curves`, `/orderbook`, `/fills`): at most 4 quotes/simulations and at most 4 heavy reads run or wait at once across all callers, and simulations are additionally limited to 5 in flight per caller, then 1 a second. Retry shortly.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
503ZC tracking is off or not seeded, or the node, its index or the wallet did not answer. Nothing was sent.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description