Giter Club home page Giter Club logo

influx-crypto-watcher's Introduction

influx crypto watcher Build Status Coverage Status

Crypto market data aggregator

This project is used by influx crypto trader to make a complete system of trading (with backtesting)

Description

This application help gathering data about cryptocurrencies (stock price, signals, tweet) and store those data in InfluxDB

Getting started

Install dependencies

npm install

Run docker containers (influx, mongodb) (Need docker-compose)

npm run docker-start

Start watcher api

npm start

Create your first watcher (binance, BTC/USDT)

curl --request POST --url http://localhost:3000/watchers --header 'content-type: application/json' --data\
 '{ "type": "MarketWatcher",
    "exchange": "binance",
    "quote": "USDT",
    "base": "BTC",
    "extra": {
      "refreshInterval": 30000,
      "maxHistory": "2018-10-01T00:00:00Z"
      }
    }'

Then go to grafana (http://localhost:3001/):

  • Configure data source

datasource

  • import the dashboard given in "docker/grafana/dashboard/cypto-watcher.json"

dashboard

Core

The software let you deploy watcher which will collect data about a specific exchange cryptocurrency.

The principal concept is the watcher. A watcher can track price/signal (TODO => telegram signal part)

A watcher will track a cryptocurrency price given a configuration. For example to watch the price of BTC/USDT on binance we configure a MarketWatcher as:

{
  type: 'MarketWatcher'
  exchange: 'binance';
  base: 'BTC';
  quote: 'USDT';
  extra: {
    refreshInterval: 30000; // refresh every 30 seconds
    maxHistory: "2018-10-01T00:00:00Z"; // onInit will fetch history data
  };
}

Every watcher are persist to MongoDB to restart them on reboot.

API

  • Doc available at http://localhost:3000/docs generated with lout
  • Easy watcher deployment
  • Watch specific currencies
  • TODO Watch signals (telegram, ...?)

Visualization with grafana

A grafana container will run when using npm run docker

Then go to http://localhost:3001/

  • username: admin
  • password: admin

UI

influx-crypto-watcher's People

Contributors

clementpl avatar

Watchers

Ben Haim 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.