Skip to content

Conversation

@Lin-Dongzhao
Copy link
Collaborator

No description provided.

Cuizi7 and others added 10 commits December 4, 2025 14:17
* 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]>
* 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]>
@coveralls
Copy link

Coverage Status

coverage: 0.0%. remained the same
when pulling 0139ef8 on develop
into 58786d7 on master.

Cuizi7 and others added 3 commits January 26, 2026 10:45
* add pytest-cov and open it

* revise install mode

---------

Co-authored-by: Don <[email protected]>
* exclude tests

* update

---------

Co-authored-by: Don <[email protected]>
@Cuizi7 Cuizi7 merged commit ec72594 into master Jan 26, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants