Coder Social home page Coder Social logo

decktron / futuresboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ecoppen/futuresboard

0.0 0.0 0.0 1.23 MB

Dashboard to monitor the performance of your Binance or Bybit Futures account

Home Page: http://www.futuresboard.dev/

License: GNU General Public License v3.0

JavaScript 8.55% Python 51.12% CSS 2.03% HTML 37.97% Dockerfile 0.32%

futuresboard's Introduction

Futuresboard

A python (3.7+) based scraper and dashboard to monitor the performance of your Binance or Bybit Futures account.

GitHub Pipenv locked Python version License: GPL v3 FOSSA Status Code style: black

Version 2

Version 2 is currently in development and can be found in a separate branch. In short it manage multiple accounts from one dashboard and comes in darkmode.

Getting started

  • Create a fresh new API on Binance or Bybit, with only read rights.
  • Clone this repository: git clone https://github.com/ecoppen/futuresboard.git
  • Navigate to the futuresboard directory: cd futuresboard
  • Install dependencies python -m pip install .. For developing, python -m pip install -e .[dev]
  • Copy config/config.json.example to config/config.json and add your new api key and secret: nano config.json
  • Collect your current trades by running futuresboard --scrape-only. If you want to monitor the weight usage (see below).
  • By default, when launching the futuresboard web application, a separate thread is also started to continuously collect new trades. Alternatively, setup the scraper on a crontab or alternative to keep the database up-to-date: crontab -e then */5 * * * * futuresboard --scrape-only (example is every 5 minutes, change to your needs) In this case, don't forget to pass --disable-auto-scraper.
  • Start a screen or alternative if you want the webserver to persist: screen -S futuresboard
  • Start the futuresboard web application futuresboard
  • Navigate to the IP address shown e.g. http://127.0.0.1:5000/. These settings can be changed by passing --host and/or --port when running the above command

Currently only Binance and Bybit Futures are supported - as those are supported by passivbot.

API weight usage - Binance

  • Reminder: Binance API allows you to consume up to 1200 weight / minute / IP.
  • Account: Fetching account information costs 5 weight per run
  • Income: Fetching income information costs 30 weight per 1000 (initial run will build database, afterwards only new income will be fetched)
  • Orders: Fetching open order information costs 40 weight per run
  • The scraper will sleep for a minute when the rate exceeds 800 within a minute

API weight usage - Bybit

  • Account/Income/Positions: Fetching account information or positions costs 1 weight per run with a maximum combination allowed of 120/min. Income can be fetched in batches of 50 (initial run will build database, afters only new income will be fetched)
  • Orders: Fetching open order information costs 1 weight per symbol with a maximum allowed of 600/min
  • The scraper will sleep for a minute when the rate exceeds 100 within a minute

Customising the dashboard

The /config/config.json file allows you to customise the look and feel of your dashboard as follows:

  • AUTO_SCRAPE_INTERVAL is set to 300 seconds, this value can be adjusted between 60 and 3600
  • NAVBAR_TITLE changes the branding in the top left of the navigation (see below)
  • NAVBAR_BG changes the colour of the navigation bar, acceptable values are: bg-primary, bg-secondary, bg-success, bg-danger, bg-warning, bg-info and the default bg-dark
  • PROJECTIONS changes the percentage values on the projections page. 1.003 equates to 0.3% daily and 1.01 equates to 1% daily.

For example, setting "NAVBAR_TITLE": "Custom title" and "NAVBAR_BG": "bg-primary", would result in:

Screenshots

dashboard

calendar

coin

1h chart

history

positions

projection

License

FOSSA Status

Alternative dashboards

futuresboard's People

Contributors

ecoppen avatar s0undt3ch avatar aumanusorn avatar goldmang avatar sembsa avatar rluisr avatar krishna3114 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.