项目
在 GitHub 查看
rafaelklaessen/react-tradingview-widget
关于
React component for rendering the TradingView Advanced Real-Time Chart Widget.
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文react-tradingview-widget
React component for rendering the TradingView Advanced Real-Time Chart Widget.
Install
yarn add react-tradingview-widget
or
npm install --save react-tradingview-widget
Usage
Basic example
import TradingViewWidget from 'react-tradingview-widget';
const App = () => (
<TradingViewWidget 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 TradingViewWidget, { Themes } from 'react-tradingview-widget';
const App = () => (
<TradingViewWidget
symbol="NASDAQ:AAPL"
theme={Themes.DARK}
locale="fr"
autosize
/>
);
Constants and API differences
react-tradingview-widget exports constants for the following things:
- Interval types:
IntervalTypes.DandIntervalTypes.W - Range types (for the
rangeprop):RangeTypes.YTDandRangeTypes.ALL - Themes:
Themes.LIGHTandThemes.DARK - BarStyles:
BarStyles.BARSBarStyles.CANDLESBarStyles.HOLLOW_CANDLESBarStyles.HEIKIN_ASHIBarStyles.LINEBarStyles.AREABarStyles.RENKOBarStyles.LINE_BREAKBarStyles.KAGIBarStyles.POINT_AND_FIGURE
You don't have to use these constants.
react-tradingview-widget also makes it possible to use numbers for interval, popup_width and popup_height instead of strings, but this is not required.
探索相关项目
加载中…