Skip to content

fix: fee-compare dYdX cursor pagination + timeout - #2097

Merged
Flotapponnier merged 2 commits into
devfrom
fix/fee-compare-timeout-dydx-funding
Aug 26, 2026
Merged

fix: fee-compare dYdX cursor pagination + timeout#2097
Flotapponnier merged 2 commits into
devfrom
fix/fee-compare-timeout-dydx-funding

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Summary

  • dYdX page=N pagination returned oldest-first; 90-day cutoff fired on page 1 → 0 fills. Replaced with createdBeforeOrAt cursor (newest-first).
  • maxDuration raised 30→50 for parallel paginated fetches
  • Gains MAX_PAGES reduced 10→6 to stay within timeout budget

…ins 6 pages

- Remove perpetualPositions funding fetch (not date-scopable, cumulative all-time)
- dYdX fills count = takers only (consistent with fee/notional calc)
- maxDuration 30 -> 50 to cover paginated fetches in parallel
- Gains MAX_PAGES 10 -> 6 (600 trades, safer budget)
- Footnote: note dYdX funding excluded
@Flotapponnier
Flotapponnier merged commit 0fd9091 into dev Aug 26, 2026
1 check failed
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