Appearance
Async Client
Use AsyncTradingClient in async codebases.
python
import asyncio
from trading_sdk import AsyncTradingClient
async def main():
client = AsyncTradingClient(strategy_id="AQC-P1A2B3C4")
quote = await client.get_quote("AAPL")
print(quote)
await client.close()
asyncio.run(main())Async methods mirror the sync client. Notable async-only utilities:
close()to release the HTTP sessionstream_order_updates()to listen for order update events