Skip to content

Conversation

@maginboobr
Copy link

@maginboobr maginboobr commented Dec 11, 2025

Summary

This PR adds two convenience methods to RfqClient:

  • getAllRfqRequests
  • getAllRfqQuotes

Both helpers iterate through the paginated RFQ API using next_cursor and
END_CURSOR, aggregating data from all pages into a single array.

Motivation

Currently, getRfqRequests and getRfqQuotes only return a single page of
results and require client code to implement pagination manually. These helpers
provide an ergonomic way to fetch all RFQ requests or quotes without changing
the existing API surface.

Implementation details

  • Reuse existing L2 auth (createL2Headers) and parameter parsing
    (parseRfqRequestsParams, parseRfqQuotesParams).
  • Loop until next_cursor === END_CURSOR and concatenate response.data.
  • No breaking changes: existing methods are kept as-is.

Note

Adds getAllRfqRequests and getAllRfqQuotes to iterate cursor-based pagination and return aggregated results.

  • RfqClient:
    • New helpers: getAllRfqRequests, getAllRfqQuotes iterate via next_cursor until END_CURSOR, aggregating response.data.
    • Reuses createL2Headers and param parsers (parseRfqRequestsParams, parseRfqQuotesParams); introduces use of INITIAL_CURSOR/END_CURSOR.

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

@maginboobr maginboobr requested a review from a team as a code owner December 11, 2025 12:32
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