All notable changes to the ProjectX Python SDK will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
The canonical changelog is the repository root CHANGELOG.md. This page is a docs-site copy.
place_bracket_order polls fill status up to 6 times (1s apart) when the
fill wait returns with 0 filled, so a lagging fill still gets stop/target
legs (thanks @blurxy, #179). See the root CHANGELOG for the full note.
Orderbook get_statistics() uses pl.len() for trade-side counts so it
works under polars 2.0, where pl.count() no longer accepts zero
arguments (#168). See the root CHANGELOG for the full note.
Features is now an enum.StrEnum. str() and f-strings return the
member value (for example "orderbook") instead of "Features.ORDERBOOK".
Equality with strings, .value, and JSON serialization are unchanged
(#155). src/ formats under ruff 0.16. See the root CHANGELOG for the
full note.
Runtime cachetools is 7.2.0 (>=7.1.7). Use remains TTLCache only;
typing updated for cachetools 7 stubs (#150, #119). See the root
CHANGELOG for the full note.
RealtimeDataManager.cleanup() no longer sweeps bounded-statistics
counters at teardown. In-session CleanupScheduler cleanup is unchanged,
and TradingSuite.disconnect() still joins SignalR hub receive tasks
before freeing per-instrument data (#98). Lockfile pins anyio 4.14.2
(#146). CI uses softprops/action-gh-release v3 (#139). See the root
CHANGELOG for the full note.
Quote and depth SignalR forwards coalesce to the latest payload per
contract so a quote/depth flood cannot starve NEW_BAR. Trades and
user-hub events are not dropped (#143). See the root CHANGELOG for the
full list.
aggregate_session_bars() rebuilds CME/TopstepX-aligned daily candles from
intraday bars. Realtime health no longer reports 100 when both hubs are
closed; closed-hub heartbeats trigger reconnect; shielded HTTP timeouts are
retrieved. See the root CHANGELOG for the full list (#140, #141).
get_session_data() no longer hangs when the bar cache is locked. Reads
time out (default 2s) and return the last snapshot when one exists (#137).
See the root CHANGELOG for the full list.
get_bars() pages the 20,000-bar Gateway cap and stitches expired months
on hourly and coarser product-root requests. Sub-hour / tick history stays
on the active contract. TradingSuite.get_stats() no longer re-enters
the aggregator (#133, #134). See the root CHANGELOG for the full list.
Market-hub WS 1009 frame cap, user-hub stale reconnect, awaited
get_stats(), and Practice live=True instrument fallback. See the root
CHANGELOG for the full list.
Fix multi-instrument TradingSuite.create() racing the shared market-hub
send() (Subscription returned False). See the root CHANGELOG for the
full list.
Gateway coverage, live-trading risk OCO and entry-order gating, realtime stale-feed/batching/DST fixes, and honest indicator/docs claims. See the root CHANGELOG for the full list.
Live-order safety: mutating POSTs are not retried, stale-feed reconnect restores subscriptions, and native brackets fall back when children cannot be uniquely resolved. See the root CHANGELOG for the full list.
https://api.topstepx.com and https://rtc.topstepx.com.TradingSuite.get_stats_sync(). Use await get_stats() or
await export_stats().uvloop.install(). Install the optional uvloop extra
if you want it.requests, plotly, msgpack-python,
signalrcore, websocket-client.suite.journal / suite.analytics attributes.token, contracts).ProjectX-Python-SDK/4.0.0.from_api() constructors for Order, Position, and Trade.place_order() plus REST fill reconciliation.OrderSubmissionUncertainError for interrupted HTTP submissions.HubConnectionBuilder API.EventType.FEED_STALE) and REST price fallback.TradingSuite.export_stats() and projectx-check / projectx-config CLI.TradingSuite.create(username=, api_key=) credential kwargs.See the v3 → v4 migration guide.
Order Placement:
Examples:
Multi-Instrument Event System:
on(), once(), off(), and wait_for() methods that delegate to event_busmnq_context.wait_for(EventType.NEW_BAR) from workingBracket Order Improvements:
IMPORTANT: This is an experimental feature that has not been thoroughly tested with live market data. Use with caution in production environments.
This release introduces comprehensive trading session filtering, allowing you to separate Electronic Trading Hours (ETH) from Regular Trading Hours (RTH) for more precise market analysis and strategy execution.
src/project_x_py/sessions/) with SessionConfig, SessionFilterMixin, and session-aware componentssession_config parameterexamples/sessions/16_eth_vs_rth_sessions_demo.pydocs/guide/sessions.mdawait for consistency and performanceFor the complete changelog, see the GitHub releases.