Giter Site home page Giter Site logo

deeptradingfx / cryptoviz Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ameobea/cryptoviz

0.0 1.0 0.0 141 KB

A web-based Depth-Of-Market visualization for data of the Poloniex cryptocurrency exchange.

Home Page: https://cryptoviz.net/

License: MIT License

HTML 39.34% CSS 1.61% JavaScript 59.05%

cryptoviz's Introduction

Cryptoviz

Cryptoviz is an orderbook visualization tool for the Poloniex exchange. It provides a dynamic Depth-Of-Market (DOM) view that provides a much higher level of detail than traditionally used visualizations such as candlestick charts. You can use this tool yourself on Cryptoviz.

Example of CryptoViz Interface:

Overview

CryptoViz uses the Poloniex WebSocket API to receive live order data directly from the exchange. Internally, it maintains a copy of the full orderbook including the levels where volume lies and the amount of volume at those levels. These volume levels are then grouped together into bands and displayed on a canvas.

In addition to showing volume levels, the tool also draws trades and renders indicators varying in size according to how large the trade was.

Cool Technical Details

Cryptoviz makes use of the PaperJS library to render the visualization UI and the trade lines/indicators. The trade lines are rendered on a separate canvas that is displayed beneath the trade lines canvas for performance reasons.

We avoid re-rendering the entire canvas every update by making use of the fact that the left-side of the chart stays constant with new volume bands only ever being added to the right side. In cases where we overrun the canvas, zoom, or change currencies, all received events are re-played in sequence to rebuild the visualization from scratch.

The site itself makes light use of React and the DvaJS framework as well as Material Design for the interface at the bottom.

Development

Setting up the dev environmnent for this project is easy! All you really have to do is clone the repository, install dependencies with npm install or yarn, and run npm start to launch the local development server. There is no configuration options that need to be set or data sources to configure; the tool pulls its data directly from the public Poloniex API.

Contributing

I'd love to work with you to add a feature, fix a bug, or implement Cryptoviz in your own project! If you'd like to make a change or find an issue that needs fixing, please open an issue.

cryptoviz's People

Contributors

ameobea avatar stephenthoma avatar

Watchers

 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.