---
title: "AeoClient.close | Python SDK | AEO API"
description: "Close a synchronous client that your application opened outside a context manager. Call this after the last request."
url: "https://aeoapi.dev/docs/sdks/python/aeoclient-close"
canonical: "https://aeoapi.dev/docs/sdks/python/aeoclient-close"
last_updated: "2026-11-30"
---

# AeoClient.close

Close a synchronous client that your application opened outside a context manager. Call this after the last request.

## Signature

```
def close(self) -> None
```

## Parameters

This method takes no arguments.

## Return value

Returns None after closing the underlying HTTP client.

## Errors

- HTTP client or transport errors during shutdown propagate to the caller.

## Python example

```
import os
from aeo_sdk import AeoClient

client = AeoClient(os.environ["AEO_API_KEY"], base_url=os.environ["AEO_API_BASE_URL"])
try:
    account = client.v2_get_account()
    print(account.status)
finally:
    client.close()
```

See [Python client setup](https://aeoapi.dev/docs/sdks/python) for the environment variables, response properties and retry settings.
