shuyinggg / OrderBookWebsite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Order Book Website

This project uses vue.js 2.0 and bootstrap + vue.

The website displays three kinds of visualization of market data.

  • Depth Chart (with d3.js)
  • Candlestick Chart (with d3.js)
  • Tables (Pagination)

Project Setup

npm install
npm i bootstrape
npm i bootstrap-vue
npm install d3

Code Structure

.
├── public                   
├── src
│   ├── assets 
│       ├── bid.json              # sample data in the table from sellers
        ├── ask.json              # sample data in the table from buyers
        ├── trade.json            # via binance.com api (values are in text)
        ├── trade_mock.json       # randomly generated trade data 
│   ├── components                # vue components
        ├── DepthChart.vue        # depth chart based on sample data
        ├── MarketChart.vue       # candlestick chart based on generated data
│       ├── Sellers.vue           # left table
│       ├── Buyers.vue            # right table
│   ├── App.vue
│   ├── trade_history.py          # obtain historical trade data from binance.com
│   └── main.js                               
├── .gitignore
├── babel.config.js
├── package-lock.json
├── package.json
└── README.md

Usage

In terminal,

Compiles and hot-reloads for development

npm run serve

Then navigate to the localhost shown in the terminal, usually http://localhost:8080/.

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

About


Languages

Language:Vue 96.1%Language:Python 2.0%Language:HTML 1.0%Language:JavaScript 0.8%