Trade
REST

API

REST

Every route with its parameters, body and response fields.

Every route, with its parameters, body and response fields, generated from the same schemas the API validates with. Shared rules (values, paging, signing) are on API, and the codes a route can fail with are on Errors.

Exchange

GET /health

Liveness: 200 { status } always.

Response 200
FieldTypeDescription
statusstring

GET /v1/status

Mode, chain mode, program id, withdrawals and faucet switches, engine state, last batch.

Response 200
FieldTypeDescription
modefixture | live
chainoff | localnet | mainnet
programIdaddress | nullthe Strobe program when chain is on; null when off
withdrawalsEnabledboolean
faucetEnabledboolean
faucetAmountdecimalUSDC per claim
engineobject
engine.stateconnecting | live | unreachable
engine.reachableboolean
lastBatchobject | null
lastBatch.numberinteger1 or more.
lastBatch.slotinteger | nullthe Solana slot the batch landed in; null while chain is off
lastBatch.accountsTouchedinteger
lastBatch.stateHashstringhex SHA-256 of the full engine state after the batch
lastBatch.signaturesignature | nullthe batch transaction's signature; null while chain is off
lastBatch.chainoff | localnet | mainnet
lastBatch.atepoch ms
lastBatch.timeISO 8601 UTC
seasonstring
contractVersionstring
serverTimeepoch ms

GET /v1/markets

The three markets with their rules and live ticker.

Response 200
FieldTypeDescription
itemsobject[]
items[].symbolSOL-PERP | BTC-PERP | ETH-PERP
items[].basestring
items[].quotestring
items[].tickSizedecimal
items[].lotSizedecimal
items[].minSizedecimal
items[].priceDecimalsintegerdecimal places of a price and of a size, from the tick and lot sizes
items[].sizeDecimalsinteger
items[].maxLeverageinteger
items[].maintenanceMarginFractiondecimalmaintenance margin as a fraction of notional (half the initial margin at max leverage)
items[].takerFeeBpsdecimal
items[].makerFeeBpsdecimal
items[].fundingIntervalSecondsinteger
items[].tickerobject
items[].ticker.marketSOL-PERP | BTC-PERP | ETH-PERP
items[].ticker.indexdecimalmedian of the Coinbase and Kraken tickers
items[].ticker.markdecimal
items[].ticker.lastdecimal | null
items[].ticker.bestBiddecimal | null
items[].ticker.bestAskdecimal | null
items[].ticker.fundingRatesigned decimalthis hour's funding rate as a fraction of notional (longs pay when positive)
items[].ticker.nextFundingAtepoch ms
items[].ticker.nextFundingTimeISO 8601 UTC
items[].ticker.volume24hdecimalUSDC notional traded over the last 24 h
items[].ticker.open24hdecimalthe mark 24 h ago, and the change since as a fraction (0.0123 = +1.23%)
items[].ticker.change24hsigned decimal
items[].ticker.openInterestdecimalopen interest in base units (one side)
items[].ticker.atepoch ms
asOfISO 8601 UTC

GET /v1/markets/{market}/book

Order book levels with sequence number.

Path
FieldTypeDescription
marketmarket
Query
FieldTypeDescription
depthoptionalinteger1 to 100.
Response 200
FieldTypeDescription
marketSOL-PERP | BTC-PERP | ETH-PERP
seqintegersequence of the last change included; deltas continue from it
bidsany[][]
asksany[][]
atepoch ms

GET /v1/markets/{market}/trades

Recent trades, newest first, each with the taker order ack time.

Path
FieldTypeDescription
marketmarket
Query
FieldTypeDescription
limitoptionalinteger1 to 200.
Response 200
FieldTypeDescription
itemsobject[]
items[].idid
items[].marketSOL-PERP | BTC-PERP | ETH-PERP
items[].pricedecimal
items[].sizedecimal
items[].takerSidebuy | sell
items[].ackMicrosinteger µsthe taker order's receive-to-ack time in the engine
items[].ackSourceengine | fixture
items[].atepoch ms
items[].timeISO 8601 UTC
asOfISO 8601 UTC

GET /v1/markets/{market}/candles

Candles by interval, oldest first.

Path
FieldTypeDescription
marketmarket
Query
FieldTypeDescription
interval1m | 5m | 15m | 1h | 4h | 1d
endoptionalepoch mscandles starting before this epoch ms (default: now)
limitoptionalinteger1 to 1000.
Response 200
FieldTypeDescription
marketSOL-PERP | BTC-PERP | ETH-PERP
interval1m | 5m | 15m | 1h | 4h | 1d
itemsobject[]
items[].startepoch msbucket start, epoch ms
items[].opendecimal
items[].highdecimal
items[].lowdecimal
items[].closedecimal
items[].volumedecimalbase units traded
items[].notionaldecimalUSDC traded
items[].tradesinteger
asOfISO 8601 UTC

GET /v1/markets/{market}/ticker

Index, mark, funding, 24 h volume and change, open interest.

Path
FieldTypeDescription
marketmarket
Response 200
FieldTypeDescription
marketSOL-PERP | BTC-PERP | ETH-PERP
indexdecimalmedian of the Coinbase and Kraken tickers
markdecimal
lastdecimal | null
bestBiddecimal | null
bestAskdecimal | null
fundingRatesigned decimalthis hour's funding rate as a fraction of notional (longs pay when positive)
nextFundingAtepoch ms
nextFundingTimeISO 8601 UTC
volume24hdecimalUSDC notional traded over the last 24 h
open24hdecimalthe mark 24 h ago, and the change since as a fraction (0.0123 = +1.23%)
change24hsigned decimal
openInterestdecimalopen interest in base units (one side)
atepoch ms

GET /v1/latency

Engine receive-to-ack p50/p99 in microseconds over a window.

Response 200
FieldTypeDescription
p50Microsinteger µs
p99Microsinteger µs
samplesinteger
windowSecondsinteger
sourceengine | fixture
atepoch ms

GET /v1/batches

Settlement batches, newest first.

Query
FieldTypeDescription
cursoroptionalstring
limitoptionalinteger1 to 100. Default 24.
Response 200
FieldTypeDescription
itemsobject[]
items[].numberinteger1 or more.
items[].slotinteger | nullthe Solana slot the batch landed in; null while chain is off
items[].accountsTouchedinteger
items[].stateHashstringhex SHA-256 of the full engine state after the batch
items[].signaturesignature | nullthe batch transaction's signature; null while chain is off
items[].chainoff | localnet | mainnet
items[].atepoch ms
items[].timeISO 8601 UTC
pageobject
page.nextCursorstring | null
page.hasMoreboolean
asOfISO 8601 UTC
chainoff | localnet | mainnet

GET /v1/leaderboard

Season Zero standings, plus the rank of wallet.

Query
FieldTypeDescription
cursoroptionalstring
limitoptionalinteger1 to 100. Default 24.
walletoptionaladdress
Response 200
FieldTypeDescription
itemsobject[]
items[].rankinteger1 or more.
items[].addressaddress
items[].filledNotionaldecimal
items[].pointsdecimal
items[].pnlsigned decimal
pageobject
page.nextCursorstring | null
page.hasMoreboolean
asOfISO 8601 UTC
seasonstring
tradersinteger
meobject | nullthe `wallet` asked about; null when not asked or not ranked yet
me.rankinteger1 or more.
me.addressaddress
me.filledNotionaldecimal
me.pointsdecimal
me.pnlsigned decimal

GET /v1/invites/{code}

Whether an invite code is valid, used or unknown.

Path
FieldTypeDescription
codestring
Response 200
FieldTypeDescription
codestring
statusvalid | used | unknown

Accounts

GET /v1/accounts/{address}

Equity, margins, leverage, points, rank and faucet state.

Path
FieldTypeDescription
addressaddress
Response 200
FieldTypeDescription
addressaddress
admittedbooleanentered Season Zero with an invite code
collateralsigned decimaldeposits + faucet + realized PnL + funding - fees - withdrawals
unrealizedPnlsigned decimal
equitysigned decimal
initialMargindecimalinitial margin of open positions at their chosen leverage
maintenanceMargindecimal
freeMargindecimalequity - initial margin of positions and resting orders, floored at 0
notionaldecimal
leverageUseddecimalnotional / equity
leverageRecord<string, integer>the chosen leverage per market (1 to max)
pointsdecimal
rankinteger | null
filledNotionaldecimal
faucetobject
faucet.enabledboolean
faucet.amountdecimal
faucet.nextClaimAtepoch ms | nullnull when a claim is possible now
atepoch ms

GET /v1/accounts/{address}/positions

Open positions with live PnL and liquidation price.

Path
FieldTypeDescription
addressaddress
Response 200
FieldTypeDescription
itemsobject[]
items[].marketSOL-PERP | BTC-PERP | ETH-PERP
items[].sidelong | short
items[].sizedecimalabsolute size in base units
items[].entryPricedecimal
items[].markPricedecimal
items[].notionaldecimal
items[].leverageinteger
items[].initialMargindecimal
items[].maintenanceMargindecimal
items[].unrealizedPnlsigned decimal
items[].realizedPnlsigned decimal
items[].fundingsigned decimalnet funding since the position opened; positive = received
items[].liquidationPricedecimal | nullnull when no price liquidates it
items[].openedAtepoch ms
items[].openedTimeISO 8601 UTC
asOfISO 8601 UTC

GET /v1/accounts/{address}/orders

Resting orders.

Path
FieldTypeDescription
addressaddress
Response 200
FieldTypeDescription
itemsobject[]
items[].orderIdid
items[].clientOrderIdstring | null
items[].marketSOL-PERP | BTC-PERP | ETH-PERP
items[].sidebuy | sell
items[].kindlimit | market
items[].pricedecimal | nullnull for a market order
items[].sizedecimal
items[].filledSizedecimal
items[].remainingSizedecimal
items[].timeInForcegtc | ioc | post_only
items[].reduceOnlyboolean
items[].statusresting | partially_filled | filled | cancelled
items[].atepoch ms
items[].timeISO 8601 UTC
asOfISO 8601 UTC

GET /v1/accounts/{address}/fills

Fills, newest first, with ack time and the price at the click.

Path
FieldTypeDescription
addressaddress
Query
FieldTypeDescription
cursoroptionalstring
limitoptionalinteger1 to 100. Default 24.
Response 200
FieldTypeDescription
itemsobject[]
items[].tradeIdid
items[].orderIdid
items[].marketSOL-PERP | BTC-PERP | ETH-PERP
items[].sidebuy | sell
items[].liquiditymaker | taker
items[].pricedecimal
items[].sizedecimal
items[].notionaldecimal
items[].feesigned decimalUSDC; maker fills pay 0
items[].realizedPnlsigned decimal
items[].pointsdecimal
items[].liquidationbooleana fill of the engine's liquidation order against this account
items[].ackMicrosinteger µs | nullthe order's receive-to-ack time; null on maker fills (the taker's order was the one acked)
items[].ackSourceengine | fixture
items[].arrivalPricedecimal | nullthe best price on the other side when the order arrived: the price at the click
items[].atepoch ms
items[].timeISO 8601 UTC
pageobject
page.nextCursorstring | null
page.hasMoreboolean
asOfISO 8601 UTC

GET /v1/accounts/{address}/funding

Hourly funding payments, newest first.

Path
FieldTypeDescription
addressaddress
Query
FieldTypeDescription
cursoroptionalstring
limitoptionalinteger1 to 100. Default 24.
Response 200
FieldTypeDescription
itemsobject[]
items[].marketSOL-PERP | BTC-PERP | ETH-PERP
items[].ratesigned decimalthe hour's rate
items[].positionSizesigned decimalsigned position size at the funding time (negative = short)
items[].indexPricedecimalthe index price at the funding instant; funding settles at the index, not the mark
items[].paymentsigned decimalUSDC; positive = received
items[].atepoch ms
items[].timeISO 8601 UTC
pageobject
page.nextCursorstring | null
page.hasMoreboolean
asOfISO 8601 UTC

GET /v1/accounts/{address}/transfers

Deposits, withdrawals and faucet claims, newest first.

Path
FieldTypeDescription
addressaddress
Query
FieldTypeDescription
cursoroptionalstring
limitoptionalinteger1 to 100. Default 24.
kindoptionaldeposit | withdrawal | faucet
Response 200
FieldTypeDescription
itemsobject[]
items[].idid
items[].kinddeposit | withdrawal | faucet
items[].amountdecimal
items[].statuspending | confirmed | paid | faileddeposits: pending → confirmed; withdrawals: pending → paid; faucet claims: confirmed
items[].signaturesignature | null
items[].atepoch ms
items[].timeISO 8601 UTC
pageobject
page.nextCursorstring | null
page.hasMoreboolean
asOfISO 8601 UTC

GET /v1/accounts/{address}/liquidations

Liquidations, newest first.

Path
FieldTypeDescription
addressaddress
Query
FieldTypeDescription
cursoroptionalstring
limitoptionalinteger1 to 100. Default 24.
Response 200
FieldTypeDescription
itemsobject[]
items[].marketSOL-PERP | BTC-PERP | ETH-PERP
items[].sidelong | short
items[].sizedecimal
items[].pricedecimal
items[].feedecimalliquidation fee to the insurance fund
items[].realizedPnlsigned decimal
items[].atepoch ms
items[].timeISO 8601 UTC
pageobject
page.nextCursorstring | null
page.hasMoreboolean
asOfISO 8601 UTC

GET /v1/accounts/{address}/equity

Equity points over time for the portfolio chart.

Path
FieldTypeDescription
addressaddress
Query
FieldTypeDescription
rangeoptional1d | 7d | 30d | all
Response 200
FieldTypeDescription
addressaddress
range1d | 7d | 30d | all
pointsobject[]
points[].atepoch ms
points[].equitysigned decimal
asOfISO 8601 UTC

GET /v1/accounts/{address}/invites

The wallet's own three invite codes.

Path
FieldTypeDescription
addressaddress
Response 200
FieldTypeDescription
itemsobject[]
items[].codestring
items[].statusvalid | used
items[].usedByaddress | null
items[].usedAtepoch ms | null
asOfISO 8601 UTC

Sessions and actions

GET /v1/sessions/nonce

A nonce and the fields of the session message the wallet signs.

Response 200
FieldTypeDescription
domainstring
uristring
chainIdstring
statementstring
noncestring
nonceTokenstringsend back with the proof
issuedAtISO 8601 UTC
nonceExpiresAtISO 8601 UTCthe message must be signed and sent before this
sessionExpiresAtISO 8601 UTCthe session key's expiry the message must carry (issuedAt + 7 days)

POST /v1/sessions

Verify the signed session message, admit the wallet with its invite code, register the session key.

Body
FieldTypeDescription
walletaddress
sessionKeyaddress
signedMessagebase64the exact bytes the wallet signed, base64
signaturebase64the wallet's ed25519 signature over them, base64
nonceTokenstring
Response 201
FieldTypeDescription
sessionobject
session.walletaddress
session.sessionKeyaddress
session.statusactive | expired | revoked
session.expiresAtepoch ms
session.expiresTimeISO 8601 UTC
session.createdAtepoch ms
admittedNowbooleantrue when this registration admitted the wallet with its invite code
invitesobject[]the wallet's own three codes to pass on
invites[].codestring
invites[].statusvalid | used
invites[].usedByaddress | null
invites[].usedAtepoch ms | null

GET /v1/sessions/{sessionKey}

A session key: active, expired or revoked.

Path
FieldTypeDescription
sessionKeystring
Response 200
FieldTypeDescription
walletaddress
sessionKeyaddress
statusactive | expired | revoked
expiresAtepoch ms
expiresTimeISO 8601 UTC
createdAtepoch ms

POST /v1/actions

A signed trading action (the WebSocket takes the same envelope).

Body
FieldTypeDescription
accountaddressthe trading wallet
sessionKeyaddressthe session key that signs; registered to `account`
idstringthe client's id for this action, echoed on its ack or reject 1 to 64 letters, digits, - or _.
nonceintegerepoch ms at signing; accepted within ±ACTION_WINDOW_MS of the server clock, once per session key
actionobject, one of several shapes
signaturebase64the session key's ed25519 signature over actionMessage(unsigned), base64
type: "place_order"
FieldTypeDescription
type"place_order"
marketSOL-PERP | BTC-PERP | ETH-PERP
sidebuy | sell
kindlimit | market
sizedecimal
priceoptionaldecimallimit orders only
timeInForceoptionalgtc | ioc | post_onlylimit orders only; absent = gtc
reduceOnlyoptionalboolean
clientOrderIdoptionalstring1 to 64 letters, digits, - or _.
type: "cancel_order"
FieldTypeDescription
type"cancel_order"
marketSOL-PERP | BTC-PERP | ETH-PERP
orderIdid
type: "cancel_all"
FieldTypeDescription
type"cancel_all"
marketoptionalSOL-PERP | BTC-PERP | ETH-PERP
type: "close_position"
FieldTypeDescription
type"close_position"
marketSOL-PERP | BTC-PERP | ETH-PERP
sizeoptionaldecimal
type: "set_leverage"
FieldTypeDescription
type"set_leverage"
marketSOL-PERP | BTC-PERP | ETH-PERP
leverageinteger
type: "claim_faucet"
FieldTypeDescription
type"claim_faucet"
type: "revoke_session"
FieldTypeDescription
type"revoke_session"
kind: "order"
FieldTypeDescription
idstringthe action's client id
ackMicrosinteger µsreceive-to-ack time in the engine
ackSourceengine | fixture
atepoch ms
kind"order"
actionplace_order | close_position
orderIdid
clientOrderIdstring | null
marketSOL-PERP | BTC-PERP | ETH-PERP
sidebuy | sell
statusresting | partially_filled | filled | cancelled
sizedecimal
filledSizedecimal
remainingSizedecimal
averagePricedecimal | nullvolume-weighted fill price; null without fills
fillsobject[]
fills[].tradeIdid
fills[].pricedecimal
fills[].sizedecimal
fills[].feesigned decimal
fills[].liquiditymaker | taker
arrivalPricedecimal | nullthe best price on the other side when the order arrived (the price at the click); null on an empty side
kind: "cancel"
FieldTypeDescription
idstringthe action's client id
ackMicrosinteger µsreceive-to-ack time in the engine
ackSourceengine | fixture
atepoch ms
kind"cancel"
actioncancel_order | cancel_all
cancelledid[]
kind: "leverage"
FieldTypeDescription
idstringthe action's client id
ackMicrosinteger µsreceive-to-ack time in the engine
ackSourceengine | fixture
atepoch ms
kind"leverage"
marketSOL-PERP | BTC-PERP | ETH-PERP
leverageinteger
kind: "faucet"
FieldTypeDescription
idstringthe action's client id
ackMicrosinteger µsreceive-to-ack time in the engine
ackSourceengine | fixture
atepoch ms
kind"faucet"
amountdecimal
nextClaimAtepoch ms
kind: "revoke"
FieldTypeDescription
idstringthe action's client id
ackMicrosinteger µsreceive-to-ack time in the engine
ackSourceengine | fixture
atepoch ms
kind"revoke"
sessionKeyaddress

Chain transactions

POST /v1/deposits/build

Build a deposit transaction for the wallet to sign (chain on).

Body
FieldTypeDescription
walletaddress
amountdecimal
Response 200
FieldTypeDescription
idstring
transactionBase64base64
blockhashstring
lastValidBlockHeightinteger
cosignedbooleanthe server adds its signature after the wallet's (withdrawals: the engine co-signs)

POST /v1/withdrawals/build

Build a withdrawal the engine co-signs (chain on).

Body
FieldTypeDescription
walletaddress
amountdecimal
Response 200
FieldTypeDescription
idstring
transactionBase64base64
blockhashstring
lastValidBlockHeightinteger
cosignedbooleanthe server adds its signature after the wallet's (withdrawals: the engine co-signs)

POST /v1/transactions/submit

Relay signed bytes, or report a wallet-sent signature.

mode: "relay"
FieldTypeDescription
mode"relay"
buildIdstring
signedTransactionBase64base64
idempotencyKeystring8 to 64 characters.
mode: "wallet-sent"
FieldTypeDescription
mode"wallet-sent"
buildIdstring
signaturesignature
idempotencyKeystring8 to 64 characters.
Response 200
FieldTypeDescription
idstring
statussubmitted | unconfirmed | confirmed | finalized | failed | expired
signatureoptionalstring
erroroptionalobject
error.stagebuild | wallet-rejected | wallet-changed | simulation | send | confirm
error.messagestring
error.nextStepoptionalstring
error.retryableboolean
error.programoptionalobject
error.program.addressstring
error.program.codeinteger | null
error.program.namestring | null

GET /v1/transactions/{id}

A built transaction: submitted, confirmed, failed or expired.

Path
FieldTypeDescription
idstring
Response 200
FieldTypeDescription
idstring
statussubmitted | unconfirmed | confirmed | finalized | failed | expired
signatureoptionalstring
erroroptionalobject
error.stagebuild | wallet-rejected | wallet-changed | simulation | send | confirm
error.messagestring
error.nextStepoptionalstring
error.retryableboolean
error.programoptionalobject
error.program.addressstring
error.program.codeinteger | null
error.program.namestring | null