tastytradeDeveloper Docs
Legacy ↗

API Reference / Balances and Positions

Get Account Balances

getAccountsAccountNumberBalances
get/accounts/{account_number}/balances

Base URL: https://api.cert.tastyworks.com (Sandbox) · https://api.tastyworks.com (Production)

Returns the single current balance object for an account: cash, position values broken out by instrument type and side (for example long-equity-value, long-derivative-value, long-futures-value, long-cryptocurrency-value), buying power, margin requirements, and net-liquidating-value. Defaults to USD; pass currency to request a different currency balance.

Code samples

curl -X GET 'https://api.cert.tastyworks.com/accounts/5WX01234/balances?currency=%7Bcurrency%7D' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'User-Agent: tastytrade-docs-example/1.0'

Parameters

NameInTypeDescription
currencyquerystringCurrency balance to get for account
account_number*pathstring
e.g. "5WX01234"

Responses

200The current balance object for the account, wrapped in data.application/json

Example response

{
  "data": {
    "account-number": "5WX01234",
    "currency": "USD",
    "cash-balance": "7218.997",
    "long-equity-value": "24629.746",
    "short-equity-value": "0.0",
    "long-derivative-value": "0.0",
    "short-derivative-value": "0.0",
    "long-futures-value": "0.0",
    "short-futures-value": "0.0",
    "long-futures-derivative-value": "100.00",
    "short-futures-derivative-value": "100.00",
    "long-margineable-value": "100.00",
    "short-margineable-value": "100.00",
    "margin-equity": "32520.734",
    "equity-buying-power": "45657.048",
    "derivative-buying-power": "22828.524",
    "day-trading-buying-power": "0.0",
    "futures-margin-requirement": "string",
    "available-trading-funds": "string",
    "maintenance-requirement": "9692.211",
    "maintenance-call-value": "100.00",
    "reg-t-call-value": "100.00",
    "day-trading-call-value": "100.00",
    "day-equity-call-value": "100.00",
    "net-liquidating-value": "32520.734",
    "cash-available-to-withdraw": "22828.53",
    "day-trade-excess": "string",
    "pending-cash": "0.0",
    "pending-cash-effect": "None",
    "long-cryptocurrency-value": "671.991",
    "short-cryptocurrency-value": "USD",
    "cryptocurrency-margin-requirement": "USD",
    "unsettled-cryptocurrency-fiat-amount": "USD",
    "unsettled-cryptocurrency-fiat-effect": "USD",
    "closed-loop-available-balance": "100.00",
    "equity-offering-margin-requirement": "string",
    "long-bond-value": "100.00",
    "bond-margin-requirement": "string",
    "used-derivative-buying-power": "string",
    "special-memorandum-account-value": "100.00",
    "special-memorandum-account-apex-adjustment": "string",
    "total-settle-balance": "100.00",
    "margin-settle-balance": "100.00",
    "cash-settle-balance": "100.00",
    "sma-equity-option-buying-power": "string",
    "snapshot-date": "2026-06-08",
    "time-of-day": "string",
    "reg-t-margin-requirement": "string",
    "futures-overnight-margin-requirement": "string",
    "futures-intraday-margin-requirement": "string",
    "maintenance-excess": "string",
    "pending-margin-interest": "string",
    "apex-starting-day-margin-equity": "string",
    "buying-power-adjustment": "string",
    "buying-power-adjustment-effect": "string",
    "effective-cryptocurrency-buying-power": "USD",
    "updated-at": "2026-06-08T01:10:30.928+00:00"
  },
  "context": "/accounts/{account_number}/balances"
}

Schema

  • datarequiredobject (AccountBalance)

    The single current balance object for an account. Describes monetary values such as cash-balance, net-liquidating-value, buying power, position values broken out by instrument type and side, and margin requirements.

    • account-numberstring

      The account number this balance belongs to.

      example: "5WX01234"

    • currencystring

      The currency of the balance. Defaults to USD.

      example: "USD"

    • cash-balancestring <decimal>

      Settled cash in the account. May be positive or negative. Decimal value serialized as a JSON string (e.g. "150.25").

      example: "7218.997"

    • long-equity-valuestring <decimal>

      Total value of long equity positions. Decimal value serialized as a JSON string (e.g. "150.25").

      example: "24629.746"

    • short-equity-valuestring <decimal>

      Total value of short equity positions. Decimal value serialized as a JSON string (e.g. "150.25").

      example: "0.0"

    • long-derivative-valuestring <decimal>

      Total value of long derivative (options) positions. Decimal value serialized as a JSON string (e.g. "150.25").

      example: "0.0"

    • short-derivative-valuestring <decimal>

      Total value of short derivative (options) positions. Decimal value serialized as a JSON string (e.g. "150.25").

      example: "0.0"

    • long-futures-valuestring <decimal>

      Total value of long futures positions. Decimal value serialized as a JSON string (e.g. "150.25").

      example: "0.0"

    • short-futures-valuestring <decimal>

      Total value of short futures positions. Decimal value serialized as a JSON string (e.g. "150.25").

      example: "0.0"

    • long-futures-derivative-valuestring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • short-futures-derivative-valuestring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • long-margineable-valuestring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • short-margineable-valuestring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • margin-equitystring <decimal>

      The account's margin equity. Decimal value serialized as a JSON string (e.g. "150.25").

      example: "32520.734"

    • equity-buying-powerstring <decimal>

      Funds available to open equity positions. Decimal value serialized as a JSON string (e.g. "150.25").

      example: "45657.048"

    • derivative-buying-powerstring <decimal>

      Funds available to open derivative (options) positions. Decimal value serialized as a JSON string (e.g. "150.25").

      example: "22828.524"

    • day-trading-buying-powerstring <decimal>

      Funds available for day trades. Decimal value serialized as a JSON string (e.g. "150.25").

      example: "0.0"

    • futures-margin-requirementstring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • available-trading-fundsstring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • maintenance-requirementstring <decimal>

      Margin the account must maintain against its current positions. Decimal value serialized as a JSON string (e.g. "150.25").

      example: "9692.211"

    • maintenance-call-valuestring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • reg-t-call-valuestring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • day-trading-call-valuestring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • day-equity-call-valuestring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • net-liquidating-valuestring <decimal>

      Total current value of the account, roughly the cash you would end up with if you closed every position. Decimal value serialized as a JSON string (e.g. "150.25").

      example: "32520.734"

    • cash-available-to-withdrawstring <decimal>

      Cash that can be withdrawn right now. Decimal value serialized as a JSON string (e.g. "150.25").

      example: "22828.53"

    • day-trade-excessstring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • pending-cashstring <decimal>

      Cash mid-transfer that has not cleared. Usually 0.0. Check pending-cash-effect for direction. Decimal value serialized as a JSON string (e.g. "150.25").

      example: "0.0"

    • pending-cash-effectstring

      Direction of pending-cash. Credit is an incoming deposit, Debit is an outgoing withdrawal, None means no pending cash.

      example: "None"

    • long-cryptocurrency-valuestring <decimal>

      Total value of long cryptocurrency positions. Decimal value serialized as a JSON string (e.g. "150.25").

      example: "671.991"

    • short-cryptocurrency-valuestring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • cryptocurrency-margin-requirementstring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • unsettled-cryptocurrency-fiat-amountstring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • unsettled-cryptocurrency-fiat-effectstring
    • closed-loop-available-balancestring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • equity-offering-margin-requirementstring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • long-bond-valuestring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • bond-margin-requirementstring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • used-derivative-buying-powerstring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • special-memorandum-account-valuestring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • special-memorandum-account-apex-adjustmentstring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • total-settle-balancestring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • margin-settle-balancestring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • cash-settle-balancestring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • sma-equity-option-buying-powerstring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • snapshot-datestring <date>

      The date this balance reflects.

      example: "2026-06-08"

    • time-of-daystring
    • reg-t-margin-requirementstring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • futures-overnight-margin-requirementstring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • futures-intraday-margin-requirementstring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • maintenance-excessstring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • pending-margin-intereststring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • apex-starting-day-margin-equitystring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • buying-power-adjustmentstring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • buying-power-adjustment-effectstring
    • effective-cryptocurrency-buying-powerstring <decimal>

      Decimal value serialized as a JSON string (e.g. "150.25").

    • updated-atstring <date-time>

      Timestamp when the balance was last updated.

      example: "2026-06-08T01:10:30.928+00:00"

  • contextrequiredstring

    example: "/accounts/{account_number}/balances"

401Missing or invalid access token, or a missing/malformed User-Agent header. Access tokens last 15 minutes; send Authorization: Bearer <token> and a User-Agent like my-app/1.0 on every request.application/json

Example response

{
  "error": {
    "code": "unauthorized",
    "message": "No valid access token was provided; access tokens expire after 15 minutes."
  }
}

Schema

  • errorrequiredobject
    • coderequiredstring

      Machine-readable error code (see the Error reference).

    • messagerequiredstring

      Human-readable explanation.

    • errorsarray<object>{3 fields}

      Present for multi-error / validation failures; one entry per problem.

403Authenticated, but the token's scope or the account's authority level does not permit reading balances for this account.application/json

Example response

{
  "error": {
    "code": "not_permitted",
    "message": "User not permitted access"
  }
}

Schema

  • errorrequiredobject
    • coderequiredstring

      Machine-readable error code (see the Error reference).

    • messagerequiredstring

      Human-readable explanation.

    • errorsarray<object>{3 fields}

      Present for multi-error / validation failures; one entry per problem.

404Account not found. Verify the account_number and confirm you are hitting the correct environment (sandbox api.cert.tastyworks.com vs production api.tastyworks.com).application/json

Example response

{
  "error": {
    "code": "string",
    "message": "string",
    "errors": [
      {
        "code": "string",
        "message": "string",
        "domain": "string"
      }
    ]
  }
}

Schema

  • errorrequiredobject
    • coderequiredstring

      Machine-readable error code (see the Error reference).

    • messagerequiredstring

      Human-readable explanation.

    • errorsarray<object>{3 fields}

      Present for multi-error / validation failures; one entry per problem.

429Request rate exceeded. Back off exponentially and reduce request rate.application/json

Example response

{
  "error": {
    "code": "string",
    "message": "string",
    "errors": [
      {
        "code": "string",
        "message": "string",
        "domain": "string"
      }
    ]
  }
}

Schema

  • errorrequiredobject
    • coderequiredstring

      Machine-readable error code (see the Error reference).

    • messagerequiredstring

      Human-readable explanation.

    • errorsarray<object>{3 fields}

      Present for multi-error / validation failures; one entry per problem.

Related

Agents: this page is also Markdown (with the embedded OpenAPI definition) — append .md or send Accept: text/markdown. Index at /llms.txt.