Repository Analysis

freqtrade/freqtrade

Free, open source crypto trading bot

21.6 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of freqtrade/freqtrade, a Python project with 52,315 GitHub stars. SynthScan v2.0 examined 166,078 lines of code across 633 source files, recording 2514 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 21.6 places this repository in the Moderate 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).

21.6
Adjusted Score
21.6
Raw Score
100%
Time Factor
2026-07-14
Last Push
52.3K
Stars
Python
Language
166.1K
Lines of Code
633
Files
2.5K
Pattern Hits
2026-07-14
Scan Date
0.39
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

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.

CRITICAL 0HIGH 245MEDIUM 97LOW 2172

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 2514 distinct pattern matches across 18 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.

Hyper-Verbose Identifiers1342 hits · 1211 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.py234def patched_configuration_load_config_file(mocker, config) -> None:CODE
LOWtests/conftest.py420def create_mock_trades_with_leverage(fee, use_db: bool = True):CODE
LOWtests/conftest.py507def fixture_set_mp_start_method():CODE
LOWtests/conftest.py1830def limit_buy_order_old_partial():CODE
LOWtests/conftest.py1848def limit_buy_order_old_partial_canceled(limit_buy_order_old_partial):CODE
LOWtests/conftest.py1856def limit_buy_order_canceled_empty(request):CODE
LOWtests/conftest.py2744def limit_buy_order_usdt_open():CODE
LOWtests/conftest.py2772def limit_sell_order_usdt_open():CODE
LOWtests/conftest.py2816def market_buy_order_usdt_doublefee(market_buy_order_usdt):CODE
LOWtests/conftest.py2906def funding_rate_history_hourly():CODE
LOWtests/conftest.py2996def 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_misc.py233def test_parse_db_uri_for_logging(conn_url, expected) -> None:CODE
LOWtests/test_configuration.py655def test_validate_default_conf(default_conf) -> None:CODE
LOWtests/test_configuration.py661def test_validate_fiat_currency_options(default_conf, fiat) -> None:CODE
LOWtests/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.py1126def test_load_config_default_subkeys(all_conf, keys) -> None:CODE
LOWtests/test_configuration.py1159def test_pairlist_resolving_with_config(mocker, default_conf):CODE
LOWtests/test_configuration.py1194def test_pairlist_resolving_with_config_pl(mocker, default_conf):CODE
LOWtests/test_configuration.py1215def test_pairlist_resolving_with_config_pl_not_exists(mocker, default_conf):CODE
LOWtests/test_configuration.py1233def test_pairlist_resolving_fallback(mocker, tmp_path):CODE
LOWtests/test_configuration.py1268def test_process_temporary_deprecated_settings(mocker, default_conf, setting, caplog):CODE
LOWtests/test_configuration.py1314def test_process_removed_settings(mocker, default_conf, setting):CODE
1282 more matches not shown…
Cross-File Repetition200 hits · 1000 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
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
HIGHfreqtrade/exchange/bitmart.py0binance exchange class. contains adjustments needed for freqtrade to work with this exchange.STRING
140 more matches not shown…
Unused Imports318 hits · 276 pts
SeverityFileLineSnippetContext
LOWft_client/freqtrade_client/__init__.py1CODE
LOWtests/strategy/strats/failing_strategy.py3CODE
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__.py13CODE
LOWfreqtrade/exchange/__init__.py13CODE
LOWfreqtrade/exchange/__init__.py14CODE
LOWfreqtrade/exchange/__init__.py15CODE
LOWfreqtrade/exchange/__init__.py16CODE
LOWfreqtrade/exchange/__init__.py16CODE
LOWfreqtrade/exchange/__init__.py16CODE
LOWfreqtrade/exchange/__init__.py16CODE
LOWfreqtrade/exchange/__init__.py16CODE
LOWfreqtrade/exchange/__init__.py16CODE
LOWfreqtrade/exchange/__init__.py16CODE
LOWfreqtrade/exchange/__init__.py16CODE
LOWfreqtrade/exchange/__init__.py16CODE
LOWfreqtrade/exchange/__init__.py16CODE
LOWfreqtrade/exchange/__init__.py16CODE
LOWfreqtrade/exchange/__init__.py16CODE
LOWfreqtrade/exchange/__init__.py16CODE
LOWfreqtrade/exchange/__init__.py16CODE
LOWfreqtrade/exchange/__init__.py32CODE
LOWfreqtrade/exchange/__init__.py32CODE
LOWfreqtrade/exchange/__init__.py32CODE
LOWfreqtrade/exchange/__init__.py32CODE
LOWfreqtrade/exchange/__init__.py32CODE
LOWfreqtrade/exchange/__init__.py32CODE
LOWfreqtrade/exchange/__init__.py32CODE
LOWfreqtrade/exchange/__init__.py41CODE
LOWfreqtrade/exchange/__init__.py41CODE
LOWfreqtrade/exchange/__init__.py42CODE
LOWfreqtrade/exchange/__init__.py43CODE
LOWfreqtrade/exchange/__init__.py44CODE
LOWfreqtrade/exchange/__init__.py45CODE
LOWfreqtrade/exchange/__init__.py46CODE
258 more matches not shown…
Cross-Language Confusion43 hits · 254 pts
SeverityFileLineSnippetContext
HIGHtests/optimize/test_lookahead_analysis.py366 assert expected_data1.equals(saved_data1)CODE
HIGHtests/optimize/test_lookahead_analysis.py394 assert expected_data2.equals(saved_data2)CODE
HIGHtests/optimize/test_lookahead_analysis.py424 assert expected_data3.equals(saved_data3)CODE
HIGHtests/optimize/test_hyperopt.py713 '{"params":{"mfi-value":null,"sell-mfi-value":null},"minimal_roi"'CODE
HIGHtests/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.py1240 assert not df1.equals(df2)CODE
HIGHtests/freqtradebot/test_stoploss_on_exchange.py102 # should do nothing and return falseCOMMENT
HIGHtests/freqtradebot/test_freqtradebot.py4446 # 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.py554 assert df.equals(df1)CODE
HIGHtests/data/test_metrics.py606 assert df.equals(df1)CODE
HIGHtests/data/test_datahandler.py130 assert df.columns.equals(df1.columns)CODE
HIGHtests/data/test_datahandler.py357 assert ohlcv.equals(ohlcv1)CODE
HIGHtests/data/test_btanalysis.py101 assert bt_data.equals(bt_data2)CODE
HIGHtests/data/test_btanalysis.py105 assert bt_data.equals(bt_data3)CODE
HIGHtests/data/test_btanalysis.py124 assert bt_data.equals(bt_data2)CODE
HIGHtests/data/test_converter.py367 assert not data_modify.equals(data)CODE
HIGHtests/data/test_converter.py377 assert not data_modify.equals(data)CODE
HIGHtests/data/test_converter.py387 assert not data_modify.equals(data)CODE
HIGHtests/data/test_converter.py397 assert not data_modify.equals(data)CODE
HIGHtests/data/test_converter.py411 assert res.equals(trades_history_df)CODE
HIGHtests/data/test_converter.py206 assert data.equals(df1)CODE
HIGHtests/data/test_converter.py234 assert dfs.equals(dfm)CODE
HIGHtests/data/test_converter.py235 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.py198 assert ohlcv_history.equals(CODE
HIGHtests/data/test_dataprovider.py204 assert ohlcv_history.equals(CODE
HIGHtests/data/test_dataprovider.py420 assert ohlcv_history.equals(dataframe)CODE
HIGHtests/data/test_dataprovider.py424 assert ohlcv_history.equals(dataframe)CODE
HIGHtests/data/test_history.py924 assert stored_data.equals(expected_result)CODE
HIGHtests/data/test_history.py1002 assert stored_data.equals(existing_data)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.py53 "either None (undefined), 'asc' or 'desc'"CODE
HIGHfreqtrade/plugins/pairlist/rangestabilityfilter.py47 "either None (undefined), 'asc' or 'desc'"CODE
HIGHfreqtrade/data/metrics.py647 against the null) when it cannot be computed - fewer than twoSTRING
Modern Structural Boilerplate223 hits · 226 pts
SeverityFileLineSnippetContext
LOWft_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.py19logger = logging.getLogger(__name__)CODE
LOWfreqtrade/wallets.py17logger = logging.getLogger(__name__)CODE
LOWfreqtrade/wallets.py105 def _update_dry(self) -> None:CODE
LOWfreqtrade/wallets.py185 def _update_live(self) -> None:CODE
LOWfreqtrade/freqtradebot.py367 def update_all_liquidation_prices(self) -> None:CODE
LOWfreqtrade/freqtradebot.py377 def update_funding_fees(self) -> None:CODE
LOWfreqtrade/freqtradebot.py70logger = logging.getLogger(__name__)CODE
LOWfreqtrade/freqtradebot.py449 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
LOWfreqtrade/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
LOWfreqtrade/exchange/bitmart.py9logger = logging.getLogger(__name__)CODE
LOWfreqtrade/exchange/exchange.py351 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.py29logger = logging.getLogger(__name__)CODE
LOWfreqtrade/freqai/data_kitchen.py597 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.py588 def set_full_path(self) -> None:CODE
LOWfreqtrade/freqai/data_drawer.py29logger = logging.getLogger(__name__)CODE
163 more matches not shown…
AI Slop Vocabulary39 hits · 134 pts
SeverityFileLineSnippetContext
MEDIUMtests/conftest.py3201 "minNotional": 0, # stake(before leverage) = 0CODE
MEDIUMtests/conftest.py3202 "maxNotional": 100000, # max stake(before leverage) = 5000CODE
MEDIUMtests/exchange/test_exchange.py6143 # limit leverage tiersCOMMENT
MEDIUMtests/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.py1027 # leverage=1.0, open_rate=10.00000000, open_since=...)COMMENT
MEDIUMtests/freqtradebot/test_freqtradebot.py1029 # leverage=3.0, open_rate=10.00000000, open_since=...)COMMENT
MEDIUMtests/persistence/test_persistence.py796 # 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
MEDIUMfreqtrade/freqtradebot.py1167 # Cap leverage between 1.0 and max_leverage.COMMENT
MEDIUMfreqtrade/freqtradebot.py1170 # Changing leverage currently not possibleCOMMENT
MEDIUMfreqtrade/freqtradebot.py1175 # We do however also need min-stake to determine leverage, therefore this is ignored asCOMMENT
MEDIUMfreqtrade/freqtradebot.py1979 # Filled val is in quote currency (after leverage)COMMENT
MEDIUMfreqtrade/exchange/hyperliquid.py213 # There are no leverage tiersCOMMENT
MEDIUMfreqtrade/exchange/hyperliquid.py221 # Hyperliquid expects leverage to be an intCOMMENT
MEDIUMfreqtrade/exchange/hyperliquid.py223 # Hyperliquid needs the parameter leverage.COMMENT
MEDIUMfreqtrade/exchange/hyperliquid.py261 # Docs: The maintenance margin is half of the initial margin at max leverage,COMMENT
MEDIUMfreqtrade/exchange/hyperliquid.py263 # (for 50x max leverage assets) and 16.7% (for 3x max leverage assets)COMMENT
MEDIUMfreqtrade/exchange/hyperliquid.py265 # The key thing here is 'Half of the initial margin at max leverage'.COMMENT
MEDIUMfreqtrade/exchange/hyperliquid.py268 # 2. Assume max leverage, calculate the initial margin by dividing the position valueCOMMENT
MEDIUMfreqtrade/exchange/hyperliquid.py269 # by the max leverageCOMMENT
MEDIUMfreqtrade/exchange/hyperliquid.py282 # Docs: The maintenance margin is half of the initial margin at max leverageCOMMENT
MEDIUMfreqtrade/exchange/hyperliquid.py283 # The docs don't explicitly specify maintenance leverage, but this works.COMMENT
MEDIUMfreqtrade/exchange/hyperliquid.py284 # Double because of the statement 'half of the initial margin at max leverage'COMMENT
MEDIUMfreqtrade/exchange/exchange.py3561 # Fetch all leverage tiers at onceCOMMENT
MEDIUMfreqtrade/exchange/exchange.py3564 # Must fetch the leverage tiers for each market separatelyCOMMENT
MEDIUMfreqtrade/exchange/exchange.py3704 # Adjust notional by leverage to do a proper comparisonCOMMENT
MEDIUMfreqtrade/exchange/exchange.py3739 return 1.0 # Default if max leverage cannot be foundCODE
MEDIUMfreqtrade/freqai/freqai_interface.py296 # 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.py1324 # Leverage not updated, as we don't allow changing leverage through DCA at the moment.COMMENT
MEDIUMfreqtrade/persistence/trade_model.py488 """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.py906 # est_stake = rate * pos.position - pos.collateral * (pos.leverage - 1)COMMENT
MEDIUMfreqtrade/rpc/rpc.py909 # = collateral + (pos.collateral * pos.leverage)COMMENT
MEDIUMfreqtrade/rpc/api_server/api_v1.py47# 2.17: Forceentry - leverage, partial force_exitCOMMENT
MEDIUMfreqtrade/strategy/interface.py66 # Version 3 - First version with short and leverage supportCOMMENT
Deep Nesting128 hits · 114 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py172CODE
LOWtests/optimize/test_backtesting.py2624CODE
LOWtests/plugins/test_pairlist.py770CODE
LOWtests/plugins/test_pairlist.py1022CODE
LOWtests/exchange_online/test_ccxt_compat.py128CODE
LOWtests/exchange_online/test_ccxt_compat.py212CODE
LOWtests/rpc/test_rpc_apiserver.py915CODE
LOWtests/strategy/test_strategy_helpers.py253CODE
LOWscripts/ws_client.py197CODE
LOWfreqtrade/freqtradebot.py79CODE
LOWfreqtrade/freqtradebot.py449CODE
LOWfreqtrade/freqtradebot.py516CODE
LOWfreqtrade/freqtradebot.py613CODE
LOWfreqtrade/freqtradebot.py1309CODE
LOWfreqtrade/freqtradebot.py1390CODE
LOWfreqtrade/freqtradebot.py1596CODE
LOWfreqtrade/freqtradebot.py1799CODE
LOWfreqtrade/freqtradebot.py2387CODE
LOWfreqtrade/configuration/config_validation.py296CODE
LOWfreqtrade/configuration/configuration.py189CODE
LOWfreqtrade/configuration/timerange.py134CODE
LOWfreqtrade/configuration/environment_vars.py14CODE
LOWfreqtrade/exchange/hyperliquid.py163CODE
LOWfreqtrade/exchange/binance_public_data.py108CODE
LOWfreqtrade/exchange/binance_public_data.py232CODE
LOWfreqtrade/exchange/binance_public_data.py388CODE
LOWfreqtrade/exchange/binance_public_data.py442CODE
LOWfreqtrade/exchange/exchange.py649CODE
LOWfreqtrade/exchange/exchange.py1241CODE
LOWfreqtrade/exchange/exchange.py2102CODE
LOWfreqtrade/exchange/exchange.py2509CODE
LOWfreqtrade/exchange/exchange.py2611CODE
LOWfreqtrade/exchange/exchange.py3127CODE
LOWfreqtrade/exchange/exchange.py3340CODE
LOWfreqtrade/exchange/exchange.py3394CODE
LOWfreqtrade/exchange/exchange.py3558CODE
LOWfreqtrade/exchange/exchange.py3628CODE
LOWfreqtrade/exchange/exchange_ws.py234CODE
LOWfreqtrade/exchange/krakenfutures.py61CODE
LOWfreqtrade/exchange/krakenfutures.py142CODE
LOWfreqtrade/exchange/exchange_utils.py305CODE
LOWfreqtrade/exchange/common.py122CODE
LOWfreqtrade/exchange/common.py123CODE
LOWfreqtrade/exchange/bitget.py104CODE
LOWfreqtrade/exchange/gate.py109CODE
LOWfreqtrade/freqai/utils.py94CODE
LOWfreqtrade/freqai/freqai_interface.py273CODE
LOWfreqtrade/freqai/freqai_interface.py871CODE
LOWfreqtrade/freqai/data_drawer.py440CODE
LOWfreqtrade/freqai/data_drawer.py572CODE
LOWfreqtrade/freqai/data_drawer.py636CODE
LOWfreqtrade/freqai/data_drawer.py711CODE
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.py855CODE
LOWfreqtrade/optimize/backtesting.py1641CODE
68 more matches not shown…
Self-Referential Comments31 hits · 94 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_misc.py52 # Create a temporary directory and fileCOMMENT
MEDIUMtests/test_wallets.py567 # 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.py2141 # Create an order with no filled amountCOMMENT
MEDIUMtests/persistence/test_persistence.py2168 # Create an order with filled amount but wrong statusCOMMENT
MEDIUMtests/rpc/test_rpc_apiserver.py3377 # Create a temporary directory and fileCOMMENT
MEDIUMtests/rpc/test_rpc_apiserver.py3408 # Create a temporary directory and fileCOMMENT
MEDIUMtests/rpc/test_rpc_apiserver.py3497 # Create a temporary directory and fileCOMMENT
MEDIUMtests/rpc/test_rpc_apiserver.py3535 # 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.py268 # Initialize ccxt objectsCOMMENT
MEDIUMfreqtrade/freqai/torch/PyTorchTransformerModel.py43 # Define the encoder block of the TransformerCOMMENT
MEDIUMfreqtrade/optimize/backtesting.py551 # Create a copy of the dataframe before shifting, that way the entry signal/tagCOMMENT
MEDIUMfreqtrade/optimize/analysis/lookahead_helpers.py102 # 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.py460 # Define the graphCOMMENT
MEDIUMfreqtrade/plot/plotting.py703 # Create an average close price of all the pairs that were involved.COMMENT
MEDIUMfreqtrade/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.py183 # Initialize backtesting objectCOMMENT
Redundant / Tautological Comments55 hits · 83 pts
SeverityFileLineSnippetContext
LOWsetup.sh284# Verify if 3.11+ is installedCOMMENT
LOWtests/test_pip_audit.py59 # Check if pip-audit found any vulnerabilitiesCOMMENT
LOWtests/test_pip_audit.py64 # 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.py2213 # Set max_open_trades to 4, the filter should empty the whitelistCOMMENT
LOWtests/plugins/test_pairlist.py2233 # Set max_open_trades to 3, the filter should empty the whitelistCOMMENT
LOWtests/exchange_online/conftest.py711 # Set proxy to test in CI.COMMENT
LOWtests/exchange_online/test_ccxt_compat.py268 # Check if last-timeframe is within the last 2 intervalsCOMMENT
LOWtests/exchange_online/test_ccxt_compat.py286 # Check if last-timeframe is within the last 2 intervalsCOMMENT
LOWtests/exchange_online/test_ccxt_compat.py328 # Check if first-timeframe is either the start, or start + 1COMMENT
LOWtests/persistence/test_migrations.py26 # Check if init create a sessionCOMMENT
LOWfreqtrade/freqtradebot.py300 # Check if we need to adjust our current positions before attempting to enter new trades.COMMENT
LOWfreqtrade/freqtradebot.py1342 # Check if we can exit our current position for this tradeCOMMENT
LOWfreqtrade/freqtradebot.py1705 # 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.py266 # Set acknowledged to True to avoid ccxt exceptionCOMMENT
LOWfreqtrade/exchange/exchange.py358 # Check if timeframe is availableCOMMENT
LOWfreqtrade/exchange/exchange.py361 # Check if all pairs are availableCOMMENT
LOWfreqtrade/exchange/exchange.py732 # Set markets to avoid reloading on websocket apiCOMMENT
LOWfreqtrade/exchange/exchange.py1553 # Verify if stopPrice works for your exchange, else configure stop_price_paramCOMMENT
LOWfreqtrade/exchange/exchange.py2278 # Check if cache has been invalidatedCOMMENT
LOWfreqtrade/exchange/exchange.py2733 # Check if 1 call can get us updated candles without hole in the data.COMMENT
LOWfreqtrade/exchange/exchange_ws.py160 # Check if they're already scheduledCOMMENT
LOWfreqtrade/exchange/common.py125 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.py649 # Set close_rate to stoplossCOMMENT
LOWfreqtrade/optimize/backtesting.py740 # Check if we should increase our positionCOMMENT
LOWfreqtrade/optimize/backtesting.py986 # Check if we need to adjust our current positionsCOMMENT
LOWfreqtrade/optimize/optimize_reports/bt_output.py543 # 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.py40 # Assign timeframe to be used in hyperoptCOMMENT
LOWfreqtrade/plot/plotting.py57 # Set timerange to useCOMMENT
LOWfreqtrade/plugins/pairlist/IPairList.py273 # 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.py187 # Check if pair quote currency equals to the stake currency.COMMENT
LOWfreqtrade/plugins/pairlist/PercentChangePairList.py182 # 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.py750 # Check if there's at least one numerical ID provided.COMMENT
LOWfreqtrade/rpc/rpc.py1032 # Check if there is there are open ordersCOMMENT
LOWfreqtrade/rpc/rpc.py1148 # Check if pair quote currency equals to the stake currency.COMMENT
LOWfreqtrade/rpc/fiat_convert.py135 # Check if the fiat conversion you want is supportedCOMMENT
LOWfreqtrade/rpc/fiat_convert.py165 # 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
LOWfreqtrade/data/converter/orderflow.py28 # Set columns to object typeCOMMENT
LOWfreqtrade/data/converter/orderflow.py126 # Check if the trades are already in the cacheCOMMENT
LOWfreqtrade/data/history/datahandlers/idatahandler.py203 # Check if regex found something and only return these results to avoid exceptions.COMMENT
LOWfreqtrade/strategy/interface.py1302 # Check if dataframe is out of dateCOMMENT
LOWfreqtrade/strategy/interface.py1719 # Check if time matches and current rate is above thresholdCOMMENT
Excessive Try-Catch Wrapping75 hits · 83 pts
SeverityFileLineSnippetContext
LOWft_client/freqtrade_client/ft_client.py114 except Exception as e:CODE
LOWft_client/freqtrade_client/__init__.py27 except Exception: # pragma: no coverCODE
LOWft_client/freqtrade_client/__init__.py34 except Exception: # noqa: S110CODE
LOWtests/conftest.py87 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.py513 except Exception as e:CODE
LOWfreqtrade/freqtradebot.py191 except Exception as e:CODE
LOWfreqtrade/freqtradebot.py216 except Exception as e:CODE
LOWfreqtrade/freqtradebot.py232 except Exception:CODE
LOWfreqtrade/freqtradebot.py604 except Exception:CODE
LOWfreqtrade/__init__.py26 except Exception: # pragma: no coverCODE
LOWfreqtrade/__init__.py33 except Exception: # noqa: S110CODE
LOWfreqtrade/main.py75 except Exception:CODE
LOWfreqtrade/configuration/deploy_config.py19 except Exception:CODE
LOWfreqtrade/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.py190 except Exception as e:CODE
LOWfreqtrade/exchange/hyperliquid.py206 except Exception as e:CODE
LOWfreqtrade/exchange/binance_public_data.py86 except Exception as e:CODE
LOWfreqtrade/exchange/binance_public_data.py163 except Exception as e:CODE
LOWfreqtrade/exchange/binance_public_data.py299 except Exception as e:CODE
LOWfreqtrade/exchange/binance_public_data.py330 except Exception as e:CODE
LOWfreqtrade/exchange/binance_public_data.py434 except Exception as e:CODE
LOWfreqtrade/exchange/binance_public_data.py494 except Exception as e:CODE
LOWfreqtrade/exchange/exchange.py3192 except Exception:CODE
LOWfreqtrade/exchange/exchange.py3649 except Exception:CODE
LOWfreqtrade/exchange/exchange_ws.py89 except Exception:CODE
LOWfreqtrade/exchange/exchange_ws.py98 except Exception:CODE
LOWfreqtrade/exchange/exchange_ws.py205 except Exception:CODE
LOWfreqtrade/exchange/exchange_ws.py220 except Exception:CODE
MEDIUMfreqtrade/exchange/exchange_ws.py92def _cleanup_async(self) -> None:CODE
LOWfreqtrade/freqai/freqai_interface.py258 except Exception as msg:CODE
LOWfreqtrade/freqai/freqai_interface.py376 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/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.py353 except Exception as ex:CODE
LOWfreqtrade/rpc/fiat_convert.py75 except Exception as exception:CODE
LOWfreqtrade/rpc/fiat_convert.py188 except Exception as exception:CODE
MEDIUMfreqtrade/rpc/fiat_convert.py58def _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.py83 except Exception:CODE
LOWfreqtrade/rpc/api_server/webserver.py342 except Exception:CODE
LOWfreqtrade/rpc/api_server/api_pair_history.py43 except Exception as e:CODE
LOWfreqtrade/rpc/api_server/api_pair_history.py77 except Exception as e:CODE
LOWfreqtrade/rpc/api_server/api_v1.py130 except Exception as e:CODE
LOWfreqtrade/rpc/api_server/api_v1.py176 except Exception:CODE
LOWfreqtrade/rpc/api_server/ws/channel.py189 except Exception: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
MEDIUMfreqtrade/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 Block23 hits · 22 pts
SeverityFileLineSnippetContext
LOWdocker-compose.yml1---COMMENT
LOWdocker/docker-compose-freqai.yml1---COMMENT
LOWtests/exchange/test_exchange.py4581 # Testing markets (in conftest.py):COMMENT
LOWtests/exchange/test_binance.py1081 exchange = get_patched_exchange(mocker, default_conf_usdt, exchange="binance")COMMENT
LOWtests/optimize/test_backtesting.py641 # Binance, LongCOMMENT
LOWdocs/producer-consumer.md121 producer_pairs = self.dp.get_producer_pairs()COMMENT
LOWdocs/advanced-setup.md61services:COMMENT
LOWfreqtrade/exchange/hyperliquid.py261 # Docs: The maintenance margin is half of the initial margin at max leverage,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 # to adjust resulting ranges of the ROI tables.COMMENT
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.py368 # 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.py3046CODE
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.py1450CODE
LOWfreqtrade/rpc/rpc.py1486CODE
LOWfreqtrade/rpc/api_server/api_webserver.py109CODE
LOWfreqtrade/data/history/history_utils.py360CODE
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
MEDIUMfreqtrade/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.py76 # test the RL guardrailsCOMMENT
Structural Annotation Overuse2 hits · 3 pts
SeverityFileLineSnippetContext
LOWdocs/installation.md376# Step 1 - Initialize user folderCOMMENT
LOWdocs/installation.md379# Step 2 - Create a new configuration fileCOMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/freqai/test_freqai_interface.py457 "model_filename": "fake_name",CODE