POST /strategies or PATCH /strategies/:id payloads programmatically.
The external API now accepts a single flat rules array. The backend maps it internally to dealbreakers and the four UI rule groups (Security, Market, Socials, AI).
Request shape
Create and update use this external rule shape:rule: required string. Must be an exact supported rule id.dealbreaker: required boolean. Marks whether this rule is treated as a dealbreaker.enabled: optional boolean.enabled: falseskips any rule type.min: optional number. Used only for numeric rules.max: optional number. Used only for numeric rules.value: optional string. Used only for enum rules (risk_level).
Rule-kind behavior
Boolean rules
Useenabled only.
enabled: trueapplies the rule.enabled: falseskips the rule.min,max, andvalueare not allowed.
Numeric rules
Usemin and/or max.
- At least one of
minormaxis required. minandmaxmust be non-negative finite numbers.- If both are present,
maxmust be greater thanmin. enabledis not allowed unless you are usingenabled: falseto skip the rule.valueis not allowed.- Internally,
minmaps togreater_than,maxmaps toless_than.
Enum rules
Currently onlyrisk_level.
valueis required.- Allowed values:
CRITICAL,HIGH,MEDIUM,LOW(case-insensitive input accepted). - Operator is internally fixed to
equals. enabledis not allowed unless you are usingenabled: falseto skip the rule.minandmaxare not allowed.
PATCH clear behavior
PATCH /strategies/:id supports full replacement semantics for rules.
- Omit
rulesto keep existing internal rules unchanged. - Send
rules: []to clear both internaldealbreakersandruleGroups. POST /strategiesstill requires a non-emptyrulesarray.
Trigger update semantics
PATCH /strategies/:id uses replacement semantics for triggers too.
- Omit
triggersto keep existing triggers unchanged. - Send
triggersto replace the entire internal trigger set.
Full create payload example
Supported rule ids
Source of truth: backend external rule catalog.Security
is_honeypot, is_mintable, top_10_holder_percent, dev_wallet_percent, is_lp_locked, risk_level, rugged, lp_locked_pct, has_freeze_authority, has_high_ownership, has_top10_high_ownership, has_single_holder_ownership, has_creator_rug_history, has_low_lp_providers, has_low_liquidity, creator_has_multiple_tokens, has_creator_balance, has_lockers, risk_count, token_mutable, has_transfer_fee, token_age
token_age is evaluated in minutes.Market
sell_tax, buy_tax, liquidity_usd, market_cap, volume_24h, tx_count, num_buys, num_sells, kols, global_fees_paid, pro_traders, snipers, insiders, bundle, dev_migrations, dev_pairs_created, bonding_progress, is_pump, holder_count
Socials
has_website, has_telegram, has_twitter, at_least_one_social, website_has_ca, website_contains_token_name, twitter_link_has_ca, x_link_contains_token_name, twitter_effective_views, x_community_member_count, x_community_views_count, twitter_effective_followers
AI
website_content_validation_score, x_content_validation_score
APIs
Full external API endpoint reference.
Data Point Glossary
Human-readable meaning of each rule and metric.