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

    Function allowance

    • How many of the calls asked for fit inside a provider's free plan now.

      Twelve Data and Alpha Vantage are held to their plans in STOCK_QUOTA_PLANS. Yahoo, Finnhub, and any paid plan have nothing counted here, and their own RATE LIMIT answers set the waits.

      Parameters

      • provider: string

        The provider's id.

      • sentMs: number[]

        The stamps of the calls already sent to it, as keepSent returns them.

      • calls: number

        How many calls the round wants to send.

      • force: boolean

        True for a save, which may use the last of the day's calls.

      • paid: boolean

        True on a paid plan.

      • nowMs: number

        Now, in epoch milliseconds.

      Returns Allowance

      How many fit now, and when the rest would.