: "${MOBIUS_API_BASE_URL:?Set the API URL from your app}"
: "${MOBIUS_API_KEY:?Set your API key locally}"
: "${IDEMPOTENCY_KEY:?Generate and persist an ID before this mutation}"
curl -i "$MOBIUS_API_BASE_URL/v1/delta-neutral/tasks" \
-H "Authorization: Bearer $MOBIUS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{"longVenue":"hl","shortVenue":"lighter","longMarket":"ETH","shortMarket":"ETH","sizeUsd":100}'
{
"taskId": "00000000-0000-4000-8000-000000000001",
"status": "pending"
}{
"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>"
}Create a task
Queues a new paired position. Both venues must be different, granted by the key and bound by its owner.
: "${MOBIUS_API_BASE_URL:?Set the API URL from your app}"
: "${MOBIUS_API_KEY:?Set your API key locally}"
: "${IDEMPOTENCY_KEY:?Generate and persist an ID before this mutation}"
curl -i "$MOBIUS_API_BASE_URL/v1/delta-neutral/tasks" \
-H "Authorization: Bearer $MOBIUS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{"longVenue":"hl","shortVenue":"lighter","longMarket":"ETH","shortMarket":"ETH","sizeUsd":100}'
{
"taskId": "00000000-0000-4000-8000-000000000001",
"status": "pending"
}{
"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>"
}409 venue_not_bound with an issues array.
Published minimum notional and base quantity are checked before acceptance. The worker checks sizing, venue readiness, and approvals again before trading, so an accepted task can still fail.
Do not send order prices, leverage, margin mode, or unknown fields. Configure account settings on the venue first. autoClose: false disables the funding-APY opening and auto-close rule.
Send a command
Generate and persist the idempotency key once, then run the request. For an uncertain retry, rerun onlycurl with the same key and body.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -i "$MOBIUS_API_BASE_URL/v1/delta-neutral/tasks" \
-H "Authorization: Bearer $MOBIUS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{"longVenue":"hl","shortVenue":"lighter","longMarket":"ETH","shortMarket":"ETH","sizeUsd":100}'
taskId from the response. 202 with pending means queued; read the task to check execution.
: "${MOBIUS_API_BASE_URL:?Set the API URL from your app}"
: "${MOBIUS_API_KEY:?Set your API key locally}"
: "${IDEMPOTENCY_KEY:?Generate and persist an ID before this mutation}"
curl -i "$MOBIUS_API_BASE_URL/v1/delta-neutral/tasks" \
-H "Authorization: Bearer $MOBIUS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{"longVenue":"hl","shortVenue":"lighter","longMarket":"ETH","shortMarket":"ETH","sizeUsd":100}'
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.
1 - 128^[!-~]+$Body
Use two different, granted and bound venues. Leverage and margin mode are configured on venue accounts, not through this API.
hl = Hyperliquid; lighter = Lighter RH (Robinhood); lighter-mainnet = canonical Lighter; aster = Aster.
hl, lighter, lighter-mainnet, aster hl = Hyperliquid; lighter = Lighter RH (Robinhood); lighter-mainnet = canonical Lighter; aster = Aster.
hl, lighter, lighter-mainnet, aster Exact listed venue symbol. Examples: ETH; Hyperliquid xyz:NVDA or io:ANTH; Aster USD1:XAU or U:BTC. Check current listings.
"ETH"
"xyz:NVDA"
"USD1:XAU"
Exact listed venue symbol. Examples: ETH; Hyperliquid xyz:NVDA or io:ANTH; Aster USD1:XAU or U:BTC. Check current listings.
"ETH"
"xyz:NVDA"
"USD1:XAU"
USD per leg, within this key’s maximum and venue minimums.
10 <= x <= 999999999999990 <= x <= 999999x <= 99999999999999x <= 1000.5 <= x <= 100
