All Projects → whittlem → Pycryptobot

whittlem / Pycryptobot

Licence: apache-2.0
Python Crypto Bot

Projects that are alternatives of or similar to Pycryptobot

Indonesian Language Models
Indonesian Language Models and its Usage
Stars: ✭ 64 (+0%)
Mutual labels:  jupyter-notebook
Genetic Algorithm Rnn
Using Genetic Algorithms to optimize Recurrent Neural Network's Configuration
Stars: ✭ 64 (+0%)
Mutual labels:  jupyter-notebook
W2v
Word2Vec models with Twitter data using Spark. Blog:
Stars: ✭ 64 (+0%)
Mutual labels:  jupyter-notebook
Otml ds3 2018
Practical sessions for the Optimal Transport and Machine learning course at DS3 2018
Stars: ✭ 64 (+0%)
Mutual labels:  jupyter-notebook
Machine Learning In Finance
Stars: ✭ 64 (+0%)
Mutual labels:  jupyter-notebook
Dqn Pytorch
Deep Q Learning via Pytorch
Stars: ✭ 64 (+0%)
Mutual labels:  jupyter-notebook
Pneumonia Detection From Chest X Ray Images With Deep Learning
Detecting Pneumonia in Chest X-ray Images using Convolutional Neural Network and Pretrained Models
Stars: ✭ 64 (+0%)
Mutual labels:  jupyter-notebook
Python Course
Stuff for python courses
Stars: ✭ 64 (+0%)
Mutual labels:  jupyter-notebook
Deepbayes2017
Stars: ✭ 64 (+0%)
Mutual labels:  jupyter-notebook
Pydata Nyc 2015
📜 Understanding Probabilistic Topic Models with Simulation in Python
Stars: ✭ 64 (+0%)
Mutual labels:  jupyter-notebook
Net Analysis
Tools, libraries and applications to analyze network measurements and detect interference.
Stars: ✭ 64 (+0%)
Mutual labels:  jupyter-notebook
Matplotlib4papers
Matplotlib examples to present results.
Stars: ✭ 64 (+0%)
Mutual labels:  jupyter-notebook
Apmae4990
Introduction to Data Science in Industry
Stars: ✭ 64 (+0%)
Mutual labels:  jupyter-notebook
Machine Learning Notes
A repository to save my machine learning notes.
Stars: ✭ 64 (+0%)
Mutual labels:  jupyter-notebook
Learningwithdata
Code for Learning with Data Blog
Stars: ✭ 64 (+0%)
Mutual labels:  jupyter-notebook
Deconfounder tutorial
Stars: ✭ 64 (+0%)
Mutual labels:  jupyter-notebook
Text Top Model
Benchmarking text classification algorithms
Stars: ✭ 64 (+0%)
Mutual labels:  jupyter-notebook
Quac
QUAC ("quantitative analysis of chatter" or any related acronym you like) is a package for acquiring and analyzing social Internet content. Docs are online at http://reidpr.github.io/quac.
Stars: ✭ 64 (+0%)
Mutual labels:  jupyter-notebook
Datascience
Stars: ✭ 64 (+0%)
Mutual labels:  jupyter-notebook
Taxiprediction
Stars: ✭ 64 (+0%)
Mutual labels:  jupyter-notebook

Python Crypto Bot (pycryptobot)

Introduction

Follow me on Medium for updates! https://whittle.medium.com

Prerequisites

  • Python 3.x installed -- https://installpython3.com

    % 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)

  • The app should work with Python 3.x, but to avoid issues try run Python 3.8 or higher

Installation

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

Additional Information

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

Run it

% python3 pycryptobot.py

* Arguments
--market <market> (default: BTC-GBP)
    * Coinbase Pro market
--granularity <granularity> (default: 3600)
    * Supported granularity in seconds
--live <1 or 0> <default: 0>
    * Is the bot live or in test/demo mode
--graphs <1 or 0> (default: 0)
    * Save graphs on buy and sell events
--sim <fast or slow>
    * Run a simulation on last 300 intervals of data
--verbose <1 or 0> (default: 1)
    * Toggle verbose or minimal output

Live Trading

In order to trade live you need to authenticate with the Coinbase Pro API. 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.

Multi-Market Trading

The bot can trade mutiple markets at once. This is also documented in my Medium articles. The bot will execute buys using the full FIAT balance it has access too and it will sell the full crypto 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.

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 4 bots running at once for my Portfolios: "Bot - BTC-GBP", "Bot - BCH-GBP", "Bot - ETH-GBP", and "Bot - ETH-GBP"

The way I run my four bots is as follow:

BTC-GBP % rm pycryptobot.log; rm orders.csv; git reset --hard; git pull; clear; python3 pycryptobot.py --market BTC-GBP --granularity 3600 --live 1 --verbose 0 --graphs 1

BCH-GBP % rm pycryptobot.log; rm orders.csv; git reset --hard; git pull; clear; python3 pycryptobot.py --market BCH-GBP --granularity 3600 --live 1 --verbose 0 --graphs 1

ETH-GBP % rm pycryptobot.log; rm orders.csv; git reset --hard; git pull; clear; python3 pycryptobot.py --market ETH-GBP --granularity 3600 --live 1 --verbose 0 --graphs 1

LTC-GBP % rm pycryptobot.log; rm orders.csv; git reset --hard; git pull; clear; python3 pycryptobot.py --market ETH-GBP --granularity 3600 --live 1 --verbose 0 --graphs 1

Fun quick non-live demo

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

Enjoy and happy trading! :)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].