AI Slop Code RIsk Monitor

freqtrade/freqtrade

Free, open source crypto trading bot

22.3 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for freqtrade/freqtrade, a Python project with 55,219 GitHub stars. SynthScan examined 172,103 lines of code across 639 source files, recording 2670 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 22.3 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

22.3
Adjusted Signal
22.3
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
55.2K
Stars
Python
Language
172.1K
Lines of Code
639
Files
2.7K
Pattern Hits
2026-10-12
Scan Date
0.43
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 40.9/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 1764 finding(s).

Hallucinated Dependency & Supply Chain Risk 14.7/100 · LOW

Are imports declared and package/API names verified? 368 finding(s).

Agent Over-Engineering Ratio 55.7/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 2016 finding(s).

PR Review Velocity Impact 70.8/100 · HIGH

Which changes need focused human review? 2670 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 272MEDIUM 102LOW 2296

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 2670 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers1467 hits · 1311 pts
SeverityFileLineSnippetContext
LOWft_client/freqtrade_client/ft_rest_client.py268 def list_open_trades_custom_data(self, key=None, limit=100, offset=0):CODE
LOWft_client/test_client/test_rest_client.py196def test_ft_client_argparsing(mocker, params, expected_args, expected_kwargs, caplog):CODE
LOWtests/conftest.py94def pytest_xdist_make_scheduler(config, log):CODE
LOWtests/conftest.py214def patched_configuration_load_config_file(mocker, config) -> None:CODE
LOWtests/conftest.py401def create_mock_trades_with_leverage(fee, use_db: bool = True):CODE
LOWtests/conftest.py488def fixture_set_mp_start_method():CODE
LOWtests/conftest.py1826def limit_buy_order_old_partial():CODE
LOWtests/conftest.py1844def limit_buy_order_old_partial_canceled(limit_buy_order_old_partial):CODE
LOWtests/conftest.py1852def limit_buy_order_canceled_empty(request):CODE
LOWtests/conftest.py2740def limit_buy_order_usdt_open():CODE
LOWtests/conftest.py2768def limit_sell_order_usdt_open():CODE
LOWtests/conftest.py2812def market_buy_order_usdt_doublefee(market_buy_order_usdt):CODE
LOWtests/conftest.py2902def funding_rate_history_hourly():CODE
LOWtests/conftest.py2992def funding_rate_history_octohourly():CODE
LOWtests/test_plotting.py207def test_generate_candlestick_graph_no_signals_no_trades(default_conf, mocker, testdatadir, caplog):CODE
LOWtests/test_plotting.py251def test_generate_candlestick_graph_no_trades(default_conf, mocker, testdatadir):CODE
LOWtests/test_plotting.py342def test_generate_profit_graph(testdatadir):CODE
LOWtests/test_plotting.py398def test_start_plot_dataframe(mocker):CODE
LOWtests/test_plotting.py415def test_load_and_plot_trades(default_conf, mocker, caplog, testdatadir):CODE
LOWtests/test_plotting.py460def test_start_plot_profit_error(mocker):CODE
LOWtests/test_candle_columns.py15def test_default_dataframe_columns_reexport():CODE
LOWtests/test_candle_columns.py81def test_candle_type_is_ohlcv():CODE
LOWtests/test_candle_columns.py90def test_all_candle_value_columns():CODE
LOWtests/test_misc.py32def test_dump_json_to_file_non_finite_values() -> None:CODE
LOW⚡tests/test_misc.py47def test_dump_json_to_file_large_fraction() -> None:CODE
LOW⚡tests/test_misc.py56def test_dump_json_to_file_datetime_format() -> None:CODE
LOWtests/test_misc.py283def test_parse_db_uri_for_logging(conn_url, expected) -> None:CODE
LOW⚡tests/test_configuration.py655def test_validate_default_conf(default_conf) -> None:CODE
LOW⚡tests/test_configuration.py661def test_validate_fiat_currency_options(default_conf, fiat) -> None:CODE
LOW⚡tests/test_configuration.py670def test_validate_max_open_trades(default_conf):CODE
LOWtests/test_configuration.py49def test_load_config_missing_attributes(default_conf) -> None:CODE
LOWtests/test_configuration.py63def test_load_config_incorrect_stake_amount(default_conf) -> None:CODE
LOWtests/test_configuration.py83def test_load_config_file_error(default_conf, mocker, caplog) -> None:CODE
LOWtests/test_configuration.py96def test_load_config_file_error_range(default_conf, mocker, caplog) -> None:CODE
LOWtests/test_configuration.py157def test_load_config_max_open_trades_zero(default_conf, mocker, caplog) -> None:CODE
LOWtests/test_configuration.py169def test_load_config_combine_dicts(default_conf, mocker, caplog) -> None:CODE
LOWtests/test_configuration.py230def test_from_recursive_files(testdatadir) -> None:CODE
LOWtests/test_configuration.py276def test_load_config_max_open_trades_minus_one(default_conf, mocker, caplog) -> None:CODE
LOWtests/test_configuration.py290def test_load_config_file_exception(mocker) -> None:CODE
LOWtests/test_configuration.py312def test_load_config_with_params(default_conf, mocker) -> None:CODE
LOWtests/test_configuration.py407def test_load_custom_strategy(default_conf, mocker, tmp_path) -> None:CODE
LOWtests/test_configuration.py443def test_setup_configuration_without_arguments(mocker, default_conf, caplog) -> None:CODE
LOWtests/test_configuration.py475def test_setup_configuration_with_arguments(mocker, default_conf, caplog, tmp_path) -> None:CODE
LOWtests/test_configuration.py532def test_setup_configuration_with_stratlist(mocker, default_conf, caplog) -> None:CODE
LOWtests/test_configuration.py577def test_hyperopt_with_arguments(mocker, default_conf, caplog) -> None:CODE
LOWtests/test_configuration.py605def test_cli_verbose_with_params(default_conf, mocker, caplog) -> None:CODE
LOWtests/test_configuration.py643def test_load_config_warn_forcebuy(default_conf, mocker, caplog) -> None:CODE
LOWtests/test_configuration.py793def test_validate_ask_orderbook(default_conf, caplog) -> None:CODE
LOWtests/test_configuration.py811def test_validate_time_in_force(default_conf, caplog) -> None:CODE
LOWtests/test_configuration.py835def test__validate_order_types(default_conf, caplog) -> None:CODE
LOWtests/test_configuration.py872def test__validate_unfilledtimeout(default_conf, caplog) -> None:CODE
LOWtests/test_configuration.py898def test__validate_pricing_rules(default_conf, caplog) -> None:CODE
LOWtests/test_configuration.py935def test__validate_freqai_include_timeframes(default_conf, caplog) -> None:CODE
LOWtests/test_configuration.py1048def test__validate_demo_trading(default_conf_usdt) -> None:CODE
LOWtests/test_configuration.py1064def test_validate_edge_removal(default_conf):CODE
LOWtests/test_configuration.py1075def test_load_config_test_comments() -> None:CODE
LOWtests/test_configuration.py1085def test_load_config_default_exchange(all_conf) -> None:CODE
LOWtests/test_configuration.py1098def test_load_config_default_exchange_name(all_conf) -> None:CODE
LOWtests/test_configuration.py1111def test_load_config_stoploss_exchange_limit_ratio(all_conf) -> None:CODE
LOWtests/test_configuration.py1125def test_load_config_default_subkeys(all_conf, base, key, expected) -> None:CODE
1407 more matches not shown…
Cross-File Repetition190 hits · 950 pts
SeverityFileLineSnippetContext
HIGHtests/strategy/strats/hyperoptable_strategy_v2.py0strategy used by tests freqtrade bot. please do not modify this strategy, it's intended for internal use only. please loSTRING
HIGHtests/strategy/strats/hyperoptable_strategy.py0strategy used by tests freqtrade bot. please do not modify this strategy, it's intended for internal use only. please loSTRING
HIGH…strategy/strats/strategy_test_v3_custom_entry_price.py0strategy used by tests freqtrade bot. please do not modify this strategy, it's intended for internal use only. please loSTRING
HIGHtests/strategy/strats/informative_decorator_strategy.py0strategy used by tests freqtrade bot. please do not modify this strategy, it's intended for internal use only. please loSTRING
HIGH…trategy/strats/informative_decorator_strategy_cache.py0strategy used by tests freqtrade bot. please do not modify this strategy, it's intended for internal use only. please loSTRING
HIGHtests/strategy/strats/freqai_test_classifier.py0test strategy - used for testing freqai multimodel functionalities. do not use in production.STRING
HIGHtests/strategy/strats/freqai_rl_test_strat.py0test strategy - used for testing freqai multimodel functionalities. do not use in production.STRING
HIGHtests/strategy/strats/freqai_test_strat.py0test strategy - used for testing freqai multimodel functionalities. do not use in production.STRING
HIGH…tegy/strats/freqai_test_multimodel_classifier_strat.py0test strategy - used for testing freqai multimodel functionalities. do not use in production.STRING
HIGHtests/strategy/strats/freqai_test_multimodel_strat.py0test strategy - used for testing freqai multimodel functionalities. do not use in production.STRING
HIGHtests/strategy/strats/strategy_test_v2.py0adds several different ta indicators to the given dataframe performance note: for the best performance be frugal on the STRING
HIGHdocs/strategy-customization.md0adds several different ta indicators to the given dataframe performance note: for the best performance be frugal on the STRING
HIGHfreqtrade/templates/sample_strategy.py0adds several different ta indicators to the given dataframe performance note: for the best performance be frugal on the STRING
HIGHtests/strategy/strats/strategy_test_v2.py0based on ta indicators, populates the exit signal for the given dataframe :param dataframe: dataframe :param metadata: aSTRING
HIGHdocs/strategy-customization.md0based on ta indicators, populates the exit signal for the given dataframe :param dataframe: dataframe :param metadata: aSTRING
HIGHfreqtrade/templates/sample_strategy.py0based on ta indicators, populates the exit signal for the given dataframe :param dataframe: dataframe :param metadata: aSTRING
HIGHfreqtrade/strategy/interface.py0based on ta indicators, populates the exit signal for the given dataframe :param dataframe: dataframe :param metadata: aSTRING
HIGHdocs/freqai-configuration.md0*only functional with freqai enabled strategies* this optional function will be called once with the dataframe of the baSTRING
HIGHdocs/freqai-feature-engineering.md0*only functional with freqai enabled strategies* this optional function will be called once with the dataframe of the baSTRING
HIGHdocs/strategy_migration.md0*only functional with freqai enabled strategies* this optional function will be called once with the dataframe of the baSTRING
HIGHfreqtrade/templates/FreqaiExampleStrategy.py0*only functional with freqai enabled strategies* this optional function will be called once with the dataframe of the baSTRING
HIGHfreqtrade/templates/FreqaiExampleHybridStrategy.py0*only functional with freqai enabled strategies* this optional function will be called once with the dataframe of the baSTRING
HIGHfreqtrade/strategy/interface.py0*only functional with freqai enabled strategies* this optional function will be called once with the dataframe of the baSTRING
HIGHdocs/freqai-configuration.md0user sets up the training and test data to fit their desired model here :param data_dictionary: the dictionary holding aSTRING
HIGH…eqai/prediction_models/LightGBMRegressorMultiTarget.py0user sets up the training and test data to fit their desired model here :param data_dictionary: the dictionary holding aSTRING
HIGHfreqtrade/freqai/prediction_models/XGBoostRegressor.py0user sets up the training and test data to fit their desired model here :param data_dictionary: the dictionary holding aSTRING
HIGH…qai/prediction_models/LightGBMClassifierMultiTarget.py0user sets up the training and test data to fit their desired model here :param data_dictionary: the dictionary holding aSTRING
HIGH…qtrade/freqai/prediction_models/XGBoostRFClassifier.py0user sets up the training and test data to fit their desired model here :param data_dictionary: the dictionary holding aSTRING
HIGH…reqai/prediction_models/XGBoostRegressorMultiTarget.py0user sets up the training and test data to fit their desired model here :param data_dictionary: the dictionary holding aSTRING
HIGHfreqtrade/freqai/prediction_models/XGBoostClassifier.py0user sets up the training and test data to fit their desired model here :param data_dictionary: the dictionary holding aSTRING
HIGH…eqtrade/freqai/prediction_models/LightGBMClassifier.py0user sets up the training and test data to fit their desired model here :param data_dictionary: the dictionary holding aSTRING
HIGH…reqai/prediction_models/PyTorchTransformerRegressor.py0user sets up the training and test data to fit their desired model here :param data_dictionary: the dictionary holding aSTRING
HIGH…eqtrade/freqai/prediction_models/XGBoostRFRegressor.py0user sets up the training and test data to fit their desired model here :param data_dictionary: the dictionary holding aSTRING
HIGHfreqtrade/freqai/prediction_models/LightGBMRegressor.py0user sets up the training and test data to fit their desired model here :param data_dictionary: the dictionary holding aSTRING
HIGH…qai/prediction_models/SKLearnRandomForestClassifier.py0user sets up the training and test data to fit their desired model here :param data_dictionary: the dictionary holding aSTRING
HIGH…qtrade/freqai/prediction_models/PyTorchMLPRegressor.py0user sets up the training and test data to fit their desired model here :param data_dictionary: the dictionary holding aSTRING
HIGHdocs/strategy_migration.md0*only functional with freqai enabled strategies* this function will automatically expand the defined features on the conSTRING
HIGHfreqtrade/templates/FreqaiExampleStrategy.py0*only functional with freqai enabled strategies* this function will automatically expand the defined features on the conSTRING
HIGHfreqtrade/templates/FreqaiExampleHybridStrategy.py0*only functional with freqai enabled strategies* this function will automatically expand the defined features on the conSTRING
HIGHfreqtrade/strategy/interface.py0*only functional with freqai enabled strategies* this function will automatically expand the defined features on the conSTRING
HIGHdocs/strategy_migration.md0*only functional with freqai enabled strategies* this function will automatically expand the defined features on the conSTRING
HIGHfreqtrade/templates/FreqaiExampleStrategy.py0*only functional with freqai enabled strategies* this function will automatically expand the defined features on the conSTRING
HIGHfreqtrade/templates/FreqaiExampleHybridStrategy.py0*only functional with freqai enabled strategies* this function will automatically expand the defined features on the conSTRING
HIGHfreqtrade/strategy/interface.py0*only functional with freqai enabled strategies* this function will automatically expand the defined features on the conSTRING
HIGHdocs/strategy_migration.md0*only functional with freqai enabled strategies* required function to set the targets for the model. all targets must beSTRING
HIGHdocs/freqai-reinforcement-learning.md0*only functional with freqai enabled strategies* required function to set the targets for the model. all targets must beSTRING
HIGHfreqtrade/templates/FreqaiExampleStrategy.py0*only functional with freqai enabled strategies* required function to set the targets for the model. all targets must beSTRING
HIGHfreqtrade/templates/FreqaiExampleHybridStrategy.py0*only functional with freqai enabled strategies* required function to set the targets for the model. all targets must beSTRING
HIGHfreqtrade/strategy/interface.py0*only functional with freqai enabled strategies* required function to set the targets for the model. all targets must beSTRING
HIGHfreqtrade/exchange/hitbtc.py0coinex exchange class. contains adjustments needed for freqtrade to work with this exchange. please note that this exchaSTRING
HIGHfreqtrade/exchange/kucoin.py0coinex exchange class. contains adjustments needed for freqtrade to work with this exchange. please note that this exchaSTRING
HIGHfreqtrade/exchange/bitvavo.py0coinex exchange class. contains adjustments needed for freqtrade to work with this exchange. please note that this exchaSTRING
HIGHfreqtrade/exchange/luno.py0coinex exchange class. contains adjustments needed for freqtrade to work with this exchange. please note that this exchaSTRING
HIGHfreqtrade/exchange/modetrade.py0coinex exchange class. contains adjustments needed for freqtrade to work with this exchange. please note that this exchaSTRING
HIGHfreqtrade/exchange/coinex.py0coinex exchange class. contains adjustments needed for freqtrade to work with this exchange. please note that this exchaSTRING
HIGHfreqtrade/exchange/okx.py0binance exchange class. contains adjustments needed for freqtrade to work with this exchange.STRING
HIGHfreqtrade/exchange/hyperliquid.py0binance exchange class. contains adjustments needed for freqtrade to work with this exchange.STRING
HIGHfreqtrade/exchange/bybit.py0binance exchange class. contains adjustments needed for freqtrade to work with this exchange.STRING
HIGHfreqtrade/exchange/kraken.py0binance exchange class. contains adjustments needed for freqtrade to work with this exchange.STRING
HIGHfreqtrade/exchange/lbank.py0binance exchange class. contains adjustments needed for freqtrade to work with this exchange.STRING
130 more matches not shown…
Unused Imports321 hits · 278 pts
SeverityFileLineSnippetContext
LOWft_client/freqtrade_client/__init__.py1CODE
LOWtests/strategy/strats/failing_strategy.py3CODE
LOWfreqtrade/constants.py11CODE
LOWfreqtrade/configuration/__init__.py3CODE
LOWfreqtrade/configuration/__init__.py3CODE
LOWfreqtrade/configuration/__init__.py4CODE
LOWfreqtrade/configuration/__init__.py5CODE
LOWfreqtrade/configuration/__init__.py6CODE
LOWfreqtrade/configuration/__init__.py7CODE
LOWfreqtrade/configuration/__init__.py8CODE
LOWfreqtrade/ft_types/__init__.py2CODE
LOWfreqtrade/ft_types/__init__.py2CODE
LOWfreqtrade/ft_types/__init__.py2CODE
LOWfreqtrade/ft_types/__init__.py2CODE
LOWfreqtrade/ft_types/__init__.py2CODE
LOWfreqtrade/ft_types/__init__.py2CODE
LOWfreqtrade/ft_types/__init__.py10CODE
LOWfreqtrade/ft_types/__init__.py11CODE
LOWfreqtrade/ft_types/__init__.py11CODE
LOWfreqtrade/exchange/__init__.py3CODE
LOWfreqtrade/exchange/__init__.py4CODE
LOWfreqtrade/exchange/__init__.py7CODE
LOWfreqtrade/exchange/__init__.py7CODE
LOWfreqtrade/exchange/__init__.py7CODE
LOWfreqtrade/exchange/__init__.py8CODE
LOWfreqtrade/exchange/__init__.py9CODE
LOWfreqtrade/exchange/__init__.py10CODE
LOWfreqtrade/exchange/__init__.py11CODE
LOWfreqtrade/exchange/__init__.py12CODE
LOWfreqtrade/exchange/__init__.py12CODE
LOWfreqtrade/exchange/__init__.py13CODE
LOWfreqtrade/exchange/__init__.py14CODE
LOWfreqtrade/exchange/__init__.py15CODE
LOWfreqtrade/exchange/__init__.py15CODE
LOWfreqtrade/exchange/__init__.py15CODE
LOWfreqtrade/exchange/__init__.py15CODE
LOWfreqtrade/exchange/__init__.py15CODE
LOWfreqtrade/exchange/__init__.py15CODE
LOWfreqtrade/exchange/__init__.py15CODE
LOWfreqtrade/exchange/__init__.py15CODE
LOWfreqtrade/exchange/__init__.py15CODE
LOWfreqtrade/exchange/__init__.py15CODE
LOWfreqtrade/exchange/__init__.py15CODE
LOWfreqtrade/exchange/__init__.py15CODE
LOWfreqtrade/exchange/__init__.py15CODE
LOWfreqtrade/exchange/__init__.py15CODE
LOWfreqtrade/exchange/__init__.py31CODE
LOWfreqtrade/exchange/__init__.py31CODE
LOWfreqtrade/exchange/__init__.py31CODE
LOWfreqtrade/exchange/__init__.py31CODE
LOWfreqtrade/exchange/__init__.py31CODE
LOWfreqtrade/exchange/__init__.py31CODE
LOWfreqtrade/exchange/__init__.py31CODE
LOWfreqtrade/exchange/__init__.py40CODE
LOWfreqtrade/exchange/__init__.py40CODE
LOWfreqtrade/exchange/__init__.py41CODE
LOWfreqtrade/exchange/__init__.py42CODE
LOWfreqtrade/exchange/__init__.py43CODE
LOWfreqtrade/exchange/__init__.py44CODE
LOWfreqtrade/exchange/__init__.py45CODE
261 more matches not shown…
Cross-Language Confusion46 hits · 266 pts
SeverityFileLineSnippetContext
HIGH⚡tests/test_misc.py43 '{"finite":1.23,"numpy_finite":[1.5,2],"nested":[null,[null,null]]}'CODE
HIGHtests/optimize/test_lookahead_analysis.py370 assert expected_data1.equals(saved_data1)CODE
HIGHtests/optimize/test_lookahead_analysis.py398 assert expected_data2.equals(saved_data2)CODE
HIGHtests/optimize/test_lookahead_analysis.py428 assert expected_data3.equals(saved_data3)CODE
HIGH⚡tests/optimize/test_hyperopt.py713 '{"params":{"mfi-value":null,"sell-mfi-value":null},"minimal_roi"'CODE
HIGH⚡tests/optimize/test_hyperopt.py714 ':{},"stoploss":null,"trailing_stop":null,"max_open_trades":null}'CODE
HIGHtests/optimize/test_hyperopt.py771 '{"params":{"mfi-value":null,"sell-mfi-value":null},"minimal_roi":{},"stoploss":null}'CODE
HIGHtests/optimize/test_hyperopt.py828 assert '{"minimal_roi":{},"stoploss":null}' in outCODE
HIGHtests/plugins/test_pairlist.py1297 assert not df1.equals(df2)CODE
HIGHtests/freqtradebot/test_stoploss_on_exchange.py102 # should do nothing and return falseCOMMENT
HIGH⚡tests/freqtradebot/test_freqtradebot.py4577 # delta is 100 which is impossible to reach. hence function will return falseCOMMENT
HIGHtests/persistence/test_trade_fromjson.py66 "liquidation_price": null,CODE
HIGHtests/persistence/test_trade_fromjson.py74 "open_order_id": null,CODE
HIGHtests/data/test_metrics.py565 assert df.equals(df1)CODE
HIGHtests/data/test_metrics.py617 assert df.equals(df1)CODE
HIGH⚡tests/data/test_datahandler.py322 assert df.columns.equals(df1.columns)CODE
HIGHtests/data/test_datahandler.py181 assert reloaded.equals(loaded)CODE
HIGHtests/data/test_datahandler.py567 assert ohlcv.equals(ohlcv1)CODE
HIGH⚡tests/data/test_btanalysis.py101 assert bt_data.equals(bt_data2)CODE
HIGH⚡tests/data/test_btanalysis.py105 assert bt_data.equals(bt_data3)CODE
HIGH⚡tests/data/test_btanalysis.py124 assert bt_data.equals(bt_data2)CODE
HIGH⚡tests/data/test_converter.py366 assert not data_modify.equals(data)CODE
HIGH⚡tests/data/test_converter.py376 assert not data_modify.equals(data)CODE
HIGH⚡tests/data/test_converter.py386 assert not data_modify.equals(data)CODE
HIGH⚡tests/data/test_converter.py396 assert not data_modify.equals(data)CODE
HIGH⚡tests/data/test_converter.py410 assert res.equals(trades_history_df)CODE
HIGHtests/data/test_converter.py207 assert data.equals(df1)CODE
HIGHtests/data/test_converter.py233 assert dfs.equals(dfm)CODE
HIGHtests/data/test_converter.py234 assert dfs.equals(df1)CODE
HIGHtests/data/test_dataprovider.py32 assert ohlcv_history.equals(dp.ohlcv("UNITTEST/BTC", timeframe, candle_type=candletype))CODE
HIGHtests/data/test_dataprovider.py144 assert ohlcv_history.equals(CODE
HIGHtests/data/test_dataprovider.py147 assert ohlcv_history.equals(CODE
HIGHtests/data/test_dataprovider.py207 assert funding_history.equals(res)CODE
HIGHtests/data/test_dataprovider.py212 assert funding_history.equals(CODE
HIGHtests/data/test_dataprovider.py428 assert ohlcv_history.equals(dataframe)CODE
HIGHtests/data/test_dataprovider.py432 assert ohlcv_history.equals(dataframe)CODE
HIGHtests/data/test_history.py962 assert stored_data.equals(expected_result)CODE
HIGHtests/data/test_history.py1040 assert stored_data.equals(existing_data)CODE
HIGHtests/strategy/test_interface.py361 assert call_df.equals(expected)CODE
HIGHfreqtrade/exchange/exchange_utils.py182 # true then it's true. If it's undefined, then it's most likely true, but not 100% )"COMMENT
HIGH…trade/freqai/prediction_models/PyTorchMLPClassifier.py33 "n_epochs": null,STRING
HIGH…qtrade/freqai/prediction_models/PyTorchMLPRegressor.py34 "n_epochs": null,STRING
HIGHfreqtrade/loggers/ft_rich_handler.py33 # Handles pythonw, where stdout/stderr are null, and we return NullFileCOMMENT
HIGHfreqtrade/plugins/pairlist/VolatilityFilter.py45 "either None (undefined), 'asc' or 'desc'"CODE
HIGHfreqtrade/plugins/pairlist/rangestabilityfilter.py39 "either None (undefined), 'asc' or 'desc'"CODE
HIGHfreqtrade/data/metrics.py651 against the null) when it cannot be computed - fewer than twoSTRING
Modern Structural Boilerplate222 hits · 224 pts
SeverityFileLineSnippetContext
LOW⚡ft_client/freqtrade_client/__init__.py37__all__ = ["FtRestClient"]CODE
LOW…ts/freqai/test_models/ReinforcementLearner_test_4ac.py9logger = logging.getLogger(__name__)CODE
LOW…ts/freqai/test_models/ReinforcementLearner_test_3ac.py9logger = logging.getLogger(__name__)CODE
LOWtests/strategy/strats/hyperoptable_strategy.py12logger = logging.getLogger(__name__)CODE
LOWtests/strategy/strats/freqai_test_classifier.py11logger = logging.getLogger(__name__)CODE
LOW…tegy/strats/freqai_test_multimodel_classifier_strat.py11logger = logging.getLogger(__name__)CODE
LOWtests/strategy/strats/freqai_test_multimodel_strat.py10logger = logging.getLogger(__name__)CODE
LOWtests/strategy/strats/freqai_rl_test_strat.py10logger = logging.getLogger(__name__)CODE
LOWtests/strategy/strats/freqai_test_strat.py10logger = logging.getLogger(__name__)CODE
LOWfreqtrade/worker.py23logger = logging.getLogger(__name__)CODE
LOWfreqtrade/misc.py20logger = logging.getLogger(__name__)CODE
LOWfreqtrade/wallets.py17logger = logging.getLogger(__name__)CODE
LOWfreqtrade/wallets.py107 def _update_dry(self) -> None:CODE
LOWfreqtrade/wallets.py187 def _update_live(self) -> None:CODE
LOW⚡freqtrade/freqtradebot.py418 def update_all_liquidation_prices(self) -> None:CODE
LOWfreqtrade/freqtradebot.py72logger = logging.getLogger(__name__)CODE
LOWfreqtrade/freqtradebot.py545 def update_funding_fees(self) -> None:CODE
LOWfreqtrade/freqtradebot.py617 def update_trades_without_assigned_fees(self) -> None:CODE
LOWfreqtrade/configuration/config_validation.py23logger = logging.getLogger(__name__)CODE
LOWfreqtrade/configuration/configuration.py31logger = logging.getLogger(__name__)CODE
LOWfreqtrade/configuration/timerange.py15logger = logging.getLogger(__name__)CODE
LOW⚡freqtrade/configuration/deploy_config.py12logger = logging.getLogger(__name__)CODE
LOWfreqtrade/configuration/deprecated_settings.py11logger = logging.getLogger(__name__)CODE
LOWfreqtrade/configuration/load_config.py19logger = logging.getLogger(__name__)CODE
LOWfreqtrade/configuration/environment_vars.py11logger = logging.getLogger(__name__)CODE
LOWfreqtrade/configuration/directory_operations.py17logger = logging.getLogger(__name__)CODE
LOWfreqtrade/configuration/config_setup.py10logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/hitbtc.py7logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/okx.py20logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/hyperliquid.py26logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/bybit.py16logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/kraken.py16logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/lbank.py9logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/binance_public_data.py24logger = logging.getLogger(__name__)CODE
LOW⚡freqtrade/exchange/exchange.py369 def _set_startup_candle_count(self, config: Config) -> None:CODE
LOWfreqtrade/exchange/exchange.py116logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/exchange_ws.py18logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/krakenfutures.py24logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/kucoin.py10logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/bitvavo.py9logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/common.py12logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/bitpanda.py9logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/check_exchange.py10logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/cryptocom.py9logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/bitget.py21logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/gate.py16logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/luno.py7logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/htx.py10logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/modetrade.py8logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/coinex.py7logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/bingx.py9logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/idex.py9logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/binance.py27logger = logging.getLogger(__name__)CODE
LOWfreqtrade/freqai/data_kitchen.py30logger = logging.getLogger(__name__)CODE
LOWfreqtrade/freqai/data_kitchen.py592 def set_all_pairs(self) -> None:CODE
LOWfreqtrade/freqai/utils.py21logger = logging.getLogger(__name__)CODE
LOWfreqtrade/freqai/freqai_interface.py33logger = logging.getLogger(__name__)CODE
LOWfreqtrade/freqai/freqai_interface.py614 def set_full_path(self) -> None:CODE
LOWfreqtrade/freqai/data_drawer.py31logger = logging.getLogger(__name__)CODE
LOWfreqtrade/freqai/data_drawer.py110 def update_metric_tracker(self, metric: str, value: float, pair: str) -> None:CODE
162 more matches not shown…
Empty Error Handlers34 hits · 170 pts
SeverityFileLineSnippetContext
HIGHft_client/freqtrade_client/__init__.py34except Exception: # noqa: S110CODE
HIGHtests/conftest.py524except ModuleNotFoundError:CODE
HIGHtests/test_configuration.py639except Exception:CODE
HIGHtests/optimize/test_hyperopt.py267except Exception:CODE
HIGHfreqtrade/__init__.py33except Exception: # noqa: S110CODE
HIGHfreqtrade/configuration/configuration.py290except ValueError:CODE
HIGHfreqtrade/configuration/environment_vars.py31except rapidjson.JSONDecodeError:CODE
HIGHfreqtrade/exchange/okx.py230except (ccxt.OrderNotFound, ccxt.InvalidOrder):CODE
HIGHfreqtrade/exchange/okx.py256except (ccxt.OrderNotFound, ccxt.InvalidOrder):CODE
HIGHfreqtrade/exchange/exchange.py1374except IndexError:CODE
HIGHfreqtrade/exchange/exchange.py3693except (NotImplementedError, RuntimeError):CODE
HIGHfreqtrade/exchange/krakenfutures.py218except ccxt.OrderNotFound:CODE
HIGHfreqtrade/exchange/krakenfutures.py226except (ccxt.OperationFailed, ccxt.ExchangeError):CODE
HIGHfreqtrade/exchange/bitget.py127except (ccxt.OrderNotFound, ccxt.InvalidOrder):CODE
HIGHfreqtrade/loggers/ft_rich_handler.py45except ImportError:CODE
HIGHfreqtrade/optimize/hyperopt/hyperopt_logger.py50except Empty:CODE
HIGHfreqtrade/optimize/hyperopt/hyperopt_output.py74except OSError:CODE
HIGHfreqtrade/plot/plotting.py499except KeyError:CODE
HIGHfreqtrade/plot/plotting.py596except ValueError:CODE
HIGHfreqtrade/resolvers/exchange_resolver.py82except AttributeError:CODE
HIGHfreqtrade/system/set_mp_start_method.py13except RuntimeError:CODE
HIGHfreqtrade/rpc/telegram.py1198except (TypeError, ValueError, IndexError):CODE
HIGHfreqtrade/rpc/rpc.py693except ValueError:CODE
HIGHfreqtrade/rpc/rpc.py1272except ExchangeError:CODE
HIGHfreqtrade/rpc/rpc.py1284except ExchangeError:CODE
HIGHfreqtrade/rpc/external_message_consumer.py163except asyncio.CancelledError:CODE
HIGHfreqtrade/rpc/external_message_consumer.py179except asyncio.CancelledError:CODE
HIGHfreqtrade/rpc/api_server/api_backtest.py175except ValueError:CODE
HIGHfreqtrade/rpc/api_server/api_auth.py82except HTTPException:CODE
HIGHfreqtrade/rpc/api_server/ws/proxy.py66except (RuntimeError, WebSocketDisconnect, ConnectionClosed):CODE
HIGHfreqtrade/rpc/api_server/ws/channel.py146except RuntimeError:CODE
HIGHfreqtrade/rpc/api_server/ws/channel.py203except (CODE
HIGHfreqtrade/rpc/api_server/ws/message_stream.py31except RuntimeError:CODE
HIGHfreqtrade/data/btanalysis/bt_fileutils.py330except ValueError:CODE
AI Slop Vocabulary44 hits · 151 pts
SeverityFileLineSnippetContext
MEDIUMtests/conftest.py3197 "minNotional": 0, # stake(before leverage) = 0CODE
MEDIUMtests/conftest.py3198 "maxNotional": 100000, # max stake(before leverage) = 5000CODE
MEDIUMtests/exchange/test_exchange.py6802 # limit leverage tiersCOMMENT
MEDIUM⚡tests/exchange/test_binance.py684 # Assert if conftest leverage tiers have less or equal tiers than the exchangeCOMMENT
MEDIUMtests/optimize/test_backtesting.py632 # leverage = 5COMMENT
MEDIUMtests/optimize/test_backtest_detail.py567# Test 27: (copy of test26 with leverage)COMMENT
MEDIUMtests/optimize/test_backtest_detail.py589# Test 28: (copy of test26 with leverage and as short)COMMENT
MEDIUMtests/freqtradebot/test_freqtradebot.py1118 # leverage=1.0, open_rate=10.00000000, open_since=...)COMMENT
MEDIUMtests/freqtradebot/test_freqtradebot.py1120 # leverage=3.0, open_rate=10.00000000, open_since=...)COMMENT
MEDIUM⚡tests/freqtradebot/test_liquidation_warning.py375 """Warns at any leverage - a plain price distance would not."""STRING
MEDIUM⚡tests/freqtradebot/test_liquidation_warning.py384 # A freshly opened position never warns, no matter the leverage - even though the stopCOMMENT
MEDIUM⚡tests/freqtradebot/test_liquidation_warning.py385 # (0.5% maintenance margin plus the 5% buffer) sits closer than 1/leverage, so what'sCOMMENT
MEDIUMtests/persistence/test_persistence.py799 # 10 minute limit trade on Binance/Kraken at 1x, 3x leverageCOMMENT
MEDIUMtests/strategy/strats/strategy_test_v3.py192 # Bot-logic must make sure it's an allowed leverage and eventually adjust accordingly.COMMENT
MEDIUM⚡freqtrade/freqtradebot.py1341 # Cap leverage between 1.0 and max_leverage.COMMENT
MEDIUM⚡freqtrade/freqtradebot.py1344 # Changing leverage currently not possibleCOMMENT
MEDIUM⚡freqtrade/freqtradebot.py1349 # We do however also need min-stake to determine leverage, therefore this is ignored asCOMMENT
MEDIUMfreqtrade/freqtradebot.py460 # so the same setting means the same thing at any leverage.COMMENT
MEDIUMfreqtrade/freqtradebot.py2151 # Filled val is in quote currency (after leverage)COMMENT
MEDIUM⚡freqtrade/exchange/hyperliquid.py215 # There are no leverage tiersCOMMENT
MEDIUM⚡freqtrade/exchange/hyperliquid.py223 # Hyperliquid expects leverage to be an intCOMMENT
MEDIUM⚡freqtrade/exchange/hyperliquid.py225 # Hyperliquid needs the parameter leverage.COMMENT
MEDIUM⚡freqtrade/exchange/hyperliquid.py263 # Docs: The maintenance margin is half of the initial margin at max leverage,COMMENT
MEDIUM⚡freqtrade/exchange/hyperliquid.py265 # (for 50x max leverage assets) and 16.7% (for 3x max leverage assets)COMMENT
MEDIUM⚡freqtrade/exchange/hyperliquid.py267 # The key thing here is 'Half of the initial margin at max leverage'.COMMENT
MEDIUM⚡freqtrade/exchange/hyperliquid.py270 # 2. Assume max leverage, calculate the initial margin by dividing the position valueCOMMENT
MEDIUM⚡freqtrade/exchange/hyperliquid.py271 # by the max leverageCOMMENT
MEDIUM⚡freqtrade/exchange/hyperliquid.py284 # Docs: The maintenance margin is half of the initial margin at max leverageCOMMENT
MEDIUM⚡freqtrade/exchange/hyperliquid.py285 # The docs don't explicitly specify maintenance leverage, but this works.COMMENT
MEDIUM⚡freqtrade/exchange/hyperliquid.py286 # Double because of the statement 'half of the initial margin at max leverage'COMMENT
MEDIUMfreqtrade/exchange/exchange.py3762 # Fetch all leverage tiers at onceCOMMENT
MEDIUMfreqtrade/exchange/exchange.py3765 # Must fetch the leverage tiers for each market separatelyCOMMENT
MEDIUMfreqtrade/exchange/exchange.py3905 # Adjust notional by leverage to do a proper comparisonCOMMENT
MEDIUMfreqtrade/exchange/exchange.py3940 return 1.0 # Default if max leverage cannot be foundCODE
MEDIUMfreqtrade/freqai/freqai_interface.py295 # Loop enforcing the sliding window training/backtesting paradigmCOMMENT
MEDIUMfreqtrade/optimize/backtesting.py1083 # Cap leverage between 1.0 and max_leverage.COMMENT
MEDIUMfreqtrade/persistence/trade_model.py1330 # Leverage not updated, as we don't allow changing leverage through DCA at the moment.COMMENT
MEDIUMfreqtrade/persistence/trade_model.py492 """Returns true if this is a non-leverage, non-short trade"""STRING
MEDIUMfreqtrade/persistence/wallet_history.py33 # Total position value in `quote_currency` - including leverageCOMMENT
MEDIUMfreqtrade/rpc/rpc_types.py59 # position's margin (10% at 10x leverage). About 1.0 when freshly opened, 0.0 at the stop.COMMENT
MEDIUMfreqtrade/rpc/rpc.py912 # est_stake = rate * pos.position - pos.collateral * (pos.leverage - 1)COMMENT
MEDIUMfreqtrade/rpc/rpc.py915 # = collateral + (pos.collateral * pos.leverage)COMMENT
MEDIUMfreqtrade/rpc/api_server/api_v1.py47# 2.17: Forceentry - leverage, partial force_exitCOMMENT
MEDIUMfreqtrade/strategy/interface.py67 # Version 3 - First version with short and leverage supportCOMMENT
Deep Nesting123 hits · 108 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py172CODE
LOWtests/optimize/test_backtesting.py2620CODE
LOWtests/plugins/test_pairlist.py770CODE
LOWtests/plugins/test_pairlist.py1022CODE
LOWtests/exchange_online/test_ccxt_compat.py133CODE
LOWtests/exchange_online/test_ccxt_compat.py216CODE
LOWtests/rpc/test_rpc_apiserver.py998CODE
LOWtests/strategy/test_strategy_helpers.py260CODE
LOWscripts/ws_client.py197CODE
LOWfreqtrade/freqtradebot.py94CODE
LOWfreqtrade/freqtradebot.py617CODE
LOWfreqtrade/freqtradebot.py684CODE
LOWfreqtrade/freqtradebot.py794CODE
LOWfreqtrade/freqtradebot.py1483CODE
LOWfreqtrade/freqtradebot.py1769CODE
LOWfreqtrade/freqtradebot.py1972CODE
LOWfreqtrade/freqtradebot.py2561CODE
LOWfreqtrade/configuration/config_validation.py295CODE
LOWfreqtrade/configuration/configuration.py189CODE
LOWfreqtrade/configuration/environment_vars.py14CODE
LOWfreqtrade/exchange/hyperliquid.py165CODE
LOWfreqtrade/exchange/binance_public_data.py106CODE
LOWfreqtrade/exchange/binance_public_data.py230CODE
LOWfreqtrade/exchange/binance_public_data.py386CODE
LOWfreqtrade/exchange/binance_public_data.py440CODE
LOWfreqtrade/exchange/exchange.py698CODE
LOWfreqtrade/exchange/exchange.py1304CODE
LOWfreqtrade/exchange/exchange.py2173CODE
LOWfreqtrade/exchange/exchange.py2595CODE
LOWfreqtrade/exchange/exchange.py2698CODE
LOWfreqtrade/exchange/exchange.py3140CODE
LOWfreqtrade/exchange/exchange.py3332CODE
LOWfreqtrade/exchange/exchange.py3541CODE
LOWfreqtrade/exchange/exchange.py3595CODE
LOWfreqtrade/exchange/exchange.py3759CODE
LOWfreqtrade/exchange/exchange.py3829CODE
LOWfreqtrade/exchange/exchange_ws.py239CODE
LOWfreqtrade/exchange/krakenfutures.py61CODE
LOWfreqtrade/exchange/krakenfutures.py151CODE
LOWfreqtrade/exchange/exchange_utils.py305CODE
LOWfreqtrade/exchange/common.py123CODE
LOWfreqtrade/exchange/common.py124CODE
LOWfreqtrade/exchange/bitget.py106CODE
LOWfreqtrade/exchange/gate.py109CODE
LOWfreqtrade/exchange/binance.py413CODE
LOWfreqtrade/freqai/freqai_interface.py272CODE
LOWfreqtrade/freqai/freqai_interface.py895CODE
LOWfreqtrade/freqai/data_drawer.py549CODE
LOWfreqtrade/freqai/data_drawer.py675CODE
LOWfreqtrade/freqai/data_drawer.py739CODE
LOWfreqtrade/freqai/data_drawer.py814CODE
LOWfreqtrade/freqai/torch/PyTorchModelTrainer.py71CODE
LOWfreqtrade/freqai/RL/Base5ActionRLEnv.py32CODE
LOWfreqtrade/freqai/RL/Base3ActionRLEnv.py30CODE
LOWfreqtrade/freqai/RL/Base4ActionRLEnv.py31CODE
LOWfreqtrade/loggers/__init__.py126CODE
LOWfreqtrade/optimize/backtesting.py518CODE
LOWfreqtrade/optimize/backtesting.py854CODE
LOWfreqtrade/optimize/backtesting.py1639CODE
LOWfreqtrade/optimize/backtesting.py1763CODE
63 more matches not shown…
Self-Referential Comments31 hits · 94 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_misc.py90 # Create a temporary directory and fileCOMMENT
MEDIUMtests/test_wallets.py662 # Create a trade and verify the new currency is added to the walletsCOMMENT
MEDIUMtests/util/test_historic_wallets_migration.py262 # Create a trade with a pair that won't be in marketsCOMMENT
MEDIUMtests/util/test_historic_wallets_migration.py293 # Create a tradeCOMMENT
MEDIUMtests/util/test_historic_wallets_migration.py353 # Create a tradeCOMMENT
MEDIUMtests/util/test_historic_wallets_migration.py395 # Create a tradeCOMMENT
MEDIUMtests/persistence/test_persistence.py2144 # Create an order with no filled amountCOMMENT
MEDIUMtests/persistence/test_persistence.py2171 # Create an order with filled amount but wrong statusCOMMENT
MEDIUMtests/rpc/test_rpc_apiserver.py3462 # Create a temporary directory and fileCOMMENT
MEDIUMtests/rpc/test_rpc_apiserver.py3493 # Create a temporary directory and fileCOMMENT
MEDIUMtests/rpc/test_rpc_apiserver.py3582 # Create a temporary directory and fileCOMMENT
MEDIUMtests/rpc/test_rpc_apiserver.py3620 # Create a temporary directory and fileCOMMENT
MEDIUMtests/rpc/test_rpc.py866 # Create a short and a long position wallet directly to avoid depending on position parsingCOMMENT
MEDIUMtests/data/test_converter_orderflow.py91 # Define the configuration for order flow calculationCOMMENT
MEDIUMtests/data/test_converter_orderflow.py320 # Define the bin size for the first testCOMMENT
MEDIUMtests/data/test_converter_orderflow.py576 # Create a sample DataFrame with known imbalancesCOMMENT
MEDIUMtests/data/test_trade_parallelism.py30 # Create a minimal trades DataFrame with 4 trades over timeCOMMENT
MEDIUMtests/data/test_history.py463 # Create the Json fileCOMMENT
MEDIUMfreqtrade/exchange/exchange.py278 # Initialize ccxt objectsCOMMENT
MEDIUMfreqtrade/freqai/torch/PyTorchTransformerModel.py43 # Define the encoder block of the TransformerCOMMENT
MEDIUMfreqtrade/optimize/backtesting.py550 # Create a copy of the dataframe before shifting, that way the entry signal/tagCOMMENT
MEDIUMfreqtrade/optimize/analysis/lookahead_helpers.py104 # Create a new empty DataFrame with the desired column names and set the indexCOMMENT
MEDIUM…ptimize/hyperopt_loss/hyperopt_loss_short_trade_dur.py55# Create an alias for This to allow the legacy Method to work as well.COMMENT
MEDIUMfreqtrade/plot/plotting.py462 # Define the graphCOMMENT
MEDIUMfreqtrade/plot/plotting.py705 # Create an average close price of all the pairs that were involved.COMMENT
MEDIUM⚡freqtrade/templates/sample_strategy.py39# This class is a sample. Feel free to customize it.COMMENT
MEDIUMfreqtrade/commands/optimize_commands.py59 # Initialize backtesting objectCOMMENT
MEDIUMfreqtrade/commands/optimize_commands.py109 # Initialize backtesting objectCOMMENT
MEDIUMfreqtrade/rpc/external_message_consumer.py156 # Create a connection to each producerCOMMENT
MEDIUMfreqtrade/rpc/external_message_consumer.py204 # Create the message stream for this channelCOMMENT
MEDIUMfreqtrade/rpc/api_server/api_backtest.py182 # Initialize backtesting objectCOMMENT
Redundant / Tautological Comments55 hits · 83 pts
SeverityFileLineSnippetContext
LOWsetup.sh284# Verify if 3.12+ is installedCOMMENT
LOWtests/test_pip_audit.py60 # Check if pip-audit found any vulnerabilitiesCOMMENT
LOWtests/test_pip_audit.py65 # Check if it's an actual vulnerability vs an errorCOMMENT
LOWtests/optimize/test_hyperopt.py495 # Check if some indicators are generated. We will not test all of themCOMMENT
LOWtests/plugins/test_pairlist.py812 # Set whitelist_result to None if pairlist is invalid and should produce exceptionCOMMENT
LOWtests/plugins/test_pairlist.py2454 # Set max_open_trades to 4, the filter should empty the whitelistCOMMENT
LOWtests/plugins/test_pairlist.py2474 # Set max_open_trades to 3, the filter should empty the whitelistCOMMENT
LOWtests/exchange_online/conftest.py787 # Set proxy to test in CI.COMMENT
LOWtests/exchange_online/test_ccxt_compat.py272 # Check if last-timeframe is within the last 2 intervalsCOMMENT
LOWtests/exchange_online/test_ccxt_compat.py290 # Check if last-timeframe is within the last 2 intervalsCOMMENT
LOWtests/exchange_online/test_ccxt_compat.py332 # Check if first-timeframe is either the start, or start + 1COMMENT
LOWtests/persistence/test_migrations.py26 # Check if init create a sessionCOMMENT
LOWfreqtrade/freqtradebot.py351 # Check if we need to adjust our current positions before attempting to enter new trades.COMMENT
LOWfreqtrade/freqtradebot.py1516 # Check if we can exit our current position for this tradeCOMMENT
LOWfreqtrade/freqtradebot.py1878 # Check if new candleCOMMENT
LOWfreqtrade/configuration/configuration.py114 # Check if the exchange set by the user is supportedCOMMENT
LOWfreqtrade/configuration/environment_vars.py56 # Check if any ccxt config key is in the key partsCOMMENT
LOWfreqtrade/exchange/bybit.py267 # Set acknowledged to True to avoid ccxt exceptionCOMMENT
LOW⚡freqtrade/exchange/exchange.py376 # Check if timeframe is availableCOMMENT
LOW⚡freqtrade/exchange/exchange.py379 # Check if all pairs are availableCOMMENT
LOWfreqtrade/exchange/exchange.py781 # Set markets to avoid reloading on websocket apiCOMMENT
LOWfreqtrade/exchange/exchange.py1621 # Verify if stopPrice works for your exchange, else configure stop_price_paramCOMMENT
LOWfreqtrade/exchange/exchange.py2350 # Check if cache has been invalidatedCOMMENT
LOWfreqtrade/exchange/exchange.py2816 # Check if 1 call can get us updated candles without hole in the data.COMMENT
LOWfreqtrade/exchange/exchange_ws.py162 # Check if they're already scheduledCOMMENT
LOWfreqtrade/exchange/common.py126 kucoin = args[0].name == "KuCoin" # Check if the exchange is KuCoin.CODE
LOWfreqtrade/loggers/__init__.py148 # Check if we have the module availableCOMMENT
LOWfreqtrade/optimize/backtesting.py344 # Set stoploss_on_exchange to false for backtesting,COMMENT
LOWfreqtrade/optimize/backtesting.py648 # Set close_rate to stoplossCOMMENT
LOWfreqtrade/optimize/backtesting.py739 # Check if we should increase our positionCOMMENT
LOWfreqtrade/optimize/backtesting.py985 # Check if we need to adjust our current positionsCOMMENT
LOWfreqtrade/optimize/optimize_reports/bt_output.py565 # Print resultsCOMMENT
LOW…ptimize/hyperopt_loss/hyperopt_loss_short_trade_dur.py14# Set TARGET_TRADES to suit your number concurrent trades so its realisticCOMMENT
LOWfreqtrade/optimize/hyperopt/hyperopt_interface.py39 # Assign timeframe to be used in hyperoptCOMMENT
LOWfreqtrade/plot/plotting.py58 # Set timerange to useCOMMENT
LOWfreqtrade/plugins/pairlist/IPairList.py385 # Check if market is activeCOMMENT
LOWfreqtrade/plugins/pairlist/CrossMarketPairList.py82 # Check if pair quote currency equals to the stake currency.COMMENT
LOWfreqtrade/plugins/pairlist/VolumePairList.py146 # Check if pair quote currency equals to the stake currency.COMMENT
LOWfreqtrade/plugins/pairlist/PercentChangePairList.py142 # Check if pair quote currency equals to the stake currency.COMMENT
LOWfreqtrade/plugins/pairlist/MarketCapPairList.py146 # Check if pair quote currency equals to the stake currency.COMMENT
LOWfreqtrade/resolvers/strategy_resolver.py56 # Check if we need to override configurationCOMMENT
LOWfreqtrade/resolvers/hyperopt_resolver.py47 # Assign timeframe to be used in hyperoptCOMMENT
LOWfreqtrade/persistence/migrations.py431 # Check if migration necessarySTRING
LOWfreqtrade/rpc/telegram.py799 # Check if there's at least one numerical ID provided.COMMENT
LOWfreqtrade/rpc/rpc.py1037 # Check if there is there are open ordersCOMMENT
LOWfreqtrade/rpc/rpc.py1153 # Check if pair quote currency equals to the stake currency.COMMENT
LOWfreqtrade/rpc/fiat_convert.py134 # Check if the fiat conversion you want is supportedCOMMENT
LOWfreqtrade/rpc/fiat_convert.py164 # Check if the fiat conversion you want is supportedCOMMENT
LOWfreqtrade/rpc/api_server/api_auth.py64 # Check if ws_token is/in secret_ws_tokenCOMMENT
LOWfreqtrade/rpc/api_server/api_auth.py77 # Check if ws_token is a JWTCOMMENT
LOW⚡freqtrade/data/converter/orderflow.py28 # Set columns to object typeCOMMENT
LOWfreqtrade/data/converter/orderflow.py124 # Check if the trades are already in the cacheCOMMENT
LOWfreqtrade/data/history/datahandlers/idatahandler.py264 # Check if regex found something and only return these results to avoid exceptions.COMMENT
LOWfreqtrade/strategy/interface.py1309 # Check if dataframe is out of dateCOMMENT
LOWfreqtrade/strategy/interface.py1726 # Check if time matches and current rate is above thresholdCOMMENT
Excessive Try-Catch Wrapping75 hits · 82 pts
SeverityFileLineSnippetContext
LOWft_client/freqtrade_client/ft_client.py116 except Exception as e:CODE
LOW⚡ft_client/freqtrade_client/__init__.py27 except Exception: # pragma: no coverCODE
LOW⚡ft_client/freqtrade_client/__init__.py34 except Exception: # noqa: S110CODE
LOWtests/conftest.py88 except Exception as e:CODE
LOWtests/test_configuration.py639 except Exception:CODE
LOWtests/optimize/test_hyperopt.py267 except Exception:CODE
LOWdocs/strategy-callbacks.md1053 except Exception as exception:CODE
LOWscripts/ws_client.py273 except Exception as e:CODE
LOWfreqtrade/wallets.py536 except Exception as e:CODE
LOWfreqtrade/freqtradebot.py216 except Exception as e:CODE
LOWfreqtrade/freqtradebot.py243 except Exception as e:CODE
LOWfreqtrade/freqtradebot.py259 except Exception:CODE
LOWfreqtrade/freqtradebot.py784 except Exception:CODE
LOWfreqtrade/__init__.py26 except Exception: # pragma: no coverCODE
LOWfreqtrade/__init__.py33 except Exception: # noqa: S110CODE
LOWfreqtrade/main.py75 except Exception:CODE
LOW⚡freqtrade/configuration/deploy_config.py19 except Exception:CODE
LOW⚡freqtrade/configuration/deploy_config.py27 except Exception:CODE
MEDIUMfreqtrade/configuration/deploy_config.py15def validate_is_int(val):CODE
MEDIUMfreqtrade/configuration/deploy_config.py23def validate_is_float(val):CODE
LOWfreqtrade/configuration/directory_operations.py43 except Exception:CODE
LOWfreqtrade/exchange/hyperliquid.py192 except Exception as e:CODE
LOW⚡freqtrade/exchange/hyperliquid.py208 except Exception as e:CODE
LOWfreqtrade/exchange/binance_public_data.py84 except Exception as e:CODE
LOWfreqtrade/exchange/binance_public_data.py161 except Exception as e:CODE
LOWfreqtrade/exchange/binance_public_data.py297 except Exception as e:CODE
LOWfreqtrade/exchange/binance_public_data.py328 except Exception as e:CODE
LOWfreqtrade/exchange/binance_public_data.py432 except Exception as e:CODE
LOWfreqtrade/exchange/binance_public_data.py492 except Exception as e:CODE
LOWfreqtrade/exchange/exchange.py341 except Exception as e:CODE
LOWfreqtrade/exchange/exchange.py3393 except Exception:CODE
LOWfreqtrade/exchange/exchange.py3850 except Exception:CODE
LOWfreqtrade/exchange/exchange_ws.py91 except Exception:CODE
LOWfreqtrade/exchange/exchange_ws.py100 except Exception:CODE
LOWfreqtrade/exchange/exchange_ws.py210 except Exception:CODE
LOWfreqtrade/exchange/exchange_ws.py225 except Exception:CODE
MEDIUMfreqtrade/exchange/exchange_ws.py94def _cleanup_async(self) -> None:CODE
LOWfreqtrade/freqai/freqai_interface.py257 except Exception as msg:CODE
LOWfreqtrade/freqai/freqai_interface.py375 except Exception as msg:CODE
LOWfreqtrade/loggers/ft_rich_handler.py48 except Exception:CODE
MEDIUMfreqtrade/loggers/ft_rich_handler.py19def emit(self, record):CODE
LOWfreqtrade/loggers/std_err_stream_handler.py25 except Exception:CODE
MEDIUMfreqtrade/loggers/std_err_stream_handler.py17def emit(self, record):CODE
LOWfreqtrade/util/ft_scheduler.py22 except Exception:CODE
LOWfreqtrade/plugins/pairlist/RemotePairList.py178 except Exception as e:CODE
LOWfreqtrade/plugins/pairlist/RemotePairList.py232 except Exception as e:CODE
LOWfreqtrade/plugins/pairlist/RemotePairList.py273 except Exception as e:CODE
LOWfreqtrade/commands/list_commands.py278 except Exception as e:CODE
LOWfreqtrade/rpc/telegram.py360 except Exception as ex:CODE
LOWfreqtrade/rpc/fiat_convert.py74 except Exception as exception:CODE
LOWfreqtrade/rpc/fiat_convert.py187 except Exception as exception:CODE
MEDIUMfreqtrade/rpc/fiat_convert.py57def _load_cryptomap(self) -> None:CODE
LOWfreqtrade/rpc/external_message_consumer.py234 except Exception as e:CODE
LOWfreqtrade/rpc/external_message_consumer.py270 except Exception as e:CODE
LOWfreqtrade/rpc/external_message_consumer.py283 except Exception as e:CODE
LOWfreqtrade/rpc/rpc_manager.py97 except Exception:CODE
LOWfreqtrade/rpc/api_server/webserver.py344 except Exception:CODE
LOWfreqtrade/rpc/api_server/api_pair_history.py46 except Exception as e:CODE
LOWfreqtrade/rpc/api_server/api_pair_history.py79 except Exception as e:CODE
LOWfreqtrade/rpc/api_server/api_v1.py133 except Exception as e:CODE
15 more matches not shown…
Decorative Section Separators17 hits · 52 pts
SeverityFileLineSnippetContext
MEDIUMtests/strategy/strats/strategy_test_v2.py75 # ------------------------------------COMMENT
MEDIUMtests/strategy/strats/strategy_test_v3.py105 # ------------------------------------COMMENT
MEDIUMdocs/includes/strategy-imports.md41# --------------------------------COMMENT
MEDIUMscripts/ws_client.py27# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ws_client.py88# ----------------------------------------------------------------------------COMMENT
MEDIUMscripts/ws_client.py120# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ws_client.py282# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡freqtrade/templates/sample_strategy.py33# --------------------------------COMMENT
MEDIUMfreqtrade/templates/sample_strategy.py159 # ------------------------------------COMMENT
MEDIUMfreqtrade/templates/sample_strategy.py240 # ------------------------------------COMMENT
MEDIUMfreqtrade/templates/sample_strategy.py293 # ------------------------------------COMMENT
MEDIUMfreqtrade/templates/sample_strategy.py300 # ------------------------------------COMMENT
MEDIUMfreqtrade/templates/sample_strategy.py315 # ------------------------------------COMMENT
MEDIUMfreqtrade/templates/sample_strategy.py330 # ------------------------------------COMMENT
MEDIUMfreqtrade/templates/sample_strategy.py345 # # ------------------------------------COMMENT
MEDIUMfreqtrade/templates/sample_strategy.py354 # ------------------------------------COMMENT
MEDIUMfreqtrade/rpc/api_server/ws_schemas.py73# --------------------------------------------------------------------------COMMENT
Over-Commented Block25 hits · 24 pts
SeverityFileLineSnippetContext
LOWdocker-compose.yml1---COMMENT
LOWdocker/docker-compose-freqai.yml1---COMMENT
LOWtests/exchange/test_exchange.py5241 # 'BTT/BTC': 'active': TrueCOMMENT
LOWtests/exchange/test_binance.py1081 exchange = get_patched_exchange(mocker, default_conf_usdt, exchange="binance")COMMENT
LOWtests/optimize/test_backtesting.py641 # Binance, LongCOMMENT
LOWtests/persistence/test_persistence.py801 # open_rate: 2.00 quoteCOMMENT
LOWdocs/producer-consumer.md121 producer_pairs = self.dp.get_producer_pairs()COMMENT
LOWdocs/advanced-setup.md61services:COMMENT
LOWdocs/strategy-customization.md761 ``` pythonCOMMENT
LOWfreqtrade/exchange/hyperliquid.py261 max_leverage = self.markets[pair]["limits"]["leverage"]["max"]COMMENT
LOWfreqtrade/freqai/RL/BaseEnvironment.py381 initialized env for tensorboard callbackCOMMENT
LOWfreqtrade/freqai/RL/BaseEnvironment.py401 # previous_price = self.add_entry_fee(previous_price)COMMENT
LOWfreqtrade/optimize/hyperopt/hyperopt_interface.py81 # Increase if you need wider ranges in the roi hyperspace, decrease if shorterCOMMENT
LOWfreqtrade/templates/FreqaiExampleStrategy.py201 # Classifiers are typically set up with strings as targets:COMMENT
LOWfreqtrade/templates/sample_strategy.py161 # ADXCOMMENT
LOWfreqtrade/templates/sample_strategy.py181 # # Keltner ChannelCOMMENT
LOWfreqtrade/templates/sample_strategy.py201 dataframe["rsi"] = ta.RSI(dataframe)COMMENT
LOWfreqtrade/templates/sample_strategy.py221 # Please read https://github.com/freqtrade/freqtrade/issues/2961 before using this.COMMENT
LOWfreqtrade/templates/sample_strategy.py261 # dataframe["wbb_percent"] = (COMMENT
LOWfreqtrade/templates/sample_strategy.py281 # dataframe['sma10'] = ta.SMA(dataframe, timeperiod=10)COMMENT
LOWfreqtrade/templates/sample_strategy.py301 # # Hammer: values [0, 100]COMMENT
LOWfreqtrade/templates/sample_strategy.py321 # dataframe['CDLGRAVESTONEDOJI'] = ta.CDLGRAVESTONEDOJI(dataframe)COMMENT
LOWfreqtrade/templates/sample_strategy.py341 # # Three Inside Up/Down: values [0, -100, 100]COMMENT
LOWfreqtrade/rpc/api_server/api_v1.py41# 1.12: add blacklist delete endpointCOMMENT
LOWfreqtrade/rpc/api_server/api_v1.py61# 2.33: Additional weekly/monthly metricsCOMMENT
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHbuild_helpers/create_command_partials.py94 # freqtrade-client still uses subprocess as requestedCOMMENT
HIGHfreqtrade/freqai/data_kitchen.py366 # ensure we are predicting on exactly same amount of data as requested by user definedCOMMENT
AI Structural Patterns11 hits · 10 pts
SeverityFileLineSnippetContext
LOWfreqtrade/exchange/exchange.py3239CODE
LOWfreqtrade/freqai/RL/BaseEnvironment.py47CODE
LOWfreqtrade/freqai/RL/BaseReinforcementLearningModel.py303CODE
LOWfreqtrade/optimize/analysis/lookahead.py51CODE
LOW…ptimize/hyperopt_loss/hyperopt_loss_short_trade_dur.py52CODE
LOWfreqtrade/optimize/hyperopt/hyperopt_optimizer.py334CODE
LOWfreqtrade/templates/sample_hyperopt_loss.py57CODE
LOWfreqtrade/rpc/rpc.py1444CODE
LOWfreqtrade/rpc/rpc.py1480CODE
LOWfreqtrade/rpc/api_server/api_webserver.py109CODE
LOWfreqtrade/data/history/history_utils.py364CODE
Slop Phrases3 hits · 8 pts
SeverityFileLineSnippetContext
LOWsetup.sh167 echo_block "Don't forget to activate your virtual environment with 'source .venv/bin/activate'!"CODE
MEDIUMfreqtrade/freqai/RL/BaseReinforcementLearningModel.py431 # you can use feature values from dataframeCOMMENT
MEDIUM⚡freqtrade/templates/sample_strategy.py39# This class is a sample. Feel free to customize it.COMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtests/freqai/test_freqai_interface.py77 # test the RL guardrailsCOMMENT
Structural Annotation Overuse2 hits · 3 pts
SeverityFileLineSnippetContext
LOWdocs/installation.md379# Step 1 - Initialize user folderCOMMENT
LOWdocs/installation.md382# Step 2 - Create a new configuration fileCOMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/freqai/test_freqai_interface.py515 "model_filename": "fake_name",CODE