We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e204c9f commit e151575Copy full SHA for e151575
apps/insights/src/services/pyth/get-feeds.ts
@@ -7,9 +7,13 @@ const _getFeeds = async (cluster: Cluster) => {
7
const unfilteredData = await getPythMetadata(cluster);
8
const filtered = unfilteredData.symbols
9
.filter(
10
- (symbol) =>
11
- unfilteredData.productFromSymbol.get(symbol)?.display_symbol !==
12
- undefined,
+ (symbol) => {
+ const product = unfilteredData.productFromSymbol.get(symbol)
+ const hasDisplaySymbol = product?.display_symbol !== undefined
13
+ const hasPriceAccount = product?.price_account !== undefined
14
+
15
+ return hasDisplaySymbol && hasPriceAccount
16
+ }
17
)
18
.map((symbol) => ({
19
symbol,
0 commit comments