- You want to create a Strategy programmatically.
- The Strategy should focus on safe new launches with minimum liquidity and social proof.
- You want to activate it, observe notifications, track performance, and receive webhook events.
Prerequisites
Set your environment variables:Step 1: Confirm plan and limits
- your plan (
PROorDEGEN) - strategy activation limit
- requests-per-minute limit
Step 2: Create a strategy
This example strategy:- triggers on newly created tokens
- uses a single external
rules[]list - marks critical checks as dealbreakers
- applies market and social filters
- sets
alertCooldownMinsto suppress duplicate alerts per token - keeps default trigger config empty because this example does not use twitter trigger types
strategy.id from the response for the next steps.
Step 3: Activate the strategy
Step 4: Verify strategy state
isActiveistruealertCooldownMinsis present- response contains internal
dealbreakersand grouped rules mapped from your externalrules[]
Step 5: Update strategy rules
Example update:- increase liquidity threshold
- tighten cooldown window
- replace the full stored rules set with the new
rules[]payload
triggers, the full trigger set is replaced; if omitted, existing triggers stay unchanged.
Step 6: Optional twitter/dev discovery queries
Get tracked twitter handles:twitter_mention_direct / tweet_metadata_match), include triggerConfigs.<eventType>.tagId in create/update payloads.
Step 7: Read notifications programmatically
List recent notifications:Step 8: Check performance
Synchronous summary:Step 9: Configure webhook delivery
Check current config:hasSecretsecret(when generated/rotated)verifiedAtverificationError(if verification failed)
Step 10: Deactivate strategy
Step 11: Optional cleanup
Practical implementation checklist
- Keep API key server-side only.
- Persist strategy IDs in your own DB.
- Use idempotent update logic in your integration.
- Handle
429throttling with retry/backoff. - Validate rule payloads with the Strategy Rules Spec before sending.
APIs
Full endpoint reference and payload examples.
Strategy Rules Spec
Rule schema, operators, and supported rule types.