stATOM and stOSMO TradingView support (#653)

* feat: listed dydx and AKT

* fix: removed theGraph support for now
This commit is contained in:
Linkie Link 2023-11-26 11:44:48 +01:00 committed by GitHub
parent 85533cdea3
commit 1abaddd4e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'
}