> For the complete documentation index, see [llms.txt](https://docs.openalgo.in/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openalgo.in/api-documentation/v1/accounts-api.md).

# Accounts API

Account, analyzer, preference, and health endpoints share the OpenAlgo v1 base URL and use the application API key.

| Endpoint                                                                     | Purpose                                      |
| ---------------------------------------------------------------------------- | -------------------------------------------- |
| [Ping](/api-documentation/v1/accounts-api/ping.md)                           | Verify API-key authentication                |
| [Funds](/api-documentation/v1/accounts-api/funds.md)                         | Read account funds and limits                |
| [Margin](/api-documentation/v1/accounts-api/margin.md)                       | Calculate order margin requirements          |
| [Order book](/api-documentation/v1/accounts-api/orderbook.md)                | Read the current order book                  |
| [Trade book](/api-documentation/v1/accounts-api/tradebook.md)                | Read executed trades                         |
| [Position book](/api-documentation/v1/accounts-api/positionbook.md)          | Read open and closed positions               |
| [Holdings](/api-documentation/v1/accounts-api/holdings.md)                   | Read delivery holdings                       |
| [Analyzer status](/api-documentation/v1/accounts-api/analyzer-status.md)     | Read live or analyzer mode                   |
| [Analyzer toggle](/api-documentation/v1/accounts-api/analyzer-toggle.md)     | Switch live or analyzer mode                 |
| [P\&L by symbol](/api-documentation/v1/accounts-api/pnl-symbols.md)          | Read sandbox P\&L grouped by symbol          |
| [Chart preferences](/api-documentation/v1/accounts-api/chart-preferences.md) | Read or update TradingView chart preferences |
