# 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"]}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pearprotocol.io/api-integration/api-specification/accounts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
