# Get account settings

```
GET /api/v1/account/settings
```

#### Query Parameters

<table><thead><tr><th width="176">Field</th><th width="98">Type</th><th width="95">Need</th><th width="189">Description</th><th>Example</th></tr></thead><tbody><tr><td><code>"account"</code></td><td>string</td><td>required</td><td>Account address</td><td><code>42trU9A5...</code></td></tr></tbody></table>

```
/api/v1/account/settings?account=42trU9A5...
```

#### Response

NOTE: Upon account creation, all markets have margin settings default to cross margin and leverage default to max. When querying this endpoint, all markets with default margin and leverage settings on this account will return blank.

* Status 200: Successfully retrieved account settings

```json
  {
  "success": true,
  "data": {
    "auto_lend_disabled": null,
    "margin_settings": [
        {
          "symbol": "WLFI",
          "isolated": false,
          "leverage": 5,
          "created_at": 1758085929703,
          "updated_at": 1758086074002
        }
      ],
      "spot_settings": [
        {
          "symbol": "SOL",
          "unified_margin_excluded": false
        }
      ],
      "error": null,
      "code": null
  }
}
```

<table><thead><tr><th width="208">Field</th><th width="186">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>"auto_lend_disabled"</code></td><td>boolean or null</td><td>Whether automatic lending is disabled for this account. <code>null</code> means default (enabled)</td></tr><tr><td><code>"spot_settings"</code></td><td>array</td><td>Per-asset spot settings for unified margin (see below)</td></tr><tr><td><code>"symbol"</code></td><td>string</td><td>Trading pair symbol</td></tr><tr><td><code>"isolated"</code></td><td>boolean</td><td>If the account is set to isolated margining for this symbol</td></tr><tr><td><code>"leverage"</code></td><td>integer</td><td>Current leverage set by the user (default to max)</td></tr><tr><td><code>"created_at"</code></td><td>integer</td><td>Timestamp in milliseconds when these settings were adjusted from their default</td></tr><tr><td><code>"updated_at"</code></td><td>integer</td><td>Timestamp in milliseconds when these settings were last updated</td></tr></tbody></table>

**Spot Settings Fields**

| Field                       | Type    | Description                                                                        |
| --------------------------- | ------- | ---------------------------------------------------------------------------------- |
| `"symbol"`                  | string  | Spot asset symbol                                                                  |
| `"unified_margin_excluded"` | boolean | If `true`, this spot asset is excluded from unified margin collateral calculations |

* Status 400: Invalid request parameters
* Status 401: Unauthorized access
* Status 500: Internal server error

#### Code Example (Python)

```python
import requests

response = requests.get(
    "/api/v1/account/settings?account=42trU9A5...",
    headers={"Accept": "*/*"},
)

data = response.json()
```


---

# 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://pacifica.gitbook.io/docs/api-documentation/api/rest-api/account/get-account-settings.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.
