: "${MOBIUS_API_BASE_URL:?Set the API URL from your app}"
: "${MOBIUS_API_KEY:?Set your API key locally}"
: "${TASK_ID:?Set the task UUID}"
: "${IDEMPOTENCY_KEY:?Generate and persist an ID before this mutation}"
curl -i "$MOBIUS_API_BASE_URL/v1/delta-neutral/tasks/$TASK_ID/resize" \
-H "Authorization: Bearer $MOBIUS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{"longTargetBase":0.05,"shortTargetBase":0.05}'
{
"taskId": "00000000-0000-4000-8000-000000000001",
"status": "resizing"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Endpoints
Resize a running task
Requires a running task with no queued close or conflicting owner operation. Total target quantities are checked against the key’s USD cap at fresh marks.
POST
/
v1
/
delta-neutral
/
tasks
/
{taskId}
/
resize
: "${MOBIUS_API_BASE_URL:?Set the API URL from your app}"
: "${MOBIUS_API_KEY:?Set your API key locally}"
: "${TASK_ID:?Set the task UUID}"
: "${IDEMPOTENCY_KEY:?Generate and persist an ID before this mutation}"
curl -i "$MOBIUS_API_BASE_URL/v1/delta-neutral/tasks/$TASK_ID/resize" \
-H "Authorization: Bearer $MOBIUS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{"longTargetBase":0.05,"shortTargetBase":0.05}'
{
"taskId": "00000000-0000-4000-8000-000000000001",
"status": "resizing"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}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.
: "${MOBIUS_API_BASE_URL:?Set the API URL from your app}"
: "${MOBIUS_API_KEY:?Set your API key locally}"
: "${TASK_ID:?Set the task UUID}"
: "${IDEMPOTENCY_KEY:?Generate and persist an ID before this mutation}"
curl -i "$MOBIUS_API_BASE_URL/v1/delta-neutral/tasks/$TASK_ID/resize" \
-H "Authorization: Bearer $MOBIUS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{"longTargetBase":0.05,"shortTargetBase":0.05}'
Authorizations
API key created in this environment: mobius_.. Keep it in a local environment variable; never commit it.
Headers
Persist one ID per intended mutation before sending. Reuse it with the same request for retries; different content returns 409.
Required string length:
1 - 128Pattern:
^[!-~]+$Path Parameters
Pattern:
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$Body
application/json

