Skip to content

Conversation

@melonges
Copy link

@melonges melonges commented Feb 10, 2026

Note

Low Risk
Low risk, small additive API change confined to calculateMarketPrice; main concern is downstream callers passing stale/incorrect OrderBookSummary, affecting quoted prices.

Overview
ClobClient.calculateMarketPrice now accepts an optional orderBook override and uses it when provided instead of always fetching via getOrderBook.

This enables callers to reuse an already-fetched OrderBookSummary to avoid extra network requests while keeping existing behavior as the default.

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

@melonges melonges requested a review from a team as a code owner February 10, 2026 10:34
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.

1 participant