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

# Accounts

## Get account summary

> Retrieve account summary including margin information and agent wallet details for the authenticated user

```json
{"openapi":"3.0.0","info":{"title":"Pear Protocol Trading API","version":"1.0.0"},"servers":[{"url":"https://hl-v2.pearprotocol.io","description":"Production (Mainnet)"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"AccountSummaryResponseDto":{"type":"object","properties":{"agentWalletAddress":{"type":"string","description":"Agent wallet address"},"totalClosedTrades":{"type":"number","description":"Total number of closed trades"},"totalTriggerOrderUsdValue":{"type":"number","description":"Total USD value of open trigger orders"},"totalTwapChunkUsdValue":{"type":"number","description":"Total USD value of open TWAP chunks"},"lastSyncedAt":{"type":"number","description":"Last synced timestamp in milliseconds"}},"required":["agentWalletAddress","totalClosedTrades"]}}},"paths":{"/accounts":{"get":{"description":"Retrieve account summary including margin information and agent wallet details for the authenticated user","operationId":"AccountsController_getAccountSummary","parameters":[],"responses":{"200":{"description":"Account summary retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountSummaryResponseDto"}}}}},"summary":"Get account summary","tags":["Accounts"]}}}}
```
