Git Product home page Git Product logo

cryptobot's Introduction

A really simple Cryptobot

image info

With this package you can

  1. Connect to Coinbase to fetch data at regular intervals (1 hour),
  2. Run bots to generate "Buy" and "Sell" signals,
  3. Display these using a simple Plotly dashboard.

The package features

CoinTimeseries Class

Represents coin time-series and offers access methods. Not to be directly interfaced by users.

Fetcher Class

Fetches serially new data from Coinbase servers and saves to local DB. It takes a bit of time the first time it runs. Fetcher requires a cred.yaml file for authentication.

Bot Class

Bots read regularly and in parallel local data to generate Buy and Sell decisions, which are also saved to the local DB. They assume that latest data points have already been fetched. Currently implemented a moving average bot. It generates a buy signal as soon as the small window moving average crosses the large window moving average signals.

Local DB

This is currently a collection of .CSV files and fulfils the purpose.

Logger

Fetchers and Bots generate in addition to printing proper log messages they also write to log files under /log.

Requirements:

Poetry version 1.1.11

Python >=3.7.6

pyenv 1.2.17-1-g89786b90

cred.yaml to connect to CoinBase with the following keys api_key, api_secret, passphrase.

Installation

make setup to install Python environment.

Running

Currently, there is no CLI implemented.

python Fetcher.py to start the fetching process. python Bot.py to start the moving average bot.

cryptobot's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.