@orbis-systems/orbis-chart-react
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -53,4 +53,6 @@ import React from 'react'; | ||
} | ||
const { apiUrl = 'https://charts.orbis.dev/api/', quoteType = 'delayed', updateInterval = 2000, chartConfig, } = this.props; | ||
new TradingView.widget(Object.assign(Object.assign({ locale: 'en', interval: 'D', library_path: '/charting/' }, chartConfig), { container_id: this.containerId, datafeed: new OrbisDatafeed(apiUrl, updateInterval, quoteType) })); | ||
const { apiUrl = 'https://charts.orbis.dev/api/', quoteType = 'delayed', token, updateInterval = 2000, chartConfig, } = this.props; | ||
new TradingView.widget(Object.assign(Object.assign({ locale: 'en', interval: 'D', library_path: '/charting/' }, chartConfig), { container_id: this.containerId, datafeed: token | ||
? new OrbisDatafeed(apiUrl, updateInterval, quoteType, 'sessionid', token) | ||
: new OrbisDatafeed(apiUrl, updateInterval, quoteType) })); | ||
}; | ||
@@ -57,0 +59,0 @@ this.cleanupWidget = () => { |
@@ -7,2 +7,3 @@ import React from 'react'; | ||
quoteType?: 'delayed' | 'realtime'; | ||
token?: string; | ||
updateInterval?: number; | ||
@@ -9,0 +10,0 @@ chartConfig: Partial<TradingTerminalWidgetOptions> & { |
{ | ||
"name": "@orbis-systems/orbis-chart-react", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
61558
1634