API Reference / Balances and Positions
Get Account Balance By Currency
getAccountsAccountNumberBalancesCurrency/accounts/{account_number}/balances/{currency}Base URL: https://api.cert.tastyworks.com (Sandbox) · https://api.tastyworks.com (Production)
Returns the current balance object for an account in a specific currency. Use this when an account holds more than one currency and you need the balance for one of them; for the default USD balance, the plural balances endpoint is sufficient.
Code samples
curl -X GET 'https://api.cert.tastyworks.com/accounts/5WX01234/balances/{currency}' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'User-Agent: tastytrade-docs-example/1.0'import requests
url = "https://api.cert.tastyworks.com/accounts/5WX01234/balances/{currency}"
headers = {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"User-Agent": "tastytrade-docs-example/1.0",
}
resp = requests.get(url, headers=headers)
print(resp.status_code, resp.json())const resp = await fetch("https://api.cert.tastyworks.com/accounts/5WX01234/balances/{currency}", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"User-Agent": "tastytrade-docs-example/1.0",
},
})
const data = await resp.json()
console.log(resp.status, data)package main
import (
"net/http"
"io"
"fmt"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.cert.tastyworks.com/accounts/5WX01234/balances/{currency}", nil)
req.Header.Set("Authorization", "Bearer YOUR_ACCESS_TOKEN")
req.Header.Set("User-Agent", "tastytrade-docs-example/1.0")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
out, _ := io.ReadAll(resp.Body)
fmt.Println(resp.Status, string(out))
}import java.net.URI;
import java.net.http.*;
HttpClient client = HttpClient.newHttpClient();
HttpRequest req = HttpRequest.newBuilder()
.uri(URI.create("https://api.cert.tastyworks.com/accounts/5WX01234/balances/{currency}"))
.header("Authorization", "Bearer YOUR_ACCESS_TOKEN")
.header("User-Agent", "tastytrade-docs-example/1.0")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> resp = client.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println(resp.statusCode() + " " + resp.body());Parameters
| Name | In | Type | Description |
|---|---|---|---|
| currency* | path | string | |
| account_number* | path | string | e.g. "5WX01234" |
Responses
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/{currency}"
}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-numberstringThe account number this balance belongs to.
example:
"5WX01234"currencystringThe 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-effectstringDirection 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-effectstringclosed-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-daystringreg-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-effectstringeffective-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"
contextrequiredstringexample:
"/accounts/{account_number}/balances/{currency}"
Example response
{
"error": {
"code": "unauthorized",
"message": "No valid access token was provided; access tokens expire after 15 minutes."
}
}Schema
errorrequiredobjectcoderequiredstringMachine-readable error code (see the Error reference).
messagerequiredstringHuman-readable explanation.
errorsarray<object>{3 fields}Present for multi-error / validation failures; one entry per problem.
Example response
{
"error": {
"code": "not_permitted",
"message": "User not permitted access"
}
}Schema
errorrequiredobjectcoderequiredstringMachine-readable error code (see the Error reference).
messagerequiredstringHuman-readable explanation.
errorsarray<object>{3 fields}Present for multi-error / validation failures; one entry per problem.
Example response
{
"error": {
"code": "string",
"message": "string",
"errors": [
{
"code": "string",
"message": "string",
"domain": "string"
}
]
}
}Schema
errorrequiredobjectcoderequiredstringMachine-readable error code (see the Error reference).
messagerequiredstringHuman-readable explanation.
errorsarray<object>{3 fields}Present for multi-error / validation failures; one entry per problem.
Example response
{
"error": {
"code": "string",
"message": "string",
"errors": [
{
"code": "string",
"message": "string",
"domain": "string"
}
]
}
}Schema
errorrequiredobjectcoderequiredstringMachine-readable error code (see the Error reference).
messagerequiredstringHuman-readable explanation.
errorsarray<object>{3 fields}Present for multi-error / validation failures; one entry per problem.
Related
- Rate-limit class:
read· idempotent — Rate limits & backoff - Error reference — codes, causes, and fixes
Agents: this page is also Markdown (with the embedded OpenAPI definition) — append .md or send Accept: text/markdown. Index at /llms.txt.