POST
Prepare maker funds

Authorizations

Authorization
string
header
required

From POST /v1/auth/verify; seven days by default, revocable. Required for financial operations. 60 requests/s, burst 120, shared by the user's sessions.

Path Parameters

venue
string
required

A venue id from GET /v1/venues.

Body

application/json
client_request_id
string
required

Persist before the first attempt. Unique per user and resource type; reuse with other parameters returns 409 STATE_CONFLICT.

Required string length: 1 - 64
Pattern: ^[A-Za-z0-9_.:-]+$
amount
string
required

Capital to add. A pool's first funding is at least 5 tokens.

Pattern: ^[0-9]{1,78}$
funding_source
enum<string>
required

Where the deposit, the added capital the available balance does not cover, comes from (maker capital). wallet: the linked address on the escrow chain; VALIDATION_ERROR if it holds less than the deposit. venue: one margin_move of the whole deposit to the linked address, VALIDATION_ERROR on GMX; the funding goes once that address holds the deposit, and fails if it does not within 10 minutes of the move.

Available options:
wallet,
venue
quote_identity_id
string<uuid>

Default the browser identity; an API identity needs an active credential.

Response

The preparation.

id
string<uuid>
required
client_request_id
string
required

Persist before the first attempt. Unique per user and resource type; reuse with other parameters returns 409 STATE_CONFLICT.

Required string length: 1 - 64
Pattern: ^[A-Za-z0-9_.:-]+$
state
enum<string>
required
Available options:
preparing,
accepted,
complete,
cancelled,
failed
venue
string
required

A venue id from GET /v1/venues.

order
object
required
to_sign
object[]
required
sequence
integer | null
required
Required range: 1 <= x <= 9007199254740991
expires_at
string<date-time>
required

One hour after preparation, ten minutes with a margin_move; then cancelled if unsigned.

expected_revision
string
required

Non-negative 64-bit integer as a decimal string; keep it lossless.

Pattern: ^[0-9]+$
intent
object
required
funding
object
required