Code Monkey home page Code Monkey logo

pt-risk-dash's Introduction

Screenshot 1

What is this?

This is a dashboard I built for personal use that utilises Grafana, postgresql and a script to take statistics from the Profit Trailer json file to a database so that I can view metrics that are important to me. It is not ideal as it does not take information from the exchange but will work as an approximation for now.

Why did you do this?

Having spent 15 years developing software for Forex trading desks, the most important tool in their arsenal is a risk management tool. Any proprietary trading desk or a flow desk, needs to see their risk exposure, not just the big fat profit figure. This is something that was missing for me, and hence I put this together.

Who is this for?

This is not a simple one click install application. It requires a bit of installation and expertise to put together. There are far better and easier tools out there if you want profit figures only. This is for someone who wants to manage their risk, and also over multiple bots.

How much is it?

Nothing. It is fully open source, like CryptoGramBot.

How do I install it? Option 1 (To be improved)

  1. Install Grafana beta 5
  2. Install postgresdb, if not already installed
  3. Run sql scripts on new postgres db (db is called pt_binance. Probably should be renamed)
  4. Run js file on a cron job with parameters (host,port,password, schema_name) There maybe some dependencies you'll to install for node. If you run the js file manually, you'll see them. There are 2 or 3
  5. Import the json dashboards into grafana. (Trex, Binance BTC, Binance ETH and PT Combined BTC added as an example)

How do I install it? option 2 (To be improved)

  1. Install docker
  2. Install docker-compose
  3. Install nodejs
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt install -y nodejs
  1. Installation grafana 5, postgres and pgadmin via docker
docker-compose up -d
  1. Install nodejs package and run script
cd pt-exporter
npm install
node ptlogger.js 127.0.0.1 8081 pt_password binance

Issues

  1. If Grafana does not find the given source directly, you have to delete the data source and recreate it manually (I suspect a bug in grafana v5 with the option "sslmode: disable" in the datasource.yml file)

  2. If you want to display the values in USD/EUR and not GBP by default, you will have to modify the references in the graphs.

Huge thanks

  • Inspiration from GeekLingo
  • YoJeff for his initial grafana script
  • The PT Crew

pt-risk-dash's People

Contributors

but4ler avatar mehtadone 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.