Skip to content

feat: dYdX pagination+funding + GMX date filter+fee breakdown - #2094

Merged
Flotapponnier merged 1 commit into
devfrom
feat/dydx-gmx-trade-history
Aug 26, 2026
Merged

feat: dYdX pagination+funding + GMX date filter+fee breakdown#2094
Flotapponnier merged 1 commit into
devfrom
feat/dydx-gmx-trade-history

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

dYdX v4

  • Pagination: loops pages until date cutoff (up to 2000 fills vs previous 100)
  • Date filter: stops fetching once fills older than the selected period
  • Funding: fetches perpetualPositions.netFunding (settled + unsettled)
  • walletFees/walletStats now use netCostUsdc (fees - funding)
  • Breakdown card: Trading fees / Funding received|paid / Net cost

GMX v2

  • Date filter: timestamp_gte on Subsquid — no longer fetches all-time trades
  • Pagination: cursor-based tradeActionsConnection, up to 10 pages (2000 trades)
  • New fee fields: borrowingFeeAmount, fundingFeeAmount, pnlUsd per trade
  • walletFees/walletStats use netCostUsdc (trading + borrowing + funding)
  • Breakdown card: Trading fees / Borrowing / Funding / Net cost
  • GmxTradeTable: per-trade date/direction/notional/fee/PnL

Paradex / EdgeX

No change — both require auth (StarkNet JWT / HMAC API key), rate-only is correct.

dYdX: paginate up to 2000 fills, date-scoped, funding from perpetualPositions.netFunding
GMX: cursor pagination tradeActionsConnection, timestamp_gte filter, borrowing+funding fees, recentTrades
Both venues: walletStats uses netCostUsdc, breakdown cards in WalletSide, GmxTradeTable
@Flotapponnier
Flotapponnier merged commit 808c11b into dev Aug 26, 2026
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