Resource groups¶
Each property on a client returns a typed resource group. Generated methods provide one method per
CIAPI endpoint, plus the documented place_order alias for the generated order method and
order.get_order_including_closed for querying active and closed orders. The
synchronous classes are documented below; every method has an async twin on the matching
Async*Resource class (for example AsyncSessionResource.log_on).
session¶
stonepy.resources.session.SessionResource
¶
Bases: _ChangePasswordMixin, _DeleteSessionMixin, _LogOnMixin, _ValidateSessionMixin, BaseResource
Synchronous session resource group; access it via StoneXClient.session. Each method
maps to one StoneX CIAPI v2 endpoint.
Source code in src/stonepy/_core/resource.py
call_context
property
¶
Return the shared call state used to invoke endpoints.
This property cannot be reassigned; its context contains mutable state.
order¶
stonepy.resources.order.OrderResource
¶
Bases: _CancelOrderMixin, _GetActiveStopLimitOrderMixin, _GetAllTradesWallMixin, _GetChangedOrdersMixin, _GetMarketsTradesWallMixin, _GetOpenPositionMixin, _GetOrderMixin, _GetOrderHistoryMixin, _GetOrderIncludingClosedMixin, _GetOrdersMixin, _GetOrdersByReferenceMixin, _ListActiveOrdersMixin, _ListActiveStopLimitOrdersMixin, _ListOpenPositionsMixin, _ListStopLimitOrderHistoryMixin, _ListTradeHistoryMixin, _OrderMixin, _PlaceOrderMixin, _SaveOrderMixin, _SimulateCancelOrderMixin, _SimulateOrderMixin, _SimulateTradeMixin, _SimulateUpdateOrderMixin, _SimulateUpdateTradeMixin, _TradeMixin, _UpdateOrderMixin, _UpdateTradeMixin, BaseResource
Synchronous order resource group; access it via StoneXClient.order. Each method maps
to one StoneX CIAPI v2 endpoint.
Source code in src/stonepy/_core/resource.py
call_context
property
¶
Return the shared call state used to invoke endpoints.
This property cannot be reassigned; its context contains mutable state.
order_including_closed (deprecated)¶
Deprecated aliases: client.order_including_closed.get_order_including_closed emits
DeprecationWarning; use client.order.get_order_including_closed.
stonepy.resources.order_including_closed.OrderIncludingClosedResource
¶
Bases: _GetOrderIncludingClosedMixin, BaseResource
Synchronous order_including_closed resource group; access it via
StoneXClient.order_including_closed. Each method maps to one StoneX CIAPI v2 endpoint.
Source code in src/stonepy/_core/resource.py
call_context
property
¶
Return the shared call state used to invoke endpoints.
This property cannot be reassigned; its context contains mutable state.
market¶
stonepy.resources.market.MarketResource
¶
Bases: _FullSearchWithTagsMixin, _GetFullSearchWithTagsMixin, _GetLatestPriceBarsMixin, _GetLatestPriceTicksMixin, _GetMarketInformationMixin, _GetMarketInformationExtendedMixin, _GetMarketSpreadMixin, _GetPriceBarsAfterDateMixin, _GetPriceBarsBeforeDateMixin, _GetPriceBarsBetweenDatesMixin, _GetPriceTicksAfterDateMixin, _GetPriceTicksBeforeDateMixin, _GetPriceTicksBetweenDatesMixin, _ListLatestTradedMarketsMixin, _ListMarketInformationMixin, _ListMarketInformationSearchMixin, _ListMarketSearchMixin, _ListMarketSearchPaginatedMixin, _SaveMarketInformationMixin, _SaveProductInformationMixin, _SearchWithTagsMixin, _TagLookupMixin, BaseResource
Synchronous market resource group; access it via StoneXClient.market. Each method maps
to one StoneX CIAPI v2 endpoint.
Source code in src/stonepy/_core/resource.py
call_context
property
¶
Return the shared call state used to invoke endpoints.
This property cannot be reassigned; its context contains mutable state.
spread¶
stonepy.resources.spread.SpreadResource
¶
Bases: _ListSpreadMarketsMixin, BaseResource
Synchronous spread resource group; access it via StoneXClient.spread. Each method maps
to one StoneX CIAPI v2 endpoint.
Source code in src/stonepy/_core/resource.py
call_context
property
¶
Return the shared call state used to invoke endpoints.
This property cannot be reassigned; its context contains mutable state.
cfd¶
stonepy.resources.cfd.CfdResource
¶
Bases: _ListCfdMarketsMixin, BaseResource
Synchronous cfd resource group; access it via StoneXClient.cfd. Each method maps to
one StoneX CIAPI v2 endpoint.
Source code in src/stonepy/_core/resource.py
call_context
property
¶
Return the shared call state used to invoke endpoints.
This property cannot be reassigned; its context contains mutable state.
margin¶
stonepy.resources.margin.MarginResource
¶
Bases: _GetClientAccountMarginMixin, _ListManagedClientAccountsMarginMixin, BaseResource
Synchronous margin resource group; access it via StoneXClient.margin. Each method maps
to one StoneX CIAPI v2 endpoint.
Source code in src/stonepy/_core/resource.py
call_context
property
¶
Return the shared call state used to invoke endpoints.
This property cannot be reassigned; its context contains mutable state.
fixed_margin¶
Deprecated aliases: fixedmargin emits DeprecationWarning; use client.fixed_margin.
stonepy.resources.fixedmargin.FixedmarginResource
¶
Bases: _GetFreeCashToTradeMixin, _TradeFmMixin, _UpdateTradeFmMixin, BaseResource
Synchronous fixed_margin resource group; access it via StoneXClient.fixed_margin. Each
method maps to one StoneX CIAPI v2 endpoint.
Source code in src/stonepy/_core/resource.py
call_context
property
¶
Return the shared call state used to invoke endpoints.
This property cannot be reassigned; its context contains mutable state.
price_alert¶
stonepy.resources.price_alert.PriceAlertResource
¶
Bases: _DeletePaMixin, _GetPaMixin, _SavePaMixin, _SavePriceAlertMixin, BaseResource
Synchronous price_alert resource group; access it via StoneXClient.price_alert. Each
method maps to one StoneX CIAPI v2 endpoint.
Source code in src/stonepy/_core/resource.py
call_context
property
¶
Return the shared call state used to invoke endpoints.
This property cannot be reassigned; its context contains mutable state.
watchlist¶
stonepy.resources.watchlist.WatchlistResource
¶
Bases: _DeleteWatchlistMixin, _GetWatchlistsMixin, _GetWatchlistsListMixin, _SaveWatchlistMixin, BaseResource
Synchronous watchlist resource group; access it via StoneXClient.watchlist. Each
method maps to one StoneX CIAPI v2 endpoint.
Source code in src/stonepy/_core/resource.py
call_context
property
¶
Return the shared call state used to invoke endpoints.
This property cannot be reassigned; its context contains mutable state.
news¶
stonepy.resources.news.NewsResource
¶
Bases: _GetMarketReportHeadlinesMixin, _GetMarketReportsMixin, _GetNewsMixin, _GetNewsDetailMixin, _GetNewsHeadlinesMixin, _GetStoryMixin, _ListNewsHeadlinesMixin, _ListNewsHeadlinesWithSourceMixin, _SearchMarketReportsMixin, _SearchNewsMixin, BaseResource
Synchronous news resource group; access it via StoneXClient.news. Each method maps to
one StoneX CIAPI v2 endpoint.
Source code in src/stonepy/_core/resource.py
call_context
property
¶
Return the shared call state used to invoke endpoints.
This property cannot be reassigned; its context contains mutable state.
message¶
stonepy.resources.message.MessageResource
¶
Bases: _ClientCommunicationMessageUpdateMixin, _GetClientApplicationMessageTranslationMixin, _GetClientApplicationMessageTranslationWithInterestingItemsMixin, _GetClientCommunicationMessagesMixin, _GetMessagePopupMixin, _GetSecureMessagesMixin, _GetSystemLookupMixin, _SaveClientCommunicationMessageResponseMixin, BaseResource
Synchronous message resource group; access it via StoneXClient.message. Each method
maps to one StoneX CIAPI v2 endpoint.
Source code in src/stonepy/_core/resource.py
call_context
property
¶
Return the shared call state used to invoke endpoints.
This property cannot be reassigned; its context contains mutable state.
preference¶
stonepy.resources.preference.PreferenceResource
¶
Bases: _DeleteUserPreferenceMixin, _GetUserPreferenceMixin, _SaveUserPreferenceMixin, BaseResource
Synchronous preference resource group; access it via StoneXClient.preference. Each
method maps to one StoneX CIAPI v2 endpoint.
Source code in src/stonepy/_core/resource.py
call_context
property
¶
Return the shared call state used to invoke endpoints.
This property cannot be reassigned; its context contains mutable state.
clientpreference¶
stonepy.resources.clientpreference.ClientpreferenceResource
¶
Bases: _DeleteMixin, _GetMixin, _GetKeyListMixin, _GetListMixin, _GetOverriddenSettingsMixin, _SaveMixin, _SaveOverriddenSettingsMixin, BaseResource
Synchronous clientpreference resource group; access it via
StoneXClient.clientpreference. Each method maps to one StoneX CIAPI v2 endpoint.
Source code in src/stonepy/_core/resource.py
call_context
property
¶
Return the shared call state used to invoke endpoints.
This property cannot be reassigned; its context contains mutable state.
client_preference¶
stonepy.resources.client_preference.ClientPreferenceResource
¶
Bases: _DeleteClientPreferenceMixin, _GetClientPreferenceMixin, _GetClientPreferenceOverriddenSettingsMixin, _GetClientPreferencesKeyListMixin, _GetClientPreferencesListMixin, _SaveClientPreferenceMixin, _SaveClientPreferenceOverriddenSettingsMixin, BaseResource
Synchronous client_preference resource group; access it via
StoneXClient.client_preference. Each method maps to one StoneX CIAPI v2 endpoint.
Source code in src/stonepy/_core/resource.py
call_context
property
¶
Return the shared call state used to invoke endpoints.
This property cannot be reassigned; its context contains mutable state.
client_application¶
Deprecated aliases: clientapplication emits DeprecationWarning; use client.client_application.
stonepy.resources.clientapplication.ClientapplicationResource
¶
Bases: _GetVersionInformationMixin, BaseResource
Synchronous client_application resource group; access it via
StoneXClient.client_application. Each method maps to one StoneX CIAPI v2 endpoint.
Source code in src/stonepy/_core/resource.py
call_context
property
¶
Return the shared call state used to invoke endpoints.
This property cannot be reassigned; its context contains mutable state.
user_account¶
stonepy.resources.user_account.UserAccountResource
¶
Bases: _GetChartingEnabledMixin, _GetClientAndTradingAccountMixin, _GetMultipleUsersDetailsByClientAccountIdsMixin, _GetMultipleUsersDetailsByFacebookIdsMixin, _GetMultipleUsersDetailsByScreenNamesMixin, _GetSocialActionsMixin, _GetUsernameMixin, _GetWallItemsForUsersMixin, _GetWallSubItemsMixin, _ListFollowedMixin, _ListFollowersMixin, _ListTopholdersForMarketsMixin, _SaveAccountInformationMixin, _SearchMixin, BaseResource
Synchronous user_account resource group; access it via StoneXClient.user_account. Each
method maps to one StoneX CIAPI v2 endpoint.
Source code in src/stonepy/_core/resource.py
call_context
property
¶
Return the shared call state used to invoke endpoints.
This property cannot be reassigned; its context contains mutable state.
pm¶
stonepy.resources.pm.PmResource
¶
Bases: _GetHistoricalOrdersMixin, _GetOpenOrdersMixin, _GetPendingOrdersMixin, _GetSignalPerformanceMixin, _GetSignalPreferencesMixin, _ListActiveSignalsMixin, _SaveSignalPreferencesMixin, BaseResource
Synchronous pm resource group; access it via StoneXClient.pm. Each method maps to one
StoneX CIAPI v2 endpoint.
Source code in src/stonepy/_core/resource.py
call_context
property
¶
Return the shared call state used to invoke endpoints.
This property cannot be reassigned; its context contains mutable state.
trading_advisor¶
Deprecated aliases: tradingadvisor emits DeprecationWarning; use client.trading_advisor.
stonepy.resources.tradingadvisor.TradingadvisorResource
¶
Bases: _DeleteAllocationProfileMixin, _ListAllocationProfilesMixin, _ListManagedClientsMixin, _SaveAllocationProfileMixin, BaseResource
Synchronous trading_advisor resource group; access it via
StoneXClient.trading_advisor. Each method maps to one StoneX CIAPI v2 endpoint.
Source code in src/stonepy/_core/resource.py
call_context
property
¶
Return the shared call state used to invoke endpoints.
This property cannot be reassigned; its context contains mutable state.
Unspecified responses¶
preference.delete_user_preference, preference.save_user_preference, and price_alert.save_pa
return stonepy.UnspecifiedResponse because their catalog contracts document no
response body. Empty bodies and JSON null produce an empty model; unexpected object fields
are retained in model_extra.