Ally Invest · Example Payload
Get Accounts Example
BrokerageInvestingTradingFinanceStocksOptionsMarket DataSelf-Directed
Get Accounts Example is an example object payload from Ally Invest, with 1 top-level field. It illustrates the shape of data this provider's APIs accept or return.
Top-level fields
response
Example Payload
{
"response": {
"id": "1",
"elapsedtime": "0.031",
"error": "Success",
"accounts": {
"accountsummary": [
{
"account": "12345678",
"accountbalance": {
"account": "12345678",
"accountvalue": "25430.75",
"buyingpower": {
"cashavailableforwithdrawal": "5000.00",
"daytrading": "0.00",
"equitypercentage": "100.00",
"options": "5000.00",
"soddaytrading": "0.00",
"stock": "5000.00"
},
"fedcall": "0.00",
"housecall": "0.00",
"money": {
"accruedinterest": "0.00",
"cash": "5000.00",
"cashavailable": "5000.00",
"marginbalance": "0.00",
"mmf": "0.00",
"total": "5000.00",
"uncleareddeposits": "0.00",
"unsettledfunds": "0.00",
"yield": "0.00"
},
"securities": {
"longoptions": "0.00",
"longstocks": "20430.75",
"options": "0.00",
"shortoptions": "0.00",
"shortstocks": "0.00",
"stocks": "20430.75",
"total": "20430.75"
}
},
"accountholdings": {
"holding": [
{
"accounttype": "1",
"costbasis": "15000.00",
"gainloss": "5430.75",
"gainlosspct": "36.21",
"instrument": {
"cusip": "037833100",
"desc": "APPLE INC",
"factor": "1",
"matdt": "",
"maturityvalue": "0.00",
"mult": "1",
"putcall": "",
"sectyp": "CS",
"sesn": "normal",
"strkpx": "0.00",
"sym": "AAPL"
},
"marketvalue": "20430.75",
"marketvaluechange": "252.23",
"price": "189.17",
"purchaseprice": "138.89",
"qty": "108",
"underlying": ""
}
],
"totalholdings": {
"accountvalue": "25430.75",
"longoptions": "0.00",
"longstocks": "20430.75",
"options": "0.00",
"shortoptions": "0.00",
"shortstocks": "0.00",
"stocks": "20430.75",
"total": "20430.75"
}
}
}
]
}
}
}
Work with this as data
Every example here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for examples
4 MCP tools reach this
find_examplesBrowse and filter every example in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This example
curl "https://apis.io/api/v1/examples/get-accounts-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.