freqtrade/freqtrade

View on GitHub
ft_client/freqtrade_client/ft_rest_client.py

Summary

Maintainability
C
1 day
Test Coverage

FtRestClient has 47 functions (exceeds 20 allowed). Consider refactoring.
Open

class FtRestClient:

    def __init__(self, serverurl, username=None, password=None, *,
                 pool_connections=10, pool_maxsize=10):

Severity: Minor
Found in ft_client/freqtrade_client/ft_rest_client.py - About 6 hrs to fix

    File ft_rest_client.py has 345 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    """
    A Rest Client for Freqtrade bot
    
    Should not import anything from freqtrade,
    so it can be used as a standalone script, and can be installed independently.
    Severity: Minor
    Found in ft_client/freqtrade_client/ft_rest_client.py - About 4 hrs to fix

      Function __init__ has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def __init__(self, serverurl, username=None, password=None, *,
      Severity: Minor
      Found in ft_client/freqtrade_client/ft_rest_client.py - About 45 mins to fix

        Function pair_history has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def pair_history(self, pair, timeframe, strategy, timerange=None, freqaimodel=None):
        Severity: Minor
        Found in ft_client/freqtrade_client/ft_rest_client.py - About 35 mins to fix

          Function _call has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def _call(self, method, apipath, params: Optional[dict] = None, data=None, files=None):
          Severity: Minor
          Found in ft_client/freqtrade_client/ft_rest_client.py - About 35 mins to fix

            There are no issues that match your filters.

            Category
            Status