API Reference v1
Get API Key API Key

POST /v1/strategy-tasks

Create a paused strategy task

Create with spec.enabled=false; enabled=true is rejected. Call resume to start trading. For a repeating trailing ladder, set repeat: true and do.sell.amount to bps_of_remaining on each trailing exit rule. Give each tier a distinct activation gain and omit stages and goto. Callout entries (social_mention) accept five token condition leaves besides the social signal leaves and me.holding: token.market_cap_usd (gte / lte / between, decimal USD string), token.buy_tax_bps and token.sell_tax_bps (lte, integer bps 0-10000; 10000 means no cap), token.age_sec (gte / lte / between, seconds) and token.address (in / nin, 1-200 token addresses; nin is a blacklist). Market cap and both fee caps bound the buy order and must be direct children of the root "all" on every chain, otherwise presend_leaf_not_top_level; age and address are judged when the post arrives and may be nested. A limit-order entry cannot carry token.market_cap_usd (unsupported_leaf). Without token.buy_tax_bps the default 2500 bps buy fee cap applies. On BSC and Robinhood the on-chain market cap ceiling allows about 30% above the maximum. A token with no known launch time fails a token.age_sec condition. X and Pump.fun limit buys accept signal_price with an integer offset_bps from -9900 to 100000 excluding zero, or a fixed price_usd. Limit expiry is 60-604800 seconds from placement. Both sources accept integer do.buy.delay_ms from 0 to 86400000; omitted or 0 means no delay, and values above the ceiling return unsupported_delay. Signal-time conditions are evaluated on arrival. When the delay elapses, routing and pre-send checks run before sending a market buy or placing a limit. A delayed signal_price limit uses the mark captured at signal time when available. Otherwise, and for an immediate limit, it uses the mark when the buy route is selected, falling back to the route quote. If no price is available, the signal is skipped with signal_price_unknown. Both social sources accept token.dex (in / nin with DEX identity strings) and, on Solana, token.quote_class (in with a list of classes) as direct children of the root all. The main pool on the selected buy route, the pool that directly trades the token, determines these conditions before a market buy is sent or a limit is placed; conversion hops before it, such as through USDC, do not count. Solana social buys can set exec.buy.fee.slippage_sol to a decimal string of at least 0.1 SOL with at most nine decimals. The route-based floor replaces percentage buy slippage, including when a limit triggers. Wallet-copy buy entries accept signal.block_gap (lte or lt, nonnegative blocks, Solana slots). It uses the pre-send estimate; an unknown local head rejects with signal_block_gap_unknown. Pump.fun callout entries use one social_mention source {platform: "pump_fun", source_id: "home_new"} (the pump.fun new-callout feed) and cannot mix with other sources. They run on solana, bsc and robinhood, live mode only (mode "paper" returns unsupported_action), with market and limit buys. Every entry must reach a non-empty "only follow these callers" list through the root all: signal.author in [...], 1-200 items; otherwise validation_error with details[].code pump_callers_required. List items are {"handle": "<pump.fun username>"} or {"user_id": "<lowercase UUID>", "handle": "..."}. On save the server looks each handle-only item up on pump.fun and stores its user ID and current handle; the executor matches user IDs only, so a later rename does not change who is followed. An unknown handle returns details[].code pump_caller_not_found and a failed lookup pump_caller_lookup_failed (retry later); both list the handles in details[].reason and nothing is saved. There is no separate caller lookup endpoint: a create or update is the lookup. Pump.fun-only caller conditions: signal.author nin (exclude callers), caller.cost_basis_usd (gte / lte / between, USD the caller spent on the token), caller.followers (gte), caller.callouts (gte / lte / between, total callouts), caller.verified (is true), caller.has_x (is true), caller.holding_usd (gte / lte / between, the caller's position in USD when looked up, may be 0), and signal.caller_rank (is / lte / gte / between with within_sec 60-604800: the caller's rank among distinct callers of this token in the window; is 1 means the first caller). signal.first_call and the token conditions above also apply; signal.text does not. Caller conditions other than caller.cost_basis_usd wait about 0.1 s for the caller profile; callouts whose caller cannot be found do not pass them. Signal records carry signal_source, signal_author (handle at the time, display only), signal_author_id, signal_token and signal_posted_at_ms when the signal recorded them. Forward wallet_trade buys accept token.prior_buyers nin with 1–200 wallet addresses and required within_sec of 60–43200 seconds in whole minutes. Reverse buys return unsupported_leaf. Each list checks purchases already seen at the time of this leader buy, including add-ons. For each listed wallet, the task looks back over the window you set or the last 5,000 distinct tokens it bought, whichever comes first. When a listed wallet and the leader buy almost at the same time, the task may occasionally copy the leader’s buy because it has not yet seen the listed wallet’s purchase or cannot tell which came first. To sell after a listed earlier purchase is confirmed, include pos.late_prior_buyer is true in a position rule with a sell action. This automatic exit is sent at maximum slippage and uses the task's sell settings for fees, tip and gas. Every token.prior_buyers condition must be required by the buy (only all on its path). The native API adds no rule. Across all running and paused tasks on the same chain, an account may list up to 5000 distinct wallets. Exceeding this limit returns 400 prior_buyers_wallet_limit with total and limit. Requires the copytrade:write scope.

Required scope: copytrade:write

Headers

FieldTypeRequiredDescription
Idempotency-Keystring✓8-128 character key for this create intent. Reuse the same key and body when retrying.

Request body application/json

FieldTypeRequiredConstraintsDescription
labelsarray<string>maxItems: 10Caller-defined task labels. Up to 10 labels of 1–24 characters. Whitespace is trimmed and duplicates are removed.
specobject✓apm.task/2 task specification without id. Created paused; call resume to start trading.
spec.schemaconst "apm.task/2"✓Task specification format version.
spec.idstringpattern: ^(?:stk_[0-9A-Za-z]{26}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$Server-assigned task ID. Client-supplied IDs are ignored on strategy create and update.
spec.namestring✓Task display name; must not be blank.
spec.descriptionstringOptional task description.
spec.scheduleobjectDaily buy window; outside it new buys stop while exits remain active.
spec.schedule.timezonestring✓maxLength: 64IANA timezone for the daily buy window.
spec.schedule.start_minuteinteger✓min: 0, max: 1439Inclusive start minute after local midnight, from 0 to 1439.
spec.schedule.end_minuteinteger✓min: 0, max: 1439Exclusive end minute; less than start crosses midnight. Must differ from start.
spec.labelsarray<string>Task labels.
spec.chainenum ("solana" | "bsc" | "robinhood")✓Execution chain; immutable after creation.
spec.modeenum ("live" | "paper")✓Execution mode: live trading or paper decisions without sending trades.
spec.enabledboolean✓Must be false on Open API creation. Use pause or resume to change trading state.
spec.walletsarray<object>✓maxItems: 10Owned execution wallets; enabled tasks require at least one.
spec.wallets[].wallet_idstring✓minLength: 1, maxLength: 128Owned wallet ID.
spec.wallets[].addressstring✓minLength: 1, maxLength: 128Wallet address on the task chain.
spec.strategiesarray<object>✓minItems: 1, maxItems: 8Task strategies evaluated in order.
spec.strategies[].idstring✓pattern: ^[a-z0-9_]{1,32}$Strategy ID, unique within the task.
spec.strategies[].namestringminLength: 1, maxLength: 64Optional display name.
spec.strategies[].enabledbooleanWhether this rule or strategy is enabled; omitted means enabled.
spec.strategies[].positionobjectPosition selection and accounting settings.
spec.strategies[].position.sourceenum ("strategy" | "wallet")✓Position source; supported source and basis combinations are capability-checked.
spec.strategies[].position.tokensarray<string>Token addresses included in position selection.
spec.strategies[].position.exclude_tokensarray<string>Token addresses excluded from position selection.
spec.strategies[].position.basisenum ("per_buy" | "per_position")Position accounting basis.
spec.strategies[].entriesarray<object>✓Entry rules evaluated by the executor.
spec.strategies[].entries[].idstring✓minLength: 1, maxLength: 64Rule ID, unique within its strategy or task guard list.
spec.strategies[].entries[].namestringminLength: 1, maxLength: 64Optional display name.
spec.strategies[].entries[].enabledbooleanWhether this rule or strategy is enabled; omitted means enabled.
spec.strategies[].entries[].onarray<object | object | object | object | object | object>minItems: 1Trigger events; required for entry rules.
spec.strategies[].entries[].whenobject | object | object | object | nullCondition tree; omitted or null means unconditional.
spec.strategies[].entries[].doobject✓Actions to perform when this rule matches.
spec.strategies[].entries[].do.buyobjectBuy action, only in contexts with buy capability.
spec.strategies[].entries[].do.buy.sizingobject | object | object | object | object✓Buy sizing.
spec.strategies[].entries[].do.buy.orderobject | object✓Buy order definition.
spec.strategies[].entries[].do.buy.delay_msintegermin: 0Delay before buying in milliseconds.
spec.strategies[].entries[].do.sellobjectSell action.
spec.strategies[].entries[].do.sell.amountenum ("all" | "bps_of_remaining" | "bps_of_initial" | "leader_ratio")✓Sell sizing basis. For exit rules, all and bps_of_initial use this buy. For bps_of_remaining, ordinary exits use the current task position, staged exits use the remaining amount of this buy in the graph, and repeating trailing rules use this buy’s ladder remainder. Position guards support all and bps_of_initial.
spec.strategies[].entries[].do.sell.bpsintegermin: 1, max: 10000Fraction for bps_of_initial or bps_of_remaining; 10000 is 100%.
spec.strategies[].entries[].do.sell.leader_positionenum ("since_task" | "total" | "followed")Leader position basis; execution support is catalog-defined.
spec.strategies[].entries[].do.sell.orderobjectSell order definition.
spec.strategies[].entries[].do.sell.order.typeconst "market"✓Market order.
spec.strategies[].entries[].do.gotostringpattern: ^[a-z0-9_]{1,32}$Later exit stage to enter after this action.
spec.strategies[].entries[].do.pauseenum ("strategy" | "task")Pause target, where supported.
spec.strategies[].entries[].do.notifyobjectNotification action, where supported.
spec.strategies[].entries[].do.notify.templatestring✓minLength: 1, maxLength: 128Notification template ID.
spec.strategies[].inherit_exitsconst "auto_tpsl"Legacy syntax; rejected by current execution capabilities. Set explicit exits instead.
spec.strategies[].exitsobjectExit presets, rules and ordered stages for positions opened by this strategy.
spec.strategies[].exits.tpsl_configsarray<object>minItems: 1, maxItems: 20Fixed-price take-profit and stop-loss rows.
spec.strategies[].exits.tpsl_configs[].price_percentageobject✓Price change from the buy price in basis points; negative is stop loss.
spec.strategies[].exits.tpsl_configs[].amount_percentageinteger✓min: 1, max: 10000Sell fraction in basis points; 10000 is 100%.
spec.strategies[].exits.tpsl_configs[].expirationinteger✓min: 0, max: 9007199254740991Lifetime in milliseconds; 0 uses the executor preset default.
spec.strategies[].exits.tpsl_configs[].gotostringpattern: ^[a-z0-9_]{1,32}$Later exit stage to enter after this action.
spec.strategies[].exits.rulesarray<object>minItems: 1, maxItems: 20Conditional exit rules.
spec.strategies[].exits.rules[].idstring✓minLength: 1, maxLength: 64Stable exit rule ID, unique across all stages.
spec.strategies[].exits.rules[].namestringminLength: 1, maxLength: 64Optional display name.
spec.strategies[].exits.rules[].whenobject | object | object | object✓Condition tree; executable fields depend on the chain capability catalog.
spec.strategies[].exits.rules[].doobject✓Actions to perform when this rule matches.
spec.strategies[].exits.rules[].do.buyobjectBuy action, only in contexts with buy capability.
spec.strategies[].exits.rules[].do.buy.sizingobject | object | object | object | object✓Buy sizing.
spec.strategies[].exits.rules[].do.buy.orderobject | object✓Buy order definition.
spec.strategies[].exits.rules[].do.buy.delay_msintegermin: 0Delay before buying in milliseconds.
spec.strategies[].exits.rules[].do.sellobjectSell action.
spec.strategies[].exits.rules[].do.sell.amountenum ("all" | "bps_of_remaining" | "bps_of_initial" | "leader_ratio")✓Sell sizing basis. For exit rules, all and bps_of_initial use this buy. For bps_of_remaining, ordinary exits use the current task position, staged exits use the remaining amount of this buy in the graph, and repeating trailing rules use this buy’s ladder remainder. Position guards support all and bps_of_initial.
spec.strategies[].exits.rules[].do.sell.bpsintegermin: 1, max: 10000Fraction for bps_of_initial or bps_of_remaining; 10000 is 100%.
spec.strategies[].exits.rules[].do.sell.leader_positionenum ("since_task" | "total" | "followed")Leader position basis; execution support is catalog-defined.
spec.strategies[].exits.rules[].do.sell.orderobjectSell order definition.
spec.strategies[].exits.rules[].do.sell.order.typeconst "market"✓Market order.
spec.strategies[].exits.rules[].do.gotostringpattern: ^[a-z0-9_]{1,32}$Later exit stage to enter after this action.
spec.strategies[].exits.rules[].do.pauseenum ("strategy" | "task")Pause target, where supported.
spec.strategies[].exits.rules[].do.notifyobjectNotification action, where supported.
spec.strategies[].exits.rules[].do.notify.templatestring✓minLength: 1, maxLength: 128Notification template ID.
spec.strategies[].exits.rules[].expirationinteger✓max: 9007199254740991Required positive rule lifetime in milliseconds.
spec.strategies[].exits.rules[].repeatconst trueRepeat this trailing sell as a ladder tier. Use bps_of_remaining, a distinct activation gain per tier, and no goto or stages. Only the highest reached tier fires.
spec.strategies[].exits.segmented_take_profit_basisconst "remaining"Sell each price or timeout percentage from the amount remaining in this segmented group. Omit to use the bought amount.
spec.strategies[].exits.segmented_take_profit_configsarray<object>minItems: 1Sequential take-profit segments.
spec.strategies[].exits.segmented_take_profit_configs[].price_percentageinteger✓min: 0, max: 9007199254740991Segment price change in basis points.
spec.strategies[].exits.segmented_take_profit_configs[].amount_percentageinteger✓min: 0, max: 9007199254740991Segment sell fraction in basis points.
spec.strategies[].exits.segmented_take_profit_configs[].expirationinteger✓min: 0, max: 9007199254740991Lifetime in milliseconds; 0 uses the executor preset default.
spec.strategies[].exits.segmented_take_profit_configs[].timeout_sell_enabledboolean✓Whether to sell when this segment expires.
spec.strategies[].exits.segmented_take_profit_configs[].timeout_amount_percentageinteger✓min: 0, max: 9007199254740991Timeout sell fraction in basis points.
spec.strategies[].exits.trailing_stop_configobjectTrailing stop preset.
spec.strategies[].exits.trailing_stop_config.threshold_bpsinteger✓min: 0, max: 9007199254740991Gain needed to activate trailing protection, in basis points.
spec.strategies[].exits.trailing_stop_config.stop_bpsinteger✓max: 9007199254740991Trailing distance below the high, in basis points.
spec.strategies[].exits.trailing_stop_config.amount_percentageinteger✓min: 1, max: 10000Sell fraction in basis points; 10000 is 100%.
spec.strategies[].exits.trailing_stop_config.expirationinteger✓min: 0, max: 9007199254740991Lifetime in milliseconds; 0 uses the executor preset default.
spec.strategies[].exits.trailing_stop_config.gotostringpattern: ^[a-z0-9_]{1,32}$Later exit stage to enter after this action.
spec.strategies[].exits.break_even_stop_configobjectBreak-even stop preset.
spec.strategies[].exits.break_even_stop_config.threshold_bpsinteger✓min: 1, max: 100000000Gain needed to activate break-even protection, in basis points.
spec.strategies[].exits.break_even_stop_config.lock_bpsinteger✓min: 0, max: 9007199254740991Locked gain in basis points; less than threshold_bps.
spec.strategies[].exits.break_even_stop_config.amount_percentageinteger✓min: 1, max: 10000Sell fraction in basis points; 10000 is 100%.
spec.strategies[].exits.break_even_stop_config.expirationinteger✓max: 9007199254740991Required positive break-even lifetime in milliseconds.
spec.strategies[].exits.break_even_stop_config.gotostringpattern: ^[a-z0-9_]{1,32}$Later exit stage to enter after this action.
spec.strategies[].exits.stagesarray<object>minItems: 1, maxItems: 7Later stages reachable through forward goto references.
spec.strategies[].exits.stages[].tpsl_configsarray<object>minItems: 1, maxItems: 20Fixed-price take-profit and stop-loss rows.
spec.strategies[].exits.stages[].tpsl_configs[].price_percentageobject✓Price change from the buy price in basis points; negative is stop loss.
spec.strategies[].exits.stages[].tpsl_configs[].amount_percentageinteger✓min: 1, max: 10000Sell fraction in basis points; 10000 is 100%.
spec.strategies[].exits.stages[].tpsl_configs[].expirationinteger✓min: 0, max: 9007199254740991Lifetime in milliseconds; 0 uses the executor preset default.
spec.strategies[].exits.stages[].tpsl_configs[].gotostringpattern: ^[a-z0-9_]{1,32}$Later exit stage to enter after this action.
spec.strategies[].exits.stages[].rulesarray<object>minItems: 1, maxItems: 20Conditional exit rules.
spec.strategies[].exits.stages[].rules[].idstring✓minLength: 1, maxLength: 64Stable exit rule ID, unique across all stages.
spec.strategies[].exits.stages[].rules[].namestringminLength: 1, maxLength: 64Optional display name.
spec.strategies[].exits.stages[].rules[].whenobject | object | object | object✓Condition tree; executable fields depend on the chain capability catalog.
spec.strategies[].exits.stages[].rules[].doobject✓Actions to perform when this rule matches.
spec.strategies[].exits.stages[].rules[].do.buyobjectBuy action, only in contexts with buy capability.
spec.strategies[].exits.stages[].rules[].do.buy.sizingobject | object | object | object | object✓Buy sizing.
spec.strategies[].exits.stages[].rules[].do.buy.orderobject | object✓Buy order definition.
spec.strategies[].exits.stages[].rules[].do.buy.delay_msintegermin: 0Delay before buying in milliseconds.
spec.strategies[].exits.stages[].rules[].do.sellobjectSell action.
spec.strategies[].exits.stages[].rules[].do.sell.amountenum ("all" | "bps_of_remaining" | "bps_of_initial" | "leader_ratio")✓Sell sizing basis. For exit rules, all and bps_of_initial use this buy. For bps_of_remaining, ordinary exits use the current task position, staged exits use the remaining amount of this buy in the graph, and repeating trailing rules use this buy’s ladder remainder. Position guards support all and bps_of_initial.
spec.strategies[].exits.stages[].rules[].do.sell.bpsintegermin: 1, max: 10000Fraction for bps_of_initial or bps_of_remaining; 10000 is 100%.
spec.strategies[].exits.stages[].rules[].do.sell.leader_positionenum ("since_task" | "total" | "followed")Leader position basis; execution support is catalog-defined.
spec.strategies[].exits.stages[].rules[].do.sell.orderobjectSell order definition.
spec.strategies[].exits.stages[].rules[].do.sell.order.typeconst "market"✓Market order.
spec.strategies[].exits.stages[].rules[].do.gotostringpattern: ^[a-z0-9_]{1,32}$Later exit stage to enter after this action.
spec.strategies[].exits.stages[].rules[].do.pauseenum ("strategy" | "task")Pause target, where supported.
spec.strategies[].exits.stages[].rules[].do.notifyobjectNotification action, where supported.
spec.strategies[].exits.stages[].rules[].do.notify.templatestring✓minLength: 1, maxLength: 128Notification template ID.
spec.strategies[].exits.stages[].rules[].expirationinteger✓max: 9007199254740991Required positive rule lifetime in milliseconds.
spec.strategies[].exits.stages[].rules[].repeatconst trueRepeat this trailing sell as a ladder tier. Use bps_of_remaining, a distinct activation gain per tier, and no goto or stages. Only the highest reached tier fires.
spec.strategies[].exits.stages[].segmented_take_profit_basisconst "remaining"Sell each price or timeout percentage from the amount remaining in this segmented group. Omit to use the bought amount.
spec.strategies[].exits.stages[].segmented_take_profit_configsarray<object>minItems: 1Sequential take-profit segments.
spec.strategies[].exits.stages[].segmented_take_profit_configs[].price_percentageinteger✓min: 0, max: 9007199254740991Segment price change in basis points.
spec.strategies[].exits.stages[].segmented_take_profit_configs[].amount_percentageinteger✓min: 0, max: 9007199254740991Segment sell fraction in basis points.
spec.strategies[].exits.stages[].segmented_take_profit_configs[].expirationinteger✓min: 0, max: 9007199254740991Lifetime in milliseconds; 0 uses the executor preset default.
spec.strategies[].exits.stages[].segmented_take_profit_configs[].timeout_sell_enabledboolean✓Whether to sell when this segment expires.
spec.strategies[].exits.stages[].segmented_take_profit_configs[].timeout_amount_percentageinteger✓min: 0, max: 9007199254740991Timeout sell fraction in basis points.
spec.strategies[].exits.stages[].trailing_stop_configobjectTrailing stop preset.
spec.strategies[].exits.stages[].trailing_stop_config.threshold_bpsinteger✓min: 0, max: 9007199254740991Gain needed to activate trailing protection, in basis points.
spec.strategies[].exits.stages[].trailing_stop_config.stop_bpsinteger✓max: 9007199254740991Trailing distance below the high, in basis points.
spec.strategies[].exits.stages[].trailing_stop_config.amount_percentageinteger✓min: 1, max: 10000Sell fraction in basis points; 10000 is 100%.
spec.strategies[].exits.stages[].trailing_stop_config.expirationinteger✓min: 0, max: 9007199254740991Lifetime in milliseconds; 0 uses the executor preset default.
spec.strategies[].exits.stages[].trailing_stop_config.gotostringpattern: ^[a-z0-9_]{1,32}$Later exit stage to enter after this action.
spec.strategies[].exits.stages[].break_even_stop_configobjectBreak-even stop preset.
spec.strategies[].exits.stages[].break_even_stop_config.threshold_bpsinteger✓min: 1, max: 100000000Gain needed to activate break-even protection, in basis points.
spec.strategies[].exits.stages[].break_even_stop_config.lock_bpsinteger✓min: 0, max: 9007199254740991Locked gain in basis points; less than threshold_bps.
spec.strategies[].exits.stages[].break_even_stop_config.amount_percentageinteger✓min: 1, max: 10000Sell fraction in basis points; 10000 is 100%.
spec.strategies[].exits.stages[].break_even_stop_config.expirationinteger✓max: 9007199254740991Required positive break-even lifetime in milliseconds.
spec.strategies[].exits.stages[].break_even_stop_config.gotostringpattern: ^[a-z0-9_]{1,32}$Later exit stage to enter after this action.
spec.strategies[].exits.stages[].idstring✓pattern: ^[a-z0-9_]{1,32}$Stage ID referenced by goto.
spec.strategies[].exits.stages[].namestringminLength: 1, maxLength: 64Optional display name.
spec.strategies[].exits.flash_sell_configobjectTimed sell from buy send time. Either block-gap override selects the delay on our buy receipt. An elapsed deadline sells immediately. Cannot be combined with stages.
spec.strategies[].exits.flash_sell_config.delay_msinteger✓min: 0, max: 86400000Default delay from sending the buy, in milliseconds. Used for unknown gaps and unset tiers.
spec.strategies[].exits.flash_sell_config.same_block_delay_msintegermin: 0, max: 86400000Delay for a buy landing in the same block (Solana slot) as the leader.
spec.strategies[].exits.flash_sell_config.next_block_delay_msintegermin: 0, max: 86400000Delay for a buy landing in the same block (Solana slot) as the leader.
spec.strategies[].exits.flash_sell_config.amount_percentageinteger✓min: 1, max: 10000Sell fraction in basis points; 10000 is 100%.
spec.strategies[].exits.follow_sellobjectFollow leader sells for task positions.
spec.strategies[].exits.follow_sell.sell_amount_modeenum ("proportional" | "sell-all")✓Sell proportionally to the leader or sell the full task position.
spec.strategies[].exits.follow_sell.scopeenum ("bundle" | "buyer")For grouped wallet copy, bundle (default) follows any group member using the combined position. buyer follows each target only for the position bought after that target and uses its own position for ratios. Also applies to leader transfer-out sells. Buy rules and other exits are unchanged.
spec.strategies[].exits.follow_sell.sell_all_percentage_enabledboolean✓Enable the leader-sale threshold for selling the full position.
spec.strategies[].exits.follow_sell.sell_all_percentageinteger✓min: 0, max: 10000Leader-sale threshold in basis points; 10000 means 100%.
spec.strategies[].exits.dev_sell_configobjectSell when the token creator sells.
spec.strategies[].exits.dev_sell_config.sell_all_percentageinteger✓min: 1, max: 10000Creator sell threshold in basis points; 10000 is 100%. At or above it, sell all remaining; otherwise follow the creator sell proportion.
spec.strategies[].exits.migration_sell_configobjectSell on token migration after a buy on a launch curve.
spec.strategies[].exits.migration_sell_config.sell_percentageinteger✓min: 1, max: 10000Fraction to sell on migration in basis points; 10000 is 100%.
spec.strategies[].exits.leader_transfer_sellobjectSell when the leader transfers tokens.
spec.strategies[].exits.leader_transfer_sell.modeenum ("proportional" | "position")✓Leader transfer response mode.
spec.strategies[].exits.leader_transfer_sell.percentageintegermin: 1, max: 10000Position share to sell in basis points for position mode.
spec.strategies[].exits.anti_wickbooleanAnti-wick. Off (absent or false): on Solana, ordinary take profit, stop loss and the limit buys of the same strategy trigger as soon as a qualifying trade touches the trigger price and then sell or buy at market (trades that do not count: https://apm.fun/docs/copy-trading/strategy-settings#anti-wick), so the fill can differ from the trigger price. A limit buy is not triggered by single trades in the block it was placed in. On: they trigger only if the price still meets the condition at the end of the block (Solana slot), ignoring brief spikes and dips inside it. Segmented take profit, trailing and break-even stops and conditional exits always trigger on the end-of-block price, either way. No effect on BSC and Robinhood. Not an exit by itself: exits still need at least one exit.
spec.strategies[].rulesarray<object>Additional strategy rules; execution support is capability-checked.
spec.strategies[].rules[].idstring✓minLength: 1, maxLength: 64Rule ID, unique within its strategy or task guard list.
spec.strategies[].rules[].namestringminLength: 1, maxLength: 64Optional display name.
spec.strategies[].rules[].enabledbooleanWhether this rule or strategy is enabled; omitted means enabled.
spec.strategies[].rules[].onarray<object | object | object | object | object | object>minItems: 1Trigger events; required for entry rules.
spec.strategies[].rules[].whenobject | object | object | object | nullCondition tree; omitted or null means unconditional.
spec.strategies[].rules[].doobject✓Actions to perform when this rule matches.
spec.strategies[].rules[].do.buyobjectBuy action, only in contexts with buy capability.
spec.strategies[].rules[].do.buy.sizingobject | object | object | object | object✓Buy sizing.
spec.strategies[].rules[].do.buy.orderobject | object✓Buy order definition.
spec.strategies[].rules[].do.buy.delay_msintegermin: 0Delay before buying in milliseconds.
spec.strategies[].rules[].do.sellobjectSell action.
spec.strategies[].rules[].do.sell.amountenum ("all" | "bps_of_remaining" | "bps_of_initial" | "leader_ratio")✓Sell sizing basis. For exit rules, all and bps_of_initial use this buy. For bps_of_remaining, ordinary exits use the current task position, staged exits use the remaining amount of this buy in the graph, and repeating trailing rules use this buy’s ladder remainder. Position guards support all and bps_of_initial.
spec.strategies[].rules[].do.sell.bpsintegermin: 1, max: 10000Fraction for bps_of_initial or bps_of_remaining; 10000 is 100%.
spec.strategies[].rules[].do.sell.leader_positionenum ("since_task" | "total" | "followed")Leader position basis; execution support is catalog-defined.
spec.strategies[].rules[].do.sell.orderobjectSell order definition.
spec.strategies[].rules[].do.sell.order.typeconst "market"✓Market order.
spec.strategies[].rules[].do.gotostringpattern: ^[a-z0-9_]{1,32}$Later exit stage to enter after this action.
spec.strategies[].rules[].do.pauseenum ("strategy" | "task")Pause target, where supported.
spec.strategies[].rules[].do.notifyobjectNotification action, where supported.
spec.strategies[].rules[].do.notify.templatestring✓minLength: 1, maxLength: 128Notification template ID.
spec.strategies[].execobjectStrategy-level execution overrides.
spec.strategies[].exec.buyobjectStrategy buy overrides applied over task buy settings.
spec.strategies[].exec.buy.anti_mevbooleanUse the chain-specific protected execution route. On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV.
spec.strategies[].exec.buy.slippage_baseenum ("quote" | "leader_fill")Buy slippage reference: current quote or leader fill price.
spec.strategies[].exec.buy.retriesintegermin: 0Execution retry count; support is capability-checked.
spec.strategies[].exec.buy.block_offsetintegermin: 0, max: 6BSC snipe anti-sniper fee tier.
spec.strategies[].exec.buy.long_offset_secintegermin: 0, max: 10Robinhood Long.xyz buy tier in seconds. Omit to buy at the end of the tax period.
spec.strategies[].exec.buy.feeobjectNormal execution fees and slippage.
spec.strategies[].exec.buy.fee.slippage_bpsinteger✓min: 0, max: 10000Slippage in basis points; 100 bps equals 1%.
spec.strategies[].exec.buy.fee.priority_feestringpattern: ^\d+(?:\.\d+)?$Priority fee as a decimal string: SOL on Solana, Gwei on EVM.
spec.strategies[].exec.buy.fee.landing_feeobjectLanding tip as a decimal string in the chain native token. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers.
spec.strategies[].exec.buy.fee.auto_gasbooleanSolana automatic fee mode.
spec.strategies[].exec.buy.fee.tip_firstbooleanLower failure cost for Solana automatic buy fees; ignored for sells and manual fees.
spec.strategies[].exec.buy.fee.tip_first_minbooleanNo longer affects execution; retained for compatibility and accepted and read back as before.
spec.strategies[].exec.buy.fee.slippage_solobjectSolana follow-buy slippage amount in SOL, replacing percentage slippage when present.
spec.strategies[].exec.buy.fee.landing_budgetobjectTotal fee budget for Solana automatic buy fees.
spec.strategies[].exec.buy.fee.landing_budget.bpsinteger✓min: -9007199254740991, max: 9007199254740991Total buy fee ratio in basis points; 100 bps equals 1%.
spec.strategies[].exec.buy.fee.landing_budget.minstringpattern: ^\d+(?:\.\d+)?$Minimum total buy fee in SOL.
spec.strategies[].exec.buy.fee.landing_budget.maxstringpattern: ^\d+(?:\.\d+)?$Maximum total buy fee in SOL.
spec.strategies[].exec.buy.high_tipobjectHigh-tip execution overrides.
spec.strategies[].exec.buy.high_tip.enabledboolean✓Enable high-tip execution settings.
spec.strategies[].exec.buy.high_tip.slippage_bpsintegermin: 0, max: 10000Slippage in basis points; 100 bps equals 1%.
spec.strategies[].exec.buy.high_tip.priority_feestringpattern: ^\d+(?:\.\d+)?$Priority fee as a decimal string: SOL on Solana, Gwei on EVM.
spec.strategies[].exec.buy.high_tip.landing_feestringpattern: ^\d+(?:\.\d+)?$Priority fee as a decimal string: SOL on Solana, Gwei on EVM.
spec.strategies[].exec.sellobjectStrategy buy overrides applied over task buy settings.
spec.strategies[].exec.sell.anti_mevbooleanUse the chain-specific protected execution route. On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV.
spec.strategies[].exec.sell.slippage_baseenum ("quote" | "leader_fill")Buy slippage reference: current quote or leader fill price.
spec.strategies[].exec.sell.retriesintegermin: 0Execution retry count; support is capability-checked.
spec.strategies[].exec.sell.block_offsetintegermin: 0, max: 6BSC snipe anti-sniper fee tier.
spec.strategies[].exec.sell.long_offset_secintegermin: 0, max: 10Robinhood Long.xyz buy tier in seconds. Omit to buy at the end of the tax period.
spec.strategies[].exec.sell.feeobjectNormal execution fees and slippage.
spec.strategies[].exec.sell.fee.slippage_bpsinteger✓min: 0, max: 10000Slippage in basis points; 100 bps equals 1%.
spec.strategies[].exec.sell.fee.priority_feestringpattern: ^\d+(?:\.\d+)?$Priority fee as a decimal string: SOL on Solana, Gwei on EVM.
spec.strategies[].exec.sell.fee.landing_feeobjectLanding tip as a decimal string in the chain native token. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers.
spec.strategies[].exec.sell.fee.auto_gasbooleanSolana automatic fee mode.
spec.strategies[].exec.sell.fee.tip_firstbooleanLower failure cost for Solana automatic buy fees; ignored for sells and manual fees.
spec.strategies[].exec.sell.fee.tip_first_minbooleanNo longer affects execution; retained for compatibility and accepted and read back as before.
spec.strategies[].exec.sell.fee.slippage_solobjectSolana follow-buy slippage amount in SOL, replacing percentage slippage when present.
spec.strategies[].exec.sell.fee.landing_budgetobjectTotal fee budget for Solana automatic buy fees.
spec.strategies[].exec.sell.fee.landing_budget.bpsinteger✓min: -9007199254740991, max: 9007199254740991Total buy fee ratio in basis points; 100 bps equals 1%.
spec.strategies[].exec.sell.fee.landing_budget.minstringpattern: ^\d+(?:\.\d+)?$Minimum total buy fee in SOL.
spec.strategies[].exec.sell.fee.landing_budget.maxstringpattern: ^\d+(?:\.\d+)?$Maximum total buy fee in SOL.
spec.strategies[].exec.sell.high_tipobjectHigh-tip execution overrides.
spec.strategies[].exec.sell.high_tip.enabledboolean✓Enable high-tip execution settings.
spec.strategies[].exec.sell.high_tip.slippage_bpsintegermin: 0, max: 10000Slippage in basis points; 100 bps equals 1%.
spec.strategies[].exec.sell.high_tip.priority_feestringpattern: ^\d+(?:\.\d+)?$Priority fee as a decimal string: SOL on Solana, Gwei on EVM.
spec.strategies[].exec.sell.high_tip.landing_feestringpattern: ^\d+(?:\.\d+)?$Priority fee as a decimal string: SOL on Solana, Gwei on EVM.
spec.strategies[].exec.follow_sellobjectGas overrides for wallet-triggered sells, including leader transfers. Omitted fields inherit sell execution settings.
spec.strategies[].exec.follow_sell.anti_mevbooleanUse the chain-specific protected execution route. On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV.
spec.strategies[].exec.follow_sell.slippage_baseenum ("quote" | "leader_fill")Buy slippage reference: current quote or leader fill price.
spec.strategies[].exec.follow_sell.retriesintegermin: 0Execution retry count; support is capability-checked.
spec.strategies[].exec.follow_sell.block_offsetintegermin: 0, max: 6BSC snipe anti-sniper fee tier.
spec.strategies[].exec.follow_sell.long_offset_secintegermin: 0, max: 10Robinhood Long.xyz buy tier in seconds. Omit to buy at the end of the tax period.
spec.strategies[].exec.follow_sell.feeobjectOrdinary follow-sell fee overrides. Only priority_fee, landing_fee and auto_gas apply.
spec.strategies[].exec.follow_sell.fee.slippage_bpsintegermin: 0, max: 10000Slippage in basis points; 100 bps equals 1%.
spec.strategies[].exec.follow_sell.fee.priority_feestringpattern: ^\d+(?:\.\d+)?$Priority fee as a decimal string: SOL on Solana, Gwei on EVM.
spec.strategies[].exec.follow_sell.fee.landing_feeobjectLanding tip as a decimal string in the chain native token. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers.
spec.strategies[].exec.follow_sell.fee.auto_gasbooleanSolana automatic fee mode.
spec.strategies[].exec.follow_sell.fee.tip_firstbooleanLower failure cost for Solana automatic buy fees; ignored for sells and manual fees.
spec.strategies[].exec.follow_sell.fee.tip_first_minbooleanNo longer affects execution; retained for compatibility and accepted and read back as before.
spec.strategies[].exec.follow_sell.fee.slippage_solobjectSolana follow-buy slippage amount in SOL, replacing percentage slippage when present.
spec.strategies[].exec.follow_sell.fee.landing_budgetobjectTotal fee budget for Solana automatic buy fees.
spec.strategies[].exec.follow_sell.fee.landing_budget.bpsinteger✓min: -9007199254740991, max: 9007199254740991Total buy fee ratio in basis points; 100 bps equals 1%.
spec.strategies[].exec.follow_sell.fee.landing_budget.minstringpattern: ^\d+(?:\.\d+)?$Minimum total buy fee in SOL.
spec.strategies[].exec.follow_sell.fee.landing_budget.maxstringpattern: ^\d+(?:\.\d+)?$Maximum total buy fee in SOL.
spec.strategies[].exec.follow_sell.high_tipobjectFollow-sell high-tip overrides. Omit enabled to inherit the effective sell switch.
spec.strategies[].exec.follow_sell.high_tip.enabledbooleanEnable high-tip execution settings.
spec.strategies[].exec.follow_sell.high_tip.slippage_bpsintegermin: 0, max: 10000Slippage in basis points; 100 bps equals 1%.
spec.strategies[].exec.follow_sell.high_tip.priority_feeobjectPriority fee as a decimal string: SOL on Solana, Gwei on EVM.
spec.strategies[].exec.follow_sell.high_tip.landing_feeobjectLanding tip as a decimal string in the chain native token. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In manual mode, use the higher of the normal and high-tip values to read these tiers.
spec.on_conflictenum ("first_match" | "all")Matching policy; current execution supports first_match only.
spec.guardsobjectTask-wide position and task rules.
spec.guards.positionsarray<object>Rules applied across all task positions.
spec.guards.positions[].idstring✓minLength: 1, maxLength: 64Stable exit rule ID, unique across all stages.
spec.guards.positions[].nameobjectOptional rule display name.
spec.guards.positions[].whenobject | object | object | object✓Condition tree; executable fields depend on the chain capability catalog.
spec.guards.positions[].doobject✓Action when the condition holds; supported actions depend on the rule context.
spec.guards.positions[].expirationintegermax: 9007199254740991Lifetime in milliseconds; 0 uses the executor preset default.
spec.guards.taskarray<object>At most one rule per trigger. For wallet_trade entries, use buy_filled with task.follow_count gte N and pause: task to pause new buys after N distinct successfully followed transactions. position_closed uses task.loss_streak. order_failed uses task.buy_fail_streak gte 1..100 with within_sec 60..86400 in whole minutes; broadcast slippage failures count.
spec.guards.task[].idstring✓minLength: 1, maxLength: 64Rule ID, unique within its strategy or task guard list.
spec.guards.task[].namestringminLength: 1, maxLength: 64Optional display name.
spec.guards.task[].enabledbooleanWhether this rule or strategy is enabled; omitted means enabled.
spec.guards.task[].onarray<object | object | object | object | object | object>minItems: 1Trigger events; required for entry rules.
spec.guards.task[].whenobject | object | object | object | nullCondition tree; omitted or null means unconditional.
spec.guards.task[].doobject✓Actions to perform when this rule matches.
spec.guards.task[].do.buyobjectBuy action, only in contexts with buy capability.
spec.guards.task[].do.buy.sizingobject | object | object | object | object✓Buy sizing.
spec.guards.task[].do.buy.orderobject | object✓Buy order definition.
spec.guards.task[].do.buy.delay_msintegermin: 0Delay before buying in milliseconds.
spec.guards.task[].do.sellobjectSell action.
spec.guards.task[].do.sell.amountenum ("all" | "bps_of_remaining" | "bps_of_initial" | "leader_ratio")✓Sell sizing basis. For exit rules, all and bps_of_initial use this buy. For bps_of_remaining, ordinary exits use the current task position, staged exits use the remaining amount of this buy in the graph, and repeating trailing rules use this buy’s ladder remainder. Position guards support all and bps_of_initial.
spec.guards.task[].do.sell.bpsintegermin: 1, max: 10000Fraction for bps_of_initial or bps_of_remaining; 10000 is 100%.
spec.guards.task[].do.sell.leader_positionenum ("since_task" | "total" | "followed")Leader position basis; execution support is catalog-defined.
spec.guards.task[].do.sell.orderobjectSell order definition.
spec.guards.task[].do.sell.order.typeconst "market"✓Market order.
spec.guards.task[].do.gotostringpattern: ^[a-z0-9_]{1,32}$Later exit stage to enter after this action.
spec.guards.task[].do.pauseenum ("strategy" | "task")Pause target, where supported.
spec.guards.task[].do.notifyobjectNotification action, where supported.
spec.guards.task[].do.notify.templatestring✓minLength: 1, maxLength: 128Notification template ID.
spec.limitsobjectTask trading limits; execution support is capability-checked.
spec.limits.max_buy_nativeobjectMaximum buy amount in native token units.
spec.limits.max_buys_per_dayintegermin: 1Maximum daily buys; execution support is capability-checked.
spec.execobject✓Task-level buy and sell execution settings.
spec.exec.min_sell_usdstringpattern: ^0*(?:0\.0?[1-9]\d*|[1-9]\d{0,4}(?:\.\d+)?|100000(?:\.0+)?)$Minimum automatic sell value in USD, a decimal string from 0.01 to 100000 inclusive. A smaller sell is enlarged up to the available position. A remainder worth less than the higher of this minimum and the sell cost is included. Omit for remainder cleanup only, using $1 and the sell cost. EVM flash sells before the buy receipt may fall below the minimum.
spec.exec.retain_bpsintegermin: 1, max: 9999Share of each new buy retained from automatic sells (including stop loss), in integer basis points (1–9999, 100 bps = 1%). Omit for no retention. Changing the share affects future buys. Manual sells can use the retained tokens. An EVM task flash sell sent before the buy receipt approximates the reserve.
spec.exec.buyobject✓Base buy execution settings.
spec.exec.buy.anti_mevbooleanUse the chain-specific protected execution route. On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV.
spec.exec.buy.slippage_baseenum ("quote" | "leader_fill")Buy slippage reference: current quote or leader fill price.
spec.exec.buy.retriesintegermin: 0Execution retry count; support is capability-checked.
spec.exec.buy.block_offsetintegermin: 0, max: 6BSC snipe anti-sniper fee tier.
spec.exec.buy.long_offset_secintegermin: 0, max: 10Robinhood Long.xyz buy tier in seconds. Omit to buy at the end of the tax period.
spec.exec.buy.feeobjectNormal execution fees and slippage.
spec.exec.buy.fee.slippage_bpsinteger✓min: 0, max: 10000Slippage in basis points; 100 bps equals 1%.
spec.exec.buy.fee.priority_feestringpattern: ^\d+(?:\.\d+)?$Priority fee as a decimal string: SOL on Solana, Gwei on EVM.
spec.exec.buy.fee.landing_feeobjectLanding tip as a decimal string in the chain native token. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers.
spec.exec.buy.fee.auto_gasbooleanSolana automatic fee mode.
spec.exec.buy.fee.tip_firstbooleanLower failure cost for Solana automatic buy fees; ignored for sells and manual fees.
spec.exec.buy.fee.tip_first_minbooleanNo longer affects execution; retained for compatibility and accepted and read back as before.
spec.exec.buy.fee.slippage_solobjectSolana follow-buy slippage amount in SOL, replacing percentage slippage when present.
spec.exec.buy.fee.landing_budgetobjectTotal fee budget for Solana automatic buy fees.
spec.exec.buy.fee.landing_budget.bpsinteger✓min: -9007199254740991, max: 9007199254740991Total buy fee ratio in basis points; 100 bps equals 1%.
spec.exec.buy.fee.landing_budget.minstringpattern: ^\d+(?:\.\d+)?$Minimum total buy fee in SOL.
spec.exec.buy.fee.landing_budget.maxstringpattern: ^\d+(?:\.\d+)?$Maximum total buy fee in SOL.
spec.exec.buy.high_tipobjectHigh-tip execution overrides.
spec.exec.buy.high_tip.enabledboolean✓Enable high-tip execution settings.
spec.exec.buy.high_tip.slippage_bpsintegermin: 0, max: 10000Slippage in basis points; 100 bps equals 1%.
spec.exec.buy.high_tip.priority_feestringpattern: ^\d+(?:\.\d+)?$Priority fee as a decimal string: SOL on Solana, Gwei on EVM.
spec.exec.buy.high_tip.landing_feestringpattern: ^\d+(?:\.\d+)?$Priority fee as a decimal string: SOL on Solana, Gwei on EVM.
spec.exec.sellobjectStrategy buy overrides applied over task buy settings.
spec.exec.sell.anti_mevbooleanUse the chain-specific protected execution route. On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV.
spec.exec.sell.slippage_baseenum ("quote" | "leader_fill")Buy slippage reference: current quote or leader fill price.
spec.exec.sell.retriesintegermin: 0Execution retry count; support is capability-checked.
spec.exec.sell.block_offsetintegermin: 0, max: 6BSC snipe anti-sniper fee tier.
spec.exec.sell.long_offset_secintegermin: 0, max: 10Robinhood Long.xyz buy tier in seconds. Omit to buy at the end of the tax period.
spec.exec.sell.feeobjectNormal execution fees and slippage.
spec.exec.sell.fee.slippage_bpsinteger✓min: 0, max: 10000Slippage in basis points; 100 bps equals 1%.
spec.exec.sell.fee.priority_feestringpattern: ^\d+(?:\.\d+)?$Priority fee as a decimal string: SOL on Solana, Gwei on EVM.
spec.exec.sell.fee.landing_feeobjectLanding tip as a decimal string in the chain native token. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers.
spec.exec.sell.fee.auto_gasbooleanSolana automatic fee mode.
spec.exec.sell.fee.tip_firstbooleanLower failure cost for Solana automatic buy fees; ignored for sells and manual fees.
spec.exec.sell.fee.tip_first_minbooleanNo longer affects execution; retained for compatibility and accepted and read back as before.
spec.exec.sell.fee.slippage_solobjectSolana follow-buy slippage amount in SOL, replacing percentage slippage when present.
spec.exec.sell.fee.landing_budgetobjectTotal fee budget for Solana automatic buy fees.
spec.exec.sell.fee.landing_budget.bpsinteger✓min: -9007199254740991, max: 9007199254740991Total buy fee ratio in basis points; 100 bps equals 1%.
spec.exec.sell.fee.landing_budget.minstringpattern: ^\d+(?:\.\d+)?$Minimum total buy fee in SOL.
spec.exec.sell.fee.landing_budget.maxstringpattern: ^\d+(?:\.\d+)?$Maximum total buy fee in SOL.
spec.exec.sell.high_tipobjectHigh-tip execution overrides.
spec.exec.sell.high_tip.enabledboolean✓Enable high-tip execution settings.
spec.exec.sell.high_tip.slippage_bpsintegermin: 0, max: 10000Slippage in basis points; 100 bps equals 1%.
spec.exec.sell.high_tip.priority_feestringpattern: ^\d+(?:\.\d+)?$Priority fee as a decimal string: SOL on Solana, Gwei on EVM.
spec.exec.sell.high_tip.landing_feestringpattern: ^\d+(?:\.\d+)?$Priority fee as a decimal string: SOL on Solana, Gwei on EVM.
spec.exec.follow_sellobjectGas overrides for wallet-triggered sells, including leader transfers. Omitted fields inherit sell execution settings.
spec.exec.follow_sell.anti_mevbooleanUse the chain-specific protected execution route. On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV.
spec.exec.follow_sell.slippage_baseenum ("quote" | "leader_fill")Buy slippage reference: current quote or leader fill price.
spec.exec.follow_sell.retriesintegermin: 0Execution retry count; support is capability-checked.
spec.exec.follow_sell.block_offsetintegermin: 0, max: 6BSC snipe anti-sniper fee tier.
spec.exec.follow_sell.long_offset_secintegermin: 0, max: 10Robinhood Long.xyz buy tier in seconds. Omit to buy at the end of the tax period.
spec.exec.follow_sell.feeobjectOrdinary follow-sell fee overrides. Only priority_fee, landing_fee and auto_gas apply.
spec.exec.follow_sell.fee.slippage_bpsintegermin: 0, max: 10000Slippage in basis points; 100 bps equals 1%.
spec.exec.follow_sell.fee.priority_feestringpattern: ^\d+(?:\.\d+)?$Priority fee as a decimal string: SOL on Solana, Gwei on EVM.
spec.exec.follow_sell.fee.landing_feeobjectLanding tip as a decimal string in the chain native token. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers.
spec.exec.follow_sell.fee.auto_gasbooleanSolana automatic fee mode.
spec.exec.follow_sell.fee.tip_firstbooleanLower failure cost for Solana automatic buy fees; ignored for sells and manual fees.
spec.exec.follow_sell.fee.tip_first_minbooleanNo longer affects execution; retained for compatibility and accepted and read back as before.
spec.exec.follow_sell.fee.slippage_solobjectSolana follow-buy slippage amount in SOL, replacing percentage slippage when present.
spec.exec.follow_sell.fee.landing_budgetobjectTotal fee budget for Solana automatic buy fees.
spec.exec.follow_sell.fee.landing_budget.bpsinteger✓min: -9007199254740991, max: 9007199254740991Total buy fee ratio in basis points; 100 bps equals 1%.
spec.exec.follow_sell.fee.landing_budget.minstringpattern: ^\d+(?:\.\d+)?$Minimum total buy fee in SOL.
spec.exec.follow_sell.fee.landing_budget.maxstringpattern: ^\d+(?:\.\d+)?$Maximum total buy fee in SOL.
spec.exec.follow_sell.high_tipobjectFollow-sell high-tip overrides. Omit enabled to inherit the effective sell switch.
spec.exec.follow_sell.high_tip.enabledbooleanEnable high-tip execution settings.
spec.exec.follow_sell.high_tip.slippage_bpsintegermin: 0, max: 10000Slippage in basis points; 100 bps equals 1%.
spec.exec.follow_sell.high_tip.priority_feeobjectPriority fee as a decimal string: SOL on Solana, Gwei on EVM.
spec.exec.follow_sell.high_tip.landing_feeobjectLanding tip as a decimal string in the chain native token. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In manual mode, use the higher of the normal and high-tip values to read these tiers.
spec.exec.usdcbooleanSolana USDC trading switch. New Solana tasks default to false; omitted updates preserve the stored value.
spec.metaobjectTask source and template metadata.
spec.meta.templatestringminLength: 1, maxLength: 64Template identifier. pump marks a Pump App copy-trading task. Use wallet_trade triggers with fomo_pairs containing both EVM and Solana addresses for Pump bridge buys on Robinhood and BSC.
spec.meta.created_viaenum ("web" | "extension" | "telegram" | "openapi" | "system")Client channel that created the task.
spec.meta.systemconst "auto_tpsl"System template marker; execution support is capability-checked.

Responses

201 — Committed

FieldTypeRequiredConstraintsDescription
dataobject✓Response payload.
data.labelsarray<string>default: []The caller's task labels. Empty if none are set.
data.task_idstring✓Strategy task ID.
data.namestring✓Task display name.
data.chainstring✓Execution chain.
data.statusenum ("active" | "paused" | "deleted")✓Requested task state; engine reports synchronization separately. deleted appears only in the DELETE response.
data.versionnumber✓Current version, also returned as the ETag.
data.specobject✓Stored apm.task/2 specification, including the server-assigned id.
data.engineobject | null✓Engine synchronization state, or null when absent.
data.engine.applied_versionnumber | null✓Last acknowledged version, or null before the first acknowledgement.
data.engine.sync_statestring✓Engine synchronization state: syncing, synced or failed.
data.engine.error_codestringEngine rejection code, when present.
data.engine.warning_codestringThe config has taken effect. prior_buyers_unavailable means listed wallet history is still loading. prior_buyers_fast_unavailable means updates for some listed wallets are delayed. The task may miss purchases those wallets make just before the leader buys. This warning does not reject buys. prior_buyers_over_limit means the account exceeds the wallet limit on this chain. Purchases by wallets beyond the limit are not checked. prior_buyers_history_truncated means a listed wallet bought more than 5,000 distinct tokens inside the window. Only its most recent 5,000 are checked. The task keeps running.
data.engine.updated_atstring✓Engine state update time in RFC 3339 UTC.
data.run_stateobject✓Effective task runtime state.
data.run_state.stateenum ("running" | "buy_paused" | "stopped")✓Effective runtime state: running, buy_paused or stopped.
data.run_state.reasonstring | null✓Known buy-pause reasons: account, loss_streak, creator_limit, leader_token_limit, follow_count, buy_fail_streak, funding_low. Buys pause while sells and exits continue. For run-bound pauses, reopen to start a new run: follow, loss and creator counts reset; leader distinct-token counts persist, so raise the limit or disable that filter before reopening. Known stop reasons: low_balance, inactivity, loss_streak, creator_limit. Null means no recorded reason or user stop; unknown reasons are preserved.
data.buy_pausedobject | null✓Buy pause for this run, or null.
data.buy_paused.rule_idstring✓Rule that paused buying.
data.buy_paused.observedobject✓Observed values that triggered the pause.
data.buy_paused.atstring✓Buy pause time in RFC 3339 UTC.
data.funding_low_sincestring | null✓Start of the low-funding interval in RFC 3339 UTC, or null.
data.deactivation_close_positionboolean✓Whether the latest pause or delete requested closing positions.
data.created_atstring✓Creation time in RFC 3339 UTC.
data.updated_atstring✓Last update time in RFC 3339 UTC.
metaobject✓Request id, plus paging fields when this operation is a list.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.
meta.persistenceenum ("committed")✓The write has been committed to storage.
warningsarray<object | object>Advisory fees from the saved configuration. The write succeeded. No confirmation or retry is needed. Empty when no threshold is exceeded.

400 — validation_error / unsupported_chain_feature / wallet_unavailable

FieldTypeRequiredDescription
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.

401 — unauthorized (missing/invalid/revoked/expired Bearer token)

FieldTypeRequiredDescription
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.

403 — insufficient_scope / ip_not_allowed

FieldTypeRequiredDescription
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.

404 — not_found

FieldTypeRequiredDescription
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.

409 — not_paused / invalid_state / idempotency_conflict

FieldTypeRequiredDescription
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.

412 — version_conflict

FieldTypeRequiredDescription
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.

428 — precondition_required

FieldTypeRequiredDescription
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.

429 — rate_limited (Retry-After response header set)

FieldTypeRequiredDescription
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.

500 — internal_error

FieldTypeRequiredDescription
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.
Example request
curl -X POST "https://api.apm.fun/v1/strategy-tasks" \
  -H "Authorization: Bearer apm_live_<prefix>.<secret>" \
  -H "Idempotency-Key: a-client-generated-key" \
  -H "Content-Type: application/json" \
  -d '{
    "spec": {
      "schema": "apm.task/2",
      "name": "X signal with token filters",
      "chain": "bsc",
      "mode": "live",
      "enabled": false,
      "wallets": [
        {
          "wallet_id": "0x1111111111111111111111111111111111111111",
          "address": "0x1111111111111111111111111111111111111111"
        }
      ],
      "strategies": [
        {
          "id": "s1",
          "entries": [
            {
              "id": "buy",
              "on": [
                {
                  "kind": "social_mention",
                  "sources": [
                    {
                      "platform": "x",
                      "source_id": "alphacaller"
                    }
                  ]
                }
              ],
              "when": {
                "id": "c0",
                "all": [
                  {
                    "id": "c1",
                    "f": "signal.ca_count",
                    "op": "is",
                    "v": 1
                  },
                  {
                    "id": "c2",
                    "f": "signal.age_sec",
                    "op": "lte",
                    "v": 30
                  },
                  {
                    "id": "c3",
                    "f": "token.market_cap_usd",
                    "op": "lte",
                    "v": "500000"
                  },
                  {
                    "id": "c4",
                    "f": "token.buy_tax_bps",
                    "op": "lte",
                    "v": 1000
                  },
                  {
                    "id": "c5",
                    "f": "token.sell_tax_bps",
                    "op": "lte",
                    "v": 1000
                  },
                  {
                    "id": "c6",
                    "f": "token.age_sec",
                    "op": "lte",
                    "v": 86400
                  },
                  {
                    "id": "c7",
                    "f": "token.address",
                    "op": "nin",
                    "v": [
                      "0x2222222222222222222222222222222222222222"
                    ]
                  }
                ]
              },
              "do": {
                "buy": {
                  "sizing": {
                    "mode": "fixed",
                    "amount": "0.05"
                  },
                  "order": {
                    "type": "market"
                  }
                }
              }
            }
          ]
        }
      ],
      "exec": {
        "buy": {
          "fee": {
            "slippage_bps": 1500
          }
        }
      }
    }
  }'
Example response 201
{
  "data": {
    "labels": [],
    "task_id": "cfg_8f2a1c9b",
    "name": "string",
    "chain": "string",
    "status": "active",
    "version": 0,
    "spec": {},
    "engine": {
      "applied_version": null,
      "sync_state": "string",
      "error_code": "string",
      "warning_code": "string",
      "updated_at": "string"
    },
    "run_state": {
      "state": "running",
      "reason": null
    },
    "buy_paused": {
      "rule_id": "cfg_8f2a1c9b",
      "observed": {},
      "at": "string"
    },
    "funding_low_since": null,
    "deactivation_close_position": true,
    "created_at": "string",
    "updated_at": "string"
  },
  "meta": {
    "request_id": "cfg_8f2a1c9b",
    "persistence": "committed"
  },
  "warnings": [
    {
      "code": "high_fee",
      "path": "string",
      "side": "buy",
      "item": "priority_fee",
      "amount": "0.05",
      "threshold": "string",
      "unit": "SOL"
    }
  ]
}