REST reference
Documents gateway spec version 1.8.0.
Generated from the public OpenAPI spec; the machine-readable source is served at /openapi.json (SDK generators and try-it tools read that). Every money, price, rate, duration and count field crosses the wire as a decimal string, and its unit (x-hardbasis-unit) is shown beside it (see Wire encoding). Base URL and auth are on the Overview and Authentication pages.
System
GET /healthz
Check liveness
Auth: none (public)
Responses
- 200: OK
ok· boolean · requireddb· boolean · requiredtsMs· string · unitms· required
- 503: Service Unavailable
ok· boolean · requireddb· boolean · requiredtsMs· string · unitms· required
Example 200 response:
{
"ok": true,
"db": true,
"tsMs": "100000"
}GET /deployment
Get deployment posture
Auth: none (public)
Responses
- 200: OK
deployment· enum(prod,testnet) · requiredbuildSha· string | null · optional
Example 200 response:
{
"deployment": "prod",
"buildSha": "string"
}GET /v1/limits
Get my rate limits
Auth: API key (x-api-key)
Responses
- 200: OK
tier· string · requiredbudgets· map(enum(read,order,withdraw) → object) · required- each enum(
read,order,withdraw) key → object:limitPerMin· integer · requiredburst· integer · requiredremaining· integer · required
- each enum(
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"tier": "string",
"budgets": {
"read": {
"limitPerMin": 0,
"burst": 0,
"remaining": 0
}
}
}Proof of Reserves
GET /por
Get the Proof of Reserves snapshot
Auth: none (public)
Responses
- 200: OK
tsMs· string · unitms· requiredageMs· string · unitms· requiredstale· boolean · requiredstaleAfterMs· string · unitms· requiredstatus· enum(clean,warn,page) · requireddriftMsat· string · unitmsat· requiredconsolidationVerified· boolean · requiredsnapshot· any · requiredhistory· object[] · requiredtsMs· string · unitms· requiredstatus· string · requireddriftMsat· string · unitmsat· required
liability· object · requiredrootHash· string · requiredtotalMsat· string · unitmsat· requiredleafCount· integer · requiredrootSaltHex· string · requiredtsMs· string · unitms· required
liabilityUsdhb· object · requiredrootHash· string · requiredtotalMicro· string · unitint· requiredleafCount· integer · requiredrootSaltHex· string · requiredtsMs· string · unitms· required
vaultExposure· object · requirednetPctOfEquityQ9· string | null · unitq9· requiredquantumQ9· string · unitq9· requiredtsMs· string · unitms· requiredconsolidationVerified· boolean · required
- 404: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"tsMs": "100000",
"ageMs": "100000",
"stale": true,
"staleAfterMs": "100000",
"status": "clean",
"driftMsat": "100000",
"consolidationVerified": true,
"snapshot": null,
"history": [
{
"tsMs": "100000",
"status": "string",
"driftMsat": "100000"
}
],
"liability": {
"rootHash": "string",
"totalMsat": "100000",
"leafCount": 0,
"rootSaltHex": "string",
"tsMs": "100000"
},
"liabilityUsdhb": {
"rootHash": "string",
"totalMicro": "100000",
"leafCount": 0,
"rootSaltHex": "string",
"tsMs": "100000"
},
"vaultExposure": {
"netPctOfEquityQ9": "100000",
"quantumQ9": "100000",
"tsMs": "100000",
"consolidationVerified": true
}
}GET /por/dashboard
View the Proof of Reserves dashboard
Auth: none (public)
Responses
- 200: OK
GET /v1/por/proof
Get my liability proof
Auth: API key (x-api-key)
Parameters
asset(query): enum(msat,usdhb)
Responses
- 200: OK
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 404: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"asset": "msat",
"rootHash": "string",
"totalMsat": "100000",
"rootSaltHex": "string",
"treeTsMs": "100000",
"leaf": {
"accountTag": "string",
"freeMsat": "100000",
"reservedMsat": "100000",
"hash": "string",
"sumMsat": "100000"
},
"path": [
{
"side": "left",
"hash": "string",
"sumMsat": "100000"
}
]
}Markets
GET /v1/markets
List markets
Auth: none (public)
Responses
- 200: OK
Example 200 response:
[
{
"marketId": "string",
"underlying": "string",
"contractType": "inverse",
"oracleFeedId": "string",
"quantoMultiplierMsat": "100000",
"shareScale": "string",
"status": "live",
"tickSizeQ8": "100000",
"priceDp": "100000",
"minOrderContracts": "100000",
"maxOrderContracts": "100000",
"takerFeeQ9": "100000",
"maxLeverage": "100000",
"imRateQ9": "100000",
"mmRateQ9": "100000",
"baseSpreadQ9": "100000",
"fundingRateHourlyQ9": "100000",
"nextFundingTsMs": "100000",
"session": {
"open": true,
"changesAtTsMs": "100000"
},
"oracleStalenessMs": "100000",
"openInterestContracts": "100000",
"skewQ9": "100000",
"lastPrice": {
"midQ8": "100000",
"tsMs": "100000"
},
"fundingInterestTerm": "configured",
"indexSource": "string",
"indexStaleLegs": "equity",
"indexLegTsMs": {
"equity": "100000",
"btc": "100000"
}
}
]GET /v1/markets/{id}
Get a market
Auth: none (public)
Parameters
id(path), required: string
Responses
- 200: OK
marketId· string · requiredunderlying· string · requiredcontractType· enum(inverse,quanto,linear_sats) · requiredoracleFeedId· string · requiredquantoMultiplierMsat· string | null · unitmsat· requiredshareScale· string | null · optionalstatus· enum(live,reduce_only,halted) · requiredtickSizeQ8· string · unitq8· requiredpriceDp· string · unitint· requiredminOrderContracts· string · unitcontracts· requiredmaxOrderContracts· string · unitcontracts· requiredtakerFeeQ9· string · unitq9· requiredmaxLeverage· string · unitint· requiredimRateQ9· string · unitq9· requiredmmRateQ9· string · unitq9· requiredbaseSpreadQ9· string · unitq9· requiredfundingRateHourlyQ9· string · unitq9· requirednextFundingTsMs· string · unitms· requiredsession· object | null · optionaloracleStalenessMs· string · unitms· requiredopenInterestContracts· string · unitcontracts· requiredskewQ9· string · unitq9· requiredlastPrice· object | null · requiredfundingInterestTerm· enum(configured,none_by_contract_type) · optionalindexSource· string · optionalindexStaleLegs· enum(equity,btc,both) | null · optionalindexLegTsMs· object | null · optional
- 404: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"marketId": "string",
"underlying": "string",
"contractType": "inverse",
"oracleFeedId": "string",
"quantoMultiplierMsat": "100000",
"shareScale": "string",
"status": "live",
"tickSizeQ8": "100000",
"priceDp": "100000",
"minOrderContracts": "100000",
"maxOrderContracts": "100000",
"takerFeeQ9": "100000",
"maxLeverage": "100000",
"imRateQ9": "100000",
"mmRateQ9": "100000",
"baseSpreadQ9": "100000",
"fundingRateHourlyQ9": "100000",
"nextFundingTsMs": "100000",
"session": {
"open": true,
"changesAtTsMs": "100000"
},
"oracleStalenessMs": "100000",
"openInterestContracts": "100000",
"skewQ9": "100000",
"lastPrice": {
"midQ8": "100000",
"tsMs": "100000"
},
"fundingInterestTerm": "configured",
"indexSource": "string",
"indexStaleLegs": "equity",
"indexLegTsMs": {
"equity": "100000",
"btc": "100000"
}
}GET /v1/markets/{id}/funding
List funding boundaries
Auth: none (public)
Parameters
id(path), required: string
Responses
- 200: OK
Example 200 response:
[
{
"tsMs": "100000",
"rateQ9": "100000",
"skewQ9": "100000"
}
]GET /v1/markets/{id}/stats24h
Get 24h stats
Auth: none (public)
Parameters
id(path), required: string
Responses
- 200: OK
marketId· string · requiredwindowMs· string · unitms· requiredbasis· constfills· requiredfills· integer · requiredvolumeContracts· string · unitcontracts· requiredhiQ8· string | null · unitq8· requiredloQ8· string | null · unitq8· requiredtruncated· boolean · required
- 404: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"marketId": "string",
"windowMs": "100000",
"basis": "fills",
"fills": 0,
"volumeContracts": "100000",
"hiQ8": "100000",
"loQ8": "100000",
"truncated": true
}GET /v1/markets/{id}/print-map
Get the print map
Auth: none (public)
Parameters
id(path), required: string
Responses
- 200: OK
marketId· string · requiredtsMs· string · unitms· requiredlastMidQ8· string · unitq8· requiredbandBps· integer · required: Band width, in basis points of lastMidQ8.windowBps· integer · required: Window each side of lastMidQ8, in basis points. Bands outside it are not served.grid· const0.05· required: The quantization step, as a share of openInterestContracts: the same grid as every public skew figure.floors· object · required: The aggregation floors a band must meet to be served.minAccounts· integer · required: A band placed by fewer distinct accounts (triggers and positions together) folds its flow into the adjacent band nearer the print and is served empty.
bands· object[] · required: Ascending by price. Empty when nothing in the window reaches one grid step: render that as a sentence, never as bars.loQ8· string · unitq8· requiredhiQ8· string · unitq8· requiredsellSteps· integer · required: Sells 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.buySteps· integer · required: Buys 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.skewAfterQ9· string · unitq9· required
windowSellSteps· integer · required: All sells served in the window, in grid steps, floored from the unquantized sum (not the sum of the bands' steps).windowBuySteps· integer · required: All buys served in the window, in grid steps, floored from the unquantized sum (not the sum of the bands' steps).capReached· object · required: Per 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.below· object | null · requiredabove· object | null · required
- 404: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 503: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"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": {}
}
}GET /v1/markets/{id}/candles
Get candles
Auth: none (public)
Parameters
id(path), required: stringinterval(query): enum(60,3600,86400)limit(query): string
Responses
- 200: OK
interval· const60| const3600| const86400· requiredcandles· object[] · requiredtsMs· string · unitms· requiredoQ8· string · unitq8· requiredhQ8· string · unitq8· requiredlQ8· string · unitq8· requiredcQ8· string · unitq8· requiredprints· integer · requiredseeded· boolean · optionalvolumeContracts· string · unitcontracts· optional
- 404: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"interval": 60,
"candles": [
{
"tsMs": "100000",
"oQ8": "100000",
"hQ8": "100000",
"lQ8": "100000",
"cQ8": "100000",
"prints": 0,
"seeded": true,
"volumeContracts": "100000"
}
]
}GET /v1/public/ticker
Get the public ticker
Auth: none (public)
Responses
- 200: OK
asOfMs· string · unitms· requiredtickers· object[] · requiredmarketId· string · requiredlast· object | null · requiredstalenessMs· string · unitms· required
Example 200 response:
{
"asOfMs": "100000",
"tickers": [
{
"marketId": "string",
"last": {
"midQ8": "100000",
"tsMs": "100000"
},
"stalenessMs": "100000"
}
]
}Account
GET /v1/account
Get my account
Auth: API key (x-api-key)
Responses
- 200: OK
accountId· string · requireduserId· string · requiredrailAddress· string · requiredautoSweepThresholdMsat· string | null · unitmsat· required: Not an account movement: a configured threshold; null when auto-sweep is off.freeMsat· string · unitmsat· required: Not an account movement: a balance, the withdrawable funds held by the account (>= 0). Fills, funding and liquidations that credit the account raise it; debits lower it.reservedMsat· string · unitmsat· required: Not an account movement: a balance, the margin held against open positions (>= 0), including funding already settled into position margin.depositFees· object[] · requiredpath· enum(spark,l1,lightning) · requireddescription· string · requiredrecommendedMinimumSats· string · unitsats· optional: Not an account movement: an advisory minimum deposit for this path, in whole sats.
usdhb· string · optionalusdhbPending· string · optionalsusdhb· string · optionalsusdhbCooling· string · optionalcooling· object[] · optionalunstakeId· string · requiredsusdhb· string · requiredreleaseAtMs· string · unitms· required
binaryValueAtMarkMsat· string | null · unitmsat· optional: Not an account movement: the account's open YES/NO positions valued at mark, per the PoR claim rule; null when any open position has no fresh mark.
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"accountId": "string",
"userId": "string",
"railAddress": "string",
"autoSweepThresholdMsat": "100000",
"freeMsat": "100000",
"reservedMsat": "100000",
"depositFees": [
{
"path": "spark",
"description": "string",
"recommendedMinimumSats": "100000"
}
],
"usdhb": "string",
"usdhbPending": "string",
"susdhb": "string",
"susdhbCooling": "string",
"cooling": [
{
"unstakeId": "string",
"susdhb": "string",
"releaseAtMs": "100000"
}
],
"binaryValueAtMarkMsat": "100000"
}GET /v1/positions
List positions
Auth: API key (x-api-key)
Responses
- 200: OK
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
[
{
"marketId": "string",
"side": "long",
"contracts": "100000",
"sizeShares": "string",
"entryPriceQ8": "100000",
"marginMsat": "100000",
"fundingClockTsMs": "100000"
}
]GET /v1/fills
List fills
Auth: API key (x-api-key)
Parameters
limit(query): stringbeforeSeq(query): string
Responses
- 200: OK
fills· object[] · requiredorderId· string · requiredaccountId· string · requiredmarketId· string · requiredside· enum(buy,sell) · requiredclosedContracts· string · unitcontracts· requiredopenedContracts· string · unitcontracts· requiredexecPriceQ8· string · unitq8· required: Execution price: oracle midQ8 moved by spreadQ9 against the taker (buys above, sells below), snapped to the market's tick grid. Price impact is NOT included in this price: it is charged separately as impactMsat. The taker fee is also charged separately (feeMsat).oracle· object · requiredspreadQ9· string · unitq9· requiredtradeNotionalMsat· string · unitmsat· required: Not an account movement: the notional of closedContracts + openedContracts at execPriceQ8, always >= 0. feeMsat and margin are computed from it.feeMsat· string · unitmsat· required: Taker fee actually charged, after any referral discount. Charged separately from the price (not included in execPriceQ8). Positive means debited from the account's free balance; never negative.impactMsat· string · unitmsat· required: Signed price-impact charge, charged separately: NOT included in execPriceQ8. Positive means debited from the account (an impact fee paid to the vault); negative means credited to the account (an impact rebate, capped at the impact the account paid over the trailing window; any excess is rebateDivertedMsat).rebateDivertedMsat· string · unitmsat· required: Not an account movement: the part of an earned impact rebate withheld by the anti-cycling cap and routed to the insurance fund. Never credited to the account; >= 0.realizedPnlMsat· string · unitmsat· required: Realized PnL of closedContracts at execPriceQ8 against the entry price. Positive means credited to the account's free balance; negative means debited from the account (released margin first, then the position's remaining margin; any loss beyond that is deficitMsat). Fee, impact and funding are charged separately and not included.fundingSettledMsat· string · unitmsat· required: Funding accrued since the position's funding clock, settled into position margin at this fill before execution. Positive means credited to the account (received into position margin); negative means debited from the account (paid out of position margin, moved only up to that margin). Charged separately: not included in realizedPnlMsat, feeMsat or execPriceQ8. 0 when no position was open.releasedMarginMsat· string · unitmsat· required: Margin released for the closed portion. Positive means credited to the account's free balance, moved from its own reserved margin (an internal transfer, not new money); >= 0.reservedMarginMsat· string · unitmsat· required: Initial margin reserved for openedContracts. Positive means debited from the account's free balance into its reserved margin (an internal transfer); >= 0.deficitMsat· string · unitmsat· required: Not an account movement: loss the account's margin could not cover on a bankrupt close, absorbed by the insurance fund. Never debited from the account; >= 0.referral· object | null · optionalpositionAfter· object | null · requiredsizeShares· string | null · optionalseq· string · unitseq· requiredtsMs· string · unitms· required
nextBeforeSeq· string | null · unitseq· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"fills": [
{
"orderId": "string",
"accountId": "string",
"marketId": "string",
"side": "buy",
"closedContracts": "100000",
"openedContracts": "100000",
"execPriceQ8": "100000",
"oracle": {
"midQ8": "100000",
"confQ9": "100000",
"tsMs": "100000"
},
"spreadQ9": "100000",
"tradeNotionalMsat": "100000",
"feeMsat": "100000",
"impactMsat": "100000",
"rebateDivertedMsat": "100000",
"realizedPnlMsat": "100000",
"fundingSettledMsat": "100000",
"releasedMarginMsat": "100000",
"reservedMarginMsat": "100000",
"deficitMsat": "100000",
"referral": {
"code": "string",
"grossFeeMsat": "100000",
"discountMsat": "100000",
"rewardMsat": "100000",
"policyVersion": "100000"
},
"positionAfter": {
"side": "long",
"contracts": "100000",
"entryPriceQ8": "100000",
"marginMsat": "100000"
},
"sizeShares": "string",
"seq": "100000",
"tsMs": "100000"
}
],
"nextBeforeSeq": "100000"
}Deposits
POST /v1/deposit-invoices
Create a deposit invoice
Auth: API key (x-api-key)
Idempotency key: any: any fresh unique key, reused only to retry the same request
Parameters
idempotency-key(header), required: string
Request body
amountMsat· string · unitmsat· optionalexpirySeconds· integer · optionalmemo· string · optional
{
"amountMsat": "100000",
"expirySeconds": 0,
"memo": "string"
}Responses
- 201: Created
invoice· string · requiredpaymentRef· string · requiredexpiresAtMs· string · unitms· requireddepositFees· object[] · requiredpath· enum(spark,l1,lightning) · requireddescription· string · requiredrecommendedMinimumSats· string · unitsats· optional: Not an account movement: an advisory minimum deposit for this path, in whole sats.
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 201 response:
{
"invoice": "string",
"paymentRef": "string",
"expiresAtMs": "100000",
"depositFees": [
{
"path": "spark",
"description": "string",
"recommendedMinimumSats": "100000"
}
]
}GET /v1/deposits
List deposits
Auth: API key (x-api-key)
Parameters
limit(query): stringbeforeSeq(query): string
Responses
- 200: OK
deposits· object[] · requiredaccountId· string · requiredamountMsat· string · unitmsat· requiredfeeMsat· string · unitmsat· requiredrailRef· string · requiredseq· string · unitseq· requiredtsMs· string · unitms· required
nextBeforeSeq· string | null · unitseq· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"deposits": [
{
"accountId": "string",
"amountMsat": "100000",
"feeMsat": "100000",
"railRef": "string",
"seq": "100000",
"tsMs": "100000"
}
],
"nextBeforeSeq": "100000"
}Sessions & keys
GET /v1/sessions
List sessions
Auth: API key (x-api-key)
Responses
- 200: OK
tsMs· string · unitms· requiredsessions· object[] · requiredkeyId· string · requiredaccountId· string · requiredlabel· string · requiredscopes· enum(read,trade,withdraw,admin-sessions)[] · requireduaClass· string | null · requiredipCountryFirst· string | null · requiredcreatedTsMs· string · unitms· requiredlastSeenTsMs· string | null · unitms· requiredrevokedTsMs· string | null · unitms· requiredrevokedBy· string | null · requiredrevokeReason· string | null · requiredcurrent· boolean · required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"tsMs": "100000",
"sessions": [
{
"keyId": "string",
"accountId": "string",
"label": "string",
"scopes": [
"read"
],
"uaClass": "string",
"ipCountryFirst": "string",
"createdTsMs": "100000",
"lastSeenTsMs": "100000",
"revokedTsMs": "100000",
"revokedBy": "string",
"revokeReason": "string",
"current": true
}
]
}POST /v1/sessions
Mint a session key
Auth: API key (x-api-key)
Idempotency key: any: any fresh unique key, reused only to retry the same request
Parameters
idempotency-key(header), required: string
Request body
label· string · optionalscopes· enum(read,trade,withdraw,admin-sessions)[] · optional
{
"label": "string",
"scopes": [
"read"
]
}Responses
- 201: Created
apiKey· string · optionalkeyId· string · requiredscopes· enum(read,trade,withdraw,admin-sessions)[] · required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 201 response:
{
"apiKey": "string",
"keyId": "string",
"scopes": [
"read"
]
}POST /v1/sessions/revoke
Revoke sessions
Auth: API key (x-api-key)
Idempotency key: any: any fresh unique key, reused only to retry the same request
Parameters
idempotency-key(header), required: string
Request body
keyId· string · optionalallButCurrent· boolean · optional
{
"keyId": "string",
"allButCurrent": true
}Responses
- 200: OK
revoked· string[] · required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 404: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"revoked": [
"string"
]
}Liquidations
GET /v1/liquidations
List liquidations
Auth: API key (x-api-key)
Parameters
limit(query): stringbeforeSeq(query): string
Responses
- 200: OK
liquidations· object[] · requiredaccountId· string · requiredpositionId· string · requiredmarketId· string · requiredside· enum(long,short) · requiredclosedContracts· string · unitcontracts· requiredpartial· boolean · requiredexecPriceQ8· string · unitq8· required: Close price: oracle midQ8 moved by spreadQ9 against the closed position (the same spread convention as fills). The liquidation penalty is NOT included in this price: it is charged separately as penaltyMsat.oracle· object · requiredspreadQ9· string · unitq9· requiredrealizedPnlMsat· string · unitmsat· required: PnL of closedContracts at execPriceQ8 against the entry price. Positive means credited to the account (into position margin); negative means debited from the account's position margin, up to that margin (any loss beyond it is deficitMsat). The penalty and funding are charged separately and not included.fundingSettledMsat· string · unitmsat· required: Funding accrued since the position's funding clock, settled into position margin at this liquidation before the close. Positive means credited to the account (received into position margin); negative means debited from the account (paid out of position margin, moved only up to that margin). Charged separately: not included in realizedPnlMsat, feeMsat or execPriceQ8. 0 when no position was open.penaltyMsat· string · unitmsat· required: Liquidation penalty actually paid to the insurance fund, charged separately (not included in execPriceQ8). Positive means debited from the account's position margin, capped at the margin left; >= 0.remainderMsat· string · unitmsat· optional: Margin returned on a full close: positive means credited to the account's free balance (from its own position margin); 0 on partial closes.deficitMsat· string · unitmsat· required: Not an account movement: loss beyond the position's margin, covered by the insurance fund (insuranceCoveredMsat) and then ADL. Never debited from the account; >= 0.insuranceCoveredMsat· string · unitmsat· required: Not an account movement: the part of deficitMsat the insurance fund covered; >= 0.adlTriggered· boolean · requiredremainingContracts· string · unitcontracts· requiredremainingMarginMsat· string · unitmsat· required: Not an account movement: a balance, the margin still held on the position after a partial close (0 on a full close), after realizedPnlMsat, fundingSettledMsat and penaltyMsat were applied.sizeShares· string | null · optionalremainingSizeShares· string | null · optionalseq· string · unitseq· requiredtsMs· string · unitms· required
nextBeforeSeq· string | null · unitseq· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"liquidations": [
{
"accountId": "string",
"positionId": "string",
"marketId": "string",
"side": "long",
"closedContracts": "100000",
"partial": true,
"execPriceQ8": "100000",
"oracle": {
"midQ8": "100000",
"confQ9": "100000",
"tsMs": "100000"
},
"spreadQ9": "100000",
"realizedPnlMsat": "100000",
"fundingSettledMsat": "100000",
"penaltyMsat": "100000",
"remainderMsat": "100000",
"deficitMsat": "100000",
"insuranceCoveredMsat": "100000",
"adlTriggered": true,
"remainingContracts": "100000",
"remainingMarginMsat": "100000",
"sizeShares": "string",
"remainingSizeShares": "string",
"seq": "100000",
"tsMs": "100000"
}
],
"nextBeforeSeq": "100000"
}Funding
GET /v1/funding
List funding flows
Auth: API key (x-api-key)
Parameters
limit(query): stringbeforeSeq(query): string
Responses
- 200: OK
funding· object[] · requiredseq· string · unitseq· requiredboundaryTsMs· string · unitms· requiredmarketId· string · requiredrateQ9· string · unitq9· requiredflowMsat· string · unitmsat· required: Signed funding owed at this boundary (same value as the WS FundingSettled flow). Positive means credited to the account (the position received, into position margin); negative means debited from the account (the position paid; a short pays under a negative rate). Charged separately: not included in any fill price or fee.paidMsat· string · unitmsat· required: Millisats actually moved, same sign as flowMsat: positive means credited to the account, negative means debited from the account. Equals flowMsat except where a pay was capped at the position's available margin.positionId· string · required
nextBeforeSeq· string | null · unitseq· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"funding": [
{
"seq": "100000",
"boundaryTsMs": "100000",
"marketId": "string",
"rateQ9": "100000",
"flowMsat": "100000",
"paidMsat": "100000",
"positionId": "string"
}
],
"nextBeforeSeq": "100000"
}Orders
GET /v1/orders
List orders
Auth: API key (x-api-key)
Parameters
state(query): enum(resting,armed)status(query): enum(accepted,filled,canceled,rejected)[]limit(query): stringbeforeSeq(query): string
Responses
- 200: OK
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 402: Reserved for L402/Lightning-metered access (PAPI-8). Not returned today; documented so it lands additively.
error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"orders": [
{
"orderId": "string",
"marketId": "string",
"side": "buy",
"type": "market",
"contracts": "100000",
"sizeShares": "string",
"status": "accepted",
"reason": "string",
"heldUntilTsMs": "100000"
}
],
"nextBeforeSeq": "100000"
}POST /v1/orders
Place an order
Auth: API key (x-api-key)
Idempotency key: order-id: the client order id; it becomes the order's id
Parameters
idempotency-key(header), required: string
Request body
marketId· string · requiredside· enum(buy,sell) · requiredtype· enum(market,limit,stop_market,take_profit_market) · requiredcontracts· string · unitcontracts· optionalsizeShares· string · optionallimitPriceQ8· string · unitq8· optionaltriggerPriceQ8· string · unitq8· optionalmaxSlippageQ9· string · unitq9· optionalreduceOnly· boolean · requiredtrigger· object · optionalkind· enum(entry,stop,take_profit) · requiredlevel· string · unitq8· required
bracket· object · optionalentryKind· enum(market,trigger) · requiredentryLevel· string · unitq8· optionalstopLevel· string · unitq8· optionaltakeProfitLevel· string · unitq8· optionalstopContracts· string · unitcontracts· optionaltakeProfitContracts· string · unitcontracts· optional
{
"marketId": "string",
"side": "buy",
"type": "market",
"contracts": "100000",
"sizeShares": "string",
"limitPriceQ8": "100000",
"triggerPriceQ8": "100000",
"maxSlippageQ9": "100000",
"reduceOnly": true,
"trigger": {
"kind": "entry",
"level": "100000"
},
"bracket": {
"entryKind": "market",
"entryLevel": "100000",
"stopLevel": "100000",
"takeProfitLevel": "100000",
"stopContracts": "100000",
"takeProfitContracts": "100000"
}
}Responses
- 201: Created
orderId· string · requiredstatus· enum(accepted,filled,canceled,rejected,resting,working) · requiredheldUntilTsMs· string | null · unitms· optional: Set when what was just placed cannot fill before this instant, the next session open: an opening limit order, an entry trigger or a bracket whose entry is a trigger, placed while its NASDAQ-calendar market is outside regular hours. Evaluated at the time of the request. Absent otherwise.
- 400: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 402: Reserved for L402/Lightning-metered access (PAPI-8). Not returned today; documented so it lands additively.
error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 201 response:
{
"orderId": "string",
"status": "accepted",
"heldUntilTsMs": "100000"
}GET /v1/orders/{id}
Get an order
Auth: API key (x-api-key)
Parameters
id(path), required: string
Responses
- 200: OK
orderId· string · requiredmarketId· string · requiredside· enum(buy,sell) · requiredtype· enum(market,limit,stop_market,take_profit_market) · requiredcontracts· string · unitcontracts· requiredsizeShares· string | null · optionalstatus· enum(accepted,filled,canceled,rejected) · requiredreason· string | null · requiredheldUntilTsMs· string | null · unitms· optional: Set only while the order is held: it is an accepted limit order, on an account that is not under an admin orders block, its market follows the NASDAQ calendar and is outside regular trading hours, and a fill would open or increase exposure against the account's current position. A held order is not evaluated against prices until this instant, the next session open, and is neither filled nor rejected meanwhile. null when the order is not held. Evaluated at the time of the request; no WebSocket frame carries it, so refetch the order when this instant passes.
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 404: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"orderId": "string",
"marketId": "string",
"side": "buy",
"type": "market",
"contracts": "100000",
"sizeShares": "string",
"status": "accepted",
"reason": "string",
"heldUntilTsMs": "100000"
}DELETE /v1/orders/{id}
Cancel an order
Auth: API key (x-api-key)
Idempotency key: any: any fresh unique key, reused only to retry the same request
Parameters
id(path), required: stringidempotency-key(header), required: string
Responses
- 200: OK
orderId· string · requiredcanceled· boolean · required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"orderId": "string",
"canceled": true
}POST /v1/cancel-all-after
Cancel all after
Auth: API key (x-api-key)
Idempotency key: any: any fresh unique key, reused only to retry the same request
Parameters
idempotency-key(header), required: string
Request body
timeoutMs· string · unitms· required
{
"timeoutMs": "100000"
}Responses
- 200: OK
armed· boolean · requireddeadlineTsMs· string | null · unitms· required
- 400: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"armed": true,
"deadlineTsMs": "100000"
}Withdrawals
POST /v1/withdrawals/quote
Quote a withdrawal
Auth: API key (x-api-key)
Request body
invoice· string · optionaltoAddress· string · optionalamountMsat· string · unitmsat· optional
{
"invoice": "string",
"toAddress": "string",
"amountMsat": "100000"
}Responses
- 200: OK
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"path": "spark",
"feeMsat": "100000",
"firstSeen": true,
"confirmRequired": true,
"confirmThresholdMsat": "100000",
"confirmToken": "string"
}GET /v1/withdrawals
List withdrawals
Auth: API key (x-api-key)
Parameters
limit(query): stringbeforeSeq(query): string
Responses
- 200: OK
withdrawals· object[] · requiredidempotencyKey· string · requiredamountMsat· string · unitmsat· requiredfeeMsat· string | null · unitmsat· requiredstate· enum(requested,queued,paid,returned) · requiredpath· enum(spark,lightning) · requiredqueuedReason· string | null · requiredrailRef· string | null · requiredrequestedTsMs· string · unitms· requiredpaidTsMs· string | null · unitms· requiredautoRefundAfterTsMs· string | null · unitms· optional: Set only while a Lightning withdrawal is queued with queuedReason lightning_in_doubt and the engine knows both the invoice's expiry and when the provider began reporting the payment failed. From this time the engine returns the withdrawal in full if the provider still reports it failed. It is a condition, not a promise: a success answer pays instead, and any other answer clears the time. null on every other row.
nextBeforeSeq· string | null · unitseq· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 402: Reserved for L402/Lightning-metered access (PAPI-8). Not returned today; documented so it lands additively.
error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"withdrawals": [
{
"idempotencyKey": "string",
"amountMsat": "100000",
"feeMsat": "100000",
"state": "requested",
"path": "spark",
"queuedReason": "string",
"railRef": "string",
"requestedTsMs": "100000",
"paidTsMs": "100000",
"autoRefundAfterTsMs": "100000"
}
],
"nextBeforeSeq": "100000"
}POST /v1/withdrawals
Withdraw sats
Auth: API key (x-api-key)
Idempotency key: any: any fresh unique key, reused only to retry the same request
Parameters
idempotency-key(header), required: string
Request body
amountMsat· string · unitmsat· requiredtoAddress· string · optionalconfirmToken· string · optional
{
"amountMsat": "100000",
"toAddress": "string",
"confirmToken": "string"
}Responses
- 201: Created
railRef· string · requiredqueued· boolean · required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 402: Reserved for L402/Lightning-metered access (PAPI-8). Not returned today; documented so it lands additively.
error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 409: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 428: Confirmation Required
error· constconfirmation_required· requiredcode· constconfirmation_required· optionalreason· string · requiredfirstSeen· consttrue· requiredconfirmThresholdMsat· string · unitmsat· required
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 201 response:
{
"railRef": "string",
"queued": true
}Usdhb
GET /v1/usdhb
Get USDhb state
Auth: none (public)
Responses
- 200: OK
tsMs· string · unitms· requiredparams· object · requiredbaseFeeQ9· string · unitq9· requiredspreadQ9· string · unitq9· requiredreserveTargetQ9· string · unitq9· requiredreserveFloorQ9· string · unitq9· requireddynFeeCurve· object[] · requiredhardCap· string · requiredquoteTtlMs· string · unitms· requiredmintVelocityQ9PerH· string · unitq9· requiredmintVelocityFloor· string · requiredrequoteToleranceQ9· string · unitq9· required
supply· string · requiredhedge· object · requiredcontracts· string · unitcontracts· requiredentryPriceQ8· string | null · unitq8· requiredmarginMsat· string · unitmsat· requiredequityMsat· string | null · unitmsat· required
backingIdentityHolds· boolean · requiredreserveMsat· string · unitmsat· requiredreserveTargetMsat· string | null · unitmsat· requiredreserveFloorMsat· string | null · unitmsat· requiredmarkQ8· string | null · unitq8· requiredindicative· object | null · requiredoracleFresh· boolean · requiredmintedLastHour· string · requiredredeemedLastHour· string · requiredcapacity· object · requiredheadroom· string | null · requiredlimit· enum(organic_oi,hard_cap,oi_cap,skew,velocity) | null · requiredperLimit· object | null · required
mintsHalted· boolean · required: Halts user mints AND stakes (a stake is a mint-class flow; stakeUsdhb refuses with usdhb_mints_halted). Redemptions, unstake releases and the waterfall's yield mints continue, so supply can move while this is true.mintsHaltedReason· string | null · requiredlastAttestation· object | null · requiredattestationIntervalMs· string · unitms· requiredattestationSweepMs· string | null · unitms· requiredfeatures· object · requiredmint· boolean · requiredredeem· boolean · requiredstake· boolean · requiredwithdraw· boolean · required
staking· object · requiredsharePriceQ9· string · unitq9· requiredstaked· string · requiredsusdhbSupply· string · requiredyieldEscrowMsat· string · unitmsat· requireduncoveredShortfallMsat· string · unitmsat· requiredunstakeCooldownMs· string · unitms· requiredlastWaterfall· object | null · required
tokenIdentifier· string | null · requiredfreezeCount· integer · requiredfrozenCount· integer · requiredsupplyLedger· object | null · requiredwalletsDisplayingTokens· string[] · required
Example 200 response:
{
"tsMs": "100000",
"params": {
"baseFeeQ9": "100000",
"spreadQ9": "100000",
"reserveTargetQ9": "100000",
"reserveFloorQ9": "100000",
"dynFeeCurve": [
{
"xQ9": "100000",
"yQ9": "100000"
}
],
"hardCap": "string",
"quoteTtlMs": "100000",
"mintVelocityQ9PerH": "100000",
"mintVelocityFloor": "string",
"requoteToleranceQ9": "100000"
},
"supply": "string",
"hedge": {
"contracts": "100000",
"entryPriceQ8": "100000",
"marginMsat": "100000",
"equityMsat": "100000"
},
"backingIdentityHolds": true,
"reserveMsat": "100000",
"reserveTargetMsat": "100000",
"reserveFloorMsat": "100000",
"markQ8": "100000",
"indicative": {
"bidQ8": "100000",
"askQ8": "100000",
"spreadQ9": "100000",
"oracleTsMs": "100000"
},
"oracleFresh": true,
"mintedLastHour": "string",
"redeemedLastHour": "string",
"capacity": {
"headroom": "string",
"limit": "organic_oi",
"perLimit": {
"organic_oi": "string",
"hard_cap": "string",
"oi_cap": "string",
"skew": "string",
"velocity": "string"
}
},
"mintsHalted": true,
"mintsHaltedReason": "string",
"lastAttestation": {
"asOfTsMs": "100000",
"issuerSupply": "string",
"issuerIssued": "string",
"issuerBurned": "string",
"issuerCustody": "string",
"ledgerSupply": "string",
"ledgerCustody": "string",
"ok": true
},
"attestationIntervalMs": "100000",
"attestationSweepMs": "100000",
"features": {
"mint": true,
"redeem": true,
"stake": true,
"withdraw": true
},
"staking": {
"sharePriceQ9": "100000",
"staked": "string",
"susdhbSupply": "string",
"yieldEscrowMsat": "100000",
"uncoveredShortfallMsat": "100000",
"unstakeCooldownMs": "100000",
"lastWaterfall": {
"boundaryTsMs": "100000",
"markQ8": "100000",
"flowMsat": "100000",
"toReserveMsat": "100000",
"toStakersMsat": "100000",
"overflowMsat": "100000",
"shortfallMsat": "100000",
"markdown": "string",
"yieldMinted": "string",
"sharePriceQ9Before": "100000",
"sharePriceQ9After": "100000"
}
},
"tokenIdentifier": "string",
"freezeCount": 0,
"frozenCount": 0,
"supplyLedger": {
"mintedQ6": "100000",
"burnedQ6": "100000",
"outstandingQ6": "100000",
"asOfMs": "100000",
"issuerSupplyQ6": "100000",
"reconciled": true,
"reconciledAtMs": "100000"
},
"walletsDisplayingTokens": [
"string"
]
}POST /v1/usdhb/quotes
Quote a mint or redeem
Auth: API key (x-api-key)
Quote expiry: the response's expiresAtMs (epoch ms)
Request body
side· enum(mint,redeem) · requiredusdhb· string · required
{
"side": "mint",
"usdhb": "string"
}Responses
- 201: Created
quoteId· string · requiredside· enum(mint,redeem) · requiredusdhb· string · requiredcontracts· string · unitcontracts· requiredpriceQ8· string · unitq8· requiredspreadQ9· string · unitq9· requiredfeeMsat· string · unitmsat· requireddynFeeMsat· string · unitmsat· requiredimpactMsat· string · unitmsat· requiredsatsMsat· string · unitmsat· requiredexpiresAtMs· string · unitms· requiredoracleTsMs· string · unitms· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 409: Conflict
error· string · requiredcode· string · requiredreason· string · optionalheadroom· string · optionallimit· enum(organic_oi,hard_cap,oi_cap,skew,velocity) · optionalquote· object · optionalquoteId· string · requiredside· enum(mint,redeem) · requiredusdhb· string · requiredcontracts· string · unitcontracts· requiredpriceQ8· string · unitq8· requiredspreadQ9· string · unitq9· requiredfeeMsat· string · unitmsat· requireddynFeeMsat· string · unitmsat· requiredimpactMsat· string · unitmsat· requiredsatsMsat· string · unitmsat· requiredexpiresAtMs· string · unitms· requiredoracleTsMs· string · unitms· required
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 201 response:
{
"quoteId": "string",
"side": "mint",
"usdhb": "string",
"contracts": "100000",
"priceQ8": "100000",
"spreadQ9": "100000",
"feeMsat": "100000",
"dynFeeMsat": "100000",
"impactMsat": "100000",
"satsMsat": "100000",
"expiresAtMs": "100000",
"oracleTsMs": "100000"
}POST /v1/usdhb/mints
Mint USDhb
Auth: API key (x-api-key)
Idempotency key: quote-id: the body's quoteId; any other value is refused (400)
Accepts a quote from: usdhb.quote
Parameters
idempotency-key(header), required: string
Request body
quoteId· string · required
{
"quoteId": "string"
}Responses
- 201: Created
sagaId· string · requiredside· enum(mint,redeem) · requiredstate· enum(hedging,minted,queued,redeeming,paid) · requiredusdhb· string · requiredcontracts· string · unitcontracts· requiredsatsMsat· string · unitmsat· requiredpriceQ8· string | null · unitq8· requiredqueuedReason· string | null · requiredqueuedSinceMs· string | null · unitms· requiredcreatedTsMs· string · unitms· requiredupdatedTsMs· string · unitms· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 409: Conflict
error· string · requiredcode· string · requiredreason· string · optionalheadroom· string · optionallimit· enum(organic_oi,hard_cap,oi_cap,skew,velocity) · optionalquote· object · optionalquoteId· string · requiredside· enum(mint,redeem) · requiredusdhb· string · requiredcontracts· string · unitcontracts· requiredpriceQ8· string · unitq8· requiredspreadQ9· string · unitq9· requiredfeeMsat· string · unitmsat· requireddynFeeMsat· string · unitmsat· requiredimpactMsat· string · unitmsat· requiredsatsMsat· string · unitmsat· requiredexpiresAtMs· string · unitms· requiredoracleTsMs· string · unitms· required
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 201 response:
{
"sagaId": "string",
"side": "mint",
"state": "hedging",
"usdhb": "string",
"contracts": "100000",
"satsMsat": "100000",
"priceQ8": "100000",
"queuedReason": "string",
"queuedSinceMs": "100000",
"createdTsMs": "100000",
"updatedTsMs": "100000"
}POST /v1/usdhb/redemptions
Redeem USDhb
Auth: API key (x-api-key)
Idempotency key: quote-id: the body's quoteId; any other value is refused (400)
Accepts a quote from: usdhb.quote
Parameters
idempotency-key(header), required: string
Request body
quoteId· string · required
{
"quoteId": "string"
}Responses
- 201: Created
sagaId· string · requiredside· enum(mint,redeem) · requiredstate· enum(hedging,minted,queued,redeeming,paid) · requiredusdhb· string · requiredcontracts· string · unitcontracts· requiredsatsMsat· string · unitmsat· requiredpriceQ8· string | null · unitq8· requiredqueuedReason· string | null · requiredqueuedSinceMs· string | null · unitms· requiredcreatedTsMs· string · unitms· requiredupdatedTsMs· string · unitms· required
- 202: Accepted
sagaId· string · requiredside· enum(mint,redeem) · requiredstate· enum(hedging,minted,queued,redeeming,paid) · requiredusdhb· string · requiredcontracts· string · unitcontracts· requiredsatsMsat· string · unitmsat· requiredpriceQ8· string | null · unitq8· requiredqueuedReason· string | null · requiredqueuedSinceMs· string | null · unitms· requiredcreatedTsMs· string · unitms· requiredupdatedTsMs· string · unitms· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 409: Conflict
error· string · requiredcode· string · requiredreason· string · optionalheadroom· string · optionallimit· enum(organic_oi,hard_cap,oi_cap,skew,velocity) · optionalquote· object · optionalquoteId· string · requiredside· enum(mint,redeem) · requiredusdhb· string · requiredcontracts· string · unitcontracts· requiredpriceQ8· string · unitq8· requiredspreadQ9· string · unitq9· requiredfeeMsat· string · unitmsat· requireddynFeeMsat· string · unitmsat· requiredimpactMsat· string · unitmsat· requiredsatsMsat· string · unitmsat· requiredexpiresAtMs· string · unitms· requiredoracleTsMs· string · unitms· required
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 201 response:
{
"sagaId": "string",
"side": "mint",
"state": "hedging",
"usdhb": "string",
"contracts": "100000",
"satsMsat": "100000",
"priceQ8": "100000",
"queuedReason": "string",
"queuedSinceMs": "100000",
"createdTsMs": "100000",
"updatedTsMs": "100000"
}GET /v1/usdhb/sagas
List mint and redeem sagas
Auth: API key (x-api-key)
Parameters
limit(query): stringbeforeTsMs(query): string
Responses
- 200: OK
sagas· object[] · requiredsagaId· string · requiredside· enum(mint,redeem) · requiredstate· enum(hedging,minted,queued,redeeming,paid) · requiredusdhb· string · requiredcontracts· string · unitcontracts· requiredsatsMsat· string · unitmsat· requiredpriceQ8· string | null · unitq8· requiredqueuedReason· string | null · requiredqueuedSinceMs· string | null · unitms· requiredcreatedTsMs· string · unitms· requiredupdatedTsMs· string · unitms· required
nextBeforeTsMs· string | null · unitms· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"sagas": [
{
"sagaId": "string",
"side": "mint",
"state": "hedging",
"usdhb": "string",
"contracts": "100000",
"satsMsat": "100000",
"priceQ8": "100000",
"queuedReason": "string",
"queuedSinceMs": "100000",
"createdTsMs": "100000",
"updatedTsMs": "100000"
}
],
"nextBeforeTsMs": "100000"
}GET /v1/usdhb/sagas/{id}
Get a saga
Auth: API key (x-api-key)
Parameters
id(path), required: string
Responses
- 200: OK
sagaId· string · requiredside· enum(mint,redeem) · requiredstate· enum(hedging,minted,queued,redeeming,paid) · requiredusdhb· string · requiredcontracts· string · unitcontracts· requiredsatsMsat· string · unitmsat· requiredpriceQ8· string | null · unitq8· requiredqueuedReason· string | null · requiredqueuedSinceMs· string | null · unitms· requiredcreatedTsMs· string · unitms· requiredupdatedTsMs· string · unitms· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"sagaId": "string",
"side": "mint",
"state": "hedging",
"usdhb": "string",
"contracts": "100000",
"satsMsat": "100000",
"priceQ8": "100000",
"queuedReason": "string",
"queuedSinceMs": "100000",
"createdTsMs": "100000",
"updatedTsMs": "100000"
}POST /v1/usdhb/stake
Stake USDhb
Auth: API key (x-api-key)
Idempotency key: any: any fresh unique key, reused only to retry the same request
Parameters
idempotency-key(header), required: string
Request body
usdhb· string · required
{
"usdhb": "string"
}Responses
- 201: Created
usdhb· string · requiredsusdhb· string · requiredsharePriceQ9· string · unitq9· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 409: Conflict
error· string · requiredcode· string · requiredreason· string · optionalheadroom· string · optionallimit· enum(organic_oi,hard_cap,oi_cap,skew,velocity) · optionalquote· object · optionalquoteId· string · requiredside· enum(mint,redeem) · requiredusdhb· string · requiredcontracts· string · unitcontracts· requiredpriceQ8· string · unitq8· requiredspreadQ9· string · unitq9· requiredfeeMsat· string · unitmsat· requireddynFeeMsat· string · unitmsat· requiredimpactMsat· string · unitmsat· requiredsatsMsat· string · unitmsat· requiredexpiresAtMs· string · unitms· requiredoracleTsMs· string · unitms· required
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 201 response:
{
"usdhb": "string",
"susdhb": "string",
"sharePriceQ9": "100000"
}POST /v1/usdhb/unstake
Unstake USDhb
Auth: API key (x-api-key)
Idempotency key: any: any fresh unique key, reused only to retry the same request
Parameters
idempotency-key(header), required: string
Request body
susdhb· string · required
{
"susdhb": "string"
}Responses
- 202: Accepted
unstakeId· string · requiredsusdhb· string · requiredrequestedTsMs· string · unitms· requiredreleaseAtMs· string · unitms· requiredstate· enum(cooling,released) · requiredreleasedUsdhb· string | null · requiredreleasedTsMs· string | null · unitms· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 409: Conflict
error· string · requiredcode· string · requiredreason· string · optionalheadroom· string · optionallimit· enum(organic_oi,hard_cap,oi_cap,skew,velocity) · optionalquote· object · optionalquoteId· string · requiredside· enum(mint,redeem) · requiredusdhb· string · requiredcontracts· string · unitcontracts· requiredpriceQ8· string · unitq8· requiredspreadQ9· string · unitq9· requiredfeeMsat· string · unitmsat· requireddynFeeMsat· string · unitmsat· requiredimpactMsat· string · unitmsat· requiredsatsMsat· string · unitmsat· requiredexpiresAtMs· string · unitms· requiredoracleTsMs· string · unitms· required
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 202 response:
{
"unstakeId": "string",
"susdhb": "string",
"requestedTsMs": "100000",
"releaseAtMs": "100000",
"state": "cooling",
"releasedUsdhb": "string",
"releasedTsMs": "100000"
}GET /v1/usdhb/unstakes
List unstake requests
Auth: API key (x-api-key)
Responses
- 200: OK
unstakes· object[] · requiredunstakeId· string · requiredsusdhb· string · requiredrequestedTsMs· string · unitms· requiredreleaseAtMs· string · unitms· requiredstate· enum(cooling,released) · requiredreleasedUsdhb· string | null · requiredreleasedTsMs· string | null · unitms· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"unstakes": [
{
"unstakeId": "string",
"susdhb": "string",
"requestedTsMs": "100000",
"releaseAtMs": "100000",
"state": "cooling",
"releasedUsdhb": "string",
"releasedTsMs": "100000"
}
]
}GET /v1/usdhb/activity
List USDhb activity
Auth: API key (x-api-key)
Parameters
limit(query): stringbeforeSeq(query): string
Responses
- 200: OK
activity· object[] · required- when
type=UsdhbMintAccepted:seq· string · unitseq· requiredtsMs· string · unitms· requiredtype· constUsdhbMintAccepted· requiredpayload· object · requiredquoteId· string · requiredaccountId· string · requiredusdhbMicro· string · unitint· requiredcontracts· string · unitcontracts· requiredpriceQ8· string · unitq8· requiredexecPriceQ8· string · unitq8· required: The venue's hedge-short fill price (oracle midQ8 moved by the spread). Impact is not included in this price; see impactMsat.satsInMsat· string · unitmsat· required: Total sats debited from the account's free balance for this mint (the quoted amount): margin + feeMsat + the quoted positive impact. Fee and impact are included in satsInMsat, never charged on top.feeMsat· string · unitmsat· required: Not an account movement on its own: the mint base fee, included in satsInMsat (not charged separately).impactMsat· string · unitmsat· required: Not an account movement: the hedge open's signed price impact at execution (< 0 is a rebate the reserve keeps). The account pays only satsInMsat, which included the QUOTED impact; any difference is gapMsat or edgeMsat, borne by the venue.gapMsat· string · unitmsat· required: Not an account movement: what the reserve covered because the mark moved against the venue since the quote. Never debited from the account; >= 0.edgeMsat· string · unitmsat· required: Not an account movement: the quote surplus the reserve kept because the mark moved in the venue's favour. Never credited to the account; >= 0.usdhbBalanceAfterMicro· string · unitint· required
- when
type=UsdhbRedeemQueued:seq· string · unitseq· requiredtsMs· string · unitms· requiredtype· constUsdhbRedeemQueued· requiredpayload· object · requiredquoteId· string · requiredaccountId· string · requiredusdhbMicro· string · unitint· requiredcontracts· string · unitcontracts· requiredsatsOutQuotedMsat· string · unitmsat· required: Not an account movement yet: the quoted payout, net of the quoted fees and impact (they are included in this figure, not charged on top). Nothing is credited until UsdhbRedeemed.reason· string · requiredusdhbBalanceAfterMicro· string · unitint· requiredusdhbPendingAfterMicro· string · unitint· required
- when
type=UsdhbRedeemed:seq· string · unitseq· requiredtsMs· string · unitms· requiredtype· constUsdhbRedeemed· requiredpayload· object · requiredquoteId· string · requiredaccountId· string · requiredsatsOutMsat· string · unitmsat· required: Sats paid out: positive means credited to the account's free balance. Net figure: the base fee, dynamic fee and positive impact are already deducted (included in this amount, not charged separately).usdhbBalanceAfterMicro· string · unitint· requiredusdhbPendingAfterMicro· string · unitint· required
- when
type=UsdhbStaked:seq· string · unitseq· requiredtsMs· string · unitms· requiredtype· constUsdhbStaked· requiredpayload· object · requiredaccountId· string · requiredusdhbMicro· string · unitint· requiredsharesMicro· string · unitint· requiredsharePriceQ9· string · unitq9· requiredsusdhbBalanceAfterMicro· string · unitint· required
- when
type=UsdhbUnstakeRequested:seq· string · unitseq· requiredtsMs· string · unitms· requiredtype· constUsdhbUnstakeRequested· requiredpayload· object · requiredunstakeId· string · requiredaccountId· string · requiredsharesMicro· string · unitint· requiredreleaseAtMs· string · unitms· required
- when
type=UsdhbUnstaked:seq· string · unitseq· requiredtsMs· string · unitms· requiredtype· constUsdhbUnstaked· requiredpayload· object · requiredunstakeId· string · requiredaccountId· string · requiredsharesMicro· string · unitint· requiredusdhbMicro· string · unitint· requiredsharePriceQ9· string · unitq9· requiredusdhbBalanceAfterMicro· string · unitint· required
- when
type=UsdhbWithdrawalRequested:seq· string · unitseq· requiredtsMs· string · unitms· requiredtype· constUsdhbWithdrawalRequested· requiredpayload· object · requiredwithdrawalId· string · requiredaccountId· string · requiredusdhbMicro· string · unitint· requiredtoAddress· string · requiredusdhbBalanceAfterMicro· string · unitint· requiredusdhbPendingAfterMicro· string · unitint· required
- when
type=UsdhbWithdrawalPaid:seq· string · unitseq· requiredtsMs· string · unitms· requiredtype· constUsdhbWithdrawalPaid· requiredpayload· object · requiredwithdrawalId· string · requiredaccountId· string · requiredusdhbMicro· string · unitint· requiredtoAddress· string · requiredissuerRef· string · required
- when
type=UsdhbDepositCredited:seq· string · unitseq· requiredtsMs· string · unitms· requiredtype· constUsdhbDepositCredited· requiredpayload· object · requiredaccountId· string · requiredusdhbMicro· string · unitint· requiredtxId· string · requiredfromAddress· string · requiredusdhbBalanceAfterMicro· string · unitint· required
- when
nextBeforeSeq· string | null · unitseq· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"activity": [
{
"seq": "100000",
"tsMs": "100000",
"type": "UsdhbMintAccepted",
"payload": {
"quoteId": "string",
"accountId": "string",
"usdhbMicro": "100000",
"contracts": "100000",
"priceQ8": "100000",
"execPriceQ8": "100000",
"satsInMsat": "100000",
"feeMsat": "100000",
"impactMsat": "100000",
"gapMsat": "100000",
"edgeMsat": "100000",
"usdhbBalanceAfterMicro": "100000"
}
}
],
"nextBeforeSeq": "100000"
}GET /v1/usdhb/history
List waterfall history
Auth: none (public)
Parameters
limit(query): stringbeforeTsMs(query): string
Responses
- 200: OK
waterfalls· object[] · requiredboundaryTsMs· string · unitms· requiredmarkQ8· string · unitq8· requiredflowMsat· string · unitmsat· requiredtoReserveMsat· string · unitmsat· requiredtoStakersMsat· string · unitmsat· requiredoverflowMsat· string · unitmsat· requiredshortfallMsat· string · unitmsat· requiredmarkdown· string · requiredyieldMinted· string · requiredsharePriceQ9Before· string · unitq9· requiredsharePriceQ9After· string · unitq9· required
nextBeforeTsMs· string | null · unitms· required
Example 200 response:
{
"waterfalls": [
{
"boundaryTsMs": "100000",
"markQ8": "100000",
"flowMsat": "100000",
"toReserveMsat": "100000",
"toStakersMsat": "100000",
"overflowMsat": "100000",
"shortfallMsat": "100000",
"markdown": "string",
"yieldMinted": "string",
"sharePriceQ9Before": "100000",
"sharePriceQ9After": "100000"
}
],
"nextBeforeTsMs": "100000"
}GET /v1/usdhb/deposit-address
Get my USDhb deposit address
Auth: API key (x-api-key)
Responses
- 200: OK
address· string · requiredaccountNumber· string · unitint· requiredtokenIdentifier· string | null · required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"address": "string",
"accountNumber": "100000",
"tokenIdentifier": "string"
}POST /v1/usdhb/withdrawals/quote
Quote a USDhb withdrawal
Auth: API key (x-api-key)
Request body
sparkAddress· string · requiredusdhb· string · optional
{
"sparkAddress": "string",
"usdhb": "string"
}Responses
- 200: OK
firstSeen· boolean · requiredconfirmRequired· boolean · requiredconfirmThresholdUsdhb· string · requiredconfirmToken· string · optional
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"firstSeen": true,
"confirmRequired": true,
"confirmThresholdUsdhb": "string",
"confirmToken": "string"
}GET /v1/usdhb/withdrawals
List USDhb withdrawals
Auth: API key (x-api-key)
Responses
- 200: OK
withdrawals· object[] · requiredwithdrawalId· string · requiredusdhb· string · requiredsparkAddress· string · requiredstate· enum(requested,paid) · requiredissuerRef· string | null · requiredrequestedTsMs· string · unitms· requiredpaidTsMs· string | null · unitms· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"withdrawals": [
{
"withdrawalId": "string",
"usdhb": "string",
"sparkAddress": "string",
"state": "requested",
"issuerRef": "string",
"requestedTsMs": "100000",
"paidTsMs": "100000"
}
]
}POST /v1/usdhb/withdrawals
Withdraw USDhb
Auth: API key (x-api-key)
Idempotency key: any: any fresh unique key, reused only to retry the same request
Parameters
idempotency-key(header), required: string
Request body
usdhb· string · requiredsparkAddress· string · requiredconfirmToken· string · optional
{
"usdhb": "string",
"sparkAddress": "string",
"confirmToken": "string"
}Responses
- 201: Created
withdrawalId· string · requiredusdhb· string · requiredsparkAddress· string · requiredstate· enum(requested,paid) · requiredissuerRef· string | null · requiredrequestedTsMs· string · unitms· requiredpaidTsMs· string | null · unitms· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 409: Conflict
error· string · requiredcode· string · requiredreason· string · optionalheadroom· string · optionallimit· enum(organic_oi,hard_cap,oi_cap,skew,velocity) · optionalquote· object · optionalquoteId· string · requiredside· enum(mint,redeem) · requiredusdhb· string · requiredcontracts· string · unitcontracts· requiredpriceQ8· string · unitq8· requiredspreadQ9· string · unitq9· requiredfeeMsat· string · unitmsat· requireddynFeeMsat· string · unitmsat· requiredimpactMsat· string · unitmsat· requiredsatsMsat· string · unitmsat· requiredexpiresAtMs· string · unitms· requiredoracleTsMs· string · unitms· required
- 428: Confirmation Required
error· constconfirmation_required· requiredcode· constconfirmation_required· optionalreason· string · requiredfirstSeen· consttrue· requiredconfirmThresholdUsdhb· string · required
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 201 response:
{
"withdrawalId": "string",
"usdhb": "string",
"sparkAddress": "string",
"state": "requested",
"issuerRef": "string",
"requestedTsMs": "100000",
"paidTsMs": "100000"
}GET /v1/usdhb/freezes
List USDhb freezes
Auth: none (public)
Responses
- 200: OK
freezes· object[] · requiredseq· string · unitseq· requiredopId· string | null · requiredsparkAddress· string · requiredaction· enum(freeze,unfreeze) · requiredstate· enum(requested,applied) · requiredreason· string | null · requiredissuerRef· string | null · requiredimpactedMicro· string | null · unitint· requiredtsMs· string · unitms· requiredappliedTsMs· string | null · unitms· requiredrecovered· boolean · required
frozen· string[] · required
Example 200 response:
{
"freezes": [
{
"seq": "100000",
"opId": "string",
"sparkAddress": "string",
"action": "freeze",
"state": "requested",
"reason": "string",
"issuerRef": "string",
"impactedMicro": "100000",
"tsMs": "100000",
"appliedTsMs": "100000",
"recovered": true
}
],
"frozen": [
"string"
]
}Referral
GET /v1/referral
Get my referral status
Auth: API key (x-api-key)
Responses
- 200: OK
tsMs· string · unitms· requiredprogram· object · requiredenabled· boolean · requiredpaused· boolean · requiredpolicyVersion· string · unitint· required
policy· object · requiredshareQ9· string · unitq9· requiredshareTiers· object[] · requiredrefereeDiscountQ9· string · unitq9· requiredrefereeDiscountWindowMs· string · unitms· requiredrefereeDiscountVolumeCapMsat· string | null · unitmsat· requiredrewardWindowMs· string · unitms· requiredholdbackMs· string · unitms· requiredminClaimMsat· string · unitmsat· required
eligibility· object · requiredeligible· boolean · requiredgates· object[] · required
code· object | null · requiredreferredBy· object | null · requiredstats· object | null · requiredbindWindow· object | null · required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"tsMs": "100000",
"program": {
"enabled": true,
"paused": true,
"policyVersion": "100000"
},
"policy": {
"shareQ9": "100000",
"shareTiers": [
{
"minActiveReferees": "100000",
"shareQ9": "100000"
}
],
"refereeDiscountQ9": "100000",
"refereeDiscountWindowMs": "100000",
"refereeDiscountVolumeCapMsat": "100000",
"rewardWindowMs": "100000",
"holdbackMs": "100000",
"minClaimMsat": "100000"
},
"eligibility": {
"eligible": true,
"gates": [
{
"gate": "string",
"met": true,
"requiredMs": "100000",
"currentMs": "100000",
"requiredMsat": "100000",
"currentMsat": "100000",
"required": "100000",
"current": "100000"
}
]
},
"code": {
"code": "string",
"createdTsMs": "100000",
"disabled": true
},
"referredBy": {
"code": "string",
"boundTsMs": "100000",
"discountQ9": "100000",
"discountExpiresTsMs": "100000",
"discountVolumeCapMsat": "100000",
"discountVolumeUsedMsat": "100000",
"discountActive": true
},
"stats": {
"referees": "100000",
"activeReferees": "100000",
"tier": {
"shareQ9": "100000"
},
"lifetimeEarnedMsat": "100000",
"earned30dMsat": "100000",
"claimableMsat": "100000",
"pendingHoldbackMsat": "100000",
"claimedMsat": "100000",
"forfeitedMsat": "100000"
},
"bindWindow": {
"openUntilTsMs": "100000"
}
}POST /v1/referral/code
Create my referral code
Auth: API key (x-api-key)
Idempotency key: any: any fresh unique key, reused only to retry the same request
Parameters
idempotency-key(header), required: string
Request body
code· string · optional
{
"code": "string"
}Responses
- 201: Created
code· string · requiredcreatedTsMs· string · unitms· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 201 response:
{
"code": "string",
"createdTsMs": "100000"
}POST /v1/referral/bind
Bind to a referrer
Auth: API key (x-api-key)
Idempotency key: any: any fresh unique key, reused only to retry the same request
Parameters
idempotency-key(header), required: string
Request body
code· string · required
{
"code": "string"
}Responses
- 200: OK
bound· consttrue· requiredreferredBy· object · requiredcode· string · requiredboundTsMs· string · unitms· requireddiscountQ9· string · unitq9· requireddiscountExpiresTsMs· string · unitms· requireddiscountVolumeCapMsat· string | null · unitmsat· requireddiscountVolumeUsedMsat· string · unitmsat· requireddiscountActive· boolean · required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"bound": true,
"referredBy": {
"code": "string",
"boundTsMs": "100000",
"discountQ9": "100000",
"discountExpiresTsMs": "100000",
"discountVolumeCapMsat": "100000",
"discountVolumeUsedMsat": "100000",
"discountActive": true
}
}GET /v1/referral/earnings
List referral earnings
Auth: API key (x-api-key)
Parameters
limit(query): stringbeforeSeq(query): string
Responses
- 200: OK
earnings· object[] · requiredseq· string · unitseq· requiredfillSeq· string | null · unitseq· requiredtsMs· string · unitms· requiredref· string | null · requiredgrossFeeMsat· string · unitmsat· requirednetFeeMsat· string · unitmsat· requiredshareQ9· string · unitq9· requiredrewardMsat· string · unitmsat· requiredstatus· enum(accrued,claimed,forfeited) · requiredepochDay· string · unitms· requiredcode· string | null · required
nextBeforeSeq· string | null · unitseq· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"earnings": [
{
"seq": "100000",
"fillSeq": "100000",
"tsMs": "100000",
"ref": "string",
"grossFeeMsat": "100000",
"netFeeMsat": "100000",
"shareQ9": "100000",
"rewardMsat": "100000",
"status": "accrued",
"epochDay": "100000",
"code": "string"
}
],
"nextBeforeSeq": "100000"
}GET /v1/referral/referees
List my referees
Auth: API key (x-api-key)
Parameters
limit(query): stringbeforeSeq(query): string
Responses
- 200: OK
referees· object[] · requiredref· string · requiredboundTsMs· string · unitms· requiredactive· boolean · requiredfeesContributed30dMsat· string · unitmsat· requiredearnedFromMsat· string · unitmsat· requiredrewardWindowEndsTsMs· string · unitms· requiredsunset· boolean · required
nextBeforeSeq· string | null · unitseq· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"referees": [
{
"ref": "string",
"boundTsMs": "100000",
"active": true,
"feesContributed30dMsat": "100000",
"earnedFromMsat": "100000",
"rewardWindowEndsTsMs": "100000",
"sunset": true
}
],
"nextBeforeSeq": "100000"
}POST /v1/referral/claim
Claim referral rewards
Auth: API key (x-api-key)
Idempotency key: any: any fresh unique key, reused only to retry the same request
Parameters
idempotency-key(header), required: string
Responses
- 201: Created
claimedMsat· string · unitmsat· requiredaccruals· string · unitint· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 201 response:
{
"claimedMsat": "100000",
"accruals": "100000"
}Promoter
POST /v1/promoter/apply
Apply as a promoter
Auth: API key (x-api-key)
Idempotency key: any: any fresh unique key, reused only to retry the same request
Parameters
idempotency-key(header), required: string
Request body
displayName· string · requiredchannels· object[] · requiredkind· string · requiredurl· string · requiredaudience· string · required
plan· string · requiredjurisdictions· string[] · requiredacceptedTermsVersion· string · required
{
"displayName": "string",
"channels": [
{
"kind": "string",
"url": "string",
"audience": "string"
}
],
"plan": "string",
"jurisdictions": [
"string"
],
"acceptedTermsVersion": "string"
}Responses
- 201: Created
promoterId· string · requiredstatus· constapplied· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 201 response:
{
"promoterId": "string",
"status": "applied"
}GET /v1/promoter
Get my promoter profile
Auth: API key (x-api-key)
Responses
- 200: OK
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 404: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
GET /v1/promoter/codes
List promoter codes
Auth: API key (x-api-key)
Responses
- 200: OK
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
POST /v1/promoter/codes
Create a promoter code
Auth: API key (x-api-key)
Idempotency key: any: any fresh unique key, reused only to retry the same request
Parameters
idempotency-key(header), required: string
Request body
code· string · requiredlabel· string · requiredkickbackQ9· string · unitq9· required
{
"code": "string",
"label": "string",
"kickbackQ9": "100000"
}Responses
- 201: Created
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
GET /v1/promoter/stats
Get promoter stats
Auth: API key (x-api-key)
Parameters
days(query): string
Responses
- 200: OK
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
GET /v1/promoter/earnings
List promoter earnings
Auth: API key (x-api-key)
Parameters
limit(query): stringbeforeSeq(query): string
Responses
- 200: OK
earnings· object[] · requiredseq· string · unitseq· requiredfillSeq· string | null · unitseq· requiredtsMs· string · unitms· requiredref· string | null · requiredgrossFeeMsat· string · unitmsat· requirednetFeeMsat· string · unitmsat· requiredshareQ9· string · unitq9· requiredrewardMsat· string · unitmsat· requiredstatus· enum(accrued,claimed,forfeited) · requiredepochDay· string · unitms· requiredcode· string | null · required
nextBeforeSeq· string | null · unitseq· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"earnings": [
{
"seq": "100000",
"fillSeq": "100000",
"tsMs": "100000",
"ref": "string",
"grossFeeMsat": "100000",
"netFeeMsat": "100000",
"shareQ9": "100000",
"rewardMsat": "100000",
"status": "accrued",
"epochDay": "100000",
"code": "string"
}
],
"nextBeforeSeq": "100000"
}POST /v1/promoter/claim
Claim promoter rewards
Auth: API key (x-api-key)
Idempotency key: any: any fresh unique key, reused only to retry the same request
Parameters
idempotency-key(header), required: string
Responses
- 201: Created
claimedMsat· string · unitmsat· requiredaccruals· string · unitint· required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 201 response:
{
"claimedMsat": "100000",
"accruals": "100000"
}Onboarding
POST /v1/signup
Sign up
Auth: none (public)
Idempotency key: any: any fresh unique key, reused only to retry the same request
Parameters
idempotency-key(header), required: string
Responses
- 201: Created
apiKey· string · requiredaccountId· string · requiredrailAddress· string · requiredreferredBy· object · optionalcode· string · requiredboundTsMs· string · unitms· required
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 409: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
Example 201 response:
{
"apiKey": "string",
"accountId": "string",
"railAddress": "string",
"referredBy": {
"code": "string",
"boundTsMs": "100000"
}
}POST /v1/faucet
Request test sats
Auth: API key (x-api-key)
Idempotency key: any: any fresh unique key, reused only to retry the same request
Parameters
idempotency-key(header), required: string
Responses
- 201: Created
creditedMsat· string · unitmsat· requiredgrantsRemainingThisHour· integer · required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 409: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
- 503: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
Example 201 response:
{
"creditedMsat": "100000",
"grantsRemainingThisHour": 0
}Leaderboard
GET /v1/leaderboard
Get a leaderboard
Auth: none (public)
Parameters
board(query): enum(pnl,roi)window(query): enum(7d,30d,all)limit(query): string
Responses
- 200: OK
board· enum(pnl,roi) · requiredwindow· enum(7d,30d,all) · requiredrows· object[] · requiredrank· string · unitint· requiredhandle· string · requireddisplayName· string | null · requiredpnlMsat· string · unitmsat· requiredroiQ9· string · unitq9· requiredvolumeContracts· string · unitcontracts· requiredtrades· string · unitint· requiredwinRateQ9· string | null · unitq9· requiredmaxDrawdownQ9· string · unitq9· required
computedTsMs· string | null · unitms· requiredcadenceMinutes· string · unitint· requiredgates· object · requiredminEquityMsat· string · unitmsat· requiredminTrades· string · unitint· requiredminVolumeContracts· string · unitcontracts· required
windows· enum(7d,30d,all)[] · optionaltestnet· boolean · required
Example 200 response:
{
"board": "pnl",
"window": "7d",
"rows": [
{
"rank": "100000",
"handle": "string",
"displayName": "string",
"pnlMsat": "100000",
"roiQ9": "100000",
"volumeContracts": "100000",
"trades": "100000",
"winRateQ9": "100000",
"maxDrawdownQ9": "100000"
}
],
"computedTsMs": "100000",
"cadenceMinutes": "100000",
"gates": {
"minEquityMsat": "100000",
"minTrades": "100000",
"minVolumeContracts": "100000"
},
"windows": [
"7d"
],
"testnet": true
}GET /v1/leaderboard/me
Get my placements
Auth: API key (x-api-key)
Responses
- 200: OK
optedOut· boolean · requiredhandle· string | null · requireddisplayName· string | null · requiredplacements· object[] · requiredboard· enum(pnl,roi) · requiredwindow· enum(7d,30d,all) · requiredrank· string · unitint· requiredpnlMsat· string · unitmsat· requiredroiQ9· string · unitq9· requiredvolumeContracts· string · unitcontracts· requiredtrades· string · unitint· requiredwinRateQ9· string | null · unitq9· requiredmaxDrawdownQ9· string · unitq9· required
eligibility· object[] · requiredwindow· enum(7d,30d,all) · requiredeligible· boolean · requiredreason· enum(gates_failed,insufficient_history,coverage_gap,window_unserved) | null · optionaleligibleAtMs· string | null · unitms· optionalchecks· object[] · required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"optedOut": true,
"handle": "string",
"displayName": "string",
"placements": [
{
"board": "pnl",
"window": "7d",
"rank": "100000",
"pnlMsat": "100000",
"roiQ9": "100000",
"volumeContracts": "100000",
"trades": "100000",
"winRateQ9": "100000",
"maxDrawdownQ9": "100000"
}
],
"eligibility": [
{
"window": "7d",
"eligible": true,
"reason": "gates_failed",
"eligibleAtMs": "100000",
"checks": [
{
"gate": "string",
"ok": true,
"thresholdMsat": "100000",
"threshold": "100000",
"valueMsat": "100000",
"value": "100000"
}
]
}
]
}GET /v1/leaderboard/trader/{handle}
Get a trader profile
Auth: none (public)
Parameters
handle(path), required: string
Responses
- 200: OK
handle· string · requireddisplayName· string | null · requiredtradingSince· string | null · requiredplacements· object[] · requiredboard· enum(pnl,roi) · requiredwindow· enum(7d,30d,all) · requiredrank· string · unitint· requiredpnlMsat· string · unitmsat· requiredroiQ9· string · unitq9· requiredvolumeContracts· string · unitcontracts· requiredtrades· string · unitint· requiredwinRateQ9· string | null · unitq9· requiredmaxDrawdownQ9· string · unitq9· required
equityCurve· object[] · requireddayTsMs· string · unitms· requiredindexQ9· string · unitq9· required
testnet· boolean · required
Example 200 response:
{
"handle": "string",
"displayName": "string",
"tradingSince": "string",
"placements": [
{
"board": "pnl",
"window": "7d",
"rank": "100000",
"pnlMsat": "100000",
"roiQ9": "100000",
"volumeContracts": "100000",
"trades": "100000",
"winRateQ9": "100000",
"maxDrawdownQ9": "100000"
}
],
"equityCurve": [
{
"dayTsMs": "100000",
"indexQ9": "100000"
}
],
"testnet": true
}GET /v1/leaderboard/trader/{handle}/og.png
Get a trader's share card
Auth: none (public)
Parameters
handle(path), required: string
Responses
- 200: OK
POST /v1/leaderboard/settings
Update leaderboard settings
Auth: API key (x-api-key)
Idempotency key: any: any fresh unique key, reused only to retry the same request
Parameters
idempotency-key(header), required: string
Request body
optedOut· boolean · optionaldisplayName· string | null · optional
{
"optedOut": true,
"displayName": "string"
}Responses
- 200: OK
optedOut· boolean · requiredhandle· string | null · requireddisplayName· string | null · requiredplacements· object[] · requiredboard· enum(pnl,roi) · requiredwindow· enum(7d,30d,all) · requiredrank· string · unitint· requiredpnlMsat· string · unitmsat· requiredroiQ9· string · unitq9· requiredvolumeContracts· string · unitcontracts· requiredtrades· string · unitint· requiredwinRateQ9· string | null · unitq9· requiredmaxDrawdownQ9· string · unitq9· required
eligibility· object[] · requiredwindow· enum(7d,30d,all) · requiredeligible· boolean · requiredreason· enum(gates_failed,insufficient_history,coverage_gap,window_unserved) | null · optionaleligibleAtMs· string | null · unitms· optionalchecks· object[] · required
- 401: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 403: A refusal carrying a stable machine
code(ErrorCode) beside humanerrorprose.error· string · requiredcode·ErrorCode· optional
- 429: A token bucket is exhausted.
error· string · requiredcode·ErrorCode· optional
Example 200 response:
{
"optedOut": true,
"handle": "string",
"displayName": "string",
"placements": [
{
"board": "pnl",
"window": "7d",
"rank": "100000",
"pnlMsat": "100000",
"roiQ9": "100000",
"volumeContracts": "100000",
"trades": "100000",
"winRateQ9": "100000",
"maxDrawdownQ9": "100000"
}
],
"eligibility": [
{
"window": "7d",
"eligible": true,
"reason": "gates_failed",
"eligibleAtMs": "100000",
"checks": [
{
"gate": "string",
"ok": true,
"thresholdMsat": "100000",
"threshold": "100000",
"valueMsat": "100000",
"value": "100000"
}
]
}
]
}Schemas
Types referenced by the fields above.
ErrorCode
Enum, one of: validation, unauthorized, insufficient_scope, compliance_refused, session_limit, referral_forbidden, not_found, idempotency_key_reused, conflict, confirmation_required, rate_limited, feature_unavailable, deposits_halted, unavailable, internal, tvl_cap, size_not_whole_contracts, insufficient_balance, insufficient_margin, position_limit, oi_cap, reduce_only, market_halted, oracle_stale, body_too_large, usdhb_capacity, usdhb_oracle_stale, usdhb_whole_units, usdhb_dust, usdhb_mints_halted, usdhb_requote, usdhb_quote_expired, token_rail_unavailable
FundingHistoryEntry
tsMs· string · unitms· requiredrateQ9· string · unitq9· requiredskewQ9· string · unitq9· required
OrdersPage
orders· object[] · requiredorderId· string · requiredmarketId· string · requiredside· enum(buy,sell) · requiredtype· enum(market,limit,stop_market,take_profit_market) · requiredcontracts· string · unitcontracts· requiredsizeShares· string | null · optionalstatus· enum(accepted,filled,canceled,rejected) · requiredreason· string | null · requiredheldUntilTsMs· string | null · unitms· optional: Set only while the order is held: it is an accepted limit order, on an account that is not under an admin orders block, its market follows the NASDAQ calendar and is outside regular trading hours, and a fill would open or increase exposure against the account's current position. A held order is not evaluated against prices until this instant, the next session open, and is neither filled nor rejected meanwhile. null when the order is not held. Evaluated at the time of the request; no WebSocket frame carries it, so refetch the order when this instant passes.
nextBeforeSeq· string | null · unitseq· required
Position
marketId· string · requiredside· enum(long,short) · requiredcontracts· string · unitcontracts· requiredsizeShares· string | null · optionalentryPriceQ8· string · unitq8· required: Contract-weighted average execPriceQ8 of the opening fills. Fees and impact are not included in it (they are charged separately on each fill).marginMsat· string · unitmsat· required: Not an account movement: a balance, the margin held on this position, including funding already settled into it. Funding accrued since fundingClockTsMs is NOT included yet.fundingClockTsMs· string · unitms· required: Funding accrues from this time and is not yet in marginMsat. It settles into marginMsat (positive means credited to the account, negative debited) at the next hourly boundary, fill or liquidation.
PublicMarket
marketId· string · requiredunderlying· string · requiredcontractType· enum(inverse,quanto,linear_sats) · requiredoracleFeedId· string · requiredquantoMultiplierMsat· string | null · unitmsat· requiredshareScale· string | null · optionalstatus· enum(live,reduce_only,halted) · requiredtickSizeQ8· string · unitq8· requiredpriceDp· string · unitint· requiredminOrderContracts· string · unitcontracts· requiredmaxOrderContracts· string · unitcontracts· requiredtakerFeeQ9· string · unitq9· requiredmaxLeverage· string · unitint· requiredimRateQ9· string · unitq9· requiredmmRateQ9· string · unitq9· requiredbaseSpreadQ9· string · unitq9· requiredfundingRateHourlyQ9· string · unitq9· requirednextFundingTsMs· string · unitms· requiredsession· object | null · optionaloracleStalenessMs· string · unitms· requiredopenInterestContracts· string · unitcontracts· requiredskewQ9· string · unitq9· requiredlastPrice· object | null · requiredfundingInterestTerm· enum(configured,none_by_contract_type) · optionalindexSource· string · optionalindexStaleLegs· enum(equity,btc,both) | null · optionalindexLegTsMs· object | null · optional
TriggersPage
triggers· object[] · requiredorderId· string · requiredmarketId· string · requiredkind· enum(entry,stop,take_profit) · requiredside· enum(buy,sell) · requiredcontracts· string · unitcontracts· requiredsizeShares· string | null · optionaltriggerPriceQ8· string · unitq8· requiredreduceOnly· boolean · requiredstatus· enum(resting,armed,blocked,executed,cancelled) · requiredreason· string | null · requiredocoGroup· string | null · requiredheldUntilTsMs· string | null · unitms· optional: Set only while the trigger is held: it is an active entry trigger (resting, armed or blocked), on an account that is not under an admin orders block, and its market is live, follows the NASDAQ calendar and is outside regular trading hours. A held trigger cannot fill before this instant, the next session open. At the first print of that session it is checked again: it arms if the price is still past its level, and fills on the next print at that print's price; otherwise it returns to resting. null when the trigger is not held, including while its market is reduce-only or halted, when no end can be promised. Evaluated at the time of the request; refetch the trigger when this instant passes.
nextBeforeSeq· string | null · unitseq· required