Skip to content

Caching

Victor Kaiuki edited this page Jun 16, 2026 · 1 revision

Caching Strategy

from cftc_cot import COTClient

# Enable disk caching (requires 'diskcache' optional dependency)
client = COTClient(cache="disk", cache_dir="./cot_cache")

COT data updates weekly. A TTL of 24 hours is recommended.

Clone this wiki locally