POST
Prepare a close by signature

Authorizations

Authorization
string
header
required

Master session from POST /v1/auth/verify. Revocable; expires after seven days by default. Required for financial operations.

Body

application/json
venue
string
required

A venue id from GET /v1/venues.

order_id
string
required
Pattern: ^0x[0-9a-fA-F]{64}$
to_margin
boolean
default:true

False withdraws to the owner wallet.

Response

The terms for POST /v1/escrow/close and the item to sign.

venue
string
required

A venue id from GET /v1/venues.

order_id
string
required
Pattern: ^0x[0-9a-fA-F]{64}$
dex
integer
required

Hyperliquid destination: 0 perps, 4294967295 spot; 0 elsewhere.

nonce
string
required

Decimal integer.

deadline
integer
required

Unix seconds, one hour ahead.

to_sign
object[]
required
to_margin
boolean