A extendable, replaceable Python algorithmic backtest && trading framework supporting multiple securities
This report presents the forensic synthetic code analysis of ricequant/rqalpha, a Python project with 6,637 GitHub stars. SynthScan v2.0 examined 58,733 lines of code across 238 source files, recording 674 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 12.2 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 674 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 14 | CODE | |
| LOW | tests/unittest/test_models/test_instruments.py | 13 | CODE | |
| LOW | tests/integration_tests/test_api/test_api_base.py | 22 | CODE | |
| LOW | tests/integration_tests/test_api/test_position_queue.py | 22 | CODE | |
| LOW | tests/integration_tests/test_api/test_config.py | 22 | CODE | |
| LOW | tests/integration_tests/test_api/test_config.py | 25 | CODE | |
| LOW | tests/integration_tests/test_api/test_api_stock.py | 21 | CODE | |
| LOW | …_tests/test_api/mod/sys_accounts/test_margin_stocks.py | 17 | CODE | |
| LOW | …_tests/test_api/mod/sys_accounts/test_margin_stocks.py | 47 | CODE | |
| LOW | …ests/test_api/mod/sys_accounts/test_position_models.py | 18 | CODE | |
| LOW | …mod/sys_accounts/test_futures_settlement_price_type.py | 17 | CODE | |
| LOW | …_tests/test_api/mod/sys_accounts/test_account_model.py | 22 | CODE | |
| LOW | …s/test_api/mod/sys_analyser/test_negative_benchmark.py | 19 | CODE | |
| LOW | …ion_tests/test_api/mod/sys_scheduler/test_scheduler.py | 20 | CODE | |
| LOW | …tests/test_api/mod/sys_scheduler/test_physical_time.py | 20 | CODE | |
| LOW | …ests/test_api/mod/sys_simulation/test_signal_broker.py | 20 | CODE | |
| LOW | …/test_api/mod/sys_simulation/test_simulation_broker.py | 20 | CODE | |
| LOW | …simulation/test_simulation_event_source_integration.py | 19 | CODE | |
| LOW | …sts/test_api/mod/sys_simulation/test_management_fee.py | 20 | CODE | |
| LOW | …mod/sys_transaction_cost/test_commission_multiplier.py | 17 | CODE | |
| LOW | …ts/integration_tests/test_backtest_results/conftest.py | 3 | CODE | |
| LOW | …n_tests/test_backtest_results/test_f_mean_reverting.py | 2 | CODE | |
| LOW | …tion_tests/test_backtest_results/test_f_macd_signal.py | 5 | CODE | |
| LOW | …integration_tests/test_backtest_results/test_f_macd.py | 3 | CODE | |
| LOW | …integration_tests/test_backtest_results/test_f_macd.py | 8 | CODE | |
| LOW | docs/source/conf.py | 75 | CODE | |
| LOW | rqalpha/interface.py | 20 | CODE | |
| LOW | rqalpha/interface.py | 24 | CODE | |
| LOW | rqalpha/interface.py | 27 | CODE | |
| LOW | rqalpha/interface.py | 30 | CODE | |
| LOW | rqalpha/interface.py | 33 | CODE | |
| LOW | rqalpha/__init__.py | 21 | CODE | |
| LOW | rqalpha/__init__.py | 23 | CODE | |
| LOW | rqalpha/__init__.py | 23 | CODE | |
| LOW | rqalpha/__init__.py | 24 | CODE | |
| LOW | rqalpha/__init__.py | 25 | CODE | |
| LOW | rqalpha/__init__.py | 26 | CODE | |
| LOW | rqalpha/__init__.py | 27 | CODE | |
| LOW | rqalpha/__init__.py | 28 | CODE | |
| LOW | rqalpha/__init__.py | 29 | CODE | |
| LOW | rqalpha/environment.py | 19 | CODE | |
| LOW | rqalpha/environment.py | 25 | CODE | |
| LOW | rqalpha/environment.py | 33 | CODE | |
| LOW | rqalpha/environment.py | 35 | CODE | |
| LOW | rqalpha/environment.py | 36 | CODE | |
| LOW | rqalpha/environment.py | 37 | CODE | |
| LOW | rqalpha/environment.py | 38 | CODE | |
| LOW | rqalpha/environment.py | 38 | CODE | |
| LOW | rqalpha/environment.py | 38 | CODE | |
| LOW | rqalpha/environment.py | 38 | CODE | |
| LOW | rqalpha/environment.py | 38 | CODE | |
| LOW | rqalpha/environment.py | 38 | CODE | |
| LOW | rqalpha/environment.py | 38 | CODE | |
| LOW | rqalpha/environment.py | 38 | CODE | |
| LOW | rqalpha/environment.py | 40 | CODE | |
| LOW | rqalpha/environment.py | 41 | CODE | |
| LOW | rqalpha/apis/api_base.py | 17 | CODE | |
| LOW | rqalpha/apis/api_base.py | 20 | CODE | |
| LOW | rqalpha/apis/api_base.py | 21 | CODE | |
| LOW | rqalpha/apis/api_base.py | 24 | CODE | |
| 150 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unittest/test_models/test_instruments.py | 71 | def test_stock_specific_properties(self): | CODE |
| LOW | tests/unittest/test_models/test_instruments.py | 95 | def test_future_specific_properties(self): | CODE |
| LOW | tests/unittest/test_models/test_instruments.py | 105 | def test_round_lot_special_cases(self): | CODE |
| LOW | tests/unittest/test_models/test_instruments.py | 116 | def test_listing_status_methods(self): | CODE |
| LOW | tests/unittest/test_models/test_instruments.py | 160 | def test_call_auction_periods(self): | CODE |
| LOW | tests/unittest/test_models/test_instruments.py | 222 | def test_future_continuous_contract_detection(self): | CODE |
| LOW | tests/unittest/test_models/test_instruments.py | 255 | def test_contract_multiplier_validation(self): | CODE |
| LOW | tests/unittest/test_models/test_instruments.py | 317 | def test_calc_cash_occupation(self, mock_env): | CODE |
| LOW⚡ | tests/unittest/test_utils/test_price_limits.py | 26 | def test_reaches_limit_up_uses_last_tick_band(): | CODE |
| LOW⚡ | tests/unittest/test_utils/test_price_limits.py | 31 | def test_reaches_limit_down_uses_last_tick_band(): | CODE |
| LOW⚡ | tests/unittest/test_utils/test_price_limits.py | 36 | def test_reaches_limit_dispatches_by_side(): | CODE |
| LOW⚡ | tests/unittest/test_utils/test_price_limits.py | 43 | def test_vectorized_limit_helpers_match_scalar_behavior(): | CODE |
| LOW | …st_auto_update_bundle/test_auto_update_bundle_mixin.py | 43 | def _mock_get_open_auction_info(self, order_book_id, *args, **kwargs): | CODE |
| LOW | …st_auto_update_bundle/test_auto_update_bundle_mixin.py | 52 | def _mock_get_open_auction_volume(self, instrument, dt): | CODE |
| LOW | tests/unittest/test_mod/test_sys_risk/test_mod.py | 31 | def test_warns_when_partial_fill_is_enabled_without_cash_validation(monkeypatch): | CODE |
| LOW | tests/unittest/test_mod/test_sys_risk/test_mod.py | 54 | def test_does_not_warn_for_other_cash_validation_configurations( | CODE |
| LOW | …nittest/test_mod/test_sys_accounts/test_trade_utils.py | 9 | def test_get_amount_from_value_uses_ask_exchange_rate_for_buying_power(): | CODE |
| LOW | …_api/test_order_target_portfolio_smart_api_unittest.py | 99 | def test_order_target_portfolio_smart_base(environment, on_handle_bar, assert_submitted_orders): | CODE |
| LOW | …_api/test_order_target_portfolio_smart_api_unittest.py | 120 | def test_order_target_portfolio_smart_empty_weights(environment, on_handle_bar, assert_submitted_orders): | CODE |
| LOW | …_api/test_order_target_portfolio_smart_api_unittest.py | 126 | def test_order_target_portfolio_smart_single_stock(environment, on_handle_bar, assert_submitted_orders): | CODE |
| LOW | …_api/test_order_target_portfolio_smart_api_unittest.py | 141 | def test_order_target_portfolio_smart_small_weights(environment, on_handle_bar, assert_submitted_orders): | CODE |
| LOW | …_api/test_order_target_portfolio_smart_api_unittest.py | 162 | def test_order_target_portfolio_smart_negative_weights_error(environment, on_handle_bar, assert_submitted_orders): | CODE |
| LOW | …_api/test_order_target_portfolio_smart_api_unittest.py | 171 | def test_order_target_portfolio_smart_limit_order(environment, on_handle_bar, assert_submitted_orders): | CODE |
| LOW | …_api/test_order_target_portfolio_smart_api_unittest.py | 199 | def test_order_target_portfolio_smart_partial_limit_prices_error(environment, on_handle_bar, assert_submitted_orders): | CODE |
| LOW | …_api/test_order_target_portfolio_smart_api_unittest.py | 213 | def test_order_target_portfolio_smart_nan_limit_price_rejected(environment, on_handle_bar, assert_submitted_orders): | CODE |
| LOW | …_api/test_order_target_portfolio_smart_api_unittest.py | 231 | def test_order_target_portfolio_smart_custom_valuation_prices(environment, on_handle_bar, assert_submitted_orders): | CODE |
| LOW | …_api/test_order_target_portfolio_smart_api_unittest.py | 252 | def test_order_target_portfolio_smart_missing_valuation_price_error(environment, on_handle_bar, assert_submitted_orders) | CODE |
| LOW | …_api/test_order_target_portfolio_smart_api_unittest.py | 267 | def test_order_target_portfolio_smart_adjust_existing_positions(environment, on_handle_bar, assert_submitted_orders): | CODE |
| LOW | …_api/test_order_target_portfolio_smart_api_unittest.py | 302 | def test_order_target_portfolio_smart_limit_and_valuation_prices(environment, on_handle_bar, assert_submitted_orders): | CODE |
| LOW | …_api/test_order_target_portfolio_smart_api_unittest.py | 367 | def test_order_target_portfolio_smart_allows_limit_down_buy_after_rescale( | CODE |
| LOW | …_api/test_order_target_portfolio_smart_api_unittest.py | 389 | def test_order_target_portfolio_smart_keeps_zero_target_out_of_distribution( | CODE |
| LOW | …_api/test_order_target_portfolio_smart_api_unittest.py | 414 | def test_order_target_portfolio_smart_does_not_deny_unchanged_limit_up_position( | CODE |
| LOW | …_api/test_order_target_portfolio_smart_api_unittest.py | 434 | def test_order_target_portfolio_smart_rejects_prices_in_last_tick_band( | CODE |
| LOW | …/unittest/test_mod/test_sys_simulation/test_matcher.py | 196 | def test_bar_matcher_fills_market_order_by_volume_limit_and_cancels_remainder(fake_env): | CODE |
| LOW | …/unittest/test_mod/test_sys_simulation/test_matcher.py | 217 | def test_bar_matcher_leaves_non_crossed_limit_order_active(fake_env): | CODE |
| LOW | …/unittest/test_mod/test_sys_simulation/test_matcher.py | 228 | def test_matcher_reduces_cash_limited_fill_by_order_step_for_transaction_cost(fake_env): | CODE |
| LOW | …/unittest/test_mod/test_sys_simulation/test_matcher.py | 252 | def test_matcher_keeps_affordable_fill_without_cash_clipping(fake_env, monkeypatch): | CODE |
| LOW | …/unittest/test_mod/test_sys_simulation/test_matcher.py | 279 | def test_matcher_uses_cash_occupation_to_estimate_cash_limited_fill(fake_env, monkeypatch): | CODE |
| LOW | …/unittest/test_mod/test_sys_simulation/test_matcher.py | 303 | def test_matcher_rechecks_only_unfilled_quantity_after_partial_fill(fake_env): | CODE |
| LOW | …/unittest/test_mod/test_sys_simulation/test_matcher.py | 328 | def test_bar_matcher_returns_early_on_invalid_price(fake_env): | CODE |
| LOW | …/unittest/test_mod/test_sys_simulation/test_matcher.py | 339 | def test_tick_matcher_fills_with_best_counterparty_price(monkeypatch): | CODE |
| LOW | …/unittest/test_mod/test_sys_simulation/test_matcher.py | 360 | def test_tick_matcher_rejects_invalid_price(monkeypatch): | CODE |
| LOW | …/unittest/test_mod/test_sys_simulation/test_matcher.py | 372 | def test_tick_matcher_rejects_market_order_without_liquidity(monkeypatch): | CODE |
| LOW | …/unittest/test_mod/test_sys_simulation/test_matcher.py | 387 | def test_counterparty_offer_rejects_order_at_price_limit(monkeypatch): | CODE |
| LOW | …/unittest/test_mod/test_sys_simulation/test_matcher.py | 420 | def test_counterparty_offer_leaves_non_crossed_limit_order_active(monkeypatch): | CODE |
| LOW | …/unittest/test_mod/test_sys_simulation/test_matcher.py | 445 | def test_counterparty_offer_returns_early_without_quote(monkeypatch): | CODE |
| LOW | …/unittest/test_mod/test_sys_simulation/test_matcher.py | 469 | def test_signal_matcher_fills_market_order_immediately(fake_env): | CODE |
| LOW | …/unittest/test_mod/test_sys_simulation/test_matcher.py | 482 | def test_signal_matcher_rejects_invalid_price(fake_env): | CODE |
| LOW | …/unittest/test_mod/test_sys_simulation/test_matcher.py | 493 | def test_signal_matcher_rejects_order_at_price_limit(fake_env): | CODE |
| LOW | tests/test_bundle/test_daybar.py | 96 | def get_previous_trading_date(self, trading_date): | CODE |
| LOW | tests/test_bundle/test_daybar.py | 109 | def test_generate_daybar_task_writes_transformed_datasets(monkeypatch, tmp_path): | CODE |
| LOW | tests/test_bundle/test_daybar.py | 169 | def test_update_daybar_task_recreates_file_when_existing_fields_do_not_match(monkeypatch, tmp_path): | CODE |
| LOW | tests/test_bundle/test_daybar.py | 205 | def test_update_daybar_task_appends_incremental_rows(monkeypatch, tmp_path): | CODE |
| LOW | tests/test_bundle/test_daybar.py | 237 | def test_update_daybar_task_skips_delisted_instrument_when_already_complete(monkeypatch, tmp_path): | CODE |
| LOW | tests/test_bundle/test_daybar.py | 258 | def test_get_de_listed_date_prefers_active_reused_instrument(monkeypatch, tmp_path): | CODE |
| LOW⚡ | tests/test_bundle/test_daybar_checker.py | 86 | def test_check_daybar_reports_missing_bundle_directory(tmp_path, capsys): | CODE |
| LOW⚡ | tests/test_bundle/test_daybar_checker.py | 94 | def test_check_daybar_reports_missing_base_files(tmp_path, capsys): | CODE |
| LOW⚡ | tests/test_bundle/test_daybar_checker.py | 104 | def test_check_daybar_reports_missing_daybar_files(tmp_path, capsys): | CODE |
| LOW | tests/test_bundle/test_daybar_checker.py | 118 | def test_check_daybar_reports_good_bundle(tmp_path, capsys): | CODE |
| LOW | tests/test_bundle/test_daybar_checker.py | 127 | def test_check_daybar_reports_missing_dates_and_unknown_order_book_ids(tmp_path, capsys): | CODE |
| 128 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | babel.cfg | 1 | # For RQAlpha | COMMENT |
| LOW | tests/unittest/test_data/test_trading_dates_mixin.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | tests/unittest/test_data/test_instrument_mixin.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | …st_auto_update_bundle/test_auto_update_bundle_mixin.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | …od/test_sys_simulation/test_simulation_event_source.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | tests/integration_tests/test_api/test_api_base.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | tests/integration_tests/test_api/test_position_queue.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | …ests/test_api/test_order_target_portfolio_smart_api.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | tests/integration_tests/test_api/test_api_future.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | tests/integration_tests/test_api/test_config.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | tests/integration_tests/test_api/test_api_stock.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | …_tests/test_api/mod/sys_accounts/test_margin_stocks.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | …ests/test_api/mod/sys_accounts/test_position_models.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | …mod/sys_accounts/test_futures_settlement_price_type.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | …_tests/test_api/mod/sys_accounts/test_account_model.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | …s/test_api/mod/sys_analyser/test_negative_benchmark.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | …ion_tests/test_api/mod/sys_scheduler/test_scheduler.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | …tests/test_api/mod/sys_scheduler/test_physical_time.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | …ests/test_api/mod/sys_simulation/test_signal_broker.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | …/test_api/mod/sys_simulation/test_simulation_broker.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | …simulation/test_simulation_event_source_integration.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | …sts/test_api/mod/sys_simulation/test_management_fee.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | …mod/sys_transaction_cost/test_commission_multiplier.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | docs/source/conf.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | docs/source/conf.py | 101 | # | COMMENT |
| LOW | docs/source/conf.py | 121 | # | COMMENT |
| LOW | docs/source/conf.py | 181 | # html_title = 'rqalpha v1.0' | COMMENT |
| LOW | docs/source/conf.py | 201 | html_static_path = ['_static'] | COMMENT |
| LOW | docs/source/conf.py | 221 | # | COMMENT |
| LOW | docs/source/conf.py | 241 | # If true, links to the reST sources are added to the pages. | COMMENT |
| LOW | docs/source/conf.py | 261 | COMMENT | |
| LOW | rqalpha/interface.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | rqalpha/__init__.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | rqalpha/user_module.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | rqalpha/api.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | rqalpha/environment.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | rqalpha/main.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | rqalpha/__main__.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | rqalpha/const.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | rqalpha/apis/api_base.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | rqalpha/apis/__init__.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | rqalpha/apis/names.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | rqalpha/apis/api_rqdatac.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | rqalpha/apis/api_rqdatac.py | 161 | COMMENT | |
| LOW | rqalpha/apis/api_rqdatac.py | 501 | #Dimensions: 8 (items) x 5 (major_axis) x 3 (minor_axis) | COMMENT |
| LOW | rqalpha/apis/api_rqdatac.py | 641 | logger.info(get_turnover_rate('000001.XSHE', count=5)) | COMMENT |
| LOW | rqalpha/apis/api_abstract.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | rqalpha/core/strategy_universe.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | rqalpha/core/events.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | rqalpha/core/events.py | 61 | COMMENT | |
| LOW | rqalpha/core/events.py | 101 | COMMENT | |
| LOW | rqalpha/core/events.py | 121 | # settlement() | COMMENT |
| LOW | rqalpha/core/__init__.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | rqalpha/core/strategy.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | rqalpha/core/global_var.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | rqalpha/core/strategy_context.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | rqalpha/core/strategy_loader.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | rqalpha/core/execution_context.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | rqalpha/core/executor.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| 94 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_bundle/test_daybar_checker.py | 40 | CODE | |
| LOW | tests/integration_tests/test_api/test_api_base.py | 398 | CODE | |
| LOW | tests/integration_tests/test_api/test_api_base.py | 527 | CODE | |
| LOW | tests/integration_tests/test_api/test_api_base.py | 411 | CODE | |
| LOW | tests/integration_tests/test_api/test_api_base.py | 543 | CODE | |
| LOW | tests/integration_tests/test_api/test_position_queue.py | 48 | CODE | |
| LOW | tests/integration_tests/test_api/test_position_queue.py | 112 | CODE | |
| LOW | tests/integration_tests/test_api/test_position_queue.py | 338 | CODE | |
| LOW | tests/integration_tests/test_api/test_position_queue.py | 56 | CODE | |
| LOW | tests/integration_tests/test_api/test_position_queue.py | 138 | CODE | |
| LOW | tests/integration_tests/test_api/test_position_queue.py | 359 | CODE | |
| LOW | tests/integration_tests/test_api/test_portfolio.py | 83 | CODE | |
| LOW | tests/integration_tests/test_api/test_portfolio.py | 124 | CODE | |
| LOW | tests/integration_tests/test_api/test_portfolio.py | 94 | CODE | |
| LOW | tests/integration_tests/test_api/test_portfolio.py | 133 | CODE | |
| LOW | …_tests/test_api/mod/sys_accounts/test_margin_stocks.py | 44 | CODE | |
| LOW | …_tests/test_api/mod/sys_accounts/test_margin_stocks.py | 57 | CODE | |
| LOW | …ests/test_api/mod/sys_accounts/test_position_models.py | 187 | CODE | |
| LOW | …ests/test_api/mod/sys_accounts/test_position_models.py | 212 | CODE | |
| LOW | …_tests/test_api/mod/sys_accounts/test_account_model.py | 81 | CODE | |
| LOW | …_tests/test_api/mod/sys_accounts/test_account_model.py | 96 | CODE | |
| LOW | …on_tests/test_backtest_results/test_s_turtle_signal.py | 8 | CODE | |
| LOW | …on_tests/test_backtest_results/test_s_turtle_signal.py | 46 | CODE | |
| LOW | …tegration_tests/test_backtest_results/test_s_turtle.py | 8 | CODE | |
| LOW | …tegration_tests/test_backtest_results/test_s_turtle.py | 45 | CODE | |
| LOW | rqalpha/api.py | 49 | CODE | |
| LOW | rqalpha/main.py | 133 | CODE | |
| LOW | rqalpha/main.py | 263 | CODE | |
| LOW | rqalpha/apis/api_base.py | 266 | CODE | |
| LOW | rqalpha/apis/api_base.py | 307 | CODE | |
| LOW | rqalpha/apis/api_base.py | 570 | CODE | |
| LOW | rqalpha/apis/api_rqdatac.py | 1039 | CODE | |
| LOW | rqalpha/apis/api_rqdatac.py | 1183 | CODE | |
| LOW | rqalpha/core/executor.py | 37 | CODE | |
| LOW | rqalpha/cmds/bundle.py | 162 | CODE | |
| LOW | rqalpha/cmds/bundle.py | 186 | CODE | |
| LOW | rqalpha/utils/concurrent.py | 13 | CODE | |
| LOW | rqalpha/utils/config.py | 140 | CODE | |
| LOW | rqalpha/utils/config.py | 228 | CODE | |
| LOW | rqalpha/utils/logger.py | 76 | CODE | |
| LOW | rqalpha/utils/strategy_loader_help.py | 22 | CODE | |
| LOW | rqalpha/utils/arg_checker.py | 83 | CODE | |
| LOW | rqalpha/utils/testing/integration.py | 82 | CODE | |
| LOW | rqalpha/examples/turtle.py | 44 | CODE | |
| LOW | rqalpha/model/instrument.py | 465 | CODE | |
| LOW | rqalpha/portfolio/__init__.py | 313 | CODE | |
| LOW | rqalpha/portfolio/position.py | 313 | CODE | |
| LOW | rqalpha/portfolio/account.py | 538 | CODE | |
| LOW | rqalpha/data/base_data_source/data_source.py | 188 | CODE | |
| LOW | rqalpha/data/base_data_source/storages.py | 128 | CODE | |
| LOW | rqalpha/data/bundle/daybar_checker.py | 27 | CODE | |
| LOW | rqalpha/data/bundle/__init__.py | 54 | CODE | |
| LOW | rqalpha/data/bundle/__init__.py | 249 | CODE | |
| LOW | rqalpha/data/bundle/__init__.py | 261 | CODE | |
| LOW | rqalpha/data/bundle/daybar.py | 46 | CODE | |
| LOW | rqalpha/data/bundle/daybar.py | 108 | CODE | |
| LOW | rqalpha/data/bundle/automatic_update.py | 54 | CODE | |
| LOW | rqalpha/mod/rqalpha_mod_sys_scheduler/scheduler.py | 264 | CODE | |
| LOW | rqalpha/mod/rqalpha_mod_sys_scheduler/scheduler.py | 274 | CODE | |
| LOW | …/rqalpha_mod_sys_simulation/simulation_event_source.py | 90 | CODE | |
| 9 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/source/conf.py | 87 | except Exception: | CODE |
| LOW | rqalpha/api.py | 58 | except Exception as e: | CODE |
| MEDIUM | rqalpha/api.py | 53 | def deco(*args, **kwargs): | CODE |
| LOW | rqalpha/main.py | 128 | except Exception as e: | CODE |
| LOW | rqalpha/main.py | 234 | except Exception as e: | CODE |
| LOW | rqalpha/core/global_var.py | 25 | except Exception: | CODE |
| LOW | rqalpha/core/global_var.py | 35 | except Exception: | CODE |
| LOW | rqalpha/core/strategy_context.py | 159 | except Exception as e: | CODE |
| LOW | rqalpha/core/strategy_context.py | 169 | except Exception as e: | CODE |
| LOW | rqalpha/cmds/bundle.py | 198 | except Exception: | CODE |
| LOW | rqalpha/utils/exception.py | 53 | except Exception: | CODE |
| MEDIUM | rqalpha/utils/exception.py | 47 | def _repr(v): | CODE |
| LOW | rqalpha/utils/config.py | 106 | except Exception as e: | CODE |
| MEDIUM | rqalpha/utils/config.py | 91 | def code_config(config, source_code=None): | CODE |
| LOW | rqalpha/utils/package_helper.py | 25 | except Exception as e: | CODE |
| LOW | rqalpha/utils/strategy_loader_help.py | 27 | except Exception as e: | CODE |
| LOW | rqalpha/utils/strategy_loader_help.py | 32 | except Exception as e1: | CODE |
| MEDIUM | rqalpha/utils/strategy_loader_help.py | 22 | def compile_strategy(source_code, strategy, scope): | CODE |
| LOW | rqalpha/utils/i18n.py | 53 | except Exception as e: | CODE |
| LOW | rqalpha/utils/arg_checker.py | 515 | except Exception as e: | CODE |
| MEDIUM | rqalpha/utils/arg_checker.py | 164 | def _is_number(self, func_name, value): | CODE |
| LOW | rqalpha/utils/persisit_helper.py | 46 | except Exception as e: | CODE |
| LOW | rqalpha/utils/persisit_helper.py | 77 | except Exception: | CODE |
| LOW | rqalpha/model/bar.py | 370 | except Exception as e: | CODE |
| LOW | rqalpha/data/bundle/__init__.py | 409 | except Exception as e: | CODE |
| MEDIUM | rqalpha/data/bundle/__init__.py | 406 | def __call__(self): | CODE |
| LOW | rqalpha/mod/__init__.py | 85 | except Exception as e: | CODE |
| LOW | rqalpha/mod/utils.py | 58 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | rqalpha/mod/rqalpha_mod_sys_analyser/mod.py | 505 | "starting_cash": ",".join(f"{t}:{c}" for t, c in self._env.config.base.accounts.items()) | CODE |
| CRITICAL | rqalpha/mod/rqalpha_mod_sys_analyser/mod.py | 507 | for account_type, starting_cash in self._env.config.base.accounts.items(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | rqalpha/apis/api_base.py | 657 | Instrument(order_book_id=000001.XSHE, symbol=平安银行, abbrev_symbol=PAYH, listed_date=19910403, de_listed_date= | STRING |
| HIGH | rqalpha/apis/api_base.py | 666 | [Instrument(order_book_id=000001.XSHE, symbol=平安银行, abbrev_symbol=PAYH, listed_date=19910403, de_listed_date | STRING |
| HIGH | rqalpha/core/execution_context.py | 43 | self.push(obj) | CODE |
| HIGH | rqalpha/core/execution_context.py | 66 | self.stack.push(self) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | rqalpha/interface.py | 52 | def set_state(self, state: Any) -> None: | CODE |
| LOW | rqalpha/__init__.py | 31 | __all__ = [ | CODE |
| LOW | rqalpha/api.py | 29 | __all__ = [] | CODE |
| LOW | rqalpha/utils/logger.py | 25 | __all__ = [ | CODE |
| LOW | rqalpha/utils/testing/__init__.py | 31 | __all__ = [ | CODE |
| LOW | rqalpha/utils/testing/integration.py | 13 | __all__ = ['StructuredTextFormat', 'assert_result'] | CODE |
| LOW⚡ | rqalpha/portfolio/account.py | 518 | def set_management_fee_rate(self, rate: float) -> None: | CODE |
| LOW | rqalpha/data/bundle/utils.py | 23 | def set_sval(value: Synchronized) -> None: | CODE |
| LOW | rqalpha/mod/rqalpha_mod_sys_risk/validators/__init__.py | 23 | __all__ = [ | CODE |
| LOW | rqalpha/mod/rqalpha_mod_sys_accounts/api/api_future.py | 40 | __all__ = [] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | rqalpha/apis/api_rqdatac.py | 1376 | CODE | |
| LOW | rqalpha/apis/api_rqdatac.py | 1357 | CODE | |
| LOW | rqalpha/utils/persisit_helper.py | 68 | CODE | |
| LOW | rqalpha/examples/data_source/read_csv_as_df.py | 21 | CODE | |
| LOW | rqalpha/examples/data_source/get_csv_module.py | 21 | CODE | |
| LOW | …pha/examples/extend_api/rqalpha_mod_extend_api_demo.py | 54 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/source/conf.py | 7 | # This file is execfile()d with the current directory set to its | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | rqalpha/data/instruments_mixin.py | 127 | # ================================================================ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | rqalpha/utils/config.py | 120 | # Check if capital_gain_tax_rate is explicitly set;if not,throw a warning. | COMMENT |