• Invest: 1-855-880-2559
  • Open 24/7

Ally Invest API Documentation

Build your application to connect to our investment platform and the 250,000 traders connected to it.

GET accounts/:id/balances {.format}


This call will return detailed balance information for the account number specified in the URI.

Authentication Required
Yes OAuth 1.0a
URI Parameters
id a valid account number
format a response format, default is xml (See Response Structure)
Example URL

Data Fields

Data Tag Description
account Account number
accountvalue Account value
accruedinterest Amount of any accrued interest on the account
cash cash
cashavailable cash available
cashavailableforwithdrawal Cash available for withdrawal (cash & margin accounts only, n/a for retirement accounts)
cashbalance cash balance
cashmv Value of cash market value
equitypercentage Percentage of equity (margin accounts only)
fedcall Value of any fed call on account
housecall Value of any house call
longoptions Long option market value
longstocks Long stock market value
marginbalance Margin balance (- indicates debit balance, + indicates credit balance)
marginmv Margin market value
mmf Money market fund
openbuyvalue Open buy value
options Total option market value. Path: /response/accountbalance/securities/
options Options buying power. Path: /response/accountbalance/buyingpower/
shortbalance short balance (credit for sell?)
shortmv short market value
shortoptions Short option market value
shortstocks Short stock market value
sodoptions Start of day options buying power
sodstock Start of day stock buying power
stock Stock buying power
stocks Total stock market value
total Total cash balance. Path: /response/accountbalance/money/
total Total market value (stock & option). Path: /response/accountbalance/securities/
uncleareddeposits uncleared deposits
unsettledfunds unsettle funds
yield Yield

Request Example

GET /v1/accounts/123456878/balances.xml HTTP/1.1
Authorization: OAuth
Connection: close
Host: devapi.invest.ally.com

Response Example

<?xml version="1.0" encoding="UTF-8"?>
<response id="77cf30da:12df25c7074:-7ea6">

Any mention of actual symbols are to be used for coding purposes only and do not imply a recommendation or solicitation to buy or sell a particular security or to engage in any particular investment strategy.

At the time of publication and in the preceding month, Ally Invest did not have ownership greater than 1% in any stocks mentioned here and does not have any other actual, material conflict of interest known at the time of publication.

Ally Invest did not receive compensation from a public offering or from investment banking services related to any companies mentioned here within the past 12 months, or expects to receive any in the next 3 months. Ally Invest did not engage in market making in the securities mentioned here.

Ally Invest Securities' background can be found at FINRA's BrokerCheck. Options involve risk and are not suitable for all investors.

Review the Characteristics and Risks of Standardized Options brochure before you begin trading options. Options investors may lose the entire amount of their investment in a relatively short period of time.