Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

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

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

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

Conversation

@yovanoc

@yovanoc yovanoc commented Mar 27, 2026

Copy link
Copy Markdown

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

codecov Bot commented Mar 27, 2026

Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant