Reference

Endpoints

Five operations, all bound to the single prop account your key was issued against. Every request must be signed. See Authentication.

Conventions

These hold for every endpoint below.

The base URL is https://app.vantatrading.io. Successful responses are HTTP 200 with the envelope { "success": true, "data": … }. Failures return a 4xx or 5xx status and an error object:

error response
{
  "error": "This API key is only valid for a different account"
}

Read endpoints accept an optional ?accountId= query parameter. It is never required, because the key already identifies the account. If it is supplied it must match the bound account, or the request is rejected with 403. Remember that the query string is part of the signed path, so adding it changes the signature.

Response bodies are sanitised projections of your account state, not raw upstream data. Fields may be added without notice, so parse defensively and ignore what you do not recognise. See Versioning.

Index

Jump to an endpoint.

GET/api/v1/trading/account

Account snapshot

Consolidated account summary, current equity, status and evaluation, challenge progress, drawdown and performance. These are the same values shown on the dashboard.

Required scope trade:read

  • meta.stale is true when the upstream validator was unavailable and values fell back to placeholders. Retry when you see it.
  • challenge.drawdownCriteria is "trailing" (legacy HWM rules) or "static" (limits measured against the starting account balance). For static accounts, challenge.drawdownBreakdown.highWaterMark carries the starting balance and the breakdown values reflect the static rules (5% balance / 5% EOD equity vs the starting balance).

Example request

# Replace with your key and secret (secret is shown only when you create the key).
# The API key is bound to a single prop account, so no accountId is required.
export VANTA_KEY_ID="YOUR_KEY_ID"
export VANTA_SECRET="YOUR_SECRET"
export BASE_URL="https://app.vantatrading.io"
PATH_REQ="/api/v1/trading/account"

TS=$(($(date +%s) * 1000))
NONCE=$(openssl rand -hex 16)
# GET has an empty body, so this is the sha256 of the empty string
BODY_HASH=$(printf '' | openssl dgst -sha256 -binary | xxd -p -c 256)
CANONICAL=$(printf 'v1\nGET\n%s\n%s\n%s\n%s' "$PATH_REQ" "$TS" "$NONCE" "$BODY_HASH")
SIG=$(echo -n "$CANONICAL" | openssl dgst -sha256 -hmac "$VANTA_SECRET" -binary | base64 | tr -d '\n')

curl -s "$BASE_URL$PATH_REQ" \
-H "X-Vanta-Key-Id: $VANTA_KEY_ID" \
-H "X-Vanta-Timestamp: $TS" \
-H "X-Vanta-Nonce: $NONCE" \
-H "X-Vanta-Signature: v1=$SIG"

Example response

200 OK
{
  "success": true,
  "data": {
    "accountId": "6f1c2e34-9a4b-4c1d-8e2f-1a2b3c4d5e6f",
    "assetClass": "crypto",
    "marketName": "Crypto",
    "accountSize": 25000,
    "formattedAccountSize": "25K",
    "evaluation": {
      "title": "Crypto 25K Evaluation",
      "status": "evaluation",
      "isEliminated": false,
      "accountSize": "$25,000",
      "activeAccounts": "1/1",
      "effectiveAccountSizeNumeric": 25000
    },
    "account": {
      "currentBalance": 25120.5,
      "currentEquity": 25180.25,
      "balanceChange": 120.5,
      "balanceChangePercent": 0.48,
      "totalPnL": 180.25,
      "totalPnLPercent": 0.72,
      "openPnL": 59.75,
      "openPnLPercent": 0.24,
      "openPositions": 1,
      "portfolioBalance": 25120.5,
      "portfolioBalanceChangePercent": 0.48,
      "portfolioBalanceBreakdown": {
        "currentBalance": 25120.5,
        "marginLeverage": 5,
        "sumPositionValue": 7202.5
      },
      "leverage": "Current - 0.2870x / Max - 10x",
      "capitalUsed": 7202.5,
      "totalRealizedPnl": 120.5,
      "isPassed": false
    },
    "challenge": {
      "variant": "default",
      "bucket": "SUBACCOUNT_CHALLENGE",
      "drawdownCriteria": "trailing",
      "profitTarget": 2500,
      "profitTargetPercent": 10,
      "remaining": 2319.75,
      "maxLeverage": "10x",
      "trailingDrawdownPercent": 5,
      "maxDrawdown": -1250,
      "daysRemaining": 27,
      "totalDays": 90,
      "drawdownBreakdown": {
        "highWaterMark": 25180.25,
        "allowedDrawdown": 1259.01,
        "currentDrawdown": 0,
        "remainingDrawdown": 1259.01,
        "remainingDrawdownPercentHWM": 5
      }
    },
    "performance": {
      "totalTrades": 4,
      "winRate": 75,
      "totalWins": 3,
      "avgTradePnL": 45.06,
      "tradeDuration": "63h 12m",
      "challengeStartMs": 1717200000000,
      "dailyReturns": [
        {
          "date": "2026-06-28",
          "value": 0.31
        },
        {
          "date": "2026-06-29",
          "value": 0.17
        }
      ]
    },
    "meta": {
      "generatedAtMs": 1717718400000,
      "stale": false
    }
  }
}
GET/api/v1/trading/positions

Open positions

Open positions in the current challenge bucket, including entry price, leverage, unrealized PnL and any attached TP/SL.

Required scope trade:read

Example request

# Replace with your key and secret (secret is shown only when you create the key).
# The API key is bound to a single prop account, so no accountId is required.
export VANTA_KEY_ID="YOUR_KEY_ID"
export VANTA_SECRET="YOUR_SECRET"
export BASE_URL="https://app.vantatrading.io"
PATH_REQ="/api/v1/trading/positions"

TS=$(($(date +%s) * 1000))
NONCE=$(openssl rand -hex 16)
# GET has an empty body, so this is the sha256 of the empty string
BODY_HASH=$(printf '' | openssl dgst -sha256 -binary | xxd -p -c 256)
CANONICAL=$(printf 'v1\nGET\n%s\n%s\n%s\n%s' "$PATH_REQ" "$TS" "$NONCE" "$BODY_HASH")
SIG=$(echo -n "$CANONICAL" | openssl dgst -sha256 -hmac "$VANTA_SECRET" -binary | base64 | tr -d '\n')

curl -s "$BASE_URL$PATH_REQ" \
-H "X-Vanta-Key-Id: $VANTA_KEY_ID" \
-H "X-Vanta-Timestamp: $TS" \
-H "X-Vanta-Nonce: $NONCE" \
-H "X-Vanta-Signature: v1=$SIG"

Example response

200 OK
{
  "success": true,
  "data": [
    {
      "positionUuid": "0f9d1a2b-3c4d-5e6f-7a8b-9c0d1e2f3a4b",
      "tradePair": "BTCUSDC",
      "tradePairDisplay": "BTC/USDC",
      "positionType": "LONG",
      "netLeverage": 0.287,
      "averageEntryPrice": 62450.12,
      "currentReturn": 0.0024,
      "openMs": 1717490000000,
      "unrealizedPnl": 59.75,
      "realizedPnl": 0,
      "netValue": 7262.25,
      "cumulativeEntryValue": 7202.5,
      "stopLoss": 61000,
      "takeProfit": 65000
    }
  ]
}
GET/api/v1/trading/orders

Pending orders

Unfilled limit orders and per-position bracket legs (TP/SL) that will execute automatically.

Required scope trade:read

Example request

# Replace with your key and secret (secret is shown only when you create the key).
# The API key is bound to a single prop account, so no accountId is required.
export VANTA_KEY_ID="YOUR_KEY_ID"
export VANTA_SECRET="YOUR_SECRET"
export BASE_URL="https://app.vantatrading.io"
PATH_REQ="/api/v1/trading/orders"

TS=$(($(date +%s) * 1000))
NONCE=$(openssl rand -hex 16)
# GET has an empty body, so this is the sha256 of the empty string
BODY_HASH=$(printf '' | openssl dgst -sha256 -binary | xxd -p -c 256)
CANONICAL=$(printf 'v1\nGET\n%s\n%s\n%s\n%s' "$PATH_REQ" "$TS" "$NONCE" "$BODY_HASH")
SIG=$(echo -n "$CANONICAL" | openssl dgst -sha256 -hmac "$VANTA_SECRET" -binary | base64 | tr -d '\n')

curl -s "$BASE_URL$PATH_REQ" \
-H "X-Vanta-Key-Id: $VANTA_KEY_ID" \
-H "X-Vanta-Timestamp: $TS" \
-H "X-Vanta-Nonce: $NONCE" \
-H "X-Vanta-Signature: v1=$SIG"

Example response

200 OK
{
  "success": true,
  "data": [
    {
      "orderUuid": "a12b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
      "tradePair": "ETHUSDC",
      "tradePairDisplay": "ETH/USDC",
      "orderType": "LONG",
      "executionType": "LIMIT",
      "processedMs": 1717500000000,
      "limitPrice": 3200,
      "leverage": 1,
      "value": 1500,
      "quantity": null,
      "stopLoss": 3100,
      "takeProfit": 3500,
      "bracketPct": null,
      "trailingPercent": null,
      "trailingValue": null
    }
  ]
}
GET/api/v1/trading/trades

Trade history

Closed/filled trades with entry & close price, realized PnL, return at close and fees.

Required scope trade:read

Example request

# Replace with your key and secret (secret is shown only when you create the key).
# The API key is bound to a single prop account, so no accountId is required.
export VANTA_KEY_ID="YOUR_KEY_ID"
export VANTA_SECRET="YOUR_SECRET"
export BASE_URL="https://app.vantatrading.io"
PATH_REQ="/api/v1/trading/trades"

TS=$(($(date +%s) * 1000))
NONCE=$(openssl rand -hex 16)
# GET has an empty body, so this is the sha256 of the empty string
BODY_HASH=$(printf '' | openssl dgst -sha256 -binary | xxd -p -c 256)
CANONICAL=$(printf 'v1\nGET\n%s\n%s\n%s\n%s' "$PATH_REQ" "$TS" "$NONCE" "$BODY_HASH")
SIG=$(echo -n "$CANONICAL" | openssl dgst -sha256 -hmac "$VANTA_SECRET" -binary | base64 | tr -d '\n')

curl -s "$BASE_URL$PATH_REQ" \
-H "X-Vanta-Key-Id: $VANTA_KEY_ID" \
-H "X-Vanta-Timestamp: $TS" \
-H "X-Vanta-Nonce: $NONCE" \
-H "X-Vanta-Signature: v1=$SIG"

Example response

200 OK
{
  "success": true,
  "data": [
    {
      "id": "c34d5e6f-7a8b-9c0d-1e2f-3a4b5c6d7e8f",
      "tradePair": "BTCUSDC",
      "tradePairDisplay": "BTC/USDC",
      "positionType": "LONG",
      "leverage": "0.50x",
      "positionSize": "$1,000.00",
      "entryPrice": "$60,120.00",
      "closePrice": "$61,540.00",
      "unrealizedPnl": 0,
      "realizedPnl": 23.62,
      "returnAtClose": 0.0236,
      "status": "Filled",
      "openTimeMs": 1717200000000,
      "closeTimeMs": 1717230000000,
      "stopLoss": 59000,
      "takeProfit": 62000,
      "totalFees": 1.18
    }
  ]
}
POST/api/v1/trading/orders

Place an order

Submit a market, limit or bracket order for the key's bound account. Also used to edit/cancel limit orders and flatten positions.

Required scope trade:place

  • execution_type accepts MARKET, LIMIT, BRACKET, LIMIT_CANCEL, LIMIT_EDIT and FLAT_ALL.
  • Mutating endpoints cannot be run from the browser. Copy the signed script and run it from your terminal.

Request body

request
{
  "accountId": "6f1c2e34-9a4b-4c1d-8e2f-1a2b3c4d5e6f",
  "trade": {
    "execution_type": "MARKET",
    "trade_pair": "BTCUSDC",
    "order_type": "LONG",
    "value": 1000
  }
}

Example request

# Replace with your key and secret (secret is shown only when you create the key).
export VANTA_KEY_ID="YOUR_KEY_ID"
export VANTA_SECRET="YOUR_SECRET"
export ACCOUNT_ID="YOUR_PROP_ACCOUNT_UUID"
export BASE_URL="https://app.vantatrading.io"

BODY="{\"accountId\":\"YOUR_PROP_ACCOUNT_UUID\",\"trade\":{\"execution_type\":\"MARKET\",\"trade_pair\":\"BTCUSDC\",\"order_type\":\"LONG\",\"value\":1000}}"
PATH_REQ="/api/v1/trading/orders"

TS=$(($(date +%s) * 1000))
NONCE=$(openssl rand -hex 16)
BODY_HASH=$(echo -n "$BODY" | openssl dgst -sha256 -binary | xxd -p -c 256)
CANONICAL=$(printf 'v1\nPOST\n%s\n%s\n%s\n%s' "$PATH_REQ" "$TS" "$NONCE" "$BODY_HASH")
SIG=$(echo -n "$CANONICAL" | openssl dgst -sha256 -hmac "$VANTA_SECRET" -binary | base64 | tr -d '\n')

curl -s -X POST "$BASE_URL$PATH_REQ" \
-H "Content-Type: application/json" \
-H "X-Vanta-Key-Id: $VANTA_KEY_ID" \
-H "X-Vanta-Timestamp: $TS" \
-H "X-Vanta-Nonce: $NONCE" \
-H "X-Vanta-Signature: v1=$SIG" \
-d "$BODY"

Example response

200 OK
{
  "success": true,
  "data": {
    "status": "accepted",
    "order_uuid": "d45e6f7a-8b9c-0d1e-2f3a-4b5c6d7e8f90"
  }
}

Machine-readable spec

The same reference as OpenAPI 3.1, generated from the definitions above.

Import /docs/openapi.json into Postman, Insomnia or a client generator. Note that request signing is not something a generated client will do for you. The spec describes the headers, but you still supply the signature.