Clients¶
Both clients are context managers and expose the same resource groups (see
Resource groups). Use StoneXClient for synchronous code and
AsyncStoneXClient for asyncio.
stonepy.StoneXClient
¶
StoneXClient(config: ClientConfig)
Synchronous StoneX CIAPI v2 client.
Use as a context manager or call close() when finished. Resource properties
lazily construct typed API resource groups.
Source code in src/stonepy/client.py
client_preference
property
¶
client_preference: ClientPreferenceResource
Return the client_preference resource group.
clientapplication
property
¶
clientapplication: ClientapplicationResource
Return the clientapplication resource group.
clientpreference
property
¶
clientpreference: ClientpreferenceResource
Return the clientpreference resource group.
order_including_closed
property
¶
order_including_closed: OrderIncludingClosedResource
Return the order_including_closed resource group.
tradingadvisor
property
¶
tradingadvisor: TradingadvisorResource
Return the tradingadvisor resource group.
plugin
¶
stonepy.AsyncStoneXClient
¶
AsyncStoneXClient(config: ClientConfig)
Asynchronous StoneX CIAPI v2 client.
Use with async with or call aclose() when finished. Resource properties
mirror the synchronous client and expose awaitable methods.
Source code in src/stonepy/client.py
client_preference
property
¶
Return the client_preference resource group.
clientapplication
property
¶
Return the clientapplication resource group.
clientpreference
property
¶
Return the clientpreference resource group.
order_including_closed
property
¶
Return the order_including_closed resource group.
tradingadvisor
property
¶
Return the tradingadvisor resource group.
user_account
property
¶
Return the user_account resource group.