-
-
Notifications
You must be signed in to change notification settings - Fork 11
docs: Comprehensive docstring updates for v3.1.11 API compatibility #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Fixed all outdated API usage examples in README.md and docs/ - Replaced deprecated factory functions with TradingSuite throughout - Updated all instrument references (suite.instrument.id → suite.instrument_id) - Fixed async context manager usage in authentication.rst - Created missing documentation structure: - user_guide/: client, market_data, trading, real_time, analysis guides - examples/: basic_usage, trading_strategies, real_time_data, portfolio_management - advanced/: architecture, performance, debugging, contributing - Root docs: changelog, license, support - Updated version references from 3.1.0 to 3.1.11 - Removed development phase warning (project is stable) - Added ManagedTrade and risk management documentation - Updated technical indicator examples with new pattern indicators (FVG, OrderBlock, WAE) - Removed deprecated _reference_docs directory - Fixed all deprecated create_trading_suite references All documentation now accurately reflects the current v3.1.11 API. 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]>
- Fixed client.get_account_info() to client.account_info in examples - Changed suite.instrument_info.id to suite.instrument_id - Replaced MGC/gold references with MNQ/ES for consistency - Verified all from_env() usage with proper async context managers - Updated auth.py examples to use correct account info access pattern - Standardized futures contract symbols across all examples (MNQ, ES, NQ) - Verified datetime imports and Polars DataFrame examples - Ensured all examples have V3 version tags - All docstring examples now accurately reflect v3.1.11 API 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]>
- Replaced all deprecated factory function examples with TradingSuite - Updated create_order_manager and create_realtime_client usage - Fixed client.get_session_token() and client.get_account_info() patterns - Replaced MGC examples with MNQ/ES for consistency - Updated all prices to use dynamic current_price for realism - Added V3.1 version tags to all examples - Fixed contract_id usage to use suite.instrument_id - Updated imports to use TradingSuite as primary interface - Fixed bracket order examples with realistic price offsets - Ensured consistent side parameter usage (0=Buy, 1=Sell) - Updated position order examples for accuracy - Fixed trailing stop examples with appropriate trail amounts All order_manager docstrings now accurately reflect v3.1.11 API patterns. 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]>
…ility - Replace deprecated create_orderbook factory function with TradingSuite - Remove create_realtime_client in favor of integrated suite approach - Fix client.jwt_token and client.account_id access patterns - Update EventBus to use suite.events integrated pattern - Add V3.1 version tags to all examples - Standardize symbols to use MNQ/ES futures contracts - Update all async/await patterns for correctness - Fix imports to reflect current module structure - Review and update iceberg detection examples - Verify volume profile examples and parameters - Update market analytics method names and return values - Fix memory management examples - Update realtime handler initialization patterns - Review orderbook snapshot examples - Fix callback registration patterns via suite.events
….1.11 compatibility - Replace deprecated factory functions with TradingSuite - Remove create_position_manager and create_realtime_client usage - Fix client.get_account_info() to client.account_info pattern - Update all instrument references to use suite.instrument_id - Replace all MGC references with MNQ/ES futures contracts - Add V3.1 version tags to all examples - Update EventBus usage to suite.events integrated pattern - Fix async/await patterns for correctness - Update imports to reflect current module structure - Make prices dynamic using suite.data.get_current_price() - Update risk management examples with TradingSuite - Fix position operations examples - Update monitoring and alert examples - Ensure all examples show TradingSuite as primary interface
- Replace all create_realtime_client factory function references with TradingSuite - Update client API calls (get_session_token() to session_token property) - Replace MGC references with MNQ/ES futures contracts - Add V3.1 version tags to all examples - Show TradingSuite as the primary interface for real-time functionality - Provide low-level direct usage examples as advanced alternatives - Update all subscription examples to use modern contracts
…ngs for v3.1.11 compatibility - Replace all create_realtime_client factory function references with TradingSuite - Update client API calls (client.jwt_token to property access) - Replace MGC references with MNQ/ES futures contracts - Add V3.1 version tags to all examples - Show TradingSuite as the primary interface with suite.data access - Update EventBus examples to use suite.events pattern - Provide low-level direct usage examples as advanced alternatives - Update all data access examples to use TradingSuite
- Replace MGC references with MNQ/ES in trading_suite.py - Update models.py examples from MGC to MNQ futures contracts - Correct tick size and tick value for MNQ contracts - All single-file modules reviewed for deprecated patterns
|
Claude finished @TexasCoding's task —— View job Comprehensive PR Review: Documentation Updates for v3.1.11
|

Summary
This PR contains comprehensive documentation updates to ensure all docstrings in the SDK are accurate and compatible with the v3.1.11 API patterns. This addresses the transition from deprecated factory functions to the modern
TradingSuiteinterface.Changes Made
Module Documentation Updates
Client Module (
client/)client.account_infoinstead ofclient.get_account_info())TradingSuiteOrder Manager Module (
order_manager/)create_order_manager()factory function referencessuite.ordersaccess patternOrderBook Module (
orderbook/)TradingSuiteas primary interfacePosition Manager Module (
position_manager/)create_position_manager()withTradingSuitepatternsRealtime Module (
realtime/)create_realtime_client()factory function referencesTradingSuiteRealtime Data Manager Module (
realtime_data_manager/)TradingSuitesuite.dataaccesssuite.eventsSingle-File Modules
Key Patterns Updated
Before (Deprecated)
After (V3.1.11)
Contract Symbol Updates
Testing
Related Issues
🤖 Generated with Claude Code
Co-Authored-By: Claude [email protected]