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

    Function stockInstance

    • One quote as a finance/stock instance.

      A good quote carries Pebble's five properties in Pebble's text, the same values as numbers, and the framework's extras it has. A quote with no price carries the ticker, its name, and its status word, and no price, so a face shows its dash and a framework face shows the word.

      Parameters

      • quote: StockQuote

        The quote, good or a status.

      • instanceId: string

        The id the instance goes out under, normally the ticker as the wearer typed it, so it stays the same from run to run.

      • extras: StockExtras = {}

        The provider's name and the market state, when the plugin has them.

      • offsetAt: PhoneOffset = phoneOffsetMinutes

        Reads the phone's offset, for the quote time's label. A spec stands the phone in another zone with it.

      Returns SourceInstance

      The instance.