POST /strategies or PATCH /strategies/:id payloads programmatically.
Send rules as a single flat rules array. MemePerfect organizes them into the correct strategy sections automatically.
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 such asrisk_levelandlaunch_platform.operator: optional string. Used only for enum rules. Allowed values:equals,not_equals. Defaults toequalswhen omitted.config: optional object. Used only for advanced market, volume/activity, and wallet-quality rules.clusterConfig: optional object. Used only for coordinated wallet cluster rules.
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
valueis required.operatoris optional. Allowed values:equals,not_equals. If omitted, MemePerfect defaults toequals.enabledis not allowed.minandmaxare not allowed.
risk_level- Allowed values:
CRITICAL,HIGH,MEDIUM,LOW(case-insensitive input accepted). - Important behavior:
risk_levelis treated like a threshold. For example,equals: LOWmatches onlyLOW, whileequals: HIGHmatchesHIGH,MEDIUM, andLOW.
- Allowed values:
launch_platform- Allowed values:
pump_fun,letsbonk_fun,bags_fm,rapidlaunch,raydium_launchlab,dexlab,meteora - Behavior: exact enum match for both
equalsandnot_equals.
- Allowed values:
Object rules
Object rules useconfig because one rule can contain several settings or presets.
volume_24haccepts age-aware volume windows throughconfig.windows.buy_sell_ratio_windowacceptsconfig.windowandconfig.buyPressure.validated_volume_spikeacceptsconfig.windowandconfig.volumeSpike.quality_wallet_count,quality_wallet_total_value, andquality_wallet_min_winrateaccept wallet-quality settings throughconfig.enabled: falseskips the rule.min,max, andvalueare not allowed with these rules.
buyPressure values:
offslightmoderatestrongaggressive
volumeSpike values:
offnoticeablestrongvery_strongexplosive
walletTypes values:
smart_walletkolwhaleprofitable_trader
quality_wallet_total_value compares the combined token buy value from qualifying wallets. It is not a current-holdings-only rule.Cluster rules
Coordinated wallet cluster checks useclusterConfig.
maxClusterRisk values:
lowmediumhighvery_high
PATCH clear behavior
PATCH /strategies/:id supports full replacement semantics for rules.
- Omit
rulesto keep the strategy’s saved rules unchanged. - Send
rules: []to clear the strategy’s saved rules. 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 strategy’s saved triggers.
Full create payload example
Supported rule ids
Supported rule ids: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, kols, global_fees_paid, pro_traders, snipers, insiders, bundle, dev_migrations, dev_pairs_created, bonding_progress, launch_platform, is_pump, holder_count
Volume/Activity
volume_24h, tx_count, num_buys, num_sells, buy_sell_ratio_window, validated_volume_spike, quality_wallet_count, quality_wallet_total_value, quality_wallet_min_winrate
Clusters
coordinated_wallet_cluster
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.