Socket
Socket
Sign inDemoInstall

react-tradingview-wrapper

Package Overview
Dependencies
8
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-tradingview-wrapper

React component for rendering the TradingView Advanced Real-Time Chart Widget


Version published
Weekly downloads
20
increased by566.67%
Maintainers
1
Install size
181 kB
Created
Weekly downloads
 

Readme

Source

Install

yarn add react-tradingview-wrapper or npm install --save react-tradingview-wrapper

Usage

Basic example

import TradingView from 'react-tradingview';

const App = () => (
  <TradingView symbol="NASDAQ:AAPL" />
);

All given props are passed on to the widget config. See this page for the TradingView Advanced Real-Time Chart API.

Advanced example

import TradingView, { Themes } from 'react-tradingview-wrapper';

const App = () => (
  <TradingView
    symbol="NASDAQ:AAPL"
    theme={Themes.DARK}
    locale="fr"
    autosize
  />
);

Constants and API differences

react-tradingview-wrapper exports constants for the following things:

  • Interval types: IntervalTypes.D and IntervalTypes.W
  • Themes: Themes.LIGHT and Themes.DARK
  • BarStyles:
    • BarStyles.BARS
    • BarStyles.CANDLES
    • BarStyles.HOLLOW_CANDLES
    • BarStyles.HEIKIN_ASHI
    • BarStyles.LINE
    • BarStyles.AREA
    • BarStyles.RENKO
    • BarStyles.LINE_BREAK
    • BarStyles.KAGI
    • BarStyles.POINT_AND_FIGURE

You don't have to use these constants.

react-tradingview-wrapper also makes it possible to use numbers for interval, popup_width and popup_height instead of strings, but this is not required.

Keywords

FAQs

Last updated on 05 Feb 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc