Simulate a draft
/sigmafi/zc/simulateRun the zcs1 batch over the market with a draft order, offer or ask added, or price a wallet lend across the best sources. Rate-limited per caller; 429 when over.
Query parameters
ifRevisioninteger · int64Answer 304 when the snapshot revision still equals this.
Request body
ZcSimulateRequest · application/jsondraftobjectrequiredA create-order, create-offer or create-ask body with
typeset toorder,offerorask; or{ type: walletLend, market, amount, to, coverage }.
Responses
200The simulationZcObject▶
▶
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