stATOM and stOSMO TradingView support (#653)
* feat: listed dydx and AKT * fix: removed theGraph support for now
This commit is contained in:
parent
85533cdea3
commit
1abaddd4e5
@ -181,7 +181,8 @@ export class DataFeed implements IDatafeedChartApi {
|
|||||||
onResult(bars)
|
onResult(bars)
|
||||||
})
|
})
|
||||||
} else {
|
} 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) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
@ -464,7 +465,7 @@ export class DataFeed implements IDatafeedChartApi {
|
|||||||
const denoms = name.split(PAIR_SEPARATOR)
|
const denoms = name.split(PAIR_SEPARATOR)
|
||||||
const pythFeedId1 = ASSETS.find(byDenom(denoms[0]))?.pythHistoryFeedId
|
const pythFeedId1 = ASSETS.find(byDenom(denoms[0]))?.pythHistoryFeedId
|
||||||
const pythFeedId2 = ASSETS.find(byDenom(denoms[1]))?.pythHistoryFeedId
|
const pythFeedId2 = ASSETS.find(byDenom(denoms[1]))?.pythHistoryFeedId
|
||||||
if (!pythFeedId1 || !pythFeedId2) return 'Osmosis'
|
//if (!pythFeedId1 || !pythFeedId2) return 'Osmosis'
|
||||||
return 'Pyth Oracle'
|
return 'Pyth Oracle'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user