Coder Social home page Coder Social logo

robin2010liu / my-trading-charts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adrianmanchev/trading-charts

0.0 0.0 0.0 2.05 MB

Example Vue.js website demonstrating how to listen to the Binance Websocket server and trade charts using d3.js.

Home Page: https://adrianmanchev.github.io/trading-charts

License: MIT License

Shell 0.08% JavaScript 44.91% HTML 1.95% Vue 53.06%

my-trading-charts's Introduction

SonarCloud analysis Quality Gate Status Vulnerabilities W3C Validation

trading-charts

Example Vue.js website demonstrating how to listen to the Binance Websocket server and trade charts using d3.js.

Bitcoin to Tether chart

Demo

⚡️ https://adrianmanchev.github.io/trading-charts

Shortcodes

D3

Create a line chart with historical close prices for the time series and change the tick price.

import chart from '@/helpers/chart'

const draw = chart(data, {
  width: 960
})

draw.update(price)

Binance

Request historical klines data for a certain symbol over a specified time period. For drawing line charts inside payload data, use time and close price.

import axios from 'axios'

const instance = axios.create(
  baseURL: 'https://api.binance.com',
  headers: {
    Accept: 'application/json',
    'Content-Type': 'application/json'
  }
})

const klines = instance({
  method: 'get',
  url: '/api/v3/klines',
  params: {
    symbol: 'BTCUSDT',
    interval: '15m'
  }
})

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

my-trading-charts's People

Contributors

adrianmanchev avatar dependabot[bot] 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.