Get the print map
Per price band, what the vault would buy and sell if the next verified print landed there, as shares of open interest on the public skew grid (ADR-0044); the same payload as the printmap WebSocket frame.
GET
https://testnet.hardbasis.com/v1/markets/{id}/print-mapbash
curl -fsS "$HB/v1/markets/$ID/print-map"python
import os
import requests
HB = os.environ.get("HB", "https://testnet.hardbasis.com")
ID = os.environ["ID"]
resp = requests.get(
f"{HB}/v1/markets/{ID}/print-map",
)
resp.raise_for_status()
print(resp.json())ts
const HB = process.env.HB ?? "https://testnet.hardbasis.com";
const ID = process.env.ID!;
const res = await fetch(`${HB}/v1/markets/${ID}/print-map`, {
method: "GET",
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());json
{
"marketId": "string",
"tsMs": "100000",
"lastMidQ8": "100000",
"bandBps": 0,
"windowBps": 0,
"grid": "0.05",
"floors": {
"minAccounts": 0
},
"bands": [
{
"loQ8": "100000",
"hiQ8": "100000",
"sellSteps": 0,
"buySteps": 0,
"skewAfterQ9": "100000"
}
],
"windowSellSteps": 0,
"windowBuySteps": 0,
"capReached": {
"below": {
"band": 0,
"loQ8": "100000",
"hiQ8": "100000"
},
"above": {}
}
}json
{
"error": "string",
"code": "not_found"
}json
{
"error": "string",
"code": "deposits_halted"
}Path parameters
idstringrequiredResponses
200 OKmarketIdstringrequiredtsMsstringmsrequiredlastMidQ8stringq8requiredbandBpsintegerrequiredBand width, in basis points of lastMidQ8.
windowBpsintegerrequiredWindow each side of lastMidQ8, in basis points. Bands outside it are not served.
gridconst 0.05requiredThe quantization step, as a share of openInterestContracts: the same grid as every public skew figure.
floorsobjectrequiredThe aggregation floors a band must meet to be served.
Show 1 child field
minAccountsintegerrequiredA band placed by fewer distinct accounts (triggers and positions together) folds its flow into the adjacent band nearer the print and is served empty.
bandsobject[]requiredAscending by price. Empty when nothing in the window reaches one grid step: render that as a sentence, never as bars.
Show 5 child fields
loQ8stringq8requiredhiQ8stringq8requiredsellStepsintegerrequiredSells that would execute against the vault if the next verified print landed in this band, in grid steps of openInterestContracts, floored. User triggers and forced closes are merged.
buyStepsintegerrequiredBuys that would execute against the vault if the next verified print landed in this band, in grid steps of openInterestContracts, floored. User triggers and forced closes are merged.
skewAfterQ9stringq9requiredwindowSellStepsintegerrequiredAll sells served in the window, in grid steps, floored from the unquantized sum (not the sum of the bands' steps).
windowBuyStepsintegerrequiredAll buys served in the window, in grid steps, floored from the unquantized sum (not the sum of the bands' steps).
capReachedobjectrequiredPer side of the print, the band where the map stops counting closes: the served closes reach the most the public skew allows, so beyond it the true flow is at least what is shown. Null when the map counts every close in the window. It marks where the cap is reached, not how much it held back.
Show 2 child fields
belowobject | nullrequiredaboveobject | nullrequiredErrors
Match on code, never on the message. Full taxonomy in Errors.
| Code | Status | Retry |
|---|---|---|
deposits_halted | 503 | retryable |
not_found | 404 | final |
token_rail_unavailable | 503 | final |
unavailable | 503 | retryable |
404, 503: A refusal carrying a stable machine code (ErrorCode) beside human error prose.