HTTP API reference
Raw HTTP and WebSocket schemas. The SDK handles signing automatically.
See authentication, WebSocket actions and subscriptions for usage.
Private reads use proof headers; trading signatures stay in the body. Browsers use encrypted transport.
Examples are test data. Use your environment and fresh signatures. This page sends no requests.
Download the OpenAPI specification.
POST/info
Query private customer data
Returns private customer account data. Sign a PrivateRequest EIP-712 message over method POST, path /info, keccak256 of the UTF-8 RFC 8785 canonical JSON request body, a millisecond timestamp and a fresh bytes32 nonce. Send the proof in the three required headers below. The domain uses name Hyperjutsu, version 1, the configured settlement chain ID and brokerVault as verifyingContract. The recovered signer must own the user account or hold a current read grant. Public market-data queries are rejected.
Authorization
Owner or owner-approved reader signs PrivateRequest for this exact POST /info query. Supply X-Hyperjutsu-Timestamp, X-Hyperjutsu-Nonce and X-Hyperjutsu-Signature. Trading permission includes reads; a read proof does not authorize trading or withdrawals.
Signing formats and permission rules
Request headers
X-Hyperjutsu-TimestampstringrequiredDecimal Unix milliseconds, equal to PrivateRequest.timestamp. Accepted from 30 seconds in the past through 5 seconds in the future. Private-read timestamps and numeric body fields must be safe JSON integers (at most 9007199254740991).
Pattern:
^(0|[1-9][0-9]*)$Example:
1796250000000X-Hyperjutsu-NoncestringrequiredFresh cryptographically random 32-byte nonce, encoded as 0x plus 64 hex characters. Accepted once per signer and deployment. A new read attempt requires a fresh proof; it does not consume a trading nonce.
Pattern:
^0x[0-9a-fA-F]{64}$Example:
0x3333333333333333333333333333333333333333333333333333333333333333X-Hyperjutsu-SignaturestringrequiredEIP-712 signature of PrivateRequest, encoded as the 65-byte concatenation r || s || v with low-s and recovery byte 27 or 28. The signature is request-bound, not a bearer token.
Pattern:
^0x[0-9a-fA-F]{128}(1[bBcC])$Example:
0x111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222221b
Request body
clearinghouseState
type"clearinghouseState"requireduserstringrequiredEthereum wallet address.
Pattern:
^0x[0-9a-fA-F]{40}$dex""
openOrders
type"openOrders"requireduserstringrequiredEthereum wallet address.
Pattern:
^0x[0-9a-fA-F]{40}$dex""
frontendOpenOrders
type"frontendOpenOrders"requireduserstringrequiredEthereum wallet address.
Pattern:
^0x[0-9a-fA-F]{40}$dex""
orderStatus
type"orderStatus"requireduserstringrequiredEthereum wallet address.
Pattern:
^0x[0-9a-fA-F]{40}$oidone of the supported shapesrequiredFields
Shape 1
integer
Cloid
128-bit client order ID.
historicalOrders
type"historicalOrders"requireduserstringrequiredEthereum wallet address.
Pattern:
^0x[0-9a-fA-F]{40}$
userFills
type"userFills"requireduserstringrequiredEthereum wallet address.
Pattern:
^0x[0-9a-fA-F]{40}$aggregateByTimefalse
userFillsByTime
type"userFillsByTime"requireduserstringrequiredEthereum wallet address.
Pattern:
^0x[0-9a-fA-F]{40}$startTimeintegerrequiredFormat:
uint64Range: 0–9007199254740991
endTimeintegerFormat:
uint64Range: 0–9007199254740991
aggregateByTimefalse
coreDepositStatus
type"coreDepositStatus"requireduserstringrequiredEthereum wallet address.
Pattern:
^0x[0-9a-fA-F]{40}$hashstringrequiredPattern:
^0x[0-9a-fA-F]{64}$
withdrawalStatus
type"withdrawalStatus"requireduserstringrequiredEthereum wallet address.
Pattern:
^0x[0-9a-fA-F]{40}$withdrawalIdstringrequiredPattern:
^0x[0-9a-fA-F]{64}$
exitClaim
type"exitClaim"requireduserstringrequiredEthereum wallet address.
Pattern:
^0x[0-9a-fA-F]{40}$
Request example
Replace sample identifiers, timestamps and signatures with values for your request. Example proofs are not valid authorization.
Private account query body
Canonicalize this body with RFC 8785, hash its UTF-8 bytes with Keccak-256, sign PrivateRequest and supply the required X-Hyperjutsu-* headers. Signature metadata is not inserted into the query body.
{
"type": "clearinghouseState",
"user": "0x1111111111111111111111111111111111111111"
}Responses
200 Successful private query; response shape depends on type.
The selected query returns its native-style account result, status or exit claim. Full field tables and examples are on the per-query pages under /api/info.
Shape 1
object
Shape 2
object
401 Authentication or authorization denied.
codeintegerrequiredmsgstringrequired
422 Unsupported or invalid request.
codeintegerrequiredmsgstringrequired
429 Private access capacity exhausted.
codeintegerrequiredmsgstringrequired
503 Financial service unavailable; do not infer an execution outcome.
codeintegerrequiredmsgstringrequired
POST/exchange
Submit a signed customer action
Supported perpetual order/cancel/leverage actions use a native-style signed envelope. A read-request signature does not authorize trading. requestWithdrawal is a separate owner-signed extension, with HyperEVM USDC as the current normal payout destination. Rejecting or losing an HTTP response does not prove that an action was not executed; reconcile before retrying.
Authorization
The owner or owner-approved trading agent signs the native trading envelope. requestWithdrawal requires the owner signature over its separate withdrawal intent; read or trading agents cannot withdraw. Native actions share the same signing and nonce rules over HTTP and WebSocket.
Signing formats and permission rules
Request body
NativeExchangeRequest
actionone of the supported shapesrequiredFields
order
type"order"requiredordersarray of objectrequiredItems: 1–32
Fields
aintegerrequiredSupported perpetual asset index.
Range: 0–9999
bbooleanrequiredTrue for buy; false for sell.
pstringrequiredPositive decimal limit price.
sstringrequiredPositive decimal size.
rbooleanrequiredReduce-only flag.
tobjectrequiredFields
limitobjectrequiredFields
tif"Gtc"requiredOnly Gtc is supported by the current financial planner.
cstring128-bit client order ID.
Pattern:
^0x[0-9a-fA-F]{32}$
grouping"na"required
cancel
type"cancel"requiredcancelsarray of objectrequiredItems: 1–32
Fields
aintegerrequiredRange: 0–9999
ointegerrequiredFormat:
uint64Range: 1–unbounded
cancelByCloid
type"cancelByCloid"requiredcancelsarray of objectrequiredItems: 1–32
Fields
assetintegerrequiredRange: 0–9999
cloidstringrequired128-bit client order ID.
Pattern:
^0x[0-9a-fA-F]{32}$
updateLeverage
type"updateLeverage"requiredassetintegerrequiredRange: 0–9999
isCrosstruerequiredleverageintegerrequiredRange: 1–unbounded
nonceintegerrequiredFormat:
uint64Range: 0–unbounded
signatureobjectrequiredFields
rstringrequiredPattern:
^0x[0-9a-fA-F]{1,64}$sstringrequiredPattern:
^0x[0-9a-fA-F]{1,64}$v27 | 28required
vaultAddressnullSubaccount/vault routing is unsupported in this profile; omit or use null.
expiresAfterinteger | nullOptional native expiry in Unix milliseconds.
Range: 0–unbounded
WithdrawalRequest
actionobjectrequiredFields
type"requestWithdrawal"requiredintentobjectrequiredFields
withdrawalIdstringrequiredPattern:
^0x[0-9a-fA-F]{64}$ownerstringrequiredEthereum wallet address.
Pattern:
^0x[0-9a-fA-F]{40}$recipientstringrequiredEthereum wallet address.
Pattern:
^0x[0-9a-fA-F]{40}$assetstringrequiredEthereum wallet address.
Pattern:
^0x[0-9a-fA-F]{40}$amountintegerrequiredUSDC amount in six-decimal atomic units.
Format:
uint64Range: 1–unbounded
maxFeeintegerrequiredMaximum fee in six-decimal USDC atomic units.
Format:
uint64Range: 0–unbounded
destination0requiredCurrent normal payout destination: HyperEVM USDC.
noncestringrequiredPattern:
^0x[0-9a-fA-F]{64}$deadlineintegerrequiredUnix seconds, unlike native order nonce/expiry timestamps.
Format:
uint64Range: 0–unbounded
signaturestringrequiredCanonical 65-byte wallet signature; recovery byte 27 or 28.
Pattern:
^0x[0-9a-fA-F]{128}(1[bBcC])$
Request example
Replace sample identifiers, timestamps and signatures with values for your request. Example proofs are not valid authorization.
Signed cancellation body
Replace the example nonce and signature with those produced by the authorized signer. A sample signature is not valid authorization.
{
"action": {
"type": "cancel",
"cancels": [
{
"a": 0,
"o": 123
}
]
},
"nonce": 1800000000000,
"signature": {
"r": "0x1111111111111111111111111111111111111111111111111111111111111111",
"s": "0x2222222222222222222222222222222222222222222222222222222222222222",
"v": 27
}
}Responses
200 Action result; inspect outer status and each child result.
status"ok" | "err"requiredresponseone of the supported shapesrequiredNative-style action-specific result or business-error string. An acknowledgement is not proof of a fill or completed payout.
Fields
Native-style action-specific result or business-error string. An acknowledgement is not proof of a fill or completed payout.
Shape 1
object
Shape 2
string
401 Authentication or authorization denied.
codeintegerrequiredmsgstringrequired
422 Unsupported or invalid request.
codeintegerrequiredmsgstringrequired
429 Private access capacity exhausted.
codeintegerrequiredmsgstringrequired
503 Financial service unavailable; do not infer an execution outcome.
codeintegerrequiredmsgstringrequired
WebSocket/ws
WebSocket message schemas
The same private connection carries signed trading submissions, authenticated subscriptions and connection controls. These schemas cover action post requests/results and signed subscribe/unsubscribe messages. Control and data-message fields are documented on /api/ws.
WebSocket requests, examples and connection behavior
Signed action post request
Signed native action carried over /ws. request.payload is exactly the HTTP trading envelope. Only order, cancel, cancelByCloid and updateLeverage are accepted; requestWithdrawal remains HTTP-only. The outer id is correlation metadata, not a nonce or idempotency key.
method"post"requiredidintegerrequiredClient-selected request correlation ID; unique among outstanding requests on this connection.
Range: 0–9007199254740991
requestobjectrequiredFields
type"action"requiredpayloadobjectrequiredFields
actionone of the supported shapesrequiredFields
order
type"order"requiredordersarray of objectrequiredItems: 1–32
Fields
aintegerrequiredSupported perpetual asset index.
Range: 0–9999
bbooleanrequiredTrue for buy; false for sell.
pstringrequiredPositive decimal limit price.
sstringrequiredPositive decimal size.
rbooleanrequiredReduce-only flag.
tobjectrequiredFields
limitobjectrequiredFields
tif"Gtc"requiredOnly Gtc is supported by the current financial planner.
cstring128-bit client order ID.
Pattern:
^0x[0-9a-fA-F]{32}$
grouping"na"required
cancel
type"cancel"requiredcancelsarray of objectrequiredItems: 1–32
Fields
aintegerrequiredRange: 0–9999
ointegerrequiredFormat:
uint64Range: 1–unbounded
cancelByCloid
type"cancelByCloid"requiredcancelsarray of objectrequiredItems: 1–32
Fields
assetintegerrequiredRange: 0–9999
cloidstringrequired128-bit client order ID.
Pattern:
^0x[0-9a-fA-F]{32}$
updateLeverage
type"updateLeverage"requiredassetintegerrequiredRange: 0–9999
isCrosstruerequiredleverageintegerrequiredRange: 1–unbounded
nonceintegerrequiredFormat:
uint64Range: 0–unbounded
signatureobjectrequiredFields
rstringrequiredPattern:
^0x[0-9a-fA-F]{1,64}$sstringrequiredPattern:
^0x[0-9a-fA-F]{1,64}$v27 | 28required
vaultAddressnullSubaccount/vault routing is unsupported in this profile; omit or use null.
expiresAfterinteger | nullOptional native expiry in Unix milliseconds.
Range: 0–unbounded
Action post response
Correlated response to a WebSocket action post. An action payload retains the HTTP exchange response; error payloads are strings. A lost response does not establish rejection or permit blind resubmission.
channel"post"requireddataobjectrequiredFields
idintegerrequiredEcho of the request correlation ID.
Range: 0–9007199254740991
responseone of the supported shapesrequiredFields
action
type"action"requiredpayloadobjectrequiredFields
status"ok" | "err"requiredresponseone of the supported shapesrequiredNative-style action-specific result or business-error string. An acknowledgement is not proof of a fill or completed payout.
Fields
Native-style action-specific result or business-error string. An acknowledgement is not proof of a fill or completed payout.
Shape 1
object
Shape 2
string
error
type"error"requiredpayloadstringrequiredRequest/transport error description.
Signed private subscription request
Signed private subscribe/unsubscribe message. Hash RFC 8785 canonical JSON of {method,subscription}, excluding auth. Sign PrivateRequest with method WS and path /ws using the same deployment domain and freshness rules as private HTTP reads.
method"subscribe" | "unsubscribe"requiredsubscriptionone of the supported shapesrequiredFields
clearinghouseState
type"clearinghouseState"requireduserstringrequiredEthereum wallet address.
Pattern:
^0x[0-9a-fA-F]{40}$dex""
openOrders
type"openOrders"requireduserstringrequiredEthereum wallet address.
Pattern:
^0x[0-9a-fA-F]{40}$dex""
userFills
type"userFills"requireduserstringrequiredEthereum wallet address.
Pattern:
^0x[0-9a-fA-F]{40}$aggregateByTimefalse
authobjectrequiredAuthorization metadata for a PrivateRequest EIP-712 signature. For HTTP /info, map these fields to the required X-Hyperjutsu-* headers (timestamp encoded in decimal). For WS subscribe/unsubscribe, place them in auth. The browser private-channel inner request uses authorization. See /api/authentication for the domain, canonicalization and exact typed fields.
Fields
timestampintegerrequiredUnix milliseconds. Must be no more than 30000 ms old or 5000 ms in the future.
Format:
uint64Range: 0–9007199254740991
noncestringrequiredFresh cryptographically random nonce; accepted once for this signer and deployment.
Pattern:
^0x[0-9a-fA-F]{64}$signaturestringrequired65-byte EIP-712 signature r || s || v, low-s, v=27 or 28.
Pattern:
^0x[0-9a-fA-F]{128}(1[bBcC])$