Skip to content

fix: tick size cache#272

Open
sahilgat02 wants to merge 3 commits intomainfrom
sahil/fix-tick-size
Open

fix: tick size cache#272
sahilgat02 wants to merge 3 commits intomainfrom
sahil/fix-tick-size

Conversation

@sahilgat02
Copy link
Contributor

@sahilgat02 sahilgat02 commented Feb 13, 2026

Note

Low Risk
Limited to client-side caching behavior for tick sizes and a version bump; low risk aside from potentially changing when tick sizes are refetched.

Overview
Improves tick-size caching in ClobClient by adding TTL-based invalidation (default 300s), storing monotonic timestamps per token, and exposing clear_tick_size_cache() to force refreshes.

get_order_book()/get_order_books() now opportunistically update the tick-size cache from OrderBookSummary.tick_size responses to reduce extra tick-size fetches. Package version is bumped to 0.34.6.

Written by Cursor Bugbot for commit 23d5d78. This will update automatically on new commits. Configure here.

@sahilgat02 sahilgat02 requested a review from a team as a code owner February 13, 2026 18:37
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants