Giter Site home page Giter Site logo

btc-guru's Introduction

BTC guru

Hobby project for showing off some Machine Learning skills in addition to software engineering.

Predicting the price of BTC/USD price using historical OHLCV (open, high, low, close and volume) data.

I might return to this project to add more transparency about the error metrics and some backtesting.

Update 2 August 2019: Scaling the output variable prior to fitting. Now fitting a stacked LSTM neural net outputing the next 24 hours of closing prices. Performance went up considerably with this method, and it's no longer reliant on the past movements of the closing price as much. Every hour I'm delivering predictions for the next 24 hours.

Update August 2019: Currently predicting the percentage movement in BTC/USD 24 hours ahead. This proved to have some problems as the model mostly predicts small movements centered around 0. A better approach might be to try and predict in what percentile the percent change will be based on all earlier historical price movements. That way the model might also guess very high or very low values.

Setup

  1. Sign up to CoinApi and obtain an API token.
  2. Replace the dummy token in the .env file and replace the database credentials however you want.
  3. Run make run or docker-compose up -d --build

Tests

To run unit tests and type checking build the images then run make tests

Architecture

  • Using InfluxDB to store time series.
  • Serving the website with gunicorn
  • Rate limit on the public api to prevent abuse
  • Fetching hourly data from CoinApi and seeding the database with public cryptocurrency data in plain csv from a cryptocurrency data website.
  • Charts drawn with Highstock
  • Model is (currently) a Tensorflow one-layer recurrent neural network.
    • Initial plan was to also utilize Tensorflow probability to get the confidence in the predictions to the front-end, but this first version does not include it.

btc-guru's People

Contributors

dependabot[bot] avatar lseffer 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.