# Get Currencies in Graphql

This query returns a list of currencies.

---

[![Screenshot 2025-12-16 at 17.11.35.png](https://docs.finmars.com/uploads/images/gallery/2025-12/scaled-1680-/screenshot-2025-12-16-at-17-11-35.png)](https://docs.finmars.com/uploads/images/gallery/2025-12/screenshot-2025-12-16-at-17-11-35.png)

### GraphQL Query

```graphql
query GetCurrencyList {
  currency(
    pagination: {
      limit: 20
      offset: 0
    }
  ) {
    id
    user_code
    name,
    country {
      id,
      name,
      user_code
    }
  }
}
```

---

### Python Example

```python
import requests

url = "https://<domain_name>/<realm_code>/<space_code>/graphql/"

headers = {
    "Authorization": "Bearer <access_token>",
    "Content-Type": "application/json"
}

payload = {
    "query": """
    query GetCurrencyList {
      currency(
        pagination: {
          limit: 20
          offset: 0
        }
      ) {
        id
        user_code
        name
        country {
          id,
          name,
          user_code
        }
      }
    }
    """
}

response = requests.post(url, json=payload, headers=headers)
print(response.json())
```

---

### What This Query Does

- Fetches a paginated list of currencies
- Returns standard currency fields
- One request, no extra endpoints

---