Skip to content
LogoLogo

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-Timestampstringrequired

Decimal 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: 1796250000000

X-Hyperjutsu-Noncestringrequired

Fresh 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: 0x3333333333333333333333333333333333333333333333333333333333333333

X-Hyperjutsu-Signaturestringrequired

EIP-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"required
userstringrequired

Ethereum wallet address.

Pattern: ^0x[0-9a-fA-F]{40}$

dex""
openOrders
type"openOrders"required
userstringrequired

Ethereum wallet address.

Pattern: ^0x[0-9a-fA-F]{40}$

dex""
frontendOpenOrders
type"frontendOpenOrders"required
userstringrequired

Ethereum wallet address.

Pattern: ^0x[0-9a-fA-F]{40}$

dex""
orderStatus
type"orderStatus"required
userstringrequired

Ethereum wallet address.

Pattern: ^0x[0-9a-fA-F]{40}$

oidone of the supported shapesrequired
Fields
Shape 1

integer

Cloid

128-bit client order ID.

historicalOrders
type"historicalOrders"required
userstringrequired

Ethereum wallet address.

Pattern: ^0x[0-9a-fA-F]{40}$

userFills
type"userFills"required
userstringrequired

Ethereum wallet address.

Pattern: ^0x[0-9a-fA-F]{40}$

aggregateByTimefalse
userFillsByTime
type"userFillsByTime"required
userstringrequired

Ethereum wallet address.

Pattern: ^0x[0-9a-fA-F]{40}$

startTimeintegerrequired

Format: uint64

Range: 0–9007199254740991

endTimeinteger

Format: uint64

Range: 0–9007199254740991

aggregateByTimefalse
coreDepositStatus
type"coreDepositStatus"required
userstringrequired

Ethereum wallet address.

Pattern: ^0x[0-9a-fA-F]{40}$

hashstringrequired

Pattern: ^0x[0-9a-fA-F]{64}$

withdrawalStatus
type"withdrawalStatus"required
userstringrequired

Ethereum wallet address.

Pattern: ^0x[0-9a-fA-F]{40}$

withdrawalIdstringrequired

Pattern: ^0x[0-9a-fA-F]{64}$

exitClaim
type"exitClaim"required
userstringrequired

Ethereum 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.
codeintegerrequired
msgstringrequired
422 Unsupported or invalid request.
codeintegerrequired
msgstringrequired
429 Private access capacity exhausted.
codeintegerrequired
msgstringrequired
503 Financial service unavailable; do not infer an execution outcome.
codeintegerrequired
msgstringrequired

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 shapesrequired
Fields
order
type"order"required
ordersarray of objectrequired

Items: 1–32

Fields
aintegerrequired

Supported perpetual asset index.

Range: 0–9999

bbooleanrequired

True for buy; false for sell.

pstringrequired

Positive decimal limit price.

sstringrequired

Positive decimal size.

rbooleanrequired

Reduce-only flag.

tobjectrequired
Fields
limitobjectrequired
Fields
tif"Gtc"required

Only Gtc is supported by the current financial planner.

cstring

128-bit client order ID.

Pattern: ^0x[0-9a-fA-F]{32}$

grouping"na"required
cancel
type"cancel"required
cancelsarray of objectrequired

Items: 1–32

Fields
aintegerrequired

Range: 0–9999

ointegerrequired

Format: uint64

Range: 1–unbounded

cancelByCloid
type"cancelByCloid"required
cancelsarray of objectrequired

Items: 1–32

Fields
assetintegerrequired

Range: 0–9999

cloidstringrequired

128-bit client order ID.

Pattern: ^0x[0-9a-fA-F]{32}$

updateLeverage
type"updateLeverage"required
assetintegerrequired

Range: 0–9999

isCrosstruerequired
leverageintegerrequired

Range: 1–unbounded

nonceintegerrequired

Format: uint64

Range: 0–unbounded

signatureobjectrequired
Fields
rstringrequired

Pattern: ^0x[0-9a-fA-F]{1,64}$

sstringrequired

Pattern: ^0x[0-9a-fA-F]{1,64}$

v27 | 28required
vaultAddressnull

Subaccount/vault routing is unsupported in this profile; omit or use null.

expiresAfterinteger | null

Optional native expiry in Unix milliseconds.

Range: 0–unbounded

WithdrawalRequest
actionobjectrequired
Fields
type"requestWithdrawal"required
intentobjectrequired
Fields
withdrawalIdstringrequired

Pattern: ^0x[0-9a-fA-F]{64}$

ownerstringrequired

Ethereum wallet address.

Pattern: ^0x[0-9a-fA-F]{40}$

recipientstringrequired

Ethereum wallet address.

Pattern: ^0x[0-9a-fA-F]{40}$

assetstringrequired

Ethereum wallet address.

Pattern: ^0x[0-9a-fA-F]{40}$

amountintegerrequired

USDC amount in six-decimal atomic units.

Format: uint64

Range: 1–unbounded

maxFeeintegerrequired

Maximum fee in six-decimal USDC atomic units.

Format: uint64

Range: 0–unbounded

destination0required

Current normal payout destination: HyperEVM USDC.

noncestringrequired

Pattern: ^0x[0-9a-fA-F]{64}$

deadlineintegerrequired

Unix seconds, unlike native order nonce/expiry timestamps.

Format: uint64

Range: 0–unbounded

signaturestringrequired

Canonical 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"required
responseone of the supported shapesrequired

Native-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.
codeintegerrequired
msgstringrequired
422 Unsupported or invalid request.
codeintegerrequired
msgstringrequired
429 Private access capacity exhausted.
codeintegerrequired
msgstringrequired
503 Financial service unavailable; do not infer an execution outcome.
codeintegerrequired
msgstringrequired

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"required
idintegerrequired

Client-selected request correlation ID; unique among outstanding requests on this connection.

Range: 0–9007199254740991

requestobjectrequired
Fields
type"action"required
payloadobjectrequired
Fields
actionone of the supported shapesrequired
Fields
order
type"order"required
ordersarray of objectrequired

Items: 1–32

Fields
aintegerrequired

Supported perpetual asset index.

Range: 0–9999

bbooleanrequired

True for buy; false for sell.

pstringrequired

Positive decimal limit price.

sstringrequired

Positive decimal size.

rbooleanrequired

Reduce-only flag.

tobjectrequired
Fields
limitobjectrequired
Fields
tif"Gtc"required

Only Gtc is supported by the current financial planner.

cstring

128-bit client order ID.

Pattern: ^0x[0-9a-fA-F]{32}$

grouping"na"required
cancel
type"cancel"required
cancelsarray of objectrequired

Items: 1–32

Fields
aintegerrequired

Range: 0–9999

ointegerrequired

Format: uint64

Range: 1–unbounded

cancelByCloid
type"cancelByCloid"required
cancelsarray of objectrequired

Items: 1–32

Fields
assetintegerrequired

Range: 0–9999

cloidstringrequired

128-bit client order ID.

Pattern: ^0x[0-9a-fA-F]{32}$

updateLeverage
type"updateLeverage"required
assetintegerrequired

Range: 0–9999

isCrosstruerequired
leverageintegerrequired

Range: 1–unbounded

nonceintegerrequired

Format: uint64

Range: 0–unbounded

signatureobjectrequired
Fields
rstringrequired

Pattern: ^0x[0-9a-fA-F]{1,64}$

sstringrequired

Pattern: ^0x[0-9a-fA-F]{1,64}$

v27 | 28required
vaultAddressnull

Subaccount/vault routing is unsupported in this profile; omit or use null.

expiresAfterinteger | null

Optional 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"required
dataobjectrequired
Fields
idintegerrequired

Echo of the request correlation ID.

Range: 0–9007199254740991

responseone of the supported shapesrequired
Fields
action
type"action"required
payloadobjectrequired
Fields
status"ok" | "err"required
responseone of the supported shapesrequired

Native-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"required
payloadstringrequired

Request/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"required
subscriptionone of the supported shapesrequired
Fields
clearinghouseState
type"clearinghouseState"required
userstringrequired

Ethereum wallet address.

Pattern: ^0x[0-9a-fA-F]{40}$

dex""
openOrders
type"openOrders"required
userstringrequired

Ethereum wallet address.

Pattern: ^0x[0-9a-fA-F]{40}$

dex""
userFills
type"userFills"required
userstringrequired

Ethereum wallet address.

Pattern: ^0x[0-9a-fA-F]{40}$

aggregateByTimefalse
authobjectrequired

Authorization 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
timestampintegerrequired

Unix milliseconds. Must be no more than 30000 ms old or 5000 ms in the future.

Format: uint64

Range: 0–9007199254740991

noncestringrequired

Fresh cryptographically random nonce; accepted once for this signer and deployment.

Pattern: ^0x[0-9a-fA-F]{64}$

signaturestringrequired

65-byte EIP-712 signature r || s || v, low-s, v=27 or 28.

Pattern: ^0x[0-9a-fA-F]{128}(1[bBcC])$