Giter VIP home page Giter VIP logo

freqtrade's Introduction

Freqtrade

Build Status Coverage Status Documentation Maintainability

Freqtrade is a free and open source crypto trading bot written in Python. It is designed to support all major exchanges and be controlled via Telegram. It contains backtesting, plotting and money management tools as well as strategy optimization by machine learning.

freqtrade

Disclaimer

This software is for educational purposes only. Do not risk money which you are afraid to lose. USE THE SOFTWARE AT YOUR OWN RISK. THE AUTHORS AND ALL AFFILIATES ASSUME NO RESPONSIBILITY FOR YOUR TRADING RESULTS.

Always start by running a trading bot in Dry-run and do not engage money before you understand how it works and what profit/loss you should expect.

We strongly recommend you to have coding and Python knowledge. Do not hesitate to read the source code and understand the mechanism of this bot.

Exchange marketplaces supported

Documentation

We invite you to read the bot documentation to ensure you understand how the bot is working.

Please find the complete documentation on our website.

Features

  • Based on Python 3.6+: For botting on any operating system - Windows, macOS and Linux.
  • Persistence: Persistence is achieved through sqlite.
  • Dry-run: Run the bot without playing money.
  • Backtesting: Run a simulation of your buy/sell strategy.
  • Strategy Optimization by machine learning: Use machine learning to optimize your buy/sell strategy parameters with real exchange data.
  • Edge position sizing Calculate your win rate, risk reward ratio, the best stoploss and adjust your position size before taking a position for each specific market. Learn more.
  • Whitelist crypto-currencies: Select which crypto-currency you want to trade or use dynamic whitelists.
  • Blacklist crypto-currencies: Select which crypto-currency you want to avoid.
  • Manageable via Telegram: Manage the bot with Telegram.
  • Display profit/loss in fiat: Display your profit/loss in 33 fiat.
  • Daily summary of profit/loss: Provide a daily summary of your profit/loss.
  • Performance status report: Provide a performance status of your current trades.

Quick start

Freqtrade provides a Linux/macOS script to install all dependencies and help you to configure the bot.

sudo apt-get install git
git clone https://github.com/MontrealTradingGroup/freqtrade.git
cd freqtrade
sudo apt-get install make build-essential python3-dev
git checkout develop
./setup.sh --install
source .env/bin/activate
python3.6 ./freqtrade/main.py -c config.json

For any other type of installation please refer to Installation doc.

Basic Usage

Bot commands

usage: main.py [-h] [-v] [--version] [-c PATH] [-d PATH] [-s NAME]
               [--strategy-path PATH] [--customhyperopt NAME]
               [--dynamic-whitelist [INT]] [--db-url PATH]
               {backtesting,edge,hyperopt} ...

Free, open source crypto trading bot

positional arguments:
  {backtesting,edge,hyperopt}
    backtesting         backtesting module
    edge                edge module
    hyperopt            hyperopt module

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         verbose mode (-vv for more, -vvv to get all messages)
  --version             show program\'s version number and exit
  -c PATH, --config PATH
                        specify configuration file (default: config.json)
  -d PATH, --datadir PATH
                        path to backtest data
  -s NAME, --strategy NAME
                        specify strategy class name (default: DefaultStrategy)
  --strategy-path PATH  specify additional strategy lookup path
  --customhyperopt NAME
                        specify hyperopt class name (default:
                        DefaultHyperOpts)
  --dynamic-whitelist [INT]
                        dynamically generate and update whitelist based on 24h
                        BaseVolume (default: 20) DEPRECATED.
  --db-url PATH         Override trades database URL, this is useful if
                        dry_run is enabled or in custom deployments (default:
                        None)

Telegram RPC commands

Telegram is not mandatory. However, this is a great way to control your bot. More details on our documentation

  • /start: Starts the trader
  • /stop: Stops the trader
  • /status [table]: Lists all open trades
  • /count: Displays number of open trades
  • /profit: Lists cumulative profit from all finished trades
  • /forcesell <trade_id>|all: Instantly sells the given trade (Ignoring minimum_roi).
  • /performance: Show performance of each finished trade grouped by pair
  • /balance: Show account balance per currency
  • /daily <n>: Shows profit or loss per day, over the last n days
  • /help: Show help message
  • /version: Show version

Development branches

The project is currently setup in two main branches:

  • develop - This branch has often new features, but might also cause breaking changes.
  • master - This branch contains the latest stable release. The bot 'should' be stable on this branch, and is generally well tested.
  • feat/* - These are feature branches, which are being worked on heavily. Please don't use these unless you want to test a specific feature.

A note on Binance

For Binance, please add "BNB/<STAKE>" to your blacklist to avoid issues. Accounts having BNB accounts use this to pay for fees - if your first trade happens to be on BNB, further trades will consume this position and make the initial BNB order unsellable as the expected amount is not there anymore.

Support

Help / Slack

For any questions not covered by the documentation or for further information about the bot, we encourage you to join our slack channel.

If you discover a bug in the bot, please search our issue tracker first. If it hasn't been reported, please create a new issue and ensure you follow the template guide so that our team can assist you as quickly as possible.

Have you a great idea to improve the bot you want to share? Please, first search if this feature was not already discussed. If it hasn't been requested, please create a new request and ensure you follow the template guide so that it does not get lost in the bug reports.

Feel like our bot is missing a feature? We welcome your pull requests!

Please read our Contributing document to understand the requirements before sending your pull-requests.

Coding is not a neccessity to contribute - maybe start with improving our documentation? Issues labeled good first issue can be good first contributions, and will help get you familiar with the codebase.

Note before starting any major new feature work, please open an issue describing what you are planning to do or talk to us on Slack. This will ensure that interested parties can give valuable feedback on the feature, and let others know that you are working on it.

Important: Always create your PR against the develop branch, not master.

Requirements

Uptodate clock

The clock must be accurate, syncronized to a NTP server very frequently to avoid problems with communication to the exchanges.

Min hardware required

To run this bot we recommend you a cloud instance with a minimum of:

  • Minimal (advised) system requirements: 2GB RAM, 1GB disk space, 2vCPU

Software requirements

freqtrade's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

freqtrade's Issues

Module version not available on pypi

Hi guys,

I am finding the setup.sh failing repeatedly due to "ccxt" version in the development branch being unavailable on PyPi anymore. I had to change the version to 1.18.1 on "requirements.txt" and also avoid the force reset of head. Hopefully you guys can fix the requirements.txt on the repo.

Relevant code exceptions or logs:

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
ERROR: Could not find a version that satisfies the requirement ccxt==1.18.119 (from versions: 1.0.0, 1.0.1, 1.3.1, 1.4.1, 1.5.1, 1.6.1, 1.7.1, 1.8.1, 1.9.1, 1.10.1, 1.11.1, 1.12.1, 1.13.1, 1.14.1, 1.15.1, 1.16.1, 1.17.1, 1.18.1, 1.19.1, 1.20.1, 1.21.1, 1.22.1, 1.23.1, 1.24.1, 1.26.1, 1.27.1, 1.28.1, 1.29.1, 1.30.1, 1.31.1, 1.32.1, 1.33.1, 1.34.1, 1.35.1, 1.36.1, 1.37.1, 1.38.1, 1.39.1, 1.40.1, 1.40.2, 1.40.3, 1.40.4, 1.40.5, 1.40.6, 1.40.7, 1.40.8, 1.40.9, 1.41.1, 1.41.2, 1.41.3, 1.41.4, 1.41.5, 1.41.6, 1.41.7, 1.41.8, 1.41.9, 1.42.1, 1.42.2, 1.42.3, 1.42.4, 1.42.5, 1.42.6, 1.42.7, 1.42.8, 1.42.9, 1.43.1, 1.43.2, 1.43.4, 1.43.5, 1.43.6, 1.43.7, 1.43.8, 1.43.9, 1.44.1, 1.44.2, 1.44.3, 1.44.4, 1.44.5, 1.44.6, 1.44.7, 1.44.8, 1.44.9, 1.44.10, 1.44.11, 1.44.12, 1.44.13, 1.44.14, 1.44.15, 1.44.16, 1.44.17, 1.44.18, 1.44.19, 1.44.20, 1.44.21, 1.44.22, 1.44.23, 1.44.24, 1.44.25, 1.44.26, 1.44.27, 1.44.28, 1.44.29, 1.44.30, 1.44.31, 1.44.32, 1.44.33, 1.44.34, 1.44.35, 1.44.36, 1.44.37, 1.44.38, 1.44.39, 1.44.40, 1.44.41, 1.44.42, 1.44.43, 1.44.44, 1.44.45, 1.44.46, 1.44.47, 1.44.48, 1.44.49, 1.44.50, 1.44.51, 1.44.52, 1.44.53, 1.44.54, 1.44.55, 1.44.56, 1.44.57, 1.44.58, 1.44.59, 1.44.60, 1.44.61, 1.44.62, 1.44.63, 1.44.64, 1.44.65, 1.44.66, 1.44.67, 1.44.68, 1.44.69, 1.44.70, 1.44.71, 1.44.72, 1.44.73, 1.44.74, 1.44.75, 1.44.76, 1.44.77, 1.44.78, 1.44.79, 1.44.80, 1.44.81, 1.44.82, 1.44.83, 1.44.84, 1.44.85, 1.44.86, 1.44.87, 1.44.88, 1.44.89, 1.44.90, 1.44.91, 1.44.92, 1.44.93, 1.44.94, 1.44.95, 1.44.96, 1.44.97, 1.44.98, 1.44.99, 1.45.1, 1.45.2, 1.45.3, 1.45.4, 1.45.5, 1.45.6, 1.45.7, 1.45.8, 1.45.9, 1.45.10, 1.45.11, 1.45.12, 1.45.13, 1.45.14, 1.45.15, 1.45.16, 1.45.17, 1.45.18, 1.45.19, 1.45.20, 1.45.21, 1.45.22,

Binance Api key Signature not valid

2022-06-09 11:34:00,881 - freqtrade.rpc.rpc_manager - INFO - Sending rpc message: {'type': status, 'status': 'Searching for BTC pairs to buy and sell based on VolumePairList - top 100 volume pairs.'}
2022-06-09 11:34:01,186 - freqtrade.exchange - WARNING - get_tickers() returned exception: "Could not load tickers due to AuthenticationError. Message: binance {"code":-1022,"msg":"Signature for this request is not valid."}"
2022-06-09 11:34:01,186 - freqtrade.exchange - WARNING - retrying get_tickers() still for 3 times
2022-06-09 11:34:01,416 - freqtrade.exchange - WARNING - get_tickers() returned exception: "Could not load tickers due to AuthenticationError. Message: binance {"code":-1022,"msg":"Signature for this request is not valid."}"
2022-06-09 11:34:01,416 - freqtrade.exchange - WARNING - retrying get_tickers() still for 2 times
2022-06-09 11:34:01,654 - freqtrade.exchange - WARNING - get_tickers() returned exception: "Could not load tickers due to AuthenticationError. Message: binance {"code":-1022,"msg":"Signature for this request is not valid."}"
2022-06-09 11:34:01,654 - freqtrade.exchange - WARNING - retrying get_tickers() still for 1 times
2022-06-09 11:34:01,885 - freqtrade.exchange - WARNING - get_tickers() returned exception: "Could not load tickers due to AuthenticationError. Message: binance {"code":-1022,"msg":"Signature for this request is not valid."}"

Could anybody help with this issue?

Hyperopt - e 500 Flag not workoing

After running:

python3 ./trade/main.py -c config.json --customhyperopt BBRSIOPT hyperopt -e 500

with the hyperopt -e 500 flag the following error arises.

  return future.result(timeout=timeout)
File "/home/dt-nicholas/anaconda3/lib/python3.7/concurrent/futures/_base.py", line 432, in result
  return self.__get_result()
File "/home/dt-nicholas/anaconda3/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
  raise self._exception
joblib.externals.loky.process_executor.BrokenProcessPool: A task has failed to un-serialize. Please ensure that the arguments of the function are all picklable.

If I run without the flag as this:

python3 ./trade/main.py -c config.json --customhyperopt BBRSIOPT 

It runs fine.

Any ideas? I can't seem to find any solution that works.

HyperOpt : Strategy file and HyperOpt file

Hello Illyas,
thanks for the course,
I hope you are doing well and BA is keeping you on your toes.

Listen, based on your videos I was able to reproduce 2 files.
1)Strategy
2)HyperOpt
however I am having trouble running them,

I remember your recording stopped at the exact moment you were supposed to run the HyperOpt after creating it....

Do you still have these files, if so, could you upload them to your freqtrade fork for training purposes?

Thanks a lot in advance!
all the best

Plot dataframe error

Hello dear community,

python3 ./scripts/plot_dataframe.py -s BBRSI -p ADA/BTC

from this lection

results in

2019-11-04 10:10:58,778 - freqtrade.exchange - INFO - Using Exchange "Binance"
Traceback (most recent call last):
File "./scripts/plot_dataframe.py", line 381, in <module>
main(sys.argv[1:])
File "./scripts/plot_dataframe.py", line 376, in main
plot_parse_args(sysargv)
File "./scripts/plot_dataframe.py", line 158, in plot_analyzed_dataframe
trades = load_trades(args, pair, timerange)
File "./scripts/plot_dataframe.py", line 77, in load_trades
with file.open() as f:
File "/usr/lib/python3.6/pathlib.py", line 1183, in open
opener=self._opener)
File "/usr/lib/python3.6/pathlib.py", line 1037, in _opener
return self._accessor.open(self, flags, mode)
File "/usr/lib/python3.6/pathlib.py", line 387, in wrapped
return strfunc(str(pathobj), *args)
No such file or directory: 'user_data/backtest_data/backtest-result.json'

Does anybody experienced the same?

Kind regards

ImportError: cannot import name 'OperationalException'

Step 1: Have you search for this issue before posting it?

If you have discovered a bug in the bot, please search our issue tracker.
If it hasn't been reported, please create a new issue.

Step 2: Describe your environment

  • Python Version: Python 3.6.9 in my virtual machine___ (python -V)
  • CCXT version: 1.72.1___ (pip freeze | grep ccxt)
  • Branch: Master | Develop = Develop branch
  • Last Commit ID: _____ (git log --format="%H" -n 1)

Step 3: Describe the problem:

When I try to run "python3 ./freqtrade/main.py -c config.json" inside the virtual environment I get the following error.

Traceback (most recent call last):
File "./freqtrade/main.py", line 11, in
from freqtrade import OperationalException
ImportError: cannot import name 'OperationalException'

Explain the problem you have encountered

Steps to reproduce:

  1. _____open terminal
  2. _____cd freqtrade
  3. _____source .env/bin/activate
  4. _____ python3 ./freqtrade/main.py -c config.json

Observed Results:

  • What happened?
    The error below.
    Traceback (most recent call last):
    File "./freqtrade/main.py", line 11, in
    from freqtrade import OperationalException
    ImportError: cannot import name 'OperationalException'

  • What did you expect to happen?

  • I expected the freqtrade trading bot to run.

Relevant code exceptions or logs:

I will need help on this as I am very new to Linux as well as Python.

// paste your log here

As will need help with this.

I have tried to view the config.json file for any compatibility issues as well as the main.py however I am unable to see any issues there.

Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic

Using an older version of Ubuntu due to not been able to get freqtrade to run on the new version of Ubuntu.

use freqtrade as systemd service on vps

Step 1: Have you search for this issue before posting it?

yes.

Step 2: Describe your environment

  • Python Version: _____ 3.7.5
  • CCXT version: _____ (pip freeze | grep ccxt)
  • Branch: Develop
  • Last Commit ID: _____ f320c0a410e5832d4a3fc35647aa6fea6a958b

Step 3: Describe the problem:

i bought your new course and i followed all instruction to setup systemd and i got this problem. i tried to run this command /home/hstest/freqtrade/.env/bin/freqtrade trade -c /home/hstest/freqtrade/config.json --strategy SampleStrategy --userdir /home/hstest/freqtrade/
on /freqtrade/freqtrade command line but the error i can see all the time is failed to load Sample Strategy.

Kindly need help on this one.

Steps to reproduce:

Go to ~/freqtrade/freqtrade, and edit the file called main.py using nano:

nano main.py

#!/root/freqtrade/.env/bin/python3

"""
Main Freqtrade bot script.
Read the documentation to know what cli arguments you need.
"""

from freqtrade.exceptions import FreqtradeException, OperationalException
import sys

check min. python version

if sys.version_info < (3, 6):
sys.exit("Freqtrade requires Python version >= 3.6")

flake8: noqa E402

import logging
from typing import Any, List

from freqtrade.commands import Arguments

logger = logging.getLogger('freqtrade')

def main(sysargv: List[str] = None) -> None:
"""
This function will initiate the bot and start the trading loop.
:return: None
"""

...

Add the freqtrade systemd service using:

sudo systemctl edit --force --full freqtrade.service

Paste the following:

[Unit]
Description=Freqtrade Service
Wants=network.target
After=network.target

[Service]
ExecStartPre=/bin/sleep 10
ExecStart=/root/freqtrade/freqtrade/main.py trade -c /root/freqtrade/config.json --strategy DefaultStrategy --userdir /root/freqtrade/
Restart=always

[Install]
WantedBy=multi-user.target

Observed Results:

  • What happened?
  • What did you expect to happen?

Relevant code exceptions or logs:

// paste your log here

Getting crazy hyperopt results

I ran hyperopt for 5000 iterations and got the following results:

2022-01-10 19:38:31,370 - freqtrade.optimize.hyperopt - INFO - Best result:

  1101 trades. Avg profit  0.23%. Total profit  25.48064438 BTC (254.5519Σ%). Avg duration 888.1 mins.

with values:

{   'roi_p1': 0.011364434095803464,

    'roi_p2': 0.04123147845715937,

    'roi_p3': 0.10554480985209454,

    'roi_t1': 105,

    'roi_t2': 47,

    'roi_t3': 30,

    'rsi-enabled': True,

    'rsi-value': 9,

    'sell-rsi-enabled': True,

    'sell-rsi-value': 94,

    'sell-trigger': 'sell-bb_middle1',

    'stoploss': -0.42267640639979365,

    'trigger': 'bb_lower2'}

2022-01-10 19:38:31,371 - freqtrade.optimize.hyperopt - INFO - ROI table:

{   0: 0.15814072240505736,

    30: 0.05259591255296283,

    77: 0.011364434095803464,

    182: 0}

Result for strategy BBRSI

================================================== BACKTESTING REPORT =================================================

| pair      |   buy count |   avg profit % |   cum profit % |   total profit BTC | avg duration    |   profit |   loss |

|:----------|------------:|---------------:|---------------:|-------------------:|:----------------|---------:|-------:|

| ETH/BTC   |          11 |          -1.30 |         -14.26 |        -1.42732928 | 3 days, 4:55:00 |        0 |      1 |

| LUNA/BTC  |          17 |           0.60 |          10.22 |         1.02279906 | 15:46:00        |        9 |      0 |

| SAND/BTC  |          37 |           0.30 |          11.24 |         1.12513532 | 6:16:00         |       14 |      1 |

| MATIC/BTC |          24 |           0.47 |          11.35 |         1.13644340 | 12:20:00        |       10 |      0 |

| ADA/BTC   |          24 |           0.24 |           5.68 |         0.56822170 | 21:05:00        |        5 |      0 |

| BNB/BTC   |          11 |          -1.09 |         -11.96 |        -1.19716109 | 3 days, 0:44:00 |        2 |      1 |

| XRP/BTC   |          20 |          -0.39 |          -7.71 |        -0.77191523 | 1 day, 5:48:00  |        1 |      1 |

| DOT/BTC   |           9 |           0.50 |           4.54 |         0.45457736 | 4 days, 1:13:00 |        4 |      0 |

| SOL/BTC   |          19 |          -0.38 |          -7.16 |        -0.71688463 | 22:47:00        |        3 |      1 |

| MANA/BTC  |          29 |           0.38 |          11.16 |         1.11753320 | 10:25:00        |        9 |      1 |

| AVAX/BTC  |          27 |           0.30 |           8.15 |         0.81561432 | 16:36:00        |       11 |      1 |

| GALA/BTC  |          26 |          -0.52 |         -13.45 |        -1.34594702 | 15:48:00        |        9 |      1 |

| LINK/BTC  |          21 |           0.27 |           5.68 |         0.56822170 | 1 day, 0:06:00  |        5 |      0 |

| TOTAL     |         275 |           0.05 |          13.48 |         1.34930881 | 23:42:00        |       82 |      8 |

================================================== SELL REASON STATS ==================================================

| Sell Reason   |   Count |

|:--------------|--------:|

| roi           |     267 |

| force_sell    |       8 |

=============================================== LEFT OPEN TRADES REPORT ===============================================

| pair     |   buy count |   avg profit % |   cum profit % |   total profit BTC | avg duration      |   profit |   loss |

|:---------|------------:|---------------:|---------------:|-------------------:|:------------------|---------:|-------:|

| ETH/BTC  |           1 |         -14.26 |         -14.26 |        -1.42732928 | 32 days, 4:00:00  |        0 |      1 |

| SAND/BTC |           1 |          -4.65 |          -4.65 |        -0.46588544 | 17:00:00          |        0 |      1 |

| BNB/BTC  |           1 |         -14.23 |         -14.23 |        -1.42444977 | 31 days, 13:00:00 |        0 |      1 |

| XRP/BTC  |           1 |          -8.85 |          -8.85 |        -0.88555957 | 18 days, 4:00:00  |        0 |      1 |

| SOL/BTC  |           1 |         -10.57 |         -10.57 |        -1.05781765 | 5 days, 14:00:00  |        0 |      1 |

| MANA/BTC |           1 |          -3.17 |          -3.17 |        -0.31758065 | 17:00:00          |        0 |      1 |

| AVAX/BTC |           1 |         -12.58 |         -12.58 |        -1.25910300 | 7 days, 9:00:00   |        0 |      1 |

| GALA/BTC |           1 |         -23.66 |         -23.66 |        -2.36874608 | 7 days, 12:00:00  |        0 |      1 |

| TOTAL    |           8 |         -11.50 |         -91.97 |        -9.20647144 | 12 days, 23:15:00 |        0 |      8 |

Have accurately followed the tutorial. Don't know what I am doing wrong here.

Please Help me

Hi

What should I do for below error?

(.env) defno@defno-VB:~/freqtrade$ pip3 install -r requirements.txt
ERROR: Double requirement given: python-rapidjson==0.6.3 (from -r requirements.txt (line 27)) (already in python-rapidjson (from -r requirements.txt (line 18)), name='python-rapidjson')

TypeError: reduce() of empty sequence with no initial value

Hello community,

if you got this error TypeError: reduce() of empty sequence with no initial value

Here is the workaround:

  1. Go to your custom hyperopt file, in this case BBRSIOPT.py

  2. Change

dataframe.loc[
    reduce(lambda x, y: x & y, conditions),
    'buy'] = 1

in

if conditions:
    dataframe.loc[
        reduce(lambda x, y: x & y, conditions),
        'buy'] = 1

It should work now.

Found here, and here, and also here

ModuleNotFoundError

// paste your log here

hi sorry the bot gives me an error
Error : Traceback (most recent call last):
File "./freqtrade/main.py", line 11, in
from freqtrade import OperationalException
ModuleNotFoundError: No module named 'freqtrade'

Windows installation `pip install -e .` error

I'm running on windows and python version 3.8

I'm running into difficulties downloading the bot on windows.
I got through all of the installation steps for windows here:

>cd \path\freqtrade-develop
>python -m venv .env
>.env\Scripts\activate.bat
REM optionally install ta-lib from wheel
REM >pip install TA_Lib‑0.4.17‑cp36‑cp36m‑win32.whl
>pip install -r requirements.txt
>pip install -e .
>freqtrade

but i get an error at pip install -e .

error log:

(.env) C:\Users\rlpiq\freqtrade>pip install -e .
Obtaining file:///C:/Users/rlpiq/freqtrade
Collecting ccxt
Using cached https://files.pythonhosted.org/packages/42/9f/5f2a36ffbced7a2f76d37fc705f7912e3e4176605b66701904f9b76d34d9/ccxt-1.19.44-py2.py3-none-any.whl
Collecting SQLAlchemy
Using cached https://files.pythonhosted.org/packages/34/5c/0e1d7ad0ca52544bb12f9cb8d5cc454af45821c92160ffedd38db0a317f6/SQLAlchemy-1.3.11.tar.gz
Collecting python-telegram-bot
Using cached https://files.pythonhosted.org/packages/26/aa/82dfedea526128a55429527ca5e43c023846e00cc3df30c8dbfebe94bbb2/python_telegram_bot-12.2.0-py2.py3-none-any.whl
Collecting arrow
Using cached https://files.pythonhosted.org/packages/a1/39/a8e116084cf4160f0821ca9bb84ec312ccca84caa2b2bffb70d95d47f91f/arrow-0.15.4-py2.py3-none-any.whl
Collecting requests
Using cached https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl
Collecting urllib3
Using cached https://files.pythonhosted.org/packages/b4/40/a9837291310ee1ccc242ceb6ebfd9eb21539649f193a7c8c86ba15b98539/urllib3-1.25.7-py2.py3-none-any.whl
Collecting wrapt
Using cached https://files.pythonhosted.org/packages/23/84/323c2415280bc4fc880ac5050dddfb3c8062c2552b34c2e512eb4aa68f79/wrapt-1.11.2.tar.gz
Collecting pandas
Using cached https://files.pythonhosted.org/packages/78/b9/a304328ea14cd172a5cf681b634b99e24a5b4e24de83204b713b088f02d5/pandas-0.25.3-cp38-cp38-win32.whl
Collecting scikit-learn
Using cached https://files.pythonhosted.org/packages/1e/ce/9d8c88e68af0a5b5c5d78d8d2b7bcadfd45e1d6afc863ccb9aee30765b06/scikit-learn-0.21.3.tar.gz
Requirement already satisfied: scipy in c:\users\rlpiq\freqtrade\.env\lib\site-packages (from freqtrade==0.17.3) (1.3.2)
Collecting joblib
Using cached https://files.pythonhosted.org/packages/8f/42/155696f85f344c066e17af287359c9786b436b1bf86029bb3411283274f3/joblib-0.14.0-py2.py3-none-any.whl
Collecting jsonschema
Using cached https://files.pythonhosted.org/packages/ce/6c/888d7c3c1fce3974c88a01a6bc553528c99d3586e098eee23e8383dd11c3/jsonschema-3.1.1-py2.py3-none-any.whl
Requirement already satisfied: TA-Lib in c:\users\rlpiq\freqtrade\.env\lib\site-packages (from freqtrade==0.17.3) (0.4.17)
Collecting tabulate
Using cached https://files.pythonhosted.org/packages/66/d4/977fdd5186b7cdbb7c43a7aac7c5e4e0337a84cb802e154616f3cfc84563/tabulate-0.8.5.tar.gz
Collecting cachetools
Using cached https://files.pythonhosted.org/packages/2f/a6/30b0a0bef12283e83e58c1d6e7b5aabc7acfc4110df81a4471655d33e704/cachetools-3.1.1-py2.py3-none-any.whl
Collecting coinmarketcap
Using cached https://files.pythonhosted.org/packages/a8/da/c64662a91905017f237f5ff2778b68638946b0d6268513efadd4d1363669/coinmarketcap-5.0.3.tar.gz
Collecting scikit-optimize
Using cached https://files.pythonhosted.org/packages/f4/44/60f82c97d1caa98752c7da2c1681cab5c7a390a0fdd3a55fac672b321cac/scikit_optimize-0.5.2-py2.py3-none-any.whl
Collecting python-rapidjson
Using cached https://files.pythonhosted.org/packages/42/62/f5a21f199a6c31d52cb97e6c79ebcd77a35ec44a4ccfb10d14c64fdf23d8/python_rapidjson-0.9.1-cp38-cp38-win32.whl
Collecting py_find_1st
Using cached https://files.pythonhosted.org/packages/25/e1/5e274480390df4d2d5b2d46a72ee1abba8de8e883c6f1b32f0c68652880c/py_find_1st-1.1.4.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... done
  Preparing wheel metadata ... done
Requirement already satisfied: setuptools>=38.5.1 in c:\users\rlpiq\freqtrade\.env\lib\site-packages (from ccxt->freqtrade==0.17.3) (41.2.0)
Collecting certifi>=2018.1.18
Using cached https://files.pythonhosted.org/packages/18/b0/8146a4f8dd402f60744fa380bc73ca47303cccf8b9190fd16a827281eac2/certifi-2019.9.11-py2.py3-none-any.whl
Collecting yarl==1.1.0; python_version >= "3.5.2"
Using cached https://files.pythonhosted.org/packages/a3/08/05b2d731ef5163b3bcb993f569c4d2b303642f7ee3cbdea373f59e4bd42a/yarl-1.1.0.tar.gz
Collecting aiohttp==3.6.2; python_version >= "3.5.2"
Using cached https://files.pythonhosted.org/packages/c2/f7/f0ad3dbace4762fef5d80aa4124b41bf218e4c4dd6d387a86cede707d9a4/aiohttp-3.6.2-py3-none-any.whl
Collecting aiodns==1.1.1; python_version >= "3.5.2"
Using cached https://files.pythonhosted.org/packages/bd/f5/b69cb930fd5ab0569396659afe3f3c0d37d4098e5d0ba6afdf6fd9388cb0/aiodns-1.1.1-py2.py3-none-any.whl
Collecting cryptography>=2.6.1
Using cached https://files.pythonhosted.org/packages/74/e1/6e360b4dbd2a63c1f506402bfa6fa56aa5826337830d8ee86e5e2ec9457b/cryptography-2.8-cp38-cp38-win32.whl
Collecting future>=0.16.0
Using cached https://files.pythonhosted.org/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz
Collecting tornado>=5.1
Using cached https://files.pythonhosted.org/packages/30/78/2d2823598496127b21423baffaa186b668f73cd91887fcef78b6eade136b/tornado-6.0.3.tar.gz
Collecting python-dateutil
Using cached https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2
Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting idna<2.9,>=2.5
Using cached https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl
Requirement already satisfied: numpy>=1.13.3 in c:\users\rlpiq\freqtrade\.env\lib\site-packages (from pandas->freqtrade==0.17.3) (1.17.4)
Collecting pytz>=2017.2
Using cached https://files.pythonhosted.org/packages/e7/f9/f0b53f88060247251bf481fa6ea62cd0d25bf1b11a87888e53ce5b7c8ad2/pytz-2019.3-py2.py3-none-any.whl
Collecting importlib-metadata
Using cached https://files.pythonhosted.org/packages/f6/d2/40b3fa882147719744e6aa50ac39cf7a22a913cbcba86a0371176c425a3b/importlib_metadata-0.23-py2.py3-none-any.whl
Collecting pyrsistent>=0.14.0
Using cached https://files.pythonhosted.org/packages/30/86/53a88c0a57698fa228db29a4000c28f4124823010388cb7042fe6e2be8dd/pyrsistent-0.15.5.tar.gz
Collecting six>=1.11.0
Using cached https://files.pythonhosted.org/packages/65/26/32b8464df2a97e6dd1b656ed26b2c194606c16fe163c695a992b36c11cdf/six-1.13.0-py2.py3-none-any.whl
Collecting attrs>=17.4.0
Using cached https://files.pythonhosted.org/packages/a2/db/4313ab3be961f7a763066401fb77f7748373b6094076ae2bda2806988af6/attrs-19.3.0-py2.py3-none-any.whl
Collecting requests_cache>=0.4.13
Using cached https://files.pythonhosted.org/packages/7f/55/9b1c40eb83c16d8fc79c5f6c2ffade04208b080670fbfc35e0a5effb5a92/requests_cache-0.5.2-py2.py3-none-any.whl
Collecting multidict>=4.0
Downloading https://files.pythonhosted.org/packages/7f/8f/b3c8c5b062309e854ce5b726fc101195fbaa881d306ffa5c2ba19efa3af2/multidict-4.5.2.tar.gz (105kB)
   |████████████████████████████████| 112kB 656kB/s
Collecting async-timeout<4.0,>=3.0
Downloading https://files.pythonhosted.org/packages/e1/1e/5a4441be21b0726c4464f3f23c8b19628372f606755a9d2e46c187e65ec4/async_timeout-3.0.1-py3-none-any.whl
Collecting pycares>=1.0.0
Using cached https://files.pythonhosted.org/packages/85/de/cd46a73e43e206a6ad1e9cf9cc893c3ed1b21caf57f1e0a8d9a119d290eb/pycares-3.0.0.tar.gz
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\rlpiq\freqtrade\.env\scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\rlpiq\\AppData\\Local\\Temp\\pip-install-orj2lfvb\\pycares\\setup.py'"'"'; __file__='"'"'C:\\Users\\rlpiq\\AppData\\Local\\Temp\\pip-install-orj2lfvb\\pycares\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\rlpiq\AppData\Local\Temp\pip-install-orj2lfvb\pycares\pip-egg-info'
       cwd: C:\Users\rlpiq\AppData\Local\Temp\pip-install-orj2lfvb\pycares\
  Complete output (108 lines):
  b'\\\x00I\x00n\x00t\x00e\x00l\x00\\\x00I\x00n\x00t\x00e\x00l\x00(\x00R\x00)\x00 \x00w\x00a\x00s\x00 \x00u\x00n\x00e\x00x\x00p\x00e\x00c\x00t\x00e\x00d\x00 \x00a\x00t\x00 \x00t\x00h\x00i\x00s\x00 \x00t\x00i\x00m\x00e\x00.\x00\r\x00\n\x00'
  Traceback (most recent call last):
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\msvc.py", line 489, in _find_latest_available_vc_ver
      return self.find_available_vc_vers()[-1]
  IndexError: list index out of range

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\sandbox.py", line 154, in save_modules
      yield saved
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\sandbox.py", line 195, in setup_context
      yield
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\sandbox.py", line 250, in run_setup
      _execfile(setup_script, ns)
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\sandbox.py", line 45, in _execfile
      exec(code, globals, locals)
    File "C:\Users\rlpiq\AppData\Local\Temp\easy_install-0wy4r5md\cffi-1.13.2\setup.py", line 127, in <module>
    File "C:\Users\rlpiq\AppData\Local\Temp\easy_install-0wy4r5md\cffi-1.13.2\setup.py", line 105, in uses_msvc
    File "C:\Users\rlpiq\AppData\Local\Programs\Python\Python38-32\lib\distutils\command\config.py", line 225, in try_compile
      self._compile(body, headers, include_dirs, lang)
    File "C:\Users\rlpiq\AppData\Local\Programs\Python\Python38-32\lib\distutils\command\config.py", line 132, in _compile
      self.compiler.compile([src], include_dirs=include_dirs)
    File "C:\Users\rlpiq\AppData\Local\Programs\Python\Python38-32\lib\distutils\_msvccompiler.py", line 360, in compile
      self.initialize()
    File "C:\Users\rlpiq\AppData\Local\Programs\Python\Python38-32\lib\distutils\_msvccompiler.py", line 253, in initialize
      vc_env = _get_vc_env(plat_spec)
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\msvc.py", line 185, in msvc14_get_vc_env
      return EnvironmentInfo(plat_spec, vc_min_ver=14.0).return_env()
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\msvc.py", line 843, in __init__
      self.si = SystemInfo(self.ri, vc_ver)
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\msvc.py", line 485, in __init__
      self.vc_ver = vc_ver or self._find_latest_available_vc_ver()
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\msvc.py", line 492, in _find_latest_available_vc_ver
      raise distutils.errors.DistutilsPlatformError(err)
  distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "C:\Users\rlpiq\AppData\Local\Temp\pip-install-orj2lfvb\pycares\setup.py", line 15, in <module>
      setup(name             = 'pycares',
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\__init__.py", line 144, in setup
      _install_setup_requires(attrs)
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\__init__.py", line 139, in _install_setup_requires
      dist.fetch_build_eggs(dist.setup_requires)
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\dist.py", line 716, in fetch_build_eggs
      resolved_dists = pkg_resources.working_set.resolve(
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\pkg_resources\__init__.py", line 780, in resolve
      dist = best[req.key] = env.best_match(
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\pkg_resources\__init__.py", line 1065, in best_match
      return self.obtain(req, installer)
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\pkg_resources\__init__.py", line 1077, in obtain
      return installer(requirement)
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\dist.py", line 786, in fetch_build_egg
      return cmd.easy_install(req)
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\command\easy_install.py", line 679, in easy_install
      return self.install_item(spec, dist.location, tmpdir, deps)
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\command\easy_install.py", line 705, in install_item
      dists = self.install_eggs(spec, download, tmpdir)
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\command\easy_install.py", line 890, in install_eggs
      return self.build_and_install(setup_script, setup_base)
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\command\easy_install.py", line 1158, in build_and_install
      self.run_setup(setup_script, setup_base, args)
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\command\easy_install.py", line 1144, in run_setup
      run_setup(setup_script, args)
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\sandbox.py", line 253, in run_setup
      raise
    File "C:\Users\rlpiq\AppData\Local\Programs\Python\Python38-32\lib\contextlib.py", line 131, in __exit__
      self.gen.throw(type, value, traceback)
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\sandbox.py", line 195, in setup_context
      yield
    File "C:\Users\rlpiq\AppData\Local\Programs\Python\Python38-32\lib\contextlib.py", line 131, in __exit__
      self.gen.throw(type, value, traceback)
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\sandbox.py", line 166, in save_modules
      saved_exc.resume()
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\sandbox.py", line 141, in resume
      six.reraise(type, exc, self._tb)
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\_vendor\six.py", line 685, in reraise
      raise value.with_traceback(tb)
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\sandbox.py", line 154, in save_modules
      yield saved
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\sandbox.py", line 195, in setup_context
      yield
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\sandbox.py", line 250, in run_setup
      _execfile(setup_script, ns)
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\sandbox.py", line 45, in _execfile
      exec(code, globals, locals)
    File "C:\Users\rlpiq\AppData\Local\Temp\easy_install-0wy4r5md\cffi-1.13.2\setup.py", line 127, in <module>
    File "C:\Users\rlpiq\AppData\Local\Temp\easy_install-0wy4r5md\cffi-1.13.2\setup.py", line 105, in uses_msvc
    File "C:\Users\rlpiq\AppData\Local\Programs\Python\Python38-32\lib\distutils\command\config.py", line 225, in try_compile
      self._compile(body, headers, include_dirs, lang)
    File "C:\Users\rlpiq\AppData\Local\Programs\Python\Python38-32\lib\distutils\command\config.py", line 132, in _compile
      self.compiler.compile([src], include_dirs=include_dirs)
    File "C:\Users\rlpiq\AppData\Local\Programs\Python\Python38-32\lib\distutils\_msvccompiler.py", line 360, in compile
      self.initialize()
    File "C:\Users\rlpiq\AppData\Local\Programs\Python\Python38-32\lib\distutils\_msvccompiler.py", line 253, in initialize
      vc_env = _get_vc_env(plat_spec)
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\msvc.py", line 185, in msvc14_get_vc_env
      return EnvironmentInfo(plat_spec, vc_min_ver=14.0).return_env()
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\msvc.py", line 843, in __init__
      self.si = SystemInfo(self.ri, vc_ver)
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\msvc.py", line 485, in __init__
      self.vc_ver = vc_ver or self._find_latest_available_vc_ver()
    File "c:\users\rlpiq\freqtrade\.env\lib\site-packages\setuptools\msvc.py", line 492, in _find_latest_available_vc_ver
      raise distutils.errors.DistutilsPlatformError(err)
  distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
  ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

(.env) C:\Users\rlpiq\freqtrade>

it works halfway then stops when its installing pycares? Im really lost and been working on this for a while. :(

error while running main.py

2022-02-26 03:13:13,123 - freqtrade - ERROR - Fatal exception!
Traceback (most recent call last):
File "./freqtrade/main.py", line 49, in main
state = freqtrade.worker(old_state=state)
File "/home/mtg/freqtrade/freqtrade/freqtradebot.py", line 122, in worker
min_secs=min_secs)
File "/home/mtg/freqtrade/freqtrade/freqtradebot.py", line 134, in _throttle
result = func(*args, **kwargs)
File "/home/mtg/freqtrade/freqtrade/freqtradebot.py", line 170, in _process
self.exchange.refresh_tickers(self.active_pair_whitelist, self.strategy.ticker_interval)
File "/home/mtg/freqtrade/freqtrade/exchange/init.py", line 536, in refresh_tickers
self.async_get_candles_history(pair_list, ticker_interval))
File "/usr/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
return future.result()
File "/home/mtg/freqtrade/freqtrade/exchange/init.py", line 548, in async_get_candles_history
arrow.utcnow().timestamp and pair in self._klines):
TypeError: '>=' not supported between instances of 'int' and 'method'

can anyone suggest how to resolve this error

questions about sharpe ratio

This repo uses a wildly outdated version of freqtrade (more than 1000 commits/improvements behind) - and i think users should be warned about this fact.

I would appreciate if you could contribute your improvements back upstream instead of maintaining a outdated Version of freqtrade, which might lead to people loosing money and blaming it on us since it contains bugs which have long been fixed.

TypeError

Traceback (most recent call last):
File "./freqtrade/main.py", line 48, in main
state = freqtrade.worker(old_state=state)
File "/root/freqtrade/freqtrade/freqtradebot.py", line 122, in worker
min_secs=min_secs)
File "/root/freqtrade/freqtrade/freqtradebot.py", line 134, in _throttle
result = func(*args, **kwargs)
File "/root/freqtrade/freqtrade/freqtradebot.py", line 170, in _process
self.exchange.refresh_tickers(self.active_pair_whitelist, self.strategy.ticker_interval)
File "/root/freqtrade/freqtrade/exchange/init.py", line 536, in refresh_tickers
self.async_get_candles_history(pair_list, ticker_interval))
File "/usr/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
return future.result()
File "/root/freqtrade/freqtrade/exchange/init.py", line 548, in async_get_candles_history
arrow.utcnow().timestamp and pair in self._klines):
TypeError: '>=' not supported between instances of 'int' and 'method'

Could anybody help with this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.