From 1abaddd4e51d5bef2315595930dfc3dfa7cf108d Mon Sep 17 00:00:00 2001 From: Linkie Link Date: Sun, 26 Nov 2023 11:44:48 +0100 Subject: [PATCH] stATOM and stOSMO TradingView support (#653) * feat: listed dydx and AKT * fix: removed theGraph support for now --- src/components/Trade/TradeChart/DataFeed.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Trade/TradeChart/DataFeed.ts b/src/components/Trade/TradeChart/DataFeed.ts index 4b3f02f3..28222a98 100644 --- a/src/components/Trade/TradeChart/DataFeed.ts +++ b/src/components/Trade/TradeChart/DataFeed.ts @@ -181,7 +181,8 @@ export class DataFeed implements IDatafeedChartApi { onResult(bars) }) } else { - await this.getBarsFromTheGraph(symbolInfo, resolution, to).then((bars) => onResult(bars)) + //await this.getBarsFromTheGraph(symbolInfo, resolution, to).then((bars) => onResult(bars)) + onResult([], { noData: true }) } } catch (error) { console.error(error) @@ -464,7 +465,7 @@ export class DataFeed implements IDatafeedChartApi { const denoms = name.split(PAIR_SEPARATOR) const pythFeedId1 = ASSETS.find(byDenom(denoms[0]))?.pythHistoryFeedId const pythFeedId2 = ASSETS.find(byDenom(denoms[1]))?.pythHistoryFeedId - if (!pythFeedId1 || !pythFeedId2) return 'Osmosis' + //if (!pythFeedId1 || !pythFeedId2) return 'Osmosis' return 'Pyth Oracle' }