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

    Interface StockCache

    What survives a restart: the throttle stamps plus the last strip worth showing, and whose they are.

    interface StockCache {
        backoffMs?: number;
        lastAsOf: string;
        lastFetchMs: number;
        provider: string;
        quotes?: StockQuote[];
        retryAtMs?: number;
        strip: number[] | null;
    }
    Index
    backoffMs?: number

    The wait the last rate limit left, which the next one doubles.

    lastAsOf: string
    lastFetchMs: number
    provider: string

    The provider the stamps and the strip came from, by its lowercase name, such as finnhub.

    quotes?: StockQuote[]

    The last good quote for each ticker, so a save under Alpha Vantage asks only for new tickers.

    retryAtMs?: number

    When a rate limit said to try again, as epoch milliseconds, or 0 for none.

    strip: number[] | null