rqalpha 5.6.4__tar.gz → 5.6.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rqalpha-5.6.4/rqalpha.egg-info → rqalpha-5.6.5}/PKG-INFO +1 -1
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/_version.py +3 -3
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/apis/api_base.py +3 -3
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/data/base_data_source/data_source.py +1 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/data/bundle.py +9 -5
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_analyser/__init__.py +1 -1
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/testing/fixtures.py +3 -1
- {rqalpha-5.6.4 → rqalpha-5.6.5/rqalpha.egg-info}/PKG-INFO +1 -1
- {rqalpha-5.6.4 → rqalpha-5.6.5}/setup.cfg +1 -1
- {rqalpha-5.6.4 → rqalpha-5.6.5}/CHANGELOG.rst +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/LICENSE +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/MANIFEST.in +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/README.rst +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/__main__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/api.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/apis/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/apis/api_abstract.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/apis/api_rqdatac.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/apis/names.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/cmds/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/cmds/bundle.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/cmds/entry.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/cmds/misc.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/cmds/mod.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/cmds/run.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/config.yml +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/const.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/core/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/core/events.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/core/execution_context.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/core/executor.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/core/global_var.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/core/strategy.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/core/strategy_context.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/core/strategy_loader.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/core/strategy_universe.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/data/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/data/bar_dict_price_board.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/data/base_data_source/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/data/base_data_source/adjust.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/data/base_data_source/storage_interface.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/data/base_data_source/storages.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/data/data_proxy.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/data/trading_dates_mixin.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/environment.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/examples/IF1706_20161108.csv +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/examples/IF_macd.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/examples/buy_and_hold.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/examples/data_source/get_csv_module.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/examples/data_source/import_get_csv_module.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/examples/data_source/read_csv_as_df.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/examples/extend_api/rqalpha_mod_extend_api_demo.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/examples/extend_api/test_extend_api.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/examples/golden_cross.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/examples/macd.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/examples/pair_trading.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/examples/rsi.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/examples/run_code_demo.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/examples/run_file_demo.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/examples/run_func_demo.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/examples/subscribe_event.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/examples/test_pt.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/examples/turtle.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/interface.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/main.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_accounts/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_accounts/api/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_accounts/api/api_future.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_accounts/api/api_stock.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_accounts/component_validator.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_accounts/mod.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_accounts/position_model.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_accounts/position_validator.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_accounts/validator.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_analyser/mod.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_analyser/plot/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_analyser/plot/consts.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_analyser/plot/plot.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_analyser/plot/utils.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_analyser/plot_store.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_analyser/report/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_analyser/report/excel_template.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_analyser/report/report.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_analyser/report/templates/summary.xlsx +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_progress/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_progress/mod.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_risk/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_risk/mod.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_risk/validators/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_risk/validators/cash_validator.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_risk/validators/is_trading_validator.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_risk/validators/price_validator.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_risk/validators/self_trade_validator.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_scheduler/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_scheduler/mod.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_scheduler/scheduler.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_simulation/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_simulation/matcher.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_simulation/mod.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_simulation/signal_broker.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_simulation/simulation_broker.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_simulation/simulation_event_source.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_simulation/slippage.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_simulation/testing.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_simulation/validator.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_transaction_cost/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_transaction_cost/deciders.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_transaction_cost/mod.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/utils.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod_config.yml +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/model/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/model/bar.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/model/instrument.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/model/order.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/model/tick.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/model/trade.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/portfolio/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/portfolio/account.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/portfolio/position.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/resource/ricequant-logo.png +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/user_module.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/arg_checker.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/class_helper.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/click_helper.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/concurrent.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/config.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/datetime_func.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/dict_func.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/exception.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/functools.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/i18n.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/log_capture.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/logger.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/package_helper.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/persisit_helper.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/repr.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/risk_free_helper.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/rq_json.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/strategy_loader_help.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/testing/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/testing/mocking.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/translations/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/translations/zh_Hans_CN/LC_MESSAGES/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/translations/zh_Hans_CN/LC_MESSAGES/messages.mo +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/translations/zh_Hans_CN/LC_MESSAGES/messages.po +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/translations/zh_Hans_CN/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/typing.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha.egg-info/SOURCES.txt +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha.egg-info/dependency_links.txt +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha.egg-info/entry_points.txt +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha.egg-info/not-zip-safe +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha.egg-info/requires.txt +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha.egg-info/top_level.txt +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/setup.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/mod/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/mod/sys_accounts/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/mod/sys_accounts/test_account_model.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/mod/sys_accounts/test_futures_settlement_price_type.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/mod/sys_accounts/test_margin_stocks.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/mod/sys_accounts/test_position_models.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/mod/sys_scheduler/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/mod/sys_scheduler/test_physical_time.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/mod/sys_scheduler/test_scheduler.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/mod/sys_simulation/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/mod/sys_simulation/test_management_fee.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/mod/sys_simulation/test_match.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/mod/sys_simulation/test_signal_broker.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/mod/sys_simulation/test_simulation_broker.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/mod/sys_simulation/test_simulation_event_source.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/mod/sys_transaction_cost/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/mod/sys_transaction_cost/test_commission_multiplier.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/test_api_base.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/test_api_future.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/test_api_stock.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/test_config.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/test_position_queue.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/utils.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/test_f_buy_and_hold.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/test_f_delivery.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/test_f_macd.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/test_f_macd_signal.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/test_f_mean_reverting.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/test_f_tick_size.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/test_s_buy_and_hold.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/test_s_dual_thrust.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/test_s_pit_tax.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/test_s_scheduler.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/test_s_tick_size.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/test_s_turtle.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/test_s_turtle_signal.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/test_sf_buy_and_hold.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/unittest/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/unittest/test_data/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/unittest/test_data/test_auto_update_bundle/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/unittest/test_data/test_auto_update_bundle/test_auto_update_bundle_mixin.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/unittest/test_data/test_instrument_mixin.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/unittest/test_data/test_trading_dates_mixin.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/unittest/test_mod/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/unittest/test_mod/test_sys_simulation/__init__.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/unittest/test_mod/test_sys_simulation/test_simulation_event_source.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/tests/utils.py +0 -0
- {rqalpha-5.6.4 → rqalpha-5.6.5}/versioneer.py +0 -0
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2025-
|
|
11
|
+
"date": "2025-11-14T15:48:11+0800",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "5.6.
|
|
14
|
+
"full-revisionid": "80b6c059fdeff823265f9feb7765b33cbabc573c",
|
|
15
|
+
"version": "5.6.5"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
|
@@ -133,7 +133,7 @@ def get_open_orders():
|
|
|
133
133
|
verify_that("amount").is_number().is_greater_than(0),
|
|
134
134
|
verify_that("side").is_in([SIDE.BUY, SIDE.SELL]),
|
|
135
135
|
)
|
|
136
|
-
def submit_order(id_or_ins, amount, side, price=None, position_effect=None):
|
|
136
|
+
def submit_order(id_or_ins, amount, side, price_or_style=None, price=None, style=None, position_effect=None):
|
|
137
137
|
# type: (Union[str, Instrument], float, SIDE, Optional[float], Optional[POSITION_EFFECT]) -> Optional[Order]
|
|
138
138
|
"""
|
|
139
139
|
通用下单函数,策略可以通过该函数自由选择参数下单。
|
|
@@ -141,7 +141,7 @@ def submit_order(id_or_ins, amount, side, price=None, position_effect=None):
|
|
|
141
141
|
:param id_or_ins: 下单标的物
|
|
142
142
|
:param amount: 下单量,需为正数
|
|
143
143
|
:param side: 多空方向
|
|
144
|
-
:param
|
|
144
|
+
:param price_or_style: 默认为None,表示市价单,可设置价格,表示限价单,也可以直接设置订单类型,有如下选项:MarketOrder、LimitOrder、TWAPOrder、VWAPOrder
|
|
145
145
|
:param position_effect: 开平方向,交易股票不需要该参数
|
|
146
146
|
:example:
|
|
147
147
|
|
|
@@ -167,7 +167,7 @@ def submit_order(id_or_ins, amount, side, price=None, position_effect=None):
|
|
|
167
167
|
raise RQInvalidArgument(
|
|
168
168
|
_(u"Index Future contracts[99] are not supported in paper trading.")
|
|
169
169
|
)
|
|
170
|
-
style = cal_style(price,
|
|
170
|
+
style = cal_style(price, style, price_or_style)
|
|
171
171
|
market_price = env.get_last_price(order_book_id)
|
|
172
172
|
if not is_valid_price(market_price):
|
|
173
173
|
reason = _(u"Order Creation Failed: [{order_book_id}] No market data").format(order_book_id=order_book_id)
|
|
@@ -266,7 +266,12 @@ def gen_future_info(d):
|
|
|
266
266
|
except AttributeError:
|
|
267
267
|
# FIXME: why get_dominant return None???
|
|
268
268
|
continue
|
|
269
|
-
|
|
269
|
+
|
|
270
|
+
dominant_indexer = commission_df["order_book_id"] == dominant
|
|
271
|
+
if not dominant_indexer.any():
|
|
272
|
+
# S0301:大豆期货的最后一个合约,该合约出现在 instrument 中,但取不到 commission,这种情况忽略掉
|
|
273
|
+
continue
|
|
274
|
+
commission = commission_df[dominant_indexer].iloc[0]
|
|
270
275
|
|
|
271
276
|
for p in param:
|
|
272
277
|
future_dict[p] = commission[p]
|
|
@@ -478,7 +483,6 @@ class AutomaticUpdateBundle(object):
|
|
|
478
483
|
self._api = api
|
|
479
484
|
self._fields = fields
|
|
480
485
|
self._start_date = start_date
|
|
481
|
-
self._end_date = end_date
|
|
482
486
|
self.updated = []
|
|
483
487
|
self._env = Environment.get_instance()
|
|
484
488
|
self._file_lock = FileLock(self._file + ".lock")
|
|
@@ -523,10 +527,10 @@ class AutomaticUpdateBundle(object):
|
|
|
523
527
|
# 需要兼容此前的旧版数据,对字段名进行更新
|
|
524
528
|
if len(h5[order_book_id][:]) != 0:
|
|
525
529
|
last_date = datetime.datetime.strptime(str(h5[order_book_id][-1]['trading_dt']), "%Y%m%d").date()
|
|
526
|
-
if last_date >= self.
|
|
530
|
+
if last_date >= self._env.config.base.end_date:
|
|
527
531
|
return
|
|
528
532
|
start_date = self._env.data_proxy._data_source.get_next_trading_date(last_date).date()
|
|
529
|
-
if start_date > self.
|
|
533
|
+
if start_date > self._env.config.base.end_date:
|
|
530
534
|
return
|
|
531
535
|
else:
|
|
532
536
|
del h5[order_book_id]
|
|
@@ -552,7 +556,7 @@ class AutomaticUpdateBundle(object):
|
|
|
552
556
|
h5.close()
|
|
553
557
|
|
|
554
558
|
def _get_array(self, instrument: Instrument, start_date: datetime.date) -> Optional[np.ndarray]:
|
|
555
|
-
df = self._api(instrument.order_book_id, start_date, self.
|
|
559
|
+
df = self._api(instrument.order_book_id, start_date, self._env.config.base.end_date, self._fields)
|
|
556
560
|
if not (df is None or df.empty):
|
|
557
561
|
df = df[self._fields].loc[instrument.order_book_id] # rqdatac.get_open_auction_info get Futures's data will auto add 'open_interest' and 'prev_settlement'
|
|
558
562
|
record = df.iloc[0: 1].to_records()
|
|
@@ -72,7 +72,7 @@ inject_run_param(click.Option(
|
|
|
72
72
|
))
|
|
73
73
|
inject_run_param(click.Option(
|
|
74
74
|
('-p', '--plot', 'mod__sys_analyser__plot'),
|
|
75
|
-
|
|
75
|
+
is_flag=True, default=False,
|
|
76
76
|
help=_("[sys_analyser] plot result")
|
|
77
77
|
))
|
|
78
78
|
inject_run_param(click.Option(
|
|
@@ -21,7 +21,8 @@ class EnvironmentFixture(RQAlphaFixture):
|
|
|
21
21
|
super(EnvironmentFixture, self).__init__(*args, **kwargs)
|
|
22
22
|
self.env_config = {
|
|
23
23
|
"base":{
|
|
24
|
-
"start_date": date(2016, 1, 1)
|
|
24
|
+
"start_date": date(2016, 1, 1),
|
|
25
|
+
"end_date": date(2023, 12, 28)
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
self.env = None
|
|
@@ -79,6 +80,7 @@ class BaseDataSourceFixture(TempDirFixture, EnvironmentFixture):
|
|
|
79
80
|
"base": {
|
|
80
81
|
"accounts": {"STOCK": 100},
|
|
81
82
|
"start_date": date(2016, 1, 1),
|
|
83
|
+
"end_date": date(2023, 12, 28),
|
|
82
84
|
}
|
|
83
85
|
}
|
|
84
86
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_analyser/report/excel_template.py
RENAMED
|
File without changes
|
|
File without changes
|
{rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_analyser/report/templates/summary.xlsx
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_risk/validators/cash_validator.py
RENAMED
|
File without changes
|
{rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_risk/validators/is_trading_validator.py
RENAMED
|
File without changes
|
{rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_risk/validators/price_validator.py
RENAMED
|
File without changes
|
{rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_risk/validators/self_trade_validator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/mod/rqalpha_mod_sys_simulation/simulation_event_source.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/translations/zh_Hans_CN/LC_MESSAGES/__init__.py
RENAMED
|
File without changes
|
{rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/translations/zh_Hans_CN/LC_MESSAGES/messages.mo
RENAMED
|
File without changes
|
{rqalpha-5.6.4 → rqalpha-5.6.5}/rqalpha/utils/translations/zh_Hans_CN/LC_MESSAGES/messages.po
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/mod/sys_simulation/test_simulation_broker.py
RENAMED
|
File without changes
|
{rqalpha-5.6.4 → rqalpha-5.6.5}/tests/api_tests/mod/sys_simulation/test_simulation_event_source.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rqalpha-5.6.4 → rqalpha-5.6.5}/tests/unittest/test_data/test_auto_update_bundle/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|