Python Crypto Bot

Overview

Docker Tests

Python Crypto Bot v4.0.3 (pycryptobot)

Join our chat on Telegram

https://t.me/joinchat/09hYKfelbRY2MDNk

Supporting The Project

I get paid to write on Medium. Readers following me, applauding and commenting on my articles, all helps with my earnings. I provided this bot to all of you for free and actively developing it. One way you can support my efforts is to follow me on Medium and read my articles. The Medium subscription is $5 a month (roughly £3) so basically nothing in terms of the value you are getting from the bot. Your efforts here would be greatly appreciated!

Follow me on Medium for updates!

https://whittle.medium.com

Python Crypto Bot (PyCryptoBot)

https://medium.com/coinmonks/python-crypto-bot-pycryptobot-b54f4b3dbb75

What’s new in PyCryptoBot 2?

https://medium.com/coinmonks/whats-new-in-pycryptobot-2-a4bbb1b0c90e

PyCryptoBot with Telegram

https://medium.com/coinmonks/pycryptobot-with-telegram-83eed5f230c2

PyCryptoBot Results and Config

https://medium.com/coinmonks/pycryptobot-results-and-config-57fb6625a6d9

Coinbase Pro Portfolio Tracker

https://medium.com/coinmonks/coinbase-pro-portfolio-tracker-a6e4a1c6b8f8

TradingView.com Charts

https://levelup.gitconnected.com/tradingview-com-charts-36a49c9f77ea

Optional Add-on

Coinbase Pro Portfolio Tracker

https://github.com/whittlem/coinbaseprotracker

An all-in-one view of all your Coinbase Pro portfolios. Highly recommended if running multiple bots and keeping track of their progress.

Prerequisites

  • When running in containers: a working docker/podman installation

  • Python 3.9.x installed -- https://installpython3.com (must be Python 3.9 or greater)

    % python3 --version

    Python 3.9.1

  • Python 3 PIP installed -- https://pip.pypa.io/en/stable/installing

    % python3 -m pip --version

    pip 21.0.1 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)

Installation

Manual

% git clone https://github.com/whittlem/pycryptobot
% cd pycryptobot
% python3 -m pip install -r requirements.txt

Container

Install Docker Desktop
https://docs.docker.com/desktop

From Github image repo

% docker pull ghcr.io/whittlem/pycryptobot/pycryptobot:latest
latest: Pulling from whittlem/pycryptobot/pycryptobot
8f403cb21126: Pull complete
65c0f2178ac8: Pull complete
1091bd628216: Pull complete
cb1eb04426a4: Pull complete
ec065b94ad1c: Pull complete
Digest: sha256:031fd6c7b7b2d08a743127e5850bc3d9c97a46e02ed0878f4445012eaf0619d3
Status: Downloaded newer image for ghcr.io/whittlem/pycryptobot/pycryptobot:latest
ghcr.io/whittlem/pycryptobot/pycryptobot:latest

Local repo

% docker build -t pycryptobot .

Additional Information

The "requirements.txt" was created with python3 -m pip freeze

Run it

Manual

% python3 pycryptobot.py 
   

   

Docker (Option 1)

Example Local Absolute Path: /home/example/config.json
Example Market: BTC-GBP

Daemon:
% docker run --name BTC-GBP -v /home/example/config.json:/app/config.json -d ghcr.io/whittlem/pycryptobot/pycryptobot:latest 
   
    

Example:
% docker run --name BTC-GBP -v /Users/whittlem/Documents/Repos/Docker/config.json:/app/config.json -d ghcr.io/whittlem/pycryptobot/pycryptobot:latest --live 0
e491ae4fdba28aa9e74802895adf5e856006c3c63cf854c657482a6562a1e15

Interactive:
% docker run --name BTC-GBP -v /home/example/config.json:/app/config.json -it ghcr.io/whittlem/pycryptobot/pycryptobot:latest 
    
     

List Processes:
% docker ps

Example:
% docker ps
CONTAINER ID   IMAGE                                             COMMAND                  CREATED          STATUS          PORTS     NAMES
e491ae4fdba2   ghcr.io/whittlem/pycryptobot/pycryptobot:latest   "python3 pycryptobot…"   46 seconds ago   Up 44 seconds             BTC-GBP

Container Shell:
% docker exec -it BTC-GBP /bin/bash
[[email protected] app]#

Build your own image (if necessary):
docker build -t pycryptobot_BTC-GBP .

Running the docker image:
docker run -d --rm --name pycryptobot_BTC-GBP_container pycryptobot_BTC-GBP

    
   

Typically I would save all my settings in the config.json but running from the command line I would usually run it like this.

% python3 pycryptobot.py --market BTC-GBP --granularity 3600 --live 1 --verbose 0 --selllowerpcnt -2

docker-compose (Option 2)

To run using the config.json in template folder,

% docker-compose up -d

By default, docker-compose will use the config inside ./market/template. We provide this as a template for any market config.

For each market you want to trade, create a copy of this folder under market. Also create either a coinbase.key or binance.key file to each folder depending which trading platform is being used. For example, if you are trading BTCEUR and ETHEUR your market folder should look like this:

├── market
│ ├── BTCEUR
│ │ ├── config.json
│ │ ├── pycryptobot.log
│ │ └── graphs
│ └── ETHEUR
│   ├── config.json
│   ├── pycryptobot.log
│   └── graphs

modify docker-compose.yaml

version: "3.9"

services:
  btceur:
    build:
      context: .
    container_name: btceur
    volumes:
      - ./market/BTCEUR/coinbase.key:/app/coinbase.key.json
      - ./market/BTCEUR/config.json:/app/config.json
      - ./market/BTCEUR/pycryptobot.log:/app/pycryptobot.log
      - ./market/BTCEUR/graphs:/app/graphs
      - /etc/localtime:/etc/localtime:ro
    environment:
      - PYTHONUNBUFFERED=1
    deploy:
      restart_policy:
        condition: on-failure

  etheur:
    build:
      context: .
    container_name: etheur
    volumes:
      - ./market/ETHEUR/coinbase.key:/app/coinbase.key.json
      - ./market/ETHEUR/config.json:/app/config.json
      - ./market/ETHEUR/pycryptobot.log:/app/pycryptobot.log
      - ./market/ETHEUR/graphs:/app/graphs
      - /etc/localtime:/etc/localtime:ro
    environment:
      - PYTHONUNBUFFERED=1
    deploy:
      restart_policy:
        condition: on-failure

Run all your bots. Note that each market should have it's own config. Graphs will be saved on each market's folder.

% docker-compose up -d

Kubernetes (Helm) (Option 3)

There is a helm chart available in this repo. It will create your config.json as a configmap and the binance/coinbase keys as secrets, and mount them into the Pod. To run pycryptobot as a Kubernetes deployment, create your helm values as yaml in the following format (do not change the path to the api_key_file):

", "client_id" : " ", } } coinbasepro_key: | XXXXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY zzzzzzzzzzzz ">
config: >
    {
        "coinbasepro": {
            "api_url": "https://api.pro.coinbase.com",
            "config": {
                "base_currency": "ETH",
                "quote_currency": "EUR",
                "live": 1,
                "sellatloss": 0,
                "disablelog": 1,
                "autorestart": 1
            },
            "api_key_file": "/app/keys/coinbasepro.key"
        },
        "telegram" : {
            "token" : "
    
     ",
            "client_id" : "
     
      ",
        }
    }

coinbasepro_key: |
    XXXXXXXXXXXXXXXXXXXX
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    zzzzzzzzzzzz

     
    

Or, for binance:

", "client_id" : " ", } } binance_key: | XXXXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY ">
config: >
    {
        "binance": {
            "api_url": "https://api.binance.com",
            "config": {
                "base_currency": "ETH",
                "quote_currency": "EUR",
                "live": 1,
                "sellatloss": 0,
                "disablelog": 1,
                "autorestart": 1
            },
            "api_key_file": "/app/keys/binance.key"
        },
        "telegram" : {
            "token" : "
    
     ",
            "client_id" : "
     
      ",
        }
    }

binance_key: |
    XXXXXXXXXXXXXXXXXXXX
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

     
    

Or, for kucoin:

", "client_id" : " ", } } kucoin_key: | XXXXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY zzzzzzzzzzzz ">
config: >
    {
        "kucoin": {
            "api_url": "https://api.kucoin.com",
            "config": {
                "base_currency": "ETH",
                "quote_currency": "EUR",
                "live": 1,
                "sellatloss": 0,
                "disablelog": 1,
                "autorestart": 1
            },
            "api_key_file": "/app/keys/coinbasepro.key"
        },
        "telegram" : {
            "token" : "
    
     ",
            "client_id" : "
     
      ",
        }
    }

kucoin_key: |
    XXXXXXXXXXXXXXXXXXXX
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    zzzzzzzzzzzz

     
    

Or both:

", "client_id" : " ", } } coinbasepro_key: | XXXXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY zzzzzzzzzzzz binance_key: | XXXXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY kucoin_key: | XXXXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY zzzzzzzzzzzz ">
config: >
    {
        "coinbasepro": {
            "api_url": "https://api.pro.coinbase.com",
            "config": {
                "base_currency": "ETH",
                "quote_currency": "EUR",
                "live": 1,
                "sellatloss": 0,
                "disablelog": 1,
                "autorestart": 1
            },
            "api_key_file": "/app/keys/coinbasepro.key"
        },
        "binance": {
            "api_url": "https://api.binance.com",
            "config": {
                "base_currency": "ETH",
                "quote_currency": "EUR",
                "live": 1,
                "sellatloss": 0,
                "disablelog": 1,
                "autorestart": 1
            },
            "api_key_file": "/app/keys/binance.key"
        },
        "kucoin": {
            "api_url": "https://api.kucoin.com",
            "config": {
                "base_currency": "ETH",
                "quote_currency": "EUR",
                "live": 1,
                "sellatloss": 0,
                "disablelog": 1,
                "autorestart": 1
            },
            "api_key_file": "/app/keys/kucoin.key"
        },
        "telegram" : {
            "token" : "
    
     ",
            "client_id" : "
     
      ",
        }
    }

coinbasepro_key: |
    XXXXXXXXXXXXXXXXXXXX
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    zzzzzzzzzzzz
binance_key: |
    XXXXXXXXXXXXXXXXXXXX
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
kucoin_key: |
    XXXXXXXXXXXXXXXXXXXX
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    zzzzzzzzzzzz

     
    

Then run:

git clone https://github.com/whittlem/pycryptobot
cd pycryptobot/chart
helm upgrade -i pycryptobot-eth-eur -f 
   

   

So if you created above helm values file as config-eth-eur.yaml, you would run:

helm upgrade -i pycryptobot-eth-eur -f config-eth-eur.yaml

Bot mechanics

Smart switching:

  • If the EMA12 is greater than the EMA26 on the 1 hour and 6 hour intervals switch to start trading on the 15 minute intervals
  • If the EMA12 is lower than the EMA26 on the 1 hour and 6 hour intervals switch back to trade on the 1 hour intervals
  • If a "granularity" is specified as an argument or in the config.json then smart switching will be disabled
  • Force smart switching between 1 hour and 15 minute intervals with "smartswitch" argument or config option (1 or 0)

Buy signal:

  • EMA12 is currently crossing above the EMA26 and MACD is above the Signal OR MACD is currently crossing above the Signal and EMA12 is above the EMA26
  • Golden Cross (SMA50 is above the SMA200) <-- bull market detection
  • On-Balance Volume Percent > -5 <-- suitable momentum required
  • Elder Ray Buy is True <-- bull market detection

The bot will only trade in a bull market to minimise losses! (you can disable this)

Special buy cases:

  • "nobuynearhighpcnt" to specify the percentage from high that the bot should not buy if "disablebuynearhigh" is not specified.

Sell signal:

  • EMA12 is currently crossing below the EMA26
  • MACD is below the Signal

Special sell cases:

  • "buymaxsize" specifies a fixed max amount of the quote currency to buy with
  • "nosellminpcnt" specifies the lower margin limit to not sell above
  • "nosellmaxpcnt" specifies the upper margin limit to not sell below
  • If "sellatloss" is on, bot will sell if price drops below the lower Fibonacci band
  • If "sellatloss" is on and "selllowerpcnt" is specified the bot will sell at the specified amount E.g. -2 for -2% margin
  • If "sellatloss" is on and "trailingstoploss" is specified the bot will sell at the specified amount below the buy high
  • If "sellupperpcnt" is specified the bot will sell at the specified amount E.g. 10 for 10% margin (Depending on the conditions I lock in profit at 3%)
  • If the margin exceeds 3% and the price reaches a Fibonacci band it will sell to lock in profit
  • If the margin exceeds 3% but a strong reversal is detected with negative OBV and MACD < Signal it will sell
  • "sellatloss" set to 0 prevents selling at a loss

Optional Options

--stats                             Display order profit and loss (P&L) report
--autorestart                       Automatically restart the bot on error
--sellatresistance                  Sells if the price reaches either resistance or Fibonacci band

Disabling Default Functionality

--disablebullonly                   Disable only buying in bull market
--disablebuynearhigh                Disable buying within 3% of the dataframe high
--disablebuymacd                    Disable macd buy signal
--disablebuyema                     Disable ema buy signal.If both core indicators ema and macd buy signals are disabled, bot won't buy.Doesn't affect sell strategy.
--disablebuyobv                     Disable obv buy signal
--disablebuyelderray                Disable elder ray buy signal
--disablefailsafefibonaccilow       Disable failsafe sell on fibonacci lower band
--disablefailsafelowerpcnt          Disable failsafe sell on 'selllowerpcnt'
--disableprofitbankupperpcnt        Disable profit bank on 'sellupperpcnt'
--disableprofitbankfibonaccihigh    Disable profit bank on fibonacci upper band
--disableprofitbankreversal         Disable profit bank on strong candlestick reversal
--disabletelegram                   Disable sending telegram messages
--disablelog                        Disable writing log entries
--disabletracker                    Disable saving CSV on buy and sell events

"Sell At Loss" explained

The "sellatloss" option disabled has it's advantages and disadvantages. It does prevent any losses but also prevents you from exiting a market before a crash or bear market. Sometimes it's better to make an occasional small loss and make it up with several buys than be conservative and potentially lock a trade for weeks if not months. It happened to me while testing this with the last crash (after Elon's tweet!). Three of my bots did not sell while the profit dropped to -10 to -20%. It did bounce back and I made over 3% a trade with any losses but I also lost out of loads of trading opportunities. It's really a matter of preference. Maybe some markets would be more appropriate than others for this.

Live Trading

In order to trade live you need to authenticate with the Coinbase Pro or Binance APIs. This is all documented in my Medium articles. In summary you will need to include a config.json file in your project root which contains your API keys. If the file does not exist it will only work in test/demo mode.

Trading Simulation

--sim ['fast, fast-sample, slow-sample']   Sets simulation mode
--simstartdate                             Start date for sample simulation e.g '2021-01-15'
--simenddate                               End date for sample simulation or 'now'

simstartdate takes priority over simenddate if both are given

Simulation trades.csv

By default, when running a simulation, if there are any orders, a file called trades.csv with all BUYS and SELLS will be created.

With --tradesfile you can control the name and where file is stored, eg --tradesfile BTSUDC-trades.csv

API key / secret / password storage

From now on it's recommended NOT to store the credentials in the config file because people share configs and may inadvertently share their API keys within.

Instead, please, create binance.key or coinbase.key or kucoin.key (or use your own names for the files) and refer to these files in the config.json file as:

"api_key_file" : "binance.key"

Once you have done that, "api_key" and "api_secret" can be safely removed from your config file and you're free to share your configs without worrying of leaked credentials.

binance.key / conbase.key / kucoin.key examples

Actually it's pretty simple, these files are supposed to be a simple text files with the API key on the first line, API secret on the second line and in case of coinbase and kucoin, probably the API password on the third. No comments or anything else is allowed, just the long string of numbers:

0234238792873423...82736827638472
68473847745876abscd9872...8237642

(dots are used to indicate places where the strings were shortened)

config.json examples

Coinbase Pro basic (using smart switching)

{
    "api_url" : "https://api.pro.coinbase.com",
    "api_key_file" : "coinbase.key",
    "config" : {
        "cryptoMarket" : "BTC",
        "fiatMarket" : "GBP",
        "live" : 1,
        "sellatloss" : 0
    }
}

Coinbase Pro basic (specific granularity, no smart switching)

{
    "api_url" : "https://api.pro.coinbase.com",
    "api_key_file" : "coinbase.key",
    "config" : {
        "cryptoMarket" : "BCH",
        "fiatMarket" : "GBP",
        "granularity" : 3600,
        "live" : 1,
        "sellatloss" : 0
    }
}

Coinbase Pro only (new format)

{
    "coinbasepro" : {
        "api_url" : "https://api.pro.coinbase.com",
        "api_key_file" : "coinbase.key",
        "config" : {
            "base_currency" : "BTC",
            "quote_currency" : "GBP",
            "granularity" : "3600",
            "live" : 0,
            "verbose" : 0
        }
    }
}

Binance only (new format)

{
    "binance" : {
        "api_url" : "https://api.binance.com",
        "api_key_file" : "binance.key",
        "config" : {
            "base_currency" : "BTC",
            "quote_currency" : "ZAR",
            "granularity" : "1h",
            "live" : 0,
            "verbose" : 0
        }
    }
}

Kucoin (using smart switching)

{
    "api_url" : "https://api.kucoin.com",
    "api_key_file" : "kucoin.key",
    "config" : {
        "base_currency" : "BTC",
        "quote_currency" : "GBP",
        "live" : 1,
        "sellatloss" : 0
    }
}

Coinbase Pro, Binance and Kucoin (new format)

{
    "binance" : {
        "api_url" : "https://api.binance.com",
        "api_key_file" : "binance.key",
        "config" : {
            "base_currency" : "BTC",
            "quote_currency" : "ZAR",
            "granularity" : "1h",
            "live" : 0,
            "verbose" : 0
        }
    },
    "coinbasepro" : {
        "api_url" : "https://api.pro.coinbase.com",
        "api_key_file" : "coinbase.key",
        "config" : {
            "base_currency" : "BTC",
            "quote_currency" : "GBP",
            "granularity" : "3600",
            "live" : 0,
            "verbose" : 0
        }
    },
    "kucoin" : {
        "api_url" : "https://api.kucoin.com",
        "api_key_file" : "kucoin.key",
        "config" : {
            "base_currency" : "BTC",
            "quote_currency" : "GBP",
            "granularity" : "3600",
            "live" : 0,
            "verbose" : 0
        }
    }
}

All the "config" options in the config.json can be passed as arguments E.g. --market

Command line arguments override config.json config.

For telegram, add a piece to the config.json as follows:

", "client_id" : " " } ">
"telegram" : {
    "token" : "
    
     ",
    "client_id" : "
     
      "
}

     
    

You can use @botfather and @myidbot in telegram to create a bot with token and get a client id.

For configuring logger, add a piece to the config.json as follows: This is also default configuration of the logger, if no config is given and log is not disabled this configuration will apply.

"logger" : {
    "filelog": 1,
    "logfile": "pycryptobot.log",
    "fileloglevel": "DEBUG",
    "consolelog": 1,
    "consoleloglevel": "INFO"
}

"filelog" and "consolelog" can only get 1 (enable) or 0 (disable). "--disablelog" argument or "disablelog" config will disable to writing logfile as backwards compatibility. If you want to disable logging entirely, you can set "filelog" and "consolelog" to 0.

"logfile" is overriden by '--logfile' console argument. If '--logfile' used when running bot "logfile": "pycryptobot.log" line in config file will be ignored.

"fileloglevel" and "consoleloglevel" can get one of 'CRITICAL', 'ERROR', 'WARNING', 'INFO', 'DEBUG', 'NOTSET' For further detail in log levels: https://docs.python.org/3/library/logging.html#logging-levels

Multi-Market Trading

The bot can trade multiple markets at once. This is also documented in my Medium articles. The bot will execute buys using the full "quote currency" balance it has access too and it will sell the full "base currency" balance it has access too. In order to ring-fence your non-bot funds you should create another "Portfolio" in Coinbase Pro and assign API keys to it. That way you limit exposure. You can so something similar with Binance using sub-accounts but I believe you need to be a certain level to do this.

The way you trade multiple markets at once is create multiple Coinbase Pro portfolios for each each bot instance. You will then clone this project for additional bots with the relevant Portfolio keys (config.json).

I have 5 bots running at once for my Portfolios: "Bot - BTC-GBP", "Bot - BCH-GBP", "Bot - ETH-GBP", "Bot - LTC-GBP", and "Bot - XLM-EUR".

Assuming each bot has a config.json that looks similar to this (update the "cryptoMarket" and "fiatMarket" appropriately):

{
    "api_url" : "https://api.pro.coinbase.com",
    "api_key_file" : "coinbase.key"
    "config" : {
        "cryptoMarket" : "BTC",
        "fiatMarket" : "GBP",
        "live" : 1
        "selllowerpcnt" : -2
    }
}

The way I run my five bots is as follow:

BTC-GBP % rm pycryptobot.log; git pull; clear; python3 pycryptobot.py

BCH-GBP % rm pycryptobot.log; git pull; clear; python3 pycryptobot.py

ETH-GBP % rm pycryptobot.log; git pull; clear; python3 pycryptobot.py

LTC-GBP % rm pycryptobot.log; git pull; clear; python3 pycryptobot.py

XLM-EUR % rm pycryptobot.log; git pull; clear; python3 pycryptobot.py

Notice how I don't pass any arguments. It's all retrieved from the config.json but you can pass the arguments manually as well.

The merge from "binance" branch back into "main"

Some of you may have been helping test the new code for a few months in the "binance" branch. This is now merged back into the "main" branch. If you are still using the "binance" branch please carry out the following steps (per bot instance).

git reset --hard
git checkout main
git pull
python3 -m pip install -r requirements.txt

Please note you need to be using Python 3.9.x or greater. The previous bot version only required Python 3.x.

Stats Module

To keep track of the bots performance over time you can run the stats module. e.g.

python3 pycryptobot.py --stats

This will analyse all the completed buy/sell trade pairs to give stats on todays trades, the trades over the last 7 days, the trades over the last 30 days, and all-time trades.

An optional flag of --statstartdate can be given to ignore all trades that happened before a specified date. The date must be of the format: yyyy-mm-dd. e.g.

python3 pycryptobot.py --stats --statstartdate 2021-6-01

To get the stats from all your bots, another optional flag of --statgroup can be used. This takes a list of markets and merges the results into one output. e.g.

python3 pycryptobot.py --stats --statgroup BTCGBP ETHGBP ADAGBP

or via the config.json file e.g.

"config": {
    ....
    "stats": 1,
    "statgroup": ["BTCGBP", "ETHGBP", "ADAGBP"],
    ....
}

Note: --statgroup only accepts a group of markets if the quote currency (in this example GBP) is the same.

If you want more detail than the simple summary, add the optional flag --statdetail. This will print a more detailed list of the transactions. --statdetail can work in conjunction with --statstartdate and --statgroup.

Upgrading the bots

I push updates regularly and it's best to always be running the latest code. In each bot directory make sure you run this regularly.

git pull

I've actually included this in the examples in how to start the bot that will do this for you automatically.

Fun quick non-live demo

python3 pycryptobot.py --market BTC-GBP --granularity 3600 --sim fast --verbose 0

If you get stuck with anything email me or raise an issue in the repo and I'll help you sort it out. Raising an issue is probably better as the question and response may help others.

Enjoy and happy trading! :)

Comments
  • So what exchanges, markets, and config are you all using?

    So what exchanges, markets, and config are you all using?

    According to Github there are 333 of you regularly updating your bots. I'm glad you are finding it useful :)

    I was just curious how all of you are doing?

    1. Which exchange(s) are you using? Coinbase Pro, Binance, or both?
    2. How many bots are you running?
    3. How much are you trading per bot?
    4. Which markets are you trading?
    5. What config is working well for you?

    I'll start off...

    1. I'm using Coinbase Pro only
    2. I have 5 bots running (in case you didn't see Coinbase Pro now supports 10 portfolios!)
    3. Up until yesterday I was trading £500 per bot. When ever the bots have a successful trade I transfer the profits to my bank account. I increased this to £1500 a bot yesterday.
    4. I'm trading "ADA-GBP", "BCH-GBP", "BTC-GBP", "ETH-GBP", and "LTC-GBP". I was trading "XLM-EUR" but I found it too unreliable, too volatile for my liking. From my analysis ADA looks like a better option as it looks more stable and also more independent from Bitcoin and Ethereum.
    5. I'm actually trying out a new config from this morning. I have disabled "sellatloss" for a few weeks and it has been working really well for me. The change I made this morning was to "disablebullonly", "disablebuyobv", and "disablebuyelderray". The reason I disabled them is because they were there to prevent losses but I have "sellatloss" disabled so they are redundant with that on. I would rather be more liberal with my trades and trade more often. So I'm only using EMA crossovers and MACD with sell at loss disabled. I'll let you know how this works out.

    As an example my BTC-GBP config.json looks like this (with my keys removed):

    {
        "coinbasepro" : {
            "api_url" : "https://api.pro.coinbase.com",
            "api_key" : "",
            "api_secret" : "",
            "api_passphrase" : "",
            "config" : {
                "base_currency" : "BTC",
                "quote_currency" : "GBP",
                "live" : 1,
                "sellatloss" : 0,
                "disablebullonly" : 1,
                "disablebuyobv" : 1,
                "disablebuyelderray" : 1
            }
        },
        "telegram" : {
            "token" : "",
            "client_id" : ""
        }
    }
    
    documentation 
    opened by whittlem 44
  • Ignored buymaxsize

    Ignored buymaxsize

    Hi All,

    when the Bot was started it did not respect the buymaxsize present within the configurations and bought for the entire amount of the quote_currency.

    "config" : { "base_currency" : "ADA", "quote_currency" : "USDT", "buymaxsize": 500, .... }

    Regards.

    bug waiting help required 
    opened by TICLAB 25
  • Binance marketSell list indices must be integers or slices, not str

    Binance marketSell list indices must be integers or slices, not str

    Hi all, I just observed this message and the trade didn't happen:

    BNB balance before order: 0.2927 BUSD balance before order: 0.0 04-05-2021 00:33:51 Binance marketSell list indices must be integers or slices, not str BNB balance after order: 0.2927 BUSD balance after order: 0.0

    Running as:

                             Python Crypto Bot                                
    
               Release : v2.0.0 (commit: 6)                                   
    
              Bot Mode : LIVE - live trades using your funds!                 
           Bot Started : 2021-05-03 23:53:14.090838                           
    
          Sell At Loss : 1  --sellatloss 1                                    
     Sell At Resistance : True  --sellatresistance                            
       Trade Bull Only : True  --disablebullonly                              
         Buy Near High : True  --disablebuynearhigh                           
          Use Buy MACD : True  --disablebuymacd                               
           Use Buy OBV : True  --disablebuyobv                                
     Use Buy Elder-Ray : True  --disablebuyelderray                           
    Sell Fibonacci Low : True  --disablefailsafefibonaccilow
    Sell Fibonacci High : True  --disableprofitbankfibonaccihigh
    Candlestick Reversal : True  --disableprofitbankreversal                    
              Telegram : True  --disabletelegram                              
                   Log : True  --disablelog                                   
               Tracker : True  --disabletracker                               
    

    *** smart switch from granularity '1h' (1 hour) to '15m' (15 min) ***

    bug 
    opened by denissonpaz 23
  • Raspberry pi docker image armhf

    Raspberry pi docker image armhf

    Describe the bug When attempting to run the container from the image repository using the below settings it fails with the following errors down in the container logs. This suggests that I am attempting to run a x86/x64 image on an armhf system which is likely as I am using the one from the image repository hosted in this repo.

    I have also attempted to build the container for armhf and failed spectacularly. (see followup post in this report. )

    btcusd    | 2021-11-24T19:38:48.485305374Z standard_init_linux.go:228: exec user process caused: exec format error
    btcusd    | 2021-11-24T19:38:54.600144045Z standard_init_linux.go:228: exec user process caused: exec format error
    btcusd    | 2021-11-24T19:39:01.195989348Z standard_init_linux.go:228: exec user process caused: exec format error
    

    To Reproduce docker-compose.yml

    version: "3.9"
    
    services:
      btcusd:
        image: ghcr.io/whittlem/pycryptobot/pycryptobot:latest
        container_name: btcusd
        volumes:
          - ./market/binance.key:/app/keys/binance.key:ro
          - ./market/BTCBUSD/config.json:/app/config.json
          - ./market/BTCBUSD/pycryptobot.log:/app/pycryptobot.log
          - ./market/BTCBUSD/graphs:/app/graphs
          - /etc/localtime:/etc/localtime:ro
        environment:
          - PYTHONUNBUFFERED=1
        restart: always
    

    config.json

    {
        "binance": {
            "api_url": "https://api.binance.com",
            "config": {
                "base_currency": "BTC",
                "quote_currency": "BUSD",
                "live": 0,
                "sellatloss": 1,
                "disablelog": 0,
                "autorestart": 0,
                "enableinsufficientfundslogging": 1,
                "logbuysellinjson": 1,
                "graphs": 1,
                "websocket": 0,
                "stats": 0,
                "verbose": 1,
                "consolelog": 1,
                "consoleloglevel": "DEBUG"
            },
            "api_key_file": "/app/keys/binance.key"
        }
    }
    

    Expected behavior Docker container to run and start trading.

    Desktop (please complete the following information):

    • Raspberry pi Buster
    • Docker version 20.10.11, build dea9396
    opened by warrmr 19
  • Unified granularity

    Unified granularity

    Description

    Here the description of the issue: https://github.com/whittlem/pycryptobot/issues/203

    Fixes # (issue)

    Type of change

    Please make your selection.

    • [ ] Bug fix (non-breaking change which fixes an issue)
    • [ ] New feature (non-breaking change which adds functionality)
    • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
    • [ ] This change requires a documentation update
    • [ ] This change requires a new dependency
    • [x] Code Maintainability / comments
    • [x] Code Refactoring / future-proofing

    How Has This Been Tested?

    Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.

    Checklist:

    • [x] My code follows the style guidelines of this project
    • [x] I have performed a self-review of my own code
    • [ ] I have commented my code, particularly in hard-to-understand areas
    • [ ] I have made corresponding changes to the documentation
    • [x] My changes generate no new warnings
    • [ ] I have added pytest unit tests that prove my fix is effective or that my feature works
    • [x] New and existing unit tests pass locally with my changes
    • [ ] Any dependent changes have been merged and published in downstream modules
    • [x] I have checked my code and corrected any misspellings
    opened by dthevenin 19
  • Add container image build to repo

    Add container image build to repo

    This PR adds a Dockerfile and example docker-compose.yaml to allow for easier administration.

    In order to enable the build in your repo, you should:

    • create a PAT for your account (User > Settings > Developer settings > Personal Access Tokens) with the read and write package rights
    • put the token into a secret variable for this repo (Settings > secrets > New secret). Give it the name "PACKAGE_TOKEN" as this is configured in the github action
    • Change the visibility of the created "package" (User > Your Profile > Packages > pycryptobot/pycryptobot > Package settings > Change visibility

    It is a bit of work, but it makes usability a lot easier :)

    I also fixed all markdown-lint violations in the readme file.

    You can check the actual container that was built out of this: ghcr.io/lvlie/pycryptobot/pycryptobot:latest

    And I think the "action" log should also be visible as well: https://github.com/lvlie/pycryptobot/runs/2307818414?check_suite_focus=true

    opened by lvlie 18
  • Launch with error 'KeyError:

    Launch with error 'KeyError: "['specified_funds'] not in index"'

    Describe the bug Errors at launch. It only affects one of my 3 portfolios on startup, as the format doesn't confirm to the specc here: https://github.com/whittlem/pycryptobot/blob/d530ab7d59364acfd4322f47bfc5ee9af35fe289/models/CoinbasePro.py#L192

    To Reproduce Steps to reproduce the behavior:

    1. launch using python3 pycryptobot.py
    2. See error

    Error Log

    Traceback (most recent call last):
      File "pycryptobot.py", line 66, in <module>
        orders = account.getOrders(app.getMarket(), '', 'done')
      File "/home/pi/pycryptobot/BTC/models/TradingAccount.py", line 110, in getOrders
        self.orders = model.getOrders(market, action, status)
      File "/home/pi/pycryptobot/BTC/models/CoinbasePro.py", line 195, in getOrders
        df = resp.copy()[[ 'created_at', 'product_id', 'side', 'type', 'filled_size', 'specified_funds', 'executed_value', 'fill_fees', 'status' ]]
      File "/home/pi/.local/lib/python3.7/site-packages/pandas/core/frame.py", line 3030, in __getitem__
        indexer = self.loc._get_listlike_indexer(key, axis=1, raise_missing=True)[1]
      File "/home/pi/.local/lib/python3.7/site-packages/pandas/core/indexing.py", line 1265, in _get_listlike_indexer
        self._validate_read_indexer(keyarr, indexer, axis, raise_missing=raise_missing)
      File "/home/pi/.local/lib/python3.7/site-packages/pandas/core/indexing.py", line 1315, in _validate_read_indexer
        raise KeyError(f"{not_found} not in index")
    KeyError: "['specified_funds'] not in index"
    

    I've gone in to actually check the columns of resp, and it only contains the following:

    ['id', 'price', 'size', 'product_id', 'profile_id', 'side', 'type', 'time_in_force', 'post_only', 'created_at', 'done_at', 'done_reason', 'fill_fees', 'filled_size', 'executed_value', 'status', 'settled']
    

    Desktop (please complete the following information):

    • OS: Linux; Debian
    • Version: latest git pull as of 2.0.6

    Additional context Config file, aside from base_currency identical to working ones. :

    {
         "coinbasepro" : {
             "api_url" : "https://api.pro.coinbase.com",
             "api_key" : "...",
             "api_secret" : "...",
             "api_passphrase" : "...",
             "config" : {
                 "base_currency" : "BTC",
                 "quote_currency" : "USD",
                 "live" : 1,
                 "sellatloss" : 0,
                 "granularity": 60
             }
         },
         "telegram" : {
             "token" : "...",
             "client_id" : "..."
         }
    }
    
    bug 
    opened by tiems90 17
  • error when buying on binance

    error when buying on binance

    Hello

    i got an error message when attempting to buy Algo on binance this morning :

    2021-04-25 08:00:00 | ALGOUSDT 1h | Close: 1.15 | BUY

    ALGO balance before order: 0.0 USDT balance before order: 199.98 Order quantity after rounding and fees: 172.84 25-04-2021 10:47:14 Binance marketBuy APIError(code=-2010): Account has insufficient balance for requested action. ALGO balance after order: 0.0 USDT balance after order: 199.98

    as you can see, i had ~200 usdt in my acount thanks

    opened by delphsmith 17
  • Statsmodels and Pandas issue on Raspberry Pi

    Statsmodels and Pandas issue on Raspberry Pi

    An exception which causes the program to quit.

    On Raspberry Pi running bot from a Terminal screen. All dependencies were updated to the latest versions available and supported on the Raspberry Pi.

    Logger screen:

    /home/pi/.local/lib/python3.7/site-packages/statsmodels/tsa/base/tsa_model.py:583: ValueWarning: A date index has been provided, but it has no associated frequency information and so will be ignored when e.g. forecasting. ' ignored when e.g. forecasting.', ValueWarning) /home/pi/.local/lib/python3.7/site-packages/statsmodels/tsa/base/tsa_model.py:583: ValueWarning: A date index has been provided, but it has no associated frequency information and so will be ignored when e.g. forecasting. ' ignored when e.g. forecasting.', ValueWarning) /home/pi/.local/lib/python3.7/site-packages/statsmodels/tsa/base/tsa_model.py:583: ValueWarning: A date index has been provided, but it has no associated frequency information and so will be ignored when e.g. forecasting. ' ignored when e.g. forecasting.', ValueWarning) /home/pi/.local/lib/python3.7/site-packages/statsmodels/tsa/base/tsa_model.py:583: ValueWarning: A date index has been provided, but it has no associated frequency information and so will be ignored when e.g. forecasting. ' ignored when e.g. forecasting.', ValueWarning)

    Restarting application after exception: KeyError('The end argument could not be matched to a location related to the index of the data.')

    2021-06-15 05:00:00 | ETC-GBP | 3600 | Close: 41.9720 | ^ EMA12/26: 41.7507 > 41.4208 ^ | ^ MACD: 0.3298 > 0.3164 ^ | WAIT | Last Action: BUY | -26.1610% (delta: -14.305) /home/pi/.local/lib/python3.7/site-packages/statsmodels/tsa/base/tsa_model.py:583: ValueWarning: A date index has been provided, but it has no associated frequency information and so will be ignored when e.g. forecasting. ' ignored when e.g. forecasting.', ValueWarning) /home/pi/.local/lib/python3.7/site-packages/statsmodels/tsa/base/tsa_model.py:583: ValueWarning: A date index has been provided, but it has no associated frequency information and so will be ignored when e.g. forecasting. ' ignored when e.g. forecasting.', ValueWarning) ^[c/home/pi/.local/lib/python3.7/site-packages/statsmodels/tsa/base/tsa_model.py:583: ValueWarning: A date index has been provided, but it has no associated frequency information and so will be ignored when e.g. forecasting. ' ignored when e.g. forecasting.', ValueWarning) /home/pi/.local/lib/python3.7/site-packages/statsmodels/tsa/base/tsa_model.py:583: ValueWarning: A date index has been provided, but it has no associated frequency information and so will be ignored when e.g. forecasting. ' ignored when e.g. forecasting.', ValueWarning) KeyError('The end argument could not be matched to a location related to the index of the data.') Traceback (most recent call last): File "pandas/_libs/hashtable_class_helper.pxi", line 1039, in pandas._libs.hashtable.Int64HashTable.get_item KeyError: 1623744000000000000

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last): File "pandas/_libs/index.pyx", line 446, in pandas._libs.index.DatetimeEngine.get_loc KeyError: Timestamp('2021-06-15 08:00:00')

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last): File "/home/pi/.local/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 2897, in get_loc raise KeyError(key) from err KeyError: Timestamp('2021-06-15 08:00:00')

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last): File "/home/pi/.local/lib/python3.7/site-packages/pandas/core/indexes/datetimes.py", line 627, in get_loc raise KeyError(orig_key) from err KeyError: '2021-06-15 08:00:00'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last): File "/home/pi/.local/lib/python3.7/site-packages/statsmodels/tsa/base/tsa_model.py", line 170, in get_index_loc raise KeyError(str(e)) KeyError: 'only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last): File "/home/pi/.local/lib/python3.7/site-packages/statsmodels/tsa/base/tsa_model.py", line 333, in get_prediction_index raise KeyError('The end argument could not be matched to a' KeyError: 'The end argument could not be matched to a location related to the index of the data.'

    help required 
    opened by Olney1 16
  • Exception('GET (401) https://api.pro.coinbase.com/orders?status=done - request timestamp expired')

    Exception('GET (401) https://api.pro.coinbase.com/orders?status=done - request timestamp expired')

    This error occurs while executing the code about after 20mins

    2021-07-12 13:43:05 | BTC-EUR (BEAR) | 3600 | Current Price: 28200.93 Exception('GET (401) https://api.pro.coinbase.com/orders?status=done - request timestamp expired') Exception: GET (401) https://api.pro.coinbase.com/orders?status=done - request timestamp expired

    opened by SithX 14
  • Insufficient funds Coinbase Pro

    Insufficient funds Coinbase Pro

    Describe the bug Attempt to run bot and get an error message that there are no funds when I do have $100 available.

    To Reproduce Steps to reproduce the behavior:

    1. Run the bot command
    2. get the error message

    Expected behavior I was hoping that the bot would begin to run.

    Screenshots See below

    Desktop (please complete the following information): Raspberry Pi 4 Current code for bot from here Python 3

    I'm running into a similar issue: image

    After I ran the "...--lastaction SELL" I got this error message: image

    I think this is related to other issues but I'm not sure how or what to do to fix this.
    I'm attempting to start a bot for the first time using Coinbase Pro for DOT.

    user support 
    opened by dvpetta 14
  • transition to coinbase from coinbasepro

    transition to coinbase from coinbasepro

    https://www.coinbase.com/advanced-trade

    https://help.coinbase.com/en/coinbase/trading-and-funding/advanced-trade/what-is-advanced-trade

    since transferring from coinbase to coinbasepro (deposits, etc....) are restricted to coinbase only. will the api setup have to change? like url, and im pretty sure ill need to generate a new api key pair.

    opened by DrBlackross 2
  • Simulation Error at Test Buy

    Simulation Error at Test Buy

    Simulation Error at Test Buy

    Hi,

    I was wondering if anyone has run into this issue when running the simulation. I have not been able to pinpoint what it is in my config that would be causing the problem. I will attach that below as well.

    Issue only seems to trigger when there is a test buy order executed.

    William

    image

    { "coinbasepro": { "api_url": "https://api.pro.coinbase.com", "config": { "base_currency": "ALGO", "quote_currency": "USD", "live": 0, "smartswitch": 1, "verbose": 1, "statdetail": 1, "sim": "fast" }, "api_key_file": "coinbase.key" } }

    Originally posted by @wmespi in https://github.com/whittlem/pycryptobot/discussions/722

    opened by wmespi 1
  • Panda Error

    Panda Error

    I am a newby to python - can you please explain how to resolve the issue below please.


    c:\Crypto\Experiment\pycryptobot-main -Bitcoin\pycryptobot-main>python pycryptobot.py --live 1 Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\indexes\base.py", line 5845, in _raise_if_missing raise KeyError(f"{not_found} not in index") KeyError: "['created_at', 'market', 'action', 'type', 'size', 'filled', 'fees', 'price', 'status'] not in index"

    c:\Crypto\Experiment\pycryptobot-main -Bitcoin\pycryptobot-main>

    opened by asmaarm1 0
  • Telegram_bot not running after upgrade

    Telegram_bot not running after upgrade

    After upgrading from v6.0.0 to 6.3.0 I noticed that I can't run the telegram bot anymore. I could solve the issue by checking out to the beta branch. Nevertheless I am reporting the issue which others may also encounter.

    # python3.9 telegram_bot.py
    2022-05-04 18:05:34,498 - telegram.helper - INFO - Telegram Bot is listening
    Traceback (most recent call last):
      File "/home/h1/telegram_bot.py", line 922, in <module>
        main()
      File "/home/h1/telegram_bot.py", line 907, in main
        botconfig.setcommands(None, None)
      File "/home/h1/telegram_bot.py", line 260, in setcommands
        self.helper.send_telegram_message(
      File "/home/h1/models/telegram/helper.py", line 235, in send_telegram_message
        context.bot.send_message(
    AttributeError: 'Updater' object has no attribute 'send_message'
    ^CException ignored in: <module 'threading' from '/usr/lib/python3.9/threading.py'>
    Traceback (most recent call last):
      File "/usr/lib/python3.9/threading.py", line 1470, in _shutdown
        lock.acquire()
    

    System info: NAME="Ubuntu" VERSION="20.04.4 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian

    opened by hoseinit 1
  • Insufficient funds

    Insufficient funds

    Describe the bug I'm trying to understand why it's not returning the balance correctly. 2022-04-30 22:00:56 WARNING Insufficient Funds! (BTC=0.0, USD=0.0)

    To Reproduce Config file: { "coinbasepro": { "api_url": "https://api.pro.coinbase.com", "config": { "base_currency": "BTC", "quote_currency": "USD", "live": 1, "sellatloss": 1, "sellatresistance": 0, "trailingstoploss": -1.5, "trailingstoplosstrigger": 5, "nosellmaxpcnt": 3, "nosellminpcnt": -3, "disablebullonly": 0, "disablebuynearhigh": 1, "disablebuymacd": 0, "disablebuyobv": 1, "disablebuyelderray": 0, "disablefailsafefibonaccilow": 1, "disableprofitbankreversal": 0, "disabletracker": 1, "disabletelegram": 1, "autorestart": 0, "graphs": 1, "verbose": 1, "stats": 0, "enableinsufficientfundslogging": 1, "enabletelegrambotcontrol": 1, "websocket": 0, "disablelog": 0, "buypercent": 99, "sellpercent": 99, "buyminsize": 0, "sellsmartswitch": 0, "trailingbuypcnt": 0.5, "telegramtradesonly": 0, "granularity": "3600", "enableml": 0, "recvwindow": 20000 } }, "logger" : { "filelog": 1, "logfile": "pycryptobot.log", "fileloglevel": "DEBUG", "consolelog": 1, "consoleloglevel": "DEBUG" } }

    Any insight into what I can do to set it straight? I've tried --recvWindow 20000 and I've tried to make sure system time is synced. Those were the only fixes I could find from googling around. I also tried the beta branch to see if any update would help.

    Thanks.

    opened by cparsell 3
Releases(6.3.0)
  • 6.3.0(May 2, 2022)

    What's Changed

    • [FIX] #677 - Fix exception with Granulary and Binance exchange by @wtc0der in https://github.com/whittlem/pycryptobot/pull/678
    • Telegram bot updates by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/681
    • WebGui Update by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/683
    • average the margin_calculation on get_closed_trades in actions.py by @Darlywa in https://github.com/whittlem/pycryptobot/pull/687
    • fix if config scanner section missing by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/689
    • Hot/fix by @Darlywa in https://github.com/whittlem/pycryptobot/pull/691
    • Add Bot Config Editor to WebGui by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/693
    • fix for typos merge 690 by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/694
    • Fix for build #690 by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/695
    • fix PR 690 by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/698
    • Updated Trivy output format as per https://github.com/aquasecurity/tr… by @warrmr in https://github.com/whittlem/pycryptobot/pull/699
    • fix merges conflicts for 690 by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/700
    • For for merge #690 attempt 2 by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/701
    • Merge beta into main by @whittlem in https://github.com/whittlem/pycryptobot/pull/690

    New Contributors

    • @wtc0der made their first contribution in https://github.com/whittlem/pycryptobot/pull/678
    • @Darlywa made their first contribution in https://github.com/whittlem/pycryptobot/pull/687

    Full Changelog: https://github.com/whittlem/pycryptobot/compare/6.0.0...6.3.0

    Source code(tar.gz)
    Source code(zip)
  • 6.0.0(Feb 8, 2022)

    What's Changed

    • Back merge main into beta by @whittlem in https://github.com/whittlem/pycryptobot/pull/645
    • Added TechnicalAnalysis unit tests by @joa-rodrigues in https://github.com/whittlem/pycryptobot/pull/647
    • add trade confirmations and minor fixes by @chriskoepf in https://github.com/whittlem/pycryptobot/pull/648
    • Bugfix to Fido (Watchdog) by @woblit in https://github.com/whittlem/pycryptobot/pull/650
    • TG Bot Config editor update by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/649
    • V5.2.0 fixes by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/653
    • updated trade confirmations by @chriskoepf in https://github.com/whittlem/pycryptobot/pull/654
    • added docker layer caching to container by @warrmr in https://github.com/whittlem/pycryptobot/pull/655
    • v5.2.0 fixes by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/657
    • Fix - possible multi buy problem in new buy/sell code by @chriskoepf in https://github.com/whittlem/pycryptobot/pull/658
    • Misc Beta Fixes. Incorporated Kucoin GetOrders Caching system by @woblit in https://github.com/whittlem/pycryptobot/pull/659
    • fix for default exchange being used by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/661
    • fix buy/sell trades and trailingstoplosstrigger by @chriskoepf in https://github.com/whittlem/pycryptobot/pull/662
    • Kucoin Caching Update by @woblit in https://github.com/whittlem/pycryptobot/pull/665
    • Docker ReInstated multi-stage build and added container metadata by @warrmr in https://github.com/whittlem/pycryptobot/pull/663
    • telegram bot control file fixes by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/664
    • Ability to toggle Kucoin cache through config file by @woblit in https://github.com/whittlem/pycryptobot/pull/669
    • Minor fixes by @chriskoepf in https://github.com/whittlem/pycryptobot/pull/670
    • doc: fixed spelling :) by @warrmr in https://github.com/whittlem/pycryptobot/pull/671
    • bugfix screener hanging occasionally by @warrmr in https://github.com/whittlem/pycryptobot/pull/672
    • refactoring TelegramBotScanner.md by @Joel-max-s in https://github.com/whittlem/pycryptobot/pull/674
    • Merge beta into main by @whittlem in https://github.com/whittlem/pycryptobot/pull/652

    New Contributors

    • @Joel-max-s made their first contribution in https://github.com/whittlem/pycryptobot/pull/674

    Full Changelog: https://github.com/whittlem/pycryptobot/compare/5.1.3...6.0.0

    Source code(tar.gz)
    Source code(zip)
  • 5.1.3(Jan 3, 2022)

  • 5.1.2(Jan 3, 2022)

    What's Changed

    • Back merge main into beta by @whittlem in https://github.com/whittlem/pycryptobot/pull/641
    • Minor Bugfixes by @chriskoepf in https://github.com/whittlem/pycryptobot/pull/642
    • Fido the Watchdog / Scanner Updates / General Bug Fixes by @woblit in https://github.com/whittlem/pycryptobot/pull/643
    • Merging beta into main by @whittlem in https://github.com/whittlem/pycryptobot/pull/644

    Full Changelog: https://github.com/whittlem/pycryptobot/compare/5.1.1...5.1.2

    Source code(tar.gz)
    Source code(zip)
  • 5.1.1(Dec 31, 2021)

    What's Changed

    • Restarting Bots / Crashing Bots Fix by @woblit in https://github.com/whittlem/pycryptobot/pull/639
    • Merge beta into main by @whittlem in https://github.com/whittlem/pycryptobot/pull/640

    Full Changelog: https://github.com/whittlem/pycryptobot/compare/5.1.0...5.1.1

    Source code(tar.gz)
    Source code(zip)
  • 5.1.0(Dec 30, 2021)

    What's Changed

    • align currency regex checks for telegram bot by @derekrobertson in https://github.com/whittlem/pycryptobot/pull/633
    • Back merge beta into main by @whittlem in https://github.com/whittlem/pycryptobot/pull/635
    • Updated Tag Line for failing builds by @warrmr in https://github.com/whittlem/pycryptobot/pull/637
    • Add preventloss and trailingimmediatebuy options by @chriskoepf in https://github.com/whittlem/pycryptobot/pull/638
    • Merge beta into main by @whittlem in https://github.com/whittlem/pycryptobot/pull/636

    Full Changelog: https://github.com/whittlem/pycryptobot/compare/5.0.2...5.1.0

    Source code(tar.gz)
    Source code(zip)
  • 5.0.2(Dec 27, 2021)

    What's Changed

    • v5 Fix isSellTrigger and revise change_pcnt_high fix by @chriskoepf in https://github.com/whittlem/pycryptobot/pull/630
    • Fix scan kucoin leverage by @derekrobertson in https://github.com/whittlem/pycryptobot/pull/631
    • Merge beta into main by @whittlem in https://github.com/whittlem/pycryptobot/pull/632

    New Contributors

    • @derekrobertson made their first contribution in https://github.com/whittlem/pycryptobot/pull/631

    Full Changelog: https://github.com/whittlem/pycryptobot/compare/5.0.1...5.0.2

    Source code(tar.gz)
    Source code(zip)
  • 5.0.1(Dec 24, 2021)

    What's Changed

    • Back merging main into beta by @whittlem in https://github.com/whittlem/pycryptobot/pull/627
    • Bug fixes for v5 release by @chriskoepf in https://github.com/whittlem/pycryptobot/pull/625
    • [FIX] Corrected typo in container build pipeline by @warrmr in https://github.com/whittlem/pycryptobot/pull/626
    • Merging beta into main by @whittlem in https://github.com/whittlem/pycryptobot/pull/628

    Full Changelog: https://github.com/whittlem/pycryptobot/compare/5.0.0...5.0.1

    Source code(tar.gz)
    Source code(zip)
  • 5.0.0(Dec 20, 2021)

    What's Changed

    • Back merge main into beta by @whittlem in https://github.com/whittlem/pycryptobot/pull/579
    • Kucoin websockets and scanner by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/581
    • fix parser by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/584
    • Adopt chart for telegram bot by @byymster in https://github.com/whittlem/pycryptobot/pull/586
    • Revert "Adopt chart for telegram bot" by @whittlem in https://github.com/whittlem/pycryptobot/pull/591
    • Fix Sims and some vars, add buylastsell and multibuycheck by @chriskoepf in https://github.com/whittlem/pycryptobot/pull/601
    • Docker for raspberry pi armhf by @warrmr in https://github.com/whittlem/pycryptobot/pull/603
    • New screener by @notoriousBLP in https://github.com/whittlem/pycryptobot/pull/604
    • Remove extra code submitted that wasn't ready by @chriskoepf in https://github.com/whittlem/pycryptobot/pull/606
    • Updated PyCryptoBot to allow using Crypto rather than Fiat as a base currency with small currency amounts by @woblit in https://github.com/whittlem/pycryptobot/pull/608
    • Revert "New screener" - pending Telegram_Bot changes are on the way. by @chriskoepf in https://github.com/whittlem/pycryptobot/pull/610
    • Fix JSON typo in values.yaml example by @Dwaynekj in https://github.com/whittlem/pycryptobot/pull/612
    • Revert "Updated PyCryptoBot to allow using Crypto rather than Fiat as a base currency with small currency amounts" by @chriskoepf in https://github.com/whittlem/pycryptobot/pull/614
    • TG Bot Update + Trailing Buy by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/617
    • fix for TGBot helper error when not using TG bot by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/618
    • Given the formula (c) in this documentation in the description it seems that the cumulative returns is missing… by @joa-rodrigues in https://github.com/whittlem/pycryptobot/pull/620
    • fix trailingbuypcnt bug by @chriskoepf in https://github.com/whittlem/pycryptobot/pull/622
    • Docs/adding docker documentation by @warrmr in https://github.com/whittlem/pycryptobot/pull/623
    • Merge beta into main by @whittlem in https://github.com/whittlem/pycryptobot/pull/602

    New Contributors

    • @warrmr made their first contribution in https://github.com/whittlem/pycryptobot/pull/603
    • @notoriousBLP made their first contribution in https://github.com/whittlem/pycryptobot/pull/604
    • @woblit made their first contribution in https://github.com/whittlem/pycryptobot/pull/608
    • @Dwaynekj made their first contribution in https://github.com/whittlem/pycryptobot/pull/612
    • @joa-rodrigues made their first contribution in https://github.com/whittlem/pycryptobot/pull/620

    Full Changelog: https://github.com/whittlem/pycryptobot/compare/4.4.2...5.0.0

    Source code(tar.gz)
    Source code(zip)
  • 4.4.2(Nov 21, 2021)

    What's Changed

    • Update TelegramBotHelper.py by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/577

    Full Changelog: https://github.com/whittlem/pycryptobot/compare/4.4.1...4.4.2

    Source code(tar.gz)
    Source code(zip)
  • 4.4.1(Nov 20, 2021)

    What's Changed

    • Changelog reformatting by @thiasB in https://github.com/whittlem/pycryptobot/pull/539
    • Add files via upload by @jaredrsommer in https://github.com/whittlem/pycryptobot/pull/543
    • various bug fixes by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/544
    • Using enum instead of strings when comparing exchanges by @edrickrenan in https://github.com/whittlem/pycryptobot/pull/547
    • Trigger Rolling update of Deployment after updating ConfigMap by @byymster in https://github.com/whittlem/pycryptobot/pull/550
    • Add logs for orders in json format by @byymster in https://github.com/whittlem/pycryptobot/pull/552
    • Kucoin fix for multiple buys by @chriskoepf in https://github.com/whittlem/pycryptobot/pull/548
    • Fix Binance Market validation by @byymster in https://github.com/whittlem/pycryptobot/pull/549
    • Introducing granularity enum by @edrickrenan in https://github.com/whittlem/pycryptobot/pull/553
    • Finishing exchange migration to enum by @edrickrenan in https://github.com/whittlem/pycryptobot/pull/554
    • Beta - Kucoin fixes, Telegram options and output additions, api_key_file cli option by @chriskoepf in https://github.com/whittlem/pycryptobot/pull/557
    • Adding granularity config to default_parser.py by @edrickrenan in https://github.com/whittlem/pycryptobot/pull/564
    • Beta by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/567
    • fix for binance candles by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/569
    • Fix for incorrect insufficient base fund errors on Kucoin by @chriskoepf in https://github.com/whittlem/pycryptobot/pull/570
    • telegram config options, sim buy timestamp, fix tracker bug by @chriskoepf in https://github.com/whittlem/pycryptobot/pull/571
    • spelling fixes by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/574
    • unit test fix by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/575
    • Added fix for datetime compatibility with ticker datetime notation. by @Zathrasss in https://github.com/whittlem/pycryptobot/pull/576
    • Merging beta into main by @whittlem in https://github.com/whittlem/pycryptobot/pull/573

    New Contributors

    • @jaredrsommer made their first contribution in https://github.com/whittlem/pycryptobot/pull/543
    • @byymster made their first contribution in https://github.com/whittlem/pycryptobot/pull/550
    • @Zathrasss made their first contribution in https://github.com/whittlem/pycryptobot/pull/576

    Full Changelog: https://github.com/whittlem/pycryptobot/compare/4.2.1...4.4.1

    Source code(tar.gz)
    Source code(zip)
  • 4.2.1(Oct 19, 2021)

    What's Changed

    • Fix typos discovered by codespell by @cclauss in https://github.com/whittlem/pycryptobot/pull/532
    • some fixes by @markhollingworth in https://github.com/whittlem/pycryptobot/pull/537
    • Merging beta into main by @whittlem in https://github.com/whittlem/pycryptobot/pull/538

    New Contributors

    • @markhollingworth made their first contribution in https://github.com/whittlem/pycryptobot/pull/537

    Full Changelog: https://github.com/whittlem/pycryptobot/compare/4.2.0...4.2.1

    Source code(tar.gz)
    Source code(zip)
  • 4.2.0(Oct 17, 2021)

    What's Changed

    • don't truncate close price by @thiasB in https://github.com/whittlem/pycryptobot/pull/522
    • Fix typo by @cclauss in https://github.com/whittlem/pycryptobot/pull/523
    • Fix typos discovered by codespell by @cclauss in https://github.com/whittlem/pycryptobot/pull/524
    • Updates/telegrambot by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/530
    • Merge beta into main by @whittlem in https://github.com/whittlem/pycryptobot/pull/531

    New Contributors

    • @thiasB made their first contribution in https://github.com/whittlem/pycryptobot/pull/522
    • @cclauss made their first contribution in https://github.com/whittlem/pycryptobot/pull/523

    Full Changelog: https://github.com/whittlem/pycryptobot/compare/4.1.0...4.2.0

    Source code(tar.gz)
    Source code(zip)
  • 4.1.0(Oct 8, 2021)

    What's Changed

    • Merge beta into main by @whittlem in https://github.com/whittlem/pycryptobot/pull/504
    • Feature/kucoin init by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/510
    • chore(logger): Add trade currency on dryrun simulation summary by @germainlefebvre4 in https://github.com/whittlem/pycryptobot/pull/506
    • Telegram output tweaks by @chriskoepf in https://github.com/whittlem/pycryptobot/pull/513
    • doc: Update CHANGELOG.md by @germainlefebvre4 in https://github.com/whittlem/pycryptobot/pull/514
    • Merging beta into main by @whittlem in https://github.com/whittlem/pycryptobot/pull/512
    • Feature/telegrambot by @markhollingworth-worthit in https://github.com/whittlem/pycryptobot/pull/520
    • Merging beta into main by @whittlem in https://github.com/whittlem/pycryptobot/pull/521

    New Contributors

    • @chriskoepf made their first contribution in https://github.com/whittlem/pycryptobot/pull/513

    Full Changelog: https://github.com/whittlem/pycryptobot/compare/4.0.3...4.1.0

    Source code(tar.gz)
    Source code(zip)
Owner
Michael Whittle
Solution Architect
Michael Whittle
spider-admin-pro

Spider Admin Pro Github: https://github.com/mouday/spider-admin-pro Gitee: https://gitee.com/mouday/spider-admin-pro Pypi: https://pypi.org/

mouday 289 Jan 06, 2023
A Django admin theme using Twitter Bootstrap. It doesn't need any kind of modification on your side, just add it to the installed apps.

django-admin-bootstrapped A Django admin theme using Bootstrap. It doesn't need any kind of modification on your side, just add it to the installed ap

1.6k Dec 28, 2022
A new style for Django admin

Djamin Djamin a new and clean styles for Django admin based in Google projects styles. Quick start Install djamin: pip install -e git://github.com/her

Herson Leite 236 Dec 15, 2022
aiohttp admin is generator for admin interface based on aiohttp

aiohttp admin is generator for admin interface based on aiohttp

Mykhailo Havelia 17 Nov 16, 2022
Video Visual Relation Detection (VidVRD) tracklets generation. also for ACM MM Visual Relation Understanding Grand Challenge

VidVRD-tracklets This repository contains codes for Video Visual Relation Detection (VidVRD) tracklets generation based on MEGA and deepSORT. These tr

25 Dec 21, 2022
Nginx UI allows you to access and modify the nginx configurations files without cli.

nginx ui Table of Contents nginx ui Introduction Setup Example Docker UI Authentication Configure the auth file Configure nginx Introduction We use ng

David Schenk 4.3k Dec 31, 2022
Sandwich Batch Normalization

Sandwich Batch Normalization Code for Sandwich Batch Normalization. Introduction We present Sandwich Batch Normalization (SaBN), an extremely easy imp

VITA 48 Dec 15, 2022
FastAPI Admin Dashboard based on FastAPI and Tortoise ORM.

FastAPI ADMIN 中文文档 Introduction FastAPI-Admin is a admin dashboard based on fastapi and tortoise-orm. FastAPI-Admin provide crud feature out-of-the-bo

long2ice 1.6k Jan 02, 2023
Tactical RMM is a remote monitoring & management tool for Windows computers, built with Django and Vue.

Tactical RMM is a remote monitoring & management tool for Windows computers, built with Django and Vue. It uses an agent written in golan

Dan 1.4k Dec 30, 2022
A jazzy skin for the Django Admin-Interface (official repository).

Django Grappelli A jazzy skin for the Django admin interface. Grappelli is a grid-based alternative/extension to the Django administration interface.

Patrick Kranzlmueller 3.4k Dec 31, 2022
An administration website for Django

yawd-admin, a django administration website yawd-admin now has a live demo at http://yawd-admin.yawd.eu/. Use demo / demo as username & passowrd. yawd

Pantelis Petridis 140 Oct 30, 2021
fastapi-admin is a fast admin dashboard based on FastAPI and TortoiseORM with tabler ui, inspired by Django admin.

fastapi-admin is a fast admin dashboard based on FastAPI and TortoiseORM with tabler ui, inspired by Django admin.

fastapi-admin 1.6k Dec 30, 2022
Awesome Video Datasets

Awesome Video Datasets

Yunhua Zhang 462 Jan 02, 2023
Visually distinguish environments in Django Admin

django-admin-env-notice Visually distinguish environments in Django Admin. Based on great advice from post: 5 ways to make Django Admin safer by hakib

Yuri Shikanov 258 Nov 30, 2022
Drop-in replacement of Django admin comes with lots of goodies, fully extensible with plugin support, pretty UI based on Twitter Bootstrap.

Xadmin Drop-in replacement of Django admin comes with lots of goodies, fully extensible with plugin support, pretty UI based on Twitter Bootstrap. Liv

差沙 4.7k Dec 31, 2022
AdminFinderV1.5 - Hacking Website Admin Finder Defacer Script

Assalamualaikum Kembali Lagi bersama gua sang culun+nolep ini :v AdminFinder New

KOBUSTOR GHOST TEAM 2 Feb 15, 2022
Python Crypto Bot

Python Crypto Bot

Michael Whittle 1.6k Jan 06, 2023
Tornadmin is an admin site generation framework for Tornado web server.

Tornadmin is an admin site generation framework for Tornado web server.

Bharat Chauhan 0 Jan 10, 2022
There is a new admin bot by @sinan-m-116 .

find me on telegram! deploy me on heroku, use below button: If you can't have a config.py file (EG on heroku), it is also possible to use environment

Sinzz-sinan-m 0 Nov 09, 2021
Django Semantic UI admin theme

Django Semantic UI admin theme A completely free (MIT) Semantic UI admin theme for Django. Actually, this is my 3rd admin theme for Django. The first

Alex 69 Dec 28, 2022