Skip to main content
Carrier: POST /v1/exchange (encrypted binary). Permission: Owner only. Select leverage up to the market’s maximum. The same command is available over WebSocket.
Configure client and the example inputs using SDK integration. Examples show typed SDK values, not a plaintext HTTP JSON body.

Request fields

The client supplies the configured domain, account, policy, signer and verified session binding, and signs the canonical envelope.
Uint8Array (32 bytes)
required
Nonzero private request ID. Retain it for an exact retry; use a distinct ID for a different intent.
bigint (u64)
required
Current account authority epoch.
bigint (u64)
required
Expiry timestamp in milliseconds, within the verified channel and configured authentication limits; not a validity duration.
"leverage"
required
Command discriminator.
Uint8Array (32 bytes)
required
Configured market ID from market metadata.
bigint (u64)
required
Multiplier scaled by 10,000; 20_000n means 2×. At least 10_000n (1×), subject to the market cap and current margin/risk checks.
bigint (u64)
required
Latest permitted time to apply this selection, in milliseconds. It is not a scheduled reset of an accepted leverage setting.

Response fields

The result uses the shared receipt fields. The fields below are most relevant to this method.
"receipt"
required
Response discriminator.
Uint8Array (32 bytes)
required
ID of this recorded command, matching the request’s id.
Outcome
required
rejected, accepted, dispatched, acknowledged, partial, complete or unknown. See lifecycle.

Behavior

Your selection changes private initial-margin requirements, subject to the market cap and current risk checks. It does not create isolated margin or a separate venue account. Positions exposes the cap and selected leverage when valid values are available. Changing leverage does not by itself guarantee that a later order can be admitted.

Errors and reconciliation

See errors for response codes and lifecycle for delivery failures, receipts and retries. Keep the original operation ID when reconciling an uncertain result.