Skip to content

feat(sig-6603): add sort_direction, advanced filters, and address-summary#403

Open
marius-reed wants to merge 1 commit intomainfrom
feat/sig-6603-v2-params
Open

feat(sig-6603): add sort_direction, advanced filters, and address-summary#403
marius-reed wants to merge 1 commit intomainfrom
feat/sig-6603-v2-params

Conversation

@marius-reed
Copy link
Copy Markdown
Contributor

Summary

Adds v2 API params to the CLI for prediction market endpoints (SIG-6603).

Changes

All 8 sortable PM endpoints — new --sort-direction option (asc/desc, default desc):

  • ohlcv, top-holders, trades-by-market, trades-by-address, market-screener, event-screener, pnl-by-market, pnl-by-address

Market screener + event screener — advanced filters:

  • --tags (comma-separated, e.g. --tags Crypto,Bitcoin)
  • --min-liquidity / --max-liquidity
  • --max-unique-traders-24h
  • --min-volume-24hr
  • --neg-risk (true/false)
  • --min-open-interest / --max-open-interest
  • --end-date-before / --end-date-after (ISO 8601)
  • --min-price / --max-price (market screener only)

New subcommandaddress-summary:
```bash
nansen research pm address-summary --address 0x94f1...
```
Returns wallet-level PnL summary: realized/unrealized PnL, win rate, wallet age, P2P stats.

Depends on

Linear: SIG-6603

Test plan

  • 164/164 API tests pass
  • Pre-existing CLI smoke test failures (missing @scure/base) unrelated to changes

🤖 Generated with Claude Code

…mary

- Add sort_direction param to all 8 sortable PM endpoints
- Add advanced screener filters: tags, liquidity, volume, neg_risk,
  open_interest, end_date, price range (market-screener + event-screener)
- Add new address-summary subcommand for wallet-level PnL summary
- Update schema.json with new options and subcommand

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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