> ## Documentation Index
> Fetch the complete documentation index at: https://finance.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Settings & Clients

> Manage settings and OAuth2 clients with the Python SDK

## Overview

Manage user settings, global configuration, and OAuth2 client applications.

## Settings API

### get\_user\_settings(category)

```python theme={null}
settings = client.settings.get_user_settings("trading")
```

### update\_user\_setting(category, key, value)

```python theme={null}
client.settings.update_user_setting("trading", "default_quantity", 100)
```

### reset\_user\_settings(category)

```python theme={null}
client.settings.reset_user_settings("trading")
```

## Clients API (OAuth2)

### get\_clients()

```python theme={null}
clients = client.oauth_clients.get_clients()
for c in clients:
    print(f"{c.name}: {c.client_id}")
```

### create\_client(name, redirect\_uris)

```python theme={null}
oauth_client = client.oauth_clients.create_client(
    name="My Trading App",
    redirect_uris=["https://myapp.com/callback"]
)
print(f"Client ID: {oauth_client.client_id}")
print(f"Client Secret: {oauth_client.client_secret}")
```

### update\_client(client\_id, updates)

```python theme={null}
client.oauth_clients.update_client(
    client_id="client_123",
    name="Updated App Name"
)
```

### delete\_client(client\_id)

```python theme={null}
client.oauth_clients.delete_client(client_id="client_123")
```

## Examples

```python theme={null}
# Create OAuth2 application
app = client.oauth_clients.create_client(
    name="Trading Bot",
    redirect_uris=["http://localhost:8080/callback"]
)

print(f"Created client:")
print(f"  Client ID: {app.client_id}")
print(f"  Client Secret: {app.client_secret}")
print("Save these credentials securely!")
```
