@orbis-systems/orbis-chart-react
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -7,3 +7,3 @@ export * from './OrbisChart'; | ||
new (apiUrl: string, updateInterval: number, type: OrbisChartProps['quoteType']): TradingView.ChartingLibraryWidgetOptions['datafeed']; | ||
new (apiUrl: string, updateInterval: number, type: OrbisChartProps['quoteType'], sessionId: 'sessionid', token: string): TradingView.ChartingLibraryWidgetOptions['datafeed']; | ||
new (apiUrl: string, updateInterval: number, type: OrbisChartProps['quoteType'], sessionId: 'sessionid', token: string, env?: string): TradingView.ChartingLibraryWidgetOptions['datafeed']; | ||
} | ||
@@ -10,0 +10,0 @@ declare global { |
@@ -53,5 +53,5 @@ import React from 'react'; | ||
} | ||
const { apiUrl = 'https://charts.orbis.dev/api/', quoteType = 'delayed', token, updateInterval = 2000, chartConfig, } = this.props; | ||
const { apiUrl = 'https://charts.orbis.dev/api/', quoteType = 'delayed', token, env, 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, 'sessionid', token, env) | ||
: new OrbisDatafeed(apiUrl, updateInterval, quoteType) })); | ||
@@ -58,0 +58,0 @@ }; |
@@ -8,2 +8,3 @@ import React from 'react'; | ||
token?: string; | ||
env?: string; | ||
updateInterval?: number; | ||
@@ -10,0 +11,0 @@ chartConfig: Partial<TradingTerminalWidgetOptions> & { |
{ | ||
"name": "@orbis-systems/orbis-chart-react", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
61601
1635