# BucketLimit

Token-bucket budget for one rate-limit bucket. Each request deducts tokens equal to its endpoint cost; the bucket refills at refill_rate tokens per second up to bucket_capacity. A request is allowed if the bucket holds enough tokens to cover its cost; otherwise the request is rejected with HTTP 429. 

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**refill_rate** | **number** | Tokens added to the bucket per second. | [default to undefined]
**bucket_capacity** | **number** | Maximum tokens the bucket can hold. When equal to refill_rate the bucket holds one second of budget; larger values represent burst headroom that idle clients accumulate and can spend in a single pulse (e.g. write buckets at non-Basic tiers hold two seconds of budget).  | [default to undefined]

## Example

```typescript
import { BucketLimit } from 'kalshi-typescript';

const instance: BucketLimit = {
    refill_rate,
    bucket_capacity,
};
```

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
