🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

vue-tradingchart

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-tradingchart

Vue trading view charts

1.0.1
latest
Source
npm
Version published
Weekly downloads
7
600%
Maintainers
1
Weekly downloads
 
Created
Source

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

PropertyDescriptiontypedefault
themeset theme for chart between 'light' and 'dark'Stringlight
symbolset symbol for chartString
hide_top_toolbarHide ToolbarBooleanfalse
intervalset time-based bar interval (1m[1] - 1h[60] - 1D[D] - 1W[W] - 1Y[Y])StringD
allow_symbol_changeallow to change symbolBooleantrue
callendarshow callendarBooleanfalse
...

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

Keywords

vue

FAQs

Package last updated on 04 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts