/visualization-engine

Visualize trade history for a variety of assets given a standard static json file input

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Trade Visualizer

example-output

Installation

npm install

Running

  • Place the trade json in the public folder under the name data.json. It should follow the following format:
{
    "candles": [
        {
            time: 1529884800,
            open: "2134.234",
            high: "2354",
            low: "234",
            close: "2365" 
        },
        ...
    ],
    "orders": [
        {
            time: 1529884800,
            position:
            color:
            shape:
            id:
            text:
            size:
        }
    ]
}
  • Note: timestamp should be formatted as mentioned here

  • Each order is a marker object as defined here

  • Build the docker image

docker build -t synalytica/viz-engine .
  • Run the image
docker run -e DEBUG=1 -v $PWD:/app -p 8000:3000 --rm -it synalytica/viz-engine
# or in production
docker run -e DEBUG=0 -v $PWD:/app -p 80:3000 --rm -d -it synalytica/viz-engine