kandi background
Explore Kits

freqtrade | Free, open source crypto trading bot | Cryptocurrency library

 by   freqtrade Python Version: 2022.3 License: GPL-3.0

 by   freqtrade Python Version: 2022.3 License: GPL-3.0

Download this library from

kandi X-RAY | freqtrade Summary

freqtrade is a Python library typically used in Financial Services, Fintech, Blockchain, Cryptocurrency, Bitcoin applications. freqtrade has no vulnerabilities, it has build file available, it has a Strong Copyleft License and it has medium support. However freqtrade has 6 bugs. You can install using 'pip install freqtrade' or download it from GitHub, PyPI.
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 or webUI. It contains backtesting, plotting and money management tools as well as strategy optimization by machine learning.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • freqtrade has a medium active ecosystem.
  • It has 17102 star(s) with 3653 fork(s). There are 562 watchers for this library.
  • There were 4 major release(s) in the last 6 months.
  • There are 46 open issues and 2814 have been closed. On average issues are closed in 2 days. There are 24 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of freqtrade is 2022.3
freqtrade Support
Best in #Cryptocurrency
Average in #Cryptocurrency
freqtrade Support
Best in #Cryptocurrency
Average in #Cryptocurrency

quality kandi Quality

  • freqtrade has 6 bugs (0 blocker, 0 critical, 6 major, 0 minor) and 317 code smells.
freqtrade Quality
Best in #Cryptocurrency
Average in #Cryptocurrency
freqtrade Quality
Best in #Cryptocurrency
Average in #Cryptocurrency

securitySecurity

  • freqtrade has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • freqtrade code analysis shows 0 unresolved vulnerabilities.
  • There are 53 security hotspots that need review.
freqtrade Security
Best in #Cryptocurrency
Average in #Cryptocurrency
freqtrade Security
Best in #Cryptocurrency
Average in #Cryptocurrency

license License

  • freqtrade is licensed under the GPL-3.0 License. This license is Strong Copyleft.
  • Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.
freqtrade License
Best in #Cryptocurrency
Average in #Cryptocurrency
freqtrade License
Best in #Cryptocurrency
Average in #Cryptocurrency

buildReuse

  • freqtrade releases are available to install and integrate.
  • Deployable package is available in PyPI.
  • Build file is available. You can build the component from source.
  • Installation instructions, examples and code snippets are available.
  • freqtrade saves you 17712 person hours of effort in developing the same functionality from scratch.
  • It has 35098 lines of code, 1918 functions and 184 files.
  • It has high code complexity. Code complexity directly impacts maintainability of the code.
freqtrade Reuse
Best in #Cryptocurrency
Average in #Cryptocurrency
freqtrade Reuse
Best in #Cryptocurrency
Average in #Cryptocurrency
Top functions reviewed by kandi - BETA

kandi has reviewed freqtrade and discovered the below as its top functions. This is intended to give you an instant insight into freqtrade implemented functionality, and help decide if they suit your requirements.

  • Build subcommands .
  • Add options to config .
  • Ask user for configuration .
  • Generate strategy metrics .
  • Execute an entry .
  • Migrate trades and orders and orders .
  • Add metrics to text table .
  • Calculates statistics for the trade .
  • Calculate the fee based on pair of pairs .
  • Format results table .

freqtrade Key Features

[x] Based on Python 3.8+: For botting on any operating system - Windows, macOS and Linux.

[x] Persistence: Persistence is achieved through sqlite.

[x] Dry-run: Run the bot without paying money.

[x] Backtesting: Run a simulation of your buy/sell strategy.

[x] Strategy Optimization by machine learning: Use machine learning to optimize your buy/sell strategy parameters with real exchange data.

[x] 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.

[x] Whitelist crypto-currencies: Select which crypto-currency you want to trade or use dynamic whitelists.

[x] Blacklist crypto-currencies: Select which crypto-currency you want to avoid.

[x] Builtin WebUI: Builtin web UI to manage your bot.

[x] Manageable via Telegram: Manage the bot with Telegram.

[x] Display profit/loss in fiat: Display your profit/loss in fiat currency.

[x] Performance status report: Provide a performance status of your current trades.

Bot commands

copy iconCopydownload iconDownload
usage: freqtrade [-h] [-V]
                 {trade,create-userdir,new-config,new-strategy,download-data,convert-data,convert-trade-data,list-data,backtesting,edge,hyperopt,hyperopt-list,hyperopt-show,list-exchanges,list-hyperopts,list-markets,list-pairs,list-strategies,list-timeframes,show-trades,test-pairlist,install-ui,plot-dataframe,plot-profit,webserver}
                 ...

Free, open source crypto trading bot

positional arguments:
  {trade,create-userdir,new-config,new-strategy,download-data,convert-data,convert-trade-data,list-data,backtesting,edge,hyperopt,hyperopt-list,hyperopt-show,list-exchanges,list-hyperopts,list-markets,list-pairs,list-strategies,list-timeframes,show-trades,test-pairlist,install-ui,plot-dataframe,plot-profit,webserver}
    trade               Trade module.
    create-userdir      Create user-data directory.
    new-config          Create new config
    new-strategy        Create new strategy
    download-data       Download backtesting data.
    convert-data        Convert candle (OHLCV) data from one format to
                        another.
    convert-trade-data  Convert trade data from one format to another.
    list-data           List downloaded data.
    backtesting         Backtesting module.
    edge                Edge module.
    hyperopt            Hyperopt module.
    hyperopt-list       List Hyperopt results
    hyperopt-show       Show details of Hyperopt results
    list-exchanges      Print available exchanges.
    list-hyperopts      Print available hyperopt classes.
    list-markets        Print markets on exchange.
    list-pairs          Print pairs on exchange.
    list-strategies     Print available strategies.
    list-timeframes     Print available timeframes for the exchange.
    show-trades         Show trades.
    test-pairlist       Test your pairlist configuration.
    install-ui          Install FreqUI
    plot-dataframe      Plot candles with indicators.
    plot-profit         Generate plot showing profits.
    webserver           Webserver module.

optional arguments:
  -h, --help            show this help message and exit
  -V, --version         show program's version number and exit

How to make a Dockerfile and run it for multiple Python files?

copy iconCopydownload iconDownload
FROM python:3.8

RUN pip install numpy 
RUN pip install python-binance
RUN pip install pandas
RUN pip install backtrader
RUN pip install matplotlib
RUN pip install websocket_client

# TA-Lib
RUN wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz && \
  tar -xvzf ta-lib-0.4.0-src.tar.gz && \
  cd ta-lib/ && \
  ./configure --prefix=/usr && \
  make && \
  make install

RUN rm -R ta-lib ta-lib-0.4.0-src.tar.gz
RUN pip install freqtrade

COPY trader1.py ./

Locate files written by a python script in a container that is not running anymore

copy iconCopydownload iconDownload
docker ps -a
docker cp CONTAINER_ID:absolute/path/to/file ./host/target/path
docker run -v "$(pwd)"/relative/host_dir:/absolute/container_dir my_image
-----------------------
docker ps -a
docker cp CONTAINER_ID:absolute/path/to/file ./host/target/path
docker run -v "$(pwd)"/relative/host_dir:/absolute/container_dir my_image
-----------------------
docker ps -a
docker cp CONTAINER_ID:absolute/path/to/file ./host/target/path
docker run -v "$(pwd)"/relative/host_dir:/absolute/container_dir my_image

ValueError: Length of values (1) does not match length of index index (12797) - Indexes are the same length

copy iconCopydownload iconDownload
dataframe.loc[:, 'st_12'] = st12['ST']

how to do string formatting in python for this specific example

copy iconCopydownload iconDownload
pair = ['BTC/USD', 'ETH/BTC', 'ABC/DEF']
time_from = 20200101
time_to = 20200120

message = "'" + "' '".join(pair) + "'"

cmd = "freqtrade download-data -d /home/datarepo -p %pair% -t 1h --timerange '%time_to%-%time_from%' --exchange bittrex -vv"

cmd = cmd.replace('%pair%', message).replace('%time_to%', str(time_to)).replace('%time_from%', str(time_from))

print(cmd)
# "freqtrade download-data -d /home/datarepo -p 'BTC/USD' 'ETH/BTC' 'ABC/DEF' -t 1h --timerange '20200120-20200101' --exchange bittrex -vv"

Community Discussions

Trending Discussions on freqtrade
  • How to make a Dockerfile and run it for multiple Python files?
  • Locate files written by a python script in a container that is not running anymore
  • ValueError: Length of values (1) does not match length of index index (12797) - Indexes are the same length
  • how to do string formatting in python for this specific example
Trending Discussions on freqtrade

QUESTION

How to make a Dockerfile and run it for multiple Python files?

Asked 2022-Jan-23 at 18:40

So, I'm new to Docker. I want to use Ta-Lib and freqtrade libraries for a bot I want to build. The problem is that I don't want to build the Dockerfile over and over again. I have been copying my python code in the Dockerfile as shown below but as soon as I change the python code, I have to rebuild the Dockerfile because I changed the copied python script. Each build takes over 10 minutes to complete and this makes my life very difficult to test the bot. Is there a way that I build the Dockerfile with all the dependencies and requirements first and then simply run my script using the image made? So that I don't have to rebuild the entire thing just after adding one line of code? The Dockerfile is as shown below

FROM python:3.8

COPY trader1.py ./

RUN pip install numpy 
RUN pip install python-binance
RUN pip install pandas
RUN pip install backtrader
RUN pip install matplotlib
RUN pip install websocket_client

# TA-Lib
RUN wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz && \
  tar -xvzf ta-lib-0.4.0-src.tar.gz && \
  cd ta-lib/ && \
  ./configure --prefix=/usr && \
  make && \
  make install

RUN rm -R ta-lib ta-lib-0.4.0-src.tar.gz
RUN pip install freqtrade

Thank you in advance!

ANSWER

Answered 2022-Jan-23 at 18:20

First, you should copy your python file as late as possible.

FROM python:3.8

RUN pip install numpy 
RUN pip install python-binance
RUN pip install pandas
RUN pip install backtrader
RUN pip install matplotlib
RUN pip install websocket_client

# TA-Lib
RUN wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz && \
  tar -xvzf ta-lib-0.4.0-src.tar.gz && \
  cd ta-lib/ && \
  ./configure --prefix=/usr && \
  make && \
  make install

RUN rm -R ta-lib ta-lib-0.4.0-src.tar.gz
RUN pip install freqtrade

COPY trader1.py ./

The docker containers are layered, every line is one layer, when recreating a container, docker rebuild the container only from the changing layer.

Second, you could create a volume
If you use docker-compose, you could create a volume in your current folder, or subfolder, in order to have your file automatically synced with your host. (then you don't need the COPY)

Source https://stackoverflow.com/questions/70825144

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install freqtrade

Please refer to the Docker Quickstart documentation on how to get started quickly. For further (native) installation methods, please refer to the Installation documentation page.

Support

Please read the exchange specific notes to learn about eventual, special configurations needed for each exchange.

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Share this Page

share link
Consider Popular Cryptocurrency Libraries
Try Top Libraries by freqtrade
Compare Cryptocurrency Libraries with Highest Support
Compare Cryptocurrency Libraries with Highest Quality
Compare Cryptocurrency Libraries with Highest Security
Compare Cryptocurrency Libraries with Highest Reuse
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.