Skip to content

feat(data): add excludeDepositsWithdrawals param to ActivityRequest#307

Open
yovanoc wants to merge 2 commits intoPolymarket:mainfrom
yovanoc:feat/activity-exclude-deposits-withdrawals
Open

feat(data): add excludeDepositsWithdrawals param to ActivityRequest#307
yovanoc wants to merge 2 commits intoPolymarket:mainfrom
yovanoc:feat/activity-exclude-deposits-withdrawals

Conversation

@yovanoc
Copy link
Copy Markdown

@yovanoc yovanoc commented Mar 27, 2026

Summary

  • Add exclude_deposits_withdrawals: Option<bool> to ActivityRequest
  • Serialized as excludeDepositsWithdrawals to match the data-api parameter name
  • The /activity endpoint supports this parameter to filter out deposit/withdrawal activities

Note

Low Risk
Low risk: adds a new optional query parameter to ActivityRequest with no changes to request execution or response parsing.

Overview
Adds support for filtering /activity results by introducing an optional exclude_deposits_withdrawals flag on ActivityRequest, serialized as excludeDepositsWithdrawals to match the Data API query parameter.

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

yovanoc added 2 commits March 27, 2026 11:57
The data-api /activity endpoint supports an excludeDepositsWithdrawals
boolean parameter to filter out deposit and withdrawal activities from
results. This is useful when only trading activity is needed.
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.54%. Comparing base (da07892) to head (25d81f8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #307   +/-   ##
=======================================
  Coverage   85.54%   85.54%           
=======================================
  Files          32       32           
  Lines        5167     5167           
=======================================
  Hits         4420     4420           
  Misses        747      747           
Flag Coverage Δ
rust 85.54% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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