vue-tradingchart

Vue trading view charts
1,494
Install
npm install vue-tradingchart
Latest Version:1.0.1
Vue:2
License:ISC
Last Updated:May 4, 2022
Links: GitHub  ·  npm
Maintainer: bihnam

vue-tradingchart

It's a Trading view chart component for Vue and Nuxt.

vue-tradingchart is a dependency-free, lightweight vue component that can be overwrited by yourself. It is support vue-ssr.

How to use?

npm install vue-tradingchart

Example

<template>
  <vue-trading-chart :options="chartOptions"></countup>
</template>

<script>
  import vuetradingchart from 'vue-tradingchart';
  export default {
    components: { vuetradingchart },
    data () {
      return {
        chartOptions: {
            theme: 'light',
            symbol: 'BTCUSDT',
            width: 980,
            height: 600,
            hide_top_toolbar: true,
            interval: 240 // that's mean 4h //
        }
      }
    }
  }
</script>

Options

Property Description type default
theme set theme for chart between 'light' and 'dark' String light
symbol set symbol for chart String
hide_top_toolbar Hide Toolbar Boolean false
interval set time-based bar interval (1m[1] - 1h[60] - 1D[D] - 1W[W] - 1Y[Y]) String D
allow_symbol_change allow to change symbol Boolean true
callendar show callendar Boolean false
...

for more options can see this page for the TradingView Advanced Real-Time Chart API.

Related Packages

vue-tradingview-widgets

tradingview widgets for Vue3 and Nuxt3

14,457 114
nuxt-tradingview

TradingView Widgets for Nuxt

7,994 36
@nathanchase/nuxt-dayjs-module

This is a Nuxt 3 compatible module built with the official Nuxt 3 (module-builde...

19,376 31
cap-socket

Functions developed by Cap to establish real-time and persistent communication w...

968
@brc-dd/nuxt-i18n

Minimal module for i18n with locale auto-imports & localized routing

898 12

Version History

Version Released Vue License
1.0.1 ^2.5.16 ISC
1.0.0 ^2.5.16 ISC