hoodkit
    Preparing search index...

    Function streamPrices

    • Stream live Stock Token prices. Polls every feed in one multicall on an interval and emits a PriceTick only when a symbol's Chainlink round advances — so consumers see genuine price changes, not redundant re-reads.

      Parameters

      • client: HoodClient
      • Optionalsymbols: string[]

        Tickers to watch, or undefined for every priced Stock Token.

      • options: StreamPollOptions = {}

      Returns Stream<PriceTick>

      const prices = streamPrices(hood, ['AAPL', 'TSLA', 'NVDA'])
      for await (const tick of prices) console.log(tick.symbol, tick.priceUsd)