Skip to content

feat: expose volume, liquidity, date, and tag filters on list commands#52

Open
qtzx06 wants to merge 1 commit intoPolymarket:mainfrom
qtzx06:feat/list-filters
Open

feat: expose volume, liquidity, date, and tag filters on list commands#52
qtzx06 wants to merge 1 commit intoPolymarket:mainfrom
qtzx06:feat/list-filters

Conversation

@qtzx06
Copy link

@qtzx06 qtzx06 commented Mar 20, 2026

Summary

  • Wires through volume, liquidity, date range, and tag filter params that the SDK already supports but markets list and events list weren't exposing
  • Users no longer need to over-fetch and filter client-side to find specific markets

Closes #38

New flags on markets list and events list

Flag Description
--volume-min / --volume-max filter by trading volume
--liquidity-min / --liquidity-max filter by liquidity
--start-date-min / --start-date-max filter by start date
--end-date-min / --end-date-max filter by end date
--tag filter by tag ID (markets) or tag slug (events, already existed)

Example

# find high-volume markets created this month
polymarket markets list --volume-min 1000000 --start-date-min 2026-03-01T00:00:00Z

Test plan

  • cargo test — 131 tests pass
  • cargo clippy -- -D warnings — clean
  • cargo fmt --check — clean
  • Verified --help output shows new flags correctly

Note

Low Risk
Low risk: this only adds new CLI flags and forwards them into existing SDK request builders without changing core business logic or data writes.

Overview
Adds new filtering flags to events list and markets list for volume and liquidity ranges plus start/end date ranges, wiring them through to the underlying EventsRequest/MarketsRequest builders.

Also exposes a --tag filter on markets list (tag ID) and keeps events list tag filtering (tag slug), enabling server-side filtering instead of client-side post-processing.

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

…ts list

the SDK supports these query params but the CLI wasn't wiring them
through, forcing users to over-fetch and filter client-side.

closes Polymarket#38
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.

CLI does not return recent oil price markets that exist on website

1 participant