Pebble App Framework: Phone API
    Preparing search index...

    Function stocksFromUpdate

    • Turns one stock plugin update into the quotes the strip shows.

      The quotes keep the update's order and stop at the strip's slots. An instance that holds no properties, or an empty set of them, is left out. One with no price becomes a status quote under its ticker, with the plugin's status word when it sends one and NO DATA when it does not. An update with no instances gives an empty list, which clears the strip on the watch.

      Parameters

      • envelope: SourceEnvelope | null | undefined

        The update, which may be missing or carry anything.

      Returns StockQuote[]

      The quotes, at most wire.STOCK_SLOTS_MAX of them.