Skip to main content
POST
Targets are total base-asset quantities, not deltas or USD amounts. Specify at least one leg. Each target is checked against the key’s USD cap using a fresh mark, including for wallet-created tasks. disableSizeMismatchAutoClose: true clears the size mismatch auto-close setting. A queued close or another active owner mutation prevents resizing. If WORKER_RESIZE=false, resizing is unavailable. A 202 response with resizing does not confirm a fill. Poll the task for completion.

Authorizations

Authorization
string
header
required

API key created in this environment: mobius_.. Keep it in a local environment variable; never commit it.

Headers

Idempotency-Key
string
required

Persist one ID per intended mutation before sending. Reuse it with the same request for retries; different content returns 409.

Required string length: 1 - 128
Pattern: ^[!-~]+$

Path Parameters

taskId
string<uuid>
required
Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Body

application/json
longTargetBase
number
required

Total target base-asset quantity, not a delta or USD.

Required range: x <= 99999999999999
shortTargetBase
number

Total target base-asset quantity, not a delta or USD.

Required range: x <= 99999999999999
disableSizeMismatchAutoClose
boolean

Response

Command accepted. Inspect task status for execution.

taskId
string<uuid>
required
status
string
required
Allowed value: "resizing"