@kinetiq-research/markets-assets
Version:
Asset metadata (descriptions, oracle references) for Kinetiq markets
15 lines (13 loc) • 609 B
text/typescript
import { assetNewsKeywords } from './constants/asset-news-keywords'
import { toAssetKey } from './lib/asset-key'
// True iff the asset has an entry in `assetNewsKeywords`. The news pipeline
// uses this as its "tracked by Markets" gate — Hyperliquid lists hundreds
// of perps (memecoins, microcaps) that have no keyword coverage and would
// false-tag articles via direct-symbol matching against English words.
export const hasNewsKeywords = ({
dex,
symbol,
}: {
readonly dex?: string | undefined
readonly symbol: string
}): boolean => assetNewsKeywords[toAssetKey({ dex, symbol })] !== undefined