Skip to content

Conversation

@sahilgat02
Copy link
Contributor

@sahilgat02 sahilgat02 commented Feb 12, 2026

Note

Medium Risk
Changes tick-size caching behavior used for order validation, which could affect pricing checks or increase API calls if misconfigured. Scope is limited to ClobClient with a conservative default TTL and explicit cache invalidation.

Overview
Improves tick-size correctness by turning the in-memory tickSizes map into a TTL-based cache (default 5 minutes, configurable via a new tickSizeTtlMs constructor arg) and tracking per-token cache timestamps.

getOrderBook/getOrderBooks now opportunistically refresh the tick size cache from OrderBookSummary.tick_size, and a new clearTickSizeCache(tokenID?) API allows forcing a refetch on next access.

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

@sahilgat02 sahilgat02 requested a review from a team as a code owner February 12, 2026 16:18
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