API 参考文档 v1
获取 API Key 获取 Key

POST /v1/auto-sell-tasks

创建暂停的自动卖出项

创建时 rule.enabled 始终为 false,恢复后才保护新买入。move_wallets=true 显式授权从其他项移交钱包。从默认项选出的钱包立即离开默认项,在本项恢复前新买入不受自动卖出保护。可选 rule.sell 以公开 slippage_pct 和 gas 字段覆盖链默认卖出参数;不支持的 gas 功能返回 unsupported_chain_feature。rule.exits 支持价格/时间出场、dev_sell_config(开发者卖出)和 migration_sell_config(迁移卖出)。两种事件出场按每笔买入时的规则执行;迁移卖出仅适用于发行曲线上的买入,开发者卖出不能逐单撤销。需 Idempotency-Key 和 copytrade:write。

所需 Scope: copytrade:write

请求头

字段类型必填说明
Idempotency-Keystring✓8–128 character key for this create intent. Reuse the same key and original body for retries within 24 hours.

请求体 application/json

字段类型必填约束说明
namestring✓minLength: 1, maxLength: 50Auto sell task name.
covers_new_walletsboolean✓Cover all active wallets, including future wallets. Only one item per chain can do this; wallets then lists exclusions.
walletsarray<string>✓maxItems: 100Owned active wallet addresses (an address already stored in this item may stay after its wallet is deactivated). Exclusions when covers_new_wallets is true; selected wallets otherwise. A selected wallet leaves the default item immediately and follows this item, so it has no auto sell protection for new buys while this item is paused. An empty selection is allowed.
ruleobject✓Protection rule for future buys. Existing protection orders keep their original rules.
rule.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.
rule.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.
rule.enabledconst falsedefault: falseMust be false at creation. Use pause or resume to change this state.
rule.scopeenum ("apm_manual" | "wallet_all")✓apm_manual protects APM manual buys; wallet_all also protects external buys. Both exclude task buys.
rule.exitsobject✓Price/time exits plus dev_sell_config and migration_sell_config in the shared executor format. Both event exits use the rule in force when each buy happened, even after edits or pause. Migration sell applies only to buys on a launch curve. Dev sell is a listener and cannot be cancelled per order. Percentages are basis points (10000 = 100%); preset expiration/delay values are milliseconds. Conditions retain their catalog units, including within_sec in seconds. Empty is allowed while paused.
rule.exits.tpsl_configsarray<object>minItems: 1, maxItems: 20Fixed-price take-profit and stop-loss rows.
rule.exits.tpsl_configs[].price_percentageobject✓Price change from the buy price in basis points; negative is stop loss.
rule.exits.tpsl_configs[].amount_percentageinteger✓min: 1, max: 10000Sell fraction in basis points; 10000 is 100%.
rule.exits.tpsl_configs[].expirationinteger✓min: 0, max: 9007199254740991Lifetime in milliseconds; 0 uses the executor preset default.
rule.exits.tpsl_configs[].gotostringpattern: ^[a-z0-9_]{1,32}$Later stage to enter after execution.
rule.exits.rulesarray<object>minItems: 1, maxItems: 20Conditional exit rules.
rule.exits.rules[].idstring✓minLength: 1, maxLength: 64Stable exit rule ID, unique across all stages.
rule.exits.rules[].namestringminLength: 1, maxLength: 64Optional rule display name.
rule.exits.rules[].whenobject | object | object | object✓Condition tree; executable fields depend on the chain capability catalog.
rule.exits.rules[].doobject✓Action when the condition holds; supported actions depend on the rule context.
rule.exits.rules[].do.buyobjectBuy action, only in contexts with buy capability.
rule.exits.rules[].do.buy.sizingobject | object | object | object | object✓Buy sizing.
rule.exits.rules[].do.buy.orderobject | object✓Buy order definition.
rule.exits.rules[].do.buy.delay_msintegermin: 0Delay before buying in milliseconds.
rule.exits.rules[].do.sellobjectSell action.
rule.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.
rule.exits.rules[].do.sell.bpsintegermin: 1, max: 10000Fraction for bps_of_initial or bps_of_remaining; 10000 is 100%.
rule.exits.rules[].do.sell.leader_positionenum ("since_task" | "total" | "followed")Leader position basis; execution support is catalog-defined.
rule.exits.rules[].do.sell.orderobjectSell order definition.
rule.exits.rules[].do.sell.order.typeconst "market"✓Market order.
rule.exits.rules[].do.gotostringpattern: ^[a-z0-9_]{1,32}$Later stage to enter after execution.
rule.exits.rules[].do.pauseenum ("strategy" | "task")Pause target, where supported.
rule.exits.rules[].do.notifyobjectNotification action, where supported.
rule.exits.rules[].do.notify.templatestring✓minLength: 1, maxLength: 128Notification template ID.
rule.exits.rules[].expirationinteger✓max: 9007199254740991Required positive rule lifetime in milliseconds.
rule.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.
rule.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.
rule.exits.segmented_take_profit_configsarray<object>minItems: 1Sequential take-profit segments.
rule.exits.segmented_take_profit_configs[].price_percentageinteger✓min: 0, max: 9007199254740991Segment price change in basis points.
rule.exits.segmented_take_profit_configs[].amount_percentageinteger✓min: 0, max: 9007199254740991Segment sell fraction in basis points.
rule.exits.segmented_take_profit_configs[].expirationinteger✓min: 0, max: 9007199254740991Lifetime in milliseconds; 0 uses the executor preset default.
rule.exits.segmented_take_profit_configs[].timeout_sell_enabledboolean✓Whether to sell when this segment expires.
rule.exits.segmented_take_profit_configs[].timeout_amount_percentageinteger✓min: 0, max: 9007199254740991Timeout sell fraction in basis points.
rule.exits.trailing_stop_configobjectTrailing stop preset.
rule.exits.trailing_stop_config.threshold_bpsinteger✓min: 0, max: 9007199254740991Gain needed to activate trailing protection, in basis points.
rule.exits.trailing_stop_config.stop_bpsinteger✓max: 9007199254740991Trailing distance below the high, in basis points.
rule.exits.trailing_stop_config.amount_percentageinteger✓min: 1, max: 10000Sell fraction in basis points; 10000 is 100%.
rule.exits.trailing_stop_config.expirationinteger✓min: 0, max: 9007199254740991Lifetime in milliseconds; 0 uses the executor preset default.
rule.exits.trailing_stop_config.gotostringpattern: ^[a-z0-9_]{1,32}$Later stage to enter after execution.
rule.exits.break_even_stop_configobjectBreak-even stop preset.
rule.exits.break_even_stop_config.threshold_bpsinteger✓min: 1, max: 100000000Gain needed to activate break-even protection, in basis points.
rule.exits.break_even_stop_config.lock_bpsinteger✓min: 0, max: 9007199254740991Locked gain in basis points; less than threshold_bps.
rule.exits.break_even_stop_config.amount_percentageinteger✓min: 1, max: 10000Sell fraction in basis points; 10000 is 100%.
rule.exits.break_even_stop_config.expirationinteger✓max: 9007199254740991Required positive break-even lifetime in milliseconds.
rule.exits.break_even_stop_config.gotostringpattern: ^[a-z0-9_]{1,32}$Later stage to enter after execution.
rule.exits.stagesarray<object>minItems: 1, maxItems: 7Later stages reachable through forward goto references.
rule.exits.stages[].tpsl_configsarray<object>minItems: 1, maxItems: 20Fixed-price take-profit and stop-loss rows.
rule.exits.stages[].tpsl_configs[].price_percentageobject✓Price change from the buy price in basis points; negative is stop loss.
rule.exits.stages[].tpsl_configs[].amount_percentageinteger✓min: 1, max: 10000Sell fraction in basis points; 10000 is 100%.
rule.exits.stages[].tpsl_configs[].expirationinteger✓min: 0, max: 9007199254740991Lifetime in milliseconds; 0 uses the executor preset default.
rule.exits.stages[].tpsl_configs[].gotostringpattern: ^[a-z0-9_]{1,32}$Later stage to enter after execution.
rule.exits.stages[].rulesarray<object>minItems: 1, maxItems: 20Conditional exit rules.
rule.exits.stages[].rules[].idstring✓minLength: 1, maxLength: 64Stable exit rule ID, unique across all stages.
rule.exits.stages[].rules[].namestringminLength: 1, maxLength: 64Optional rule display name.
rule.exits.stages[].rules[].whenobject | object | object | object✓Condition tree; executable fields depend on the chain capability catalog.
rule.exits.stages[].rules[].doobject✓Action when the condition holds; supported actions depend on the rule context.
rule.exits.stages[].rules[].do.buyobjectBuy action, only in contexts with buy capability.
rule.exits.stages[].rules[].do.buy.sizingobject | object | object | object | object✓Buy sizing.
rule.exits.stages[].rules[].do.buy.orderobject | object✓Buy order definition.
rule.exits.stages[].rules[].do.buy.delay_msintegermin: 0Delay before buying in milliseconds.
rule.exits.stages[].rules[].do.sellobjectSell action.
rule.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.
rule.exits.stages[].rules[].do.sell.bpsintegermin: 1, max: 10000Fraction for bps_of_initial or bps_of_remaining; 10000 is 100%.
rule.exits.stages[].rules[].do.sell.leader_positionenum ("since_task" | "total" | "followed")Leader position basis; execution support is catalog-defined.
rule.exits.stages[].rules[].do.sell.orderobjectSell order definition.
rule.exits.stages[].rules[].do.sell.order.typeconst "market"✓Market order.
rule.exits.stages[].rules[].do.gotostringpattern: ^[a-z0-9_]{1,32}$Later stage to enter after execution.
rule.exits.stages[].rules[].do.pauseenum ("strategy" | "task")Pause target, where supported.
rule.exits.stages[].rules[].do.notifyobjectNotification action, where supported.
rule.exits.stages[].rules[].do.notify.templatestring✓minLength: 1, maxLength: 128Notification template ID.
rule.exits.stages[].rules[].expirationinteger✓max: 9007199254740991Required positive rule lifetime in milliseconds.
rule.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.
rule.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.
rule.exits.stages[].segmented_take_profit_configsarray<object>minItems: 1Sequential take-profit segments.
rule.exits.stages[].segmented_take_profit_configs[].price_percentageinteger✓min: 0, max: 9007199254740991Segment price change in basis points.
rule.exits.stages[].segmented_take_profit_configs[].amount_percentageinteger✓min: 0, max: 9007199254740991Segment sell fraction in basis points.
rule.exits.stages[].segmented_take_profit_configs[].expirationinteger✓min: 0, max: 9007199254740991Lifetime in milliseconds; 0 uses the executor preset default.
rule.exits.stages[].segmented_take_profit_configs[].timeout_sell_enabledboolean✓Whether to sell when this segment expires.
rule.exits.stages[].segmented_take_profit_configs[].timeout_amount_percentageinteger✓min: 0, max: 9007199254740991Timeout sell fraction in basis points.
rule.exits.stages[].trailing_stop_configobjectTrailing stop preset.
rule.exits.stages[].trailing_stop_config.threshold_bpsinteger✓min: 0, max: 9007199254740991Gain needed to activate trailing protection, in basis points.
rule.exits.stages[].trailing_stop_config.stop_bpsinteger✓max: 9007199254740991Trailing distance below the high, in basis points.
rule.exits.stages[].trailing_stop_config.amount_percentageinteger✓min: 1, max: 10000Sell fraction in basis points; 10000 is 100%.
rule.exits.stages[].trailing_stop_config.expirationinteger✓min: 0, max: 9007199254740991Lifetime in milliseconds; 0 uses the executor preset default.
rule.exits.stages[].trailing_stop_config.gotostringpattern: ^[a-z0-9_]{1,32}$Later stage to enter after execution.
rule.exits.stages[].break_even_stop_configobjectBreak-even stop preset.
rule.exits.stages[].break_even_stop_config.threshold_bpsinteger✓min: 1, max: 100000000Gain needed to activate break-even protection, in basis points.
rule.exits.stages[].break_even_stop_config.lock_bpsinteger✓min: 0, max: 9007199254740991Locked gain in basis points; less than threshold_bps.
rule.exits.stages[].break_even_stop_config.amount_percentageinteger✓min: 1, max: 10000Sell fraction in basis points; 10000 is 100%.
rule.exits.stages[].break_even_stop_config.expirationinteger✓max: 9007199254740991Required positive break-even lifetime in milliseconds.
rule.exits.stages[].break_even_stop_config.gotostringpattern: ^[a-z0-9_]{1,32}$Later stage to enter after execution.
rule.exits.stages[].idstring✓pattern: ^[a-z0-9_]{1,32}$Stage ID referenced by goto.
rule.exits.stages[].namestringminLength: 1, maxLength: 64Optional rule display name.
rule.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.
rule.exits.flash_sell_config.delay_msinteger✓min: 0, max: 86400000Default delay from sending the buy, in milliseconds. Used for unknown gaps and unset tiers.
rule.exits.flash_sell_config.same_block_delay_msintegermin: 0, max: 86400000Delay for a buy landing in the same block (Solana slot) as the leader.
rule.exits.flash_sell_config.next_block_delay_msintegermin: 0, max: 86400000Delay for a buy landing in the same block (Solana slot) as the leader.
rule.exits.flash_sell_config.amount_percentageinteger✓min: 1, max: 10000Sell fraction in basis points; 10000 is 100%.
rule.exits.dev_sell_configobjectSell when the token creator sells.
rule.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.
rule.exits.migration_sell_configobjectSell on token migration after a buy on a launch curve.
rule.exits.migration_sell_config.sell_percentageinteger✓min: 1, max: 10000Fraction to sell on migration in basis points; 10000 is 100%.
rule.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.
rule.sellobjectSell trade parameters for this item. Omit to use the chain defaults on create or keep the stored parameters on PATCH. Given sub-fields override that base.
rule.sell.slippage_pctstringSell-side max slippage, e.g. "1" = 1%; omit to retain the chain default on create or the stored value on PATCH.
rule.sell.gasobjectGas settings for buys and sells on this config.
rule.sell.gas.priority_feestringPriority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route.
rule.sell.gas.landing_feestringLanding tip in the native currency (SOL on Solana). Omit to retain the chain default. 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.
rule.sell.gas.auto_gasbooleanAutomatic gas estimation. Arc defaults to true; set false to use priority_fee.
rule.sell.gas.high_tipobjectAlternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc.
rule.sell.gas.high_tip.enabledbooleanEnable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto.
rule.sell.gas.high_tip.priority_feestringPriority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted.
rule.sell.gas.high_tip.landing_feestringLanding tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. 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 Solana manual mode, use the higher of the normal and high-tip values to read these tiers.
rule.sell.gas.anti_mevbooleanSend the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). 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.
move_walletsbooleandefault: falseExplicitly move selected wallets from other items in the same atomic write. False returns a conflict. Selecting a wallet covered by the default item needs no move, but takes it out of the default item at once (see wallets).
chainenum ("solana" | "bsc" | "robinhood")✓Chain on which the auto sell item operates. Immutable after creation.

响应

201 — Committed

字段类型必填说明
dataobject✓Response payload.
data.idstring✓Auto sell item ID.
data.chainstring✓Chain of the item.
data.namestring✓Auto sell task name.
data.statusenum ("active" | "paused" | "deleted")✓Requested item state. deleted appears only in the DELETE response.
data.versionnumber | null✓Version shared by all items on this chain; also returned as the ETag when present.
data.sync_statestring✓Chain-level synchronization: off (no enabled items), syncing, active (acknowledged), or publish_failed (saved; awaiting retry).
data.covers_new_walletsboolean✓Whether this is the chain default covering future wallets.
data.walletsarray<string>✓Stored exclusions for a default item, otherwise selected wallet addresses.
data.covered_walletsarray<string>✓Currently covered active wallet addresses, resolved from the domain wallet ownership projection. Specific items take precedence over the default.
data.ruleobject✓Rule for future buys; existing protection orders are unchanged by edits, pause or deletion.
data.rule.enabledboolean✓Whether new qualifying buys receive protection orders.
data.rule.min_sell_usdstringMinimum automatic sell amount in USD for buys protected by this rule.
data.rule.retain_bpsnumberRetained share in basis points, frozen for each buy covered by this rule.
data.rule.scopestring✓Buy coverage: apm_manual or wallet_all; neither includes task buys.
data.rule.exitsobject✓Stored price/time, dev sell and migration sell exits in the shared executor snake_case format, without input range validation. Event exits retain the rule in force when each buy happened; migration sell requires a launch-curve buy and dev sell cannot be cancelled per order.
data.rule.sellobject✓Stored sell trade parameters for this item.
data.rule.sell.slippage_pctstring✓Stored sell-side max slippage. "1" = 1%.
data.rule.sell.gasobject✓Stored sell-side gas settings.
data.rule.sell.gas.priority_feestringPriority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route.
data.rule.sell.gas.landing_feestringLanding tip in the native currency (SOL on Solana). Omit to retain the chain default. 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.
data.rule.sell.gas.auto_gasbooleanAutomatic gas estimation. Arc defaults to true; set false to use priority_fee.
data.rule.sell.gas.high_tipobjectAlternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc.
data.rule.sell.gas.high_tip.enabledbooleanEnable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto.
data.rule.sell.gas.high_tip.priority_feestringPriority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted.
data.rule.sell.gas.high_tip.landing_feestringLanding tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. 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 Solana manual mode, use the higher of the normal and high-tip values to read these tiers.
data.rule.sell.gas.anti_mevbooleanSend the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). 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.
data.created_atstring✓Creation time in RFC 3339 UTC.
data.updated_atstring✓Last item 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 / missing_idempotency_key / unsupported_chain_feature

字段类型必填说明
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)

字段类型必填说明
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

字段类型必填说明
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

字段类型必填说明
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 — version_conflict / auto_sell_wallet_conflict / auto_sell_default_conflict / not_paused / idempotency_conflict / idempotency_in_progress

字段类型必填说明
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 (malformed If-Match)

字段类型必填说明
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

字段类型必填说明
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)

字段类型必填说明
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

字段类型必填说明
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.
请求示例
curl -X POST "https://api.apm.fun/v1/auto-sell-tasks" \
  -H "Authorization: Bearer apm_live_<prefix>.<secret>" \
  -H "Idempotency-Key: a-client-generated-key" \
  -H "Content-Type: application/json" \
  -d '{
    "chain": "bsc",
    "name": "Manual buy protection",
    "covers_new_wallets": true,
    "wallets": [],
    "rule": {
      "enabled": false,
      "scope": "apm_manual",
      "exits": {
        "tpsl_configs": [
          {
            "price_percentage": -2000,
            "amount_percentage": 10000,
            "expiration": 0
          }
        ]
      }
    }
  }'
响应示例 201
{
  "data": {
    "id": "cfg_8f2a1c9b",
    "chain": "string",
    "name": "string",
    "status": "active",
    "version": null,
    "sync_state": "string",
    "covers_new_wallets": true,
    "wallets": [
      "0x8f2a1c9bde34567890abcdef1234567890abcdef"
    ],
    "covered_wallets": [
      "0x8f2a1c9bde34567890abcdef1234567890abcdef"
    ],
    "rule": {
      "enabled": true,
      "min_sell_usd": "string",
      "retain_bps": 0,
      "scope": "string",
      "exits": {},
      "sell": {
        "slippage_pct": "12.50",
        "gas": {
          "priority_fee": "0.05",
          "landing_fee": "0.05",
          "auto_gas": true,
          "high_tip": {
            "enabled": true,
            "priority_fee": "0.05",
            "landing_fee": "0.05"
          },
          "anti_mev": 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"
    }
  ]
}