enable perp trading view

This commit is contained in:
Maximilian Schneider 2021-08-20 04:20:36 +02:00
parent 75c9abf746
commit 665b824fa4
1 changed files with 1 additions and 5 deletions

View File

@ -57,11 +57,7 @@ const TVChartContainer = () => {
useEffect(() => {
const widgetOptions: ChartingLibraryWidgetOptions = {
// TODO: stop trading view from not crash looping on perp
symbol:
selectedMarketConfig.kind == 'perp'
? 'BTC/USDC'
: selectedMarketConfig.name,
symbol: selectedMarketConfig.name,
// BEWARE: no trailing slash is expected in feed URL
// tslint:disable-next-line:no-any
datafeed: new (window as any).Datafeeds.UDFCompatibleDatafeed(