Skip to content

createQuotaBudgetStrategy

createQuotaBudgetStrategy(config): RateLimitStrategy

Defined in: packages/core/src/rest/quota.ts:62

Creates a cost-based daily quota strategy (used by YouTube).

QuotaBudgetConfig

quota budget configuration with limits and cost map

RateLimitStrategy

a RateLimitStrategy backed by daily quota tracking

costMap maps bucketId strings to their quota costs

acquire() throws QuotaExhaustedError when quota is exceeded

Not idempotent — each acquire() consumes quota