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

# retrieveADL

> Python SDK reference for retrieveADL.

Retrieve Auto-Deleveraging (ADL) information.

```python theme={null}
async def retrieveADL():
    """Retrieve Auto-Deleveraging (ADL) information."""
    base_url = os.getenv("API_SERVER_URL")
    async with httpx.AsyncClient() as session:
        client = PerpetualsClient(base_url=base_url, session=session)
        try:
            address = os.getenv("ACCOUNT")
            adl = await client.get_adl()
            print(adl)
        except Exception as e:
            print(f"Error getting ADL: {e}")
            print("\nTroubleshooting:")
            print("  - Is the server running?")
            print("  - Does this address have orders in the database?")

```
