ZetariumZetariumDex

Quick Start

Sign your first request and pull your account balance in 5 minutes.

Create an API key

API keys are created from the web UI only. Go to https://app.zetariumdex.com, connect your wallet, sign in with SIWE, open the API Keys screen and click Create New Key. The secretKey is shown once — copy it immediately.

See Onboarding & API Key for the full flow.

Sign and send your first request

API_KEY="zd_84444a6..."
SECRET="073CuVWkHL..."
BASE_URL="https://api.zetariumdex.com"
TIMESTAMP=$(($(date +%s) * 1000))

# Build the canonical query string (everything except the signature itself)
QUERY="timestamp=${TIMESTAMP}"
SIGNATURE=$(echo -n "$QUERY" | openssl dgst -sha256 -hmac "$SECRET" | sed 's/.*= //')

curl -H "X-API-KEY: $API_KEY" \
  "$BASE_URL/v2/futures/balance?${QUERY}&signature=${SIGNATURE}"

Inspect the response

{
  "ok": true,
  "balances": {
    "assets": [
      { "asset": "USDT", "availableBalance": "1234.56" }
    ]
  }
}

That's it — you're authenticated. Next, read Authentication — HMAC to understand the signing rules for every other endpoint.

On this page