feat(perp-screener): add trader_type, sectors_filter, sm_label and trader_label filters (ECINT-6680)#460
Merged
Merged
Conversation
…ader_label filters (ECINT-6680) - Add --trader-type option: all | sm | whale | public_figure | high_winrate_hl_perps_trader - Add --sectors-filter option: comma-separated category:subcategory pairs - Add --sm-label-filter option: comma-separated Nansen SM labels - Add --trader-label-filter option: comma-separated HL perps trader labels - Wire all new options into perpScreener() API method - Update src/schema.json with new options - Update skills/nansen-perp-screener/SKILL.md with usage examples - Add tests in api.test.js and cli.internal.test.js
Contributor
Author
Live test results ✅Tested against the production API after merging the related backend PRs. All filters confirmed working
Bug fixed in this PRInitial implementation placed the new filter fields at the top level of the request body. Fixed to nest them under Example usage# Whale traders in the AI sector
nansen research perp screener --trader-type whale --sectors-filter "Crypto:AI" --limit 10
# Smart money with label filter
nansen research perp screener --trader-type sm --sm-label-filter "30D Smart Trader" |
kome12
approved these changes
Jun 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds CLI support for four new filter parameters on the
POST /api/v1/perp-screenerendpoint (ECINT-6680).New Filters
--trader-type <typeFilter by trader type. Replaces/deprecates the old
only_smart_moneyfield on the API side.Accepted values:
all(default),sm,whale,public_figure,high_winrate_hl_perps_trader--sectors-filter <sectors>Comma-separated
category:subcategorypairs. Filters results to coins in those sectors.Example:
"Crypto:AI,TradFi:Stocks"→ sent as["Crypto:AI", "TradFi:Stocks"]nansen research perp screener --sectors-filter "Crypto:AI,Crypto:DeFi" --trader-type whale--sm-label-filter <labels>Comma-separated Nansen SM labels. Only applies when
--trader-typeisallorsm.nansen research perp screener --trader-type sm --sm-label-filter "30D Smart Trader"--trader-label-filter <labels>Comma-separated HL perps trader labels. Only applies when
--trader-typeisallorsm.nansen research perp screener --trader-label-filter "HL Perps Whale"Changes
src/api.js: UpdatedperpScreener()to accept and passtraderType,sectorsFilter,smLabelFilter,traderLabelFiltersrc/cli.js: Updated perp screener handler to parse new CLI options and forward them (comma-separated strings split to arrays)src/schema.json: Added new options tocommands.research.subcommands.perp.subcommands.screener.optionsskills/nansen-perp-screener/SKILL.md: Added usage examples for all four new filterssrc/__tests__/api.test.js: Added 6 tests forperpScreenerAPI methodsrc/__tests__/cli.internal.test.js: Added 7 tests for CLI handler option wiringCloses ECINT-6680