-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Develop #961
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ts in CachedProperty class
fix datetime_func
* Enhance instrument handling by adding InstrumentNotFound exception, updating assure_instrument and related methods to improve order book ID validation, and refining argument checking for instrument types. * Refactor argument checking to include assure_that for listed instruments, enhancing validation in order functions across APIs. Update order handling in stock and future APIs to utilize new assurance methods for improved robustness. * Refactor instrument validation by replacing assure_that for listed instruments with assure_that for active instruments across APIs. Update requirements for typing-extensions and enhance DataProxy class to include InstrumentsMixin for improved instrument handling. * Enhance instrument handling by introducing a new assurance method for listed instruments, updating deprecated methods to guide users towards preferred alternatives, and refining type hints in the DataProxy class for better clarity and functionality. * Fix settle price retrieval in DataProxy to use trading date instead of a generic date parameter, ensuring accurate price data for futures instruments. * Update translations and version for rqalpha to 6.1.0, including improvements in message handling and formatting for better clarity in error reporting. Adjusted POT creation date and updated Babel version in configuration files. * Update CHANGELOG for version 6.1.0, introducing breaking changes to `get_position` API and adding new `get_instruments_history` and `active_instrument` APIs. Refactor instrument handling in DataProxy and related classes to improve functionality and type safety. * Refactor order handling and validation across APIs to ensure active instruments are used. Update `get_position` API to prevent passing non-listed order_book_ids, and enhance type hints for better clarity. Introduce new assurance methods for order_book_id validation, improving robustness in order submissions. * Update test data for backtest results, replacing '人福医药' with 'ST人福' across multiple entries to reflect the correct stock designation. This change ensures consistency in stock identification within the integration tests. * Refactor IsTradingValidator to improve instrument validation by utilizing the new get_active_instrument method. Introduce exception handling for InstrumentNotFound to enhance error reporting during order submissions, ensuring only active instruments are processed. * Refactor position model to utilize instance variable for instrument checks, improving code clarity and consistency. Simplify order_target_portfolio_smart function call by removing unnecessary parentheses. * Refactor AnalyserMod to enhance position record creation by incorporating calendar and trading dates. Update symbol retrieval to utilize trading date for improved accuracy in instrument data handling. * Enhance DataProxy and BaseDataSource to improve instrument retrieval and factor handling. Introduce error handling for missing instruments in DataProxy and refine factor filtering in BaseDataSource to ensure only relevant data is returned based on listing dates. * Add agent onboarding documentation and enhance API for active instruments - Introduced AGENTS.md to provide guidelines on project structure, architecture, coding style, testing, and commit practices for agent onboarding. - Added new APIs: `active_instrument`, `active_instruments`, `instrument_history`, and `instruments_history` to improve instrument retrieval and historical data access. - Updated existing API methods to ensure consistency and clarity in handling active instruments and their histories. - Enhanced integration tests to validate the new APIs and ensure proper functionality with active and inactive instruments. * Enhance type hints in API methods for improved clarity and consistency - Updated type hints in `instrument_history`, `active_instruments`, and `instruments_history` functions to use `List` and `Dict` from the typing module. - Ensured consistency in type annotations across the API for better code readability and type safety.
* fix rqdatac fields * update test result * add reload future info * fix order api field * update changelog * update * fix bug * reverse data_source instruments map type * revise copy bundle to create symlink --------- Co-authored-by: Don <[email protected]>
* fix bug * add EnvironmentNotInitialized * update --------- Co-authored-by: Don <[email protected]>
* fix bug * update * update * update * update * add split test case * update --------- Co-authored-by: Don <[email protected]>
Co-authored-by: Don <[email protected]>
* update docs * update readthedocs build python version * reduce readthedocs build python version to 3.11 * set markupsafe<2.1.0 * update docs requirements docs * update version * add docs requirement * update get_position explanation * update * update * update setup to pyproject.toml * update * fix bug * update test.yml * revise pandas resample M to ME * pandas restrict <3.0.0 * compatible df.resample * open guess-next-dev * update --------- Co-authored-by: Cuizi7 <[email protected]> Co-authored-by: Don <[email protected]>
* add pytest-cov and open it * revise install mode --------- Co-authored-by: Don <[email protected]>
* exclude tests * update --------- Co-authored-by: Don <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.