Skip to main content
GET
/
v1
/
accounts
/
{id}
/
balances
Python (SDK)
from finance_dev import FinanceDev, models
import os


with FinanceDev(
    security=models.Security(
        client_id=os.getenv("FINANCEDEV_CLIENT_ID", ""),
        client_secret=os.getenv("FINANCEDEV_CLIENT_SECRET", ""),
    ),
) as fd_client:

    res = fd_client.accounts.get_account_balances(id="<id>")

    # Handle response
    print(res)
{
  "sodPositionsMarketValue": "<string>",
  "netBuyingPower": "<string>",
  "stockBuyingPower": "<string>",
  "dayTradeBuyingPower": "<string>",
  "optionBuyingPower": "<string>",
  "dayTradeOvernightRegTBuyingPower": "<string>",
  "totalEquity": "<string>",
  "settledFunds": "<string>",
  "unsettledFunds": "<string>",
  "heldBackFunds": "<string>",
  "grossMargin": "<string>",
  "pendingOrdersMarginRequirements": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://finance.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Account ID

Response

Account balances retrieved successfully

sodPositionsMarketValue
string

Start of day positions market value

netBuyingPower
string

Net buying power available

stockBuyingPower
string

Stock buying power

dayTradeBuyingPower
string

Day trade buying power

optionBuyingPower
string

Option buying power

dayTradeOvernightRegTBuyingPower
string

Day trade overnight regular buying power

totalEquity
string

Total equity in account

settledFunds
string

Settled funds available

unsettledFunds
string

Unsettled funds

heldBackFunds
string

Funds held back

grossMargin
string

Gross margin

pendingOrdersMarginRequirements
string

Margin requirements for pending orders