AsyncAeoClient.aclose
Close an asynchronous client that your application opened outside a context manager. Call this after the last request.
Signature
async def aclose(self) -> NoneParameters
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 asyncio
import os
from aeo_sdk import AsyncAeoClient
async def main():
client = AsyncAeoClient(os.environ["AEO_API_KEY"], base_url=os.environ["AEO_API_BASE_URL"])
try:
account = await client.v2_get_account()
print(account.status)
finally:
await client.aclose()
asyncio.run(main())See Python client setup for the environment variables, response properties and retry settings.