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-Key | string | ✓ | 8–128 character key for this create intent. Reuse the same key and original body for retries within 24 hours. |
请求体 application/json
| 字段 | 类型 | 必填 | 约束 | 说明 |
|---|---|---|---|---|
name | string | ✓ | minLength: 1, maxLength: 50 | Auto sell task name. |
covers_new_wallets | boolean | ✓ | Cover all active wallets, including future wallets. Only one item per chain can do this; wallets then lists exclusions. | |
wallets | array<string> | ✓ | maxItems: 100 | Owned 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. |
rule | object | ✓ | Protection rule for future buys. Existing protection orders keep their original rules. | |
rule.min_sell_usd | string | pattern: ^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_bps | integer | min: 1, max: 9999 | Share 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.enabled | const false | default: false | Must be false at creation. Use pause or resume to change this state. | |
rule.scope | enum ("apm_manual" | "wallet_all") | ✓ | apm_manual protects APM manual buys; wallet_all also protects external buys. Both exclude task buys. | |
rule.exits | object | ✓ | 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_configs | array<object> | minItems: 1, maxItems: 20 | Fixed-price take-profit and stop-loss rows. | |
rule.exits.tpsl_configs[].price_percentage | object | ✓ | Price change from the buy price in basis points; negative is stop loss. | |
rule.exits.tpsl_configs[].amount_percentage | integer | ✓ | min: 1, max: 10000 | Sell fraction in basis points; 10000 is 100%. |
rule.exits.tpsl_configs[].expiration | integer | ✓ | min: 0, max: 9007199254740991 | Lifetime in milliseconds; 0 uses the executor preset default. |
rule.exits.tpsl_configs[].goto | string | pattern: ^[a-z0-9_]{1,32}$ | Later stage to enter after execution. | |
rule.exits.rules | array<object> | minItems: 1, maxItems: 20 | Conditional exit rules. | |
rule.exits.rules[].id | string | ✓ | minLength: 1, maxLength: 64 | Stable exit rule ID, unique across all stages. |
rule.exits.rules[].name | string | minLength: 1, maxLength: 64 | Optional rule display name. | |
rule.exits.rules[].when | object | object | object | object | ✓ | Condition tree; executable fields depend on the chain capability catalog. | |
rule.exits.rules[].do | object | ✓ | Action when the condition holds; supported actions depend on the rule context. | |
rule.exits.rules[].do.buy | object | Buy action, only in contexts with buy capability. | ||
rule.exits.rules[].do.buy.sizing | object | object | object | object | object | ✓ | Buy sizing. | |
rule.exits.rules[].do.buy.order | object | object | ✓ | Buy order definition. | |
rule.exits.rules[].do.buy.delay_ms | integer | min: 0 | Delay before buying in milliseconds. | |
rule.exits.rules[].do.sell | object | Sell action. | ||
rule.exits.rules[].do.sell.amount | enum ("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.bps | integer | min: 1, max: 10000 | Fraction for bps_of_initial or bps_of_remaining; 10000 is 100%. | |
rule.exits.rules[].do.sell.leader_position | enum ("since_task" | "total" | "followed") | Leader position basis; execution support is catalog-defined. | ||
rule.exits.rules[].do.sell.order | object | Sell order definition. | ||
rule.exits.rules[].do.sell.order.type | const "market" | ✓ | Market order. | |
rule.exits.rules[].do.goto | string | pattern: ^[a-z0-9_]{1,32}$ | Later stage to enter after execution. | |
rule.exits.rules[].do.pause | enum ("strategy" | "task") | Pause target, where supported. | ||
rule.exits.rules[].do.notify | object | Notification action, where supported. | ||
rule.exits.rules[].do.notify.template | string | ✓ | minLength: 1, maxLength: 128 | Notification template ID. |
rule.exits.rules[].expiration | integer | ✓ | max: 9007199254740991 | Required positive rule lifetime in milliseconds. |
rule.exits.rules[].repeat | const true | Repeat 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_basis | const "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_configs | array<object> | minItems: 1 | Sequential take-profit segments. | |
rule.exits.segmented_take_profit_configs[].price_percentage | integer | ✓ | min: 0, max: 9007199254740991 | Segment price change in basis points. |
rule.exits.segmented_take_profit_configs[].amount_percentage | integer | ✓ | min: 0, max: 9007199254740991 | Segment sell fraction in basis points. |
rule.exits.segmented_take_profit_configs[].expiration | integer | ✓ | min: 0, max: 9007199254740991 | Lifetime in milliseconds; 0 uses the executor preset default. |
rule.exits.segmented_take_profit_configs[].timeout_sell_enabled | boolean | ✓ | Whether to sell when this segment expires. | |
rule.exits.segmented_take_profit_configs[].timeout_amount_percentage | integer | ✓ | min: 0, max: 9007199254740991 | Timeout sell fraction in basis points. |
rule.exits.trailing_stop_config | object | Trailing stop preset. | ||
rule.exits.trailing_stop_config.threshold_bps | integer | ✓ | min: 0, max: 9007199254740991 | Gain needed to activate trailing protection, in basis points. |
rule.exits.trailing_stop_config.stop_bps | integer | ✓ | max: 9007199254740991 | Trailing distance below the high, in basis points. |
rule.exits.trailing_stop_config.amount_percentage | integer | ✓ | min: 1, max: 10000 | Sell fraction in basis points; 10000 is 100%. |
rule.exits.trailing_stop_config.expiration | integer | ✓ | min: 0, max: 9007199254740991 | Lifetime in milliseconds; 0 uses the executor preset default. |
rule.exits.trailing_stop_config.goto | string | pattern: ^[a-z0-9_]{1,32}$ | Later stage to enter after execution. | |
rule.exits.break_even_stop_config | object | Break-even stop preset. | ||
rule.exits.break_even_stop_config.threshold_bps | integer | ✓ | min: 1, max: 100000000 | Gain needed to activate break-even protection, in basis points. |
rule.exits.break_even_stop_config.lock_bps | integer | ✓ | min: 0, max: 9007199254740991 | Locked gain in basis points; less than threshold_bps. |
rule.exits.break_even_stop_config.amount_percentage | integer | ✓ | min: 1, max: 10000 | Sell fraction in basis points; 10000 is 100%. |
rule.exits.break_even_stop_config.expiration | integer | ✓ | max: 9007199254740991 | Required positive break-even lifetime in milliseconds. |
rule.exits.break_even_stop_config.goto | string | pattern: ^[a-z0-9_]{1,32}$ | Later stage to enter after execution. | |
rule.exits.stages | array<object> | minItems: 1, maxItems: 7 | Later stages reachable through forward goto references. | |
rule.exits.stages[].tpsl_configs | array<object> | minItems: 1, maxItems: 20 | Fixed-price take-profit and stop-loss rows. | |
rule.exits.stages[].tpsl_configs[].price_percentage | object | ✓ | Price change from the buy price in basis points; negative is stop loss. | |
rule.exits.stages[].tpsl_configs[].amount_percentage | integer | ✓ | min: 1, max: 10000 | Sell fraction in basis points; 10000 is 100%. |
rule.exits.stages[].tpsl_configs[].expiration | integer | ✓ | min: 0, max: 9007199254740991 | Lifetime in milliseconds; 0 uses the executor preset default. |
rule.exits.stages[].tpsl_configs[].goto | string | pattern: ^[a-z0-9_]{1,32}$ | Later stage to enter after execution. | |
rule.exits.stages[].rules | array<object> | minItems: 1, maxItems: 20 | Conditional exit rules. | |
rule.exits.stages[].rules[].id | string | ✓ | minLength: 1, maxLength: 64 | Stable exit rule ID, unique across all stages. |
rule.exits.stages[].rules[].name | string | minLength: 1, maxLength: 64 | Optional rule display name. | |
rule.exits.stages[].rules[].when | object | object | object | object | ✓ | Condition tree; executable fields depend on the chain capability catalog. | |
rule.exits.stages[].rules[].do | object | ✓ | Action when the condition holds; supported actions depend on the rule context. | |
rule.exits.stages[].rules[].do.buy | object | Buy action, only in contexts with buy capability. | ||
rule.exits.stages[].rules[].do.buy.sizing | object | object | object | object | object | ✓ | Buy sizing. | |
rule.exits.stages[].rules[].do.buy.order | object | object | ✓ | Buy order definition. | |
rule.exits.stages[].rules[].do.buy.delay_ms | integer | min: 0 | Delay before buying in milliseconds. | |
rule.exits.stages[].rules[].do.sell | object | Sell action. | ||
rule.exits.stages[].rules[].do.sell.amount | enum ("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.bps | integer | min: 1, max: 10000 | Fraction for bps_of_initial or bps_of_remaining; 10000 is 100%. | |
rule.exits.stages[].rules[].do.sell.leader_position | enum ("since_task" | "total" | "followed") | Leader position basis; execution support is catalog-defined. | ||
rule.exits.stages[].rules[].do.sell.order | object | Sell order definition. | ||
rule.exits.stages[].rules[].do.sell.order.type | const "market" | ✓ | Market order. | |
rule.exits.stages[].rules[].do.goto | string | pattern: ^[a-z0-9_]{1,32}$ | Later stage to enter after execution. | |
rule.exits.stages[].rules[].do.pause | enum ("strategy" | "task") | Pause target, where supported. | ||
rule.exits.stages[].rules[].do.notify | object | Notification action, where supported. | ||
rule.exits.stages[].rules[].do.notify.template | string | ✓ | minLength: 1, maxLength: 128 | Notification template ID. |
rule.exits.stages[].rules[].expiration | integer | ✓ | max: 9007199254740991 | Required positive rule lifetime in milliseconds. |
rule.exits.stages[].rules[].repeat | const true | Repeat 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_basis | const "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_configs | array<object> | minItems: 1 | Sequential take-profit segments. | |
rule.exits.stages[].segmented_take_profit_configs[].price_percentage | integer | ✓ | min: 0, max: 9007199254740991 | Segment price change in basis points. |
rule.exits.stages[].segmented_take_profit_configs[].amount_percentage | integer | ✓ | min: 0, max: 9007199254740991 | Segment sell fraction in basis points. |
rule.exits.stages[].segmented_take_profit_configs[].expiration | integer | ✓ | min: 0, max: 9007199254740991 | Lifetime in milliseconds; 0 uses the executor preset default. |
rule.exits.stages[].segmented_take_profit_configs[].timeout_sell_enabled | boolean | ✓ | Whether to sell when this segment expires. | |
rule.exits.stages[].segmented_take_profit_configs[].timeout_amount_percentage | integer | ✓ | min: 0, max: 9007199254740991 | Timeout sell fraction in basis points. |
rule.exits.stages[].trailing_stop_config | object | Trailing stop preset. | ||
rule.exits.stages[].trailing_stop_config.threshold_bps | integer | ✓ | min: 0, max: 9007199254740991 | Gain needed to activate trailing protection, in basis points. |
rule.exits.stages[].trailing_stop_config.stop_bps | integer | ✓ | max: 9007199254740991 | Trailing distance below the high, in basis points. |
rule.exits.stages[].trailing_stop_config.amount_percentage | integer | ✓ | min: 1, max: 10000 | Sell fraction in basis points; 10000 is 100%. |
rule.exits.stages[].trailing_stop_config.expiration | integer | ✓ | min: 0, max: 9007199254740991 | Lifetime in milliseconds; 0 uses the executor preset default. |
rule.exits.stages[].trailing_stop_config.goto | string | pattern: ^[a-z0-9_]{1,32}$ | Later stage to enter after execution. | |
rule.exits.stages[].break_even_stop_config | object | Break-even stop preset. | ||
rule.exits.stages[].break_even_stop_config.threshold_bps | integer | ✓ | min: 1, max: 100000000 | Gain needed to activate break-even protection, in basis points. |
rule.exits.stages[].break_even_stop_config.lock_bps | integer | ✓ | min: 0, max: 9007199254740991 | Locked gain in basis points; less than threshold_bps. |
rule.exits.stages[].break_even_stop_config.amount_percentage | integer | ✓ | min: 1, max: 10000 | Sell fraction in basis points; 10000 is 100%. |
rule.exits.stages[].break_even_stop_config.expiration | integer | ✓ | max: 9007199254740991 | Required positive break-even lifetime in milliseconds. |
rule.exits.stages[].break_even_stop_config.goto | string | pattern: ^[a-z0-9_]{1,32}$ | Later stage to enter after execution. | |
rule.exits.stages[].id | string | ✓ | pattern: ^[a-z0-9_]{1,32}$ | Stage ID referenced by goto. |
rule.exits.stages[].name | string | minLength: 1, maxLength: 64 | Optional rule display name. | |
rule.exits.flash_sell_config | object | Timed 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_ms | integer | ✓ | min: 0, max: 86400000 | Default delay from sending the buy, in milliseconds. Used for unknown gaps and unset tiers. |
rule.exits.flash_sell_config.same_block_delay_ms | integer | min: 0, max: 86400000 | Delay for a buy landing in the same block (Solana slot) as the leader. | |
rule.exits.flash_sell_config.next_block_delay_ms | integer | min: 0, max: 86400000 | Delay for a buy landing in the same block (Solana slot) as the leader. | |
rule.exits.flash_sell_config.amount_percentage | integer | ✓ | min: 1, max: 10000 | Sell fraction in basis points; 10000 is 100%. |
rule.exits.dev_sell_config | object | Sell when the token creator sells. | ||
rule.exits.dev_sell_config.sell_all_percentage | integer | ✓ | min: 1, max: 10000 | Creator 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_config | object | Sell on token migration after a buy on a launch curve. | ||
rule.exits.migration_sell_config.sell_percentage | integer | ✓ | min: 1, max: 10000 | Fraction to sell on migration in basis points; 10000 is 100%. |
rule.exits.anti_wick | boolean | Anti-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.sell | object | Sell 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_pct | string | Sell-side max slippage, e.g. "1" = 1%; omit to retain the chain default on create or the stored value on PATCH. | ||
rule.sell.gas | object | Gas settings for buys and sells on this config. | ||
rule.sell.gas.priority_fee | string | Priority 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_fee | string | Landing 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_gas | boolean | Automatic gas estimation. Arc defaults to true; set false to use priority_fee. | ||
rule.sell.gas.high_tip | object | Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc. | ||
rule.sell.gas.high_tip.enabled | boolean | Enable 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_fee | string | Priority 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_fee | string | Landing 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_mev | boolean | Send 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_wallets | boolean | default: false | Explicitly 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). | |
chain | enum ("solana" | "bsc" | "robinhood") | ✓ | Chain on which the auto sell item operates. Immutable after creation. |
响应
201 — Committed
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
data | object | ✓ | Response payload. |
data.id | string | ✓ | Auto sell item ID. |
data.chain | string | ✓ | Chain of the item. |
data.name | string | ✓ | Auto sell task name. |
data.status | enum ("active" | "paused" | "deleted") | ✓ | Requested item state. deleted appears only in the DELETE response. |
data.version | number | null | ✓ | Version shared by all items on this chain; also returned as the ETag when present. |
data.sync_state | string | ✓ | Chain-level synchronization: off (no enabled items), syncing, active (acknowledged), or publish_failed (saved; awaiting retry). |
data.covers_new_wallets | boolean | ✓ | Whether this is the chain default covering future wallets. |
data.wallets | array<string> | ✓ | Stored exclusions for a default item, otherwise selected wallet addresses. |
data.covered_wallets | array<string> | ✓ | Currently covered active wallet addresses, resolved from the domain wallet ownership projection. Specific items take precedence over the default. |
data.rule | object | ✓ | Rule for future buys; existing protection orders are unchanged by edits, pause or deletion. |
data.rule.enabled | boolean | ✓ | Whether new qualifying buys receive protection orders. |
data.rule.min_sell_usd | string | Minimum automatic sell amount in USD for buys protected by this rule. | |
data.rule.retain_bps | number | Retained share in basis points, frozen for each buy covered by this rule. | |
data.rule.scope | string | ✓ | Buy coverage: apm_manual or wallet_all; neither includes task buys. |
data.rule.exits | object | ✓ | 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.sell | object | ✓ | Stored sell trade parameters for this item. |
data.rule.sell.slippage_pct | string | ✓ | Stored sell-side max slippage. "1" = 1%. |
data.rule.sell.gas | object | ✓ | Stored sell-side gas settings. |
data.rule.sell.gas.priority_fee | string | Priority 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_fee | string | Landing 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_gas | boolean | Automatic gas estimation. Arc defaults to true; set false to use priority_fee. | |
data.rule.sell.gas.high_tip | object | Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc. | |
data.rule.sell.gas.high_tip.enabled | boolean | Enable 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_fee | string | Priority 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_fee | string | Landing 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_mev | boolean | Send 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_at | string | ✓ | Creation time in RFC 3339 UTC. |
data.updated_at | string | ✓ | Last item update time in RFC 3339 UTC. |
meta | object | ✓ | Request id, plus paging fields when this operation is a list. |
meta.request_id | string | ✓ | Id of this request. Also sent as the X-Request-Id response header. |
meta.persistence | enum ("committed") | ✓ | The write has been committed to storage. |
warnings | array<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
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
error | object | ✓ | Why the request failed. |
error.code | string | ✓ | Stable machine-readable error code. |
error.message | string | ✓ | Human-readable explanation of the error. |
error.total | number | Number of distinct blacklisted wallets the account would have on this chain after saving. | |
error.limit | number | Maximum distinct blacklisted wallets per account on this chain. | |
error.details | array<object> | Only present when at least one field-level validation issue exists. | |
error.details[].field | string | ✓ | Request field this issue refers to, or a dotted path such as buy.amount. |
error.details[].reason | string | ✓ | Why that field was rejected. |
error.details[].code | string | Stable 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. | |
meta | object | ✓ | Request id for this failure. |
meta.request_id | string | ✓ | Id of this request. Also sent as the X-Request-Id response header. |
401 — unauthorized (missing/invalid/revoked/expired Bearer token)
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
error | object | ✓ | Why the request failed. |
error.code | string | ✓ | Stable machine-readable error code. |
error.message | string | ✓ | Human-readable explanation of the error. |
error.total | number | Number of distinct blacklisted wallets the account would have on this chain after saving. | |
error.limit | number | Maximum distinct blacklisted wallets per account on this chain. | |
error.details | array<object> | Only present when at least one field-level validation issue exists. | |
error.details[].field | string | ✓ | Request field this issue refers to, or a dotted path such as buy.amount. |
error.details[].reason | string | ✓ | Why that field was rejected. |
error.details[].code | string | Stable 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. | |
meta | object | ✓ | Request id for this failure. |
meta.request_id | string | ✓ | Id of this request. Also sent as the X-Request-Id response header. |
403 — insufficient_scope / ip_not_allowed
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
error | object | ✓ | Why the request failed. |
error.code | string | ✓ | Stable machine-readable error code. |
error.message | string | ✓ | Human-readable explanation of the error. |
error.total | number | Number of distinct blacklisted wallets the account would have on this chain after saving. | |
error.limit | number | Maximum distinct blacklisted wallets per account on this chain. | |
error.details | array<object> | Only present when at least one field-level validation issue exists. | |
error.details[].field | string | ✓ | Request field this issue refers to, or a dotted path such as buy.amount. |
error.details[].reason | string | ✓ | Why that field was rejected. |
error.details[].code | string | Stable 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. | |
meta | object | ✓ | Request id for this failure. |
meta.request_id | string | ✓ | Id of this request. Also sent as the X-Request-Id response header. |
404 — not_found
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
error | object | ✓ | Why the request failed. |
error.code | string | ✓ | Stable machine-readable error code. |
error.message | string | ✓ | Human-readable explanation of the error. |
error.total | number | Number of distinct blacklisted wallets the account would have on this chain after saving. | |
error.limit | number | Maximum distinct blacklisted wallets per account on this chain. | |
error.details | array<object> | Only present when at least one field-level validation issue exists. | |
error.details[].field | string | ✓ | Request field this issue refers to, or a dotted path such as buy.amount. |
error.details[].reason | string | ✓ | Why that field was rejected. |
error.details[].code | string | Stable 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. | |
meta | object | ✓ | Request id for this failure. |
meta.request_id | string | ✓ | 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
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
error | object | ✓ | Why the request failed. |
error.code | string | ✓ | Stable machine-readable error code. |
error.message | string | ✓ | Human-readable explanation of the error. |
error.total | number | Number of distinct blacklisted wallets the account would have on this chain after saving. | |
error.limit | number | Maximum distinct blacklisted wallets per account on this chain. | |
error.details | array<object> | Only present when at least one field-level validation issue exists. | |
error.details[].field | string | ✓ | Request field this issue refers to, or a dotted path such as buy.amount. |
error.details[].reason | string | ✓ | Why that field was rejected. |
error.details[].code | string | Stable 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. | |
meta | object | ✓ | Request id for this failure. |
meta.request_id | string | ✓ | Id of this request. Also sent as the X-Request-Id response header. |
412 — version_conflict (malformed If-Match)
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
error | object | ✓ | Why the request failed. |
error.code | string | ✓ | Stable machine-readable error code. |
error.message | string | ✓ | Human-readable explanation of the error. |
error.total | number | Number of distinct blacklisted wallets the account would have on this chain after saving. | |
error.limit | number | Maximum distinct blacklisted wallets per account on this chain. | |
error.details | array<object> | Only present when at least one field-level validation issue exists. | |
error.details[].field | string | ✓ | Request field this issue refers to, or a dotted path such as buy.amount. |
error.details[].reason | string | ✓ | Why that field was rejected. |
error.details[].code | string | Stable 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. | |
meta | object | ✓ | Request id for this failure. |
meta.request_id | string | ✓ | Id of this request. Also sent as the X-Request-Id response header. |
428 — precondition_required
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
error | object | ✓ | Why the request failed. |
error.code | string | ✓ | Stable machine-readable error code. |
error.message | string | ✓ | Human-readable explanation of the error. |
error.total | number | Number of distinct blacklisted wallets the account would have on this chain after saving. | |
error.limit | number | Maximum distinct blacklisted wallets per account on this chain. | |
error.details | array<object> | Only present when at least one field-level validation issue exists. | |
error.details[].field | string | ✓ | Request field this issue refers to, or a dotted path such as buy.amount. |
error.details[].reason | string | ✓ | Why that field was rejected. |
error.details[].code | string | Stable 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. | |
meta | object | ✓ | Request id for this failure. |
meta.request_id | string | ✓ | Id of this request. Also sent as the X-Request-Id response header. |
429 — rate_limited (Retry-After response header set)
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
error | object | ✓ | Why the request failed. |
error.code | string | ✓ | Stable machine-readable error code. |
error.message | string | ✓ | Human-readable explanation of the error. |
error.total | number | Number of distinct blacklisted wallets the account would have on this chain after saving. | |
error.limit | number | Maximum distinct blacklisted wallets per account on this chain. | |
error.details | array<object> | Only present when at least one field-level validation issue exists. | |
error.details[].field | string | ✓ | Request field this issue refers to, or a dotted path such as buy.amount. |
error.details[].reason | string | ✓ | Why that field was rejected. |
error.details[].code | string | Stable 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. | |
meta | object | ✓ | Request id for this failure. |
meta.request_id | string | ✓ | Id of this request. Also sent as the X-Request-Id response header. |
500 — internal_error
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
error | object | ✓ | Why the request failed. |
error.code | string | ✓ | Stable machine-readable error code. |
error.message | string | ✓ | Human-readable explanation of the error. |
error.total | number | Number of distinct blacklisted wallets the account would have on this chain after saving. | |
error.limit | number | Maximum distinct blacklisted wallets per account on this chain. | |
error.details | array<object> | Only present when at least one field-level validation issue exists. | |
error.details[].field | string | ✓ | Request field this issue refers to, or a dotted path such as buy.amount. |
error.details[].reason | string | ✓ | Why that field was rejected. |
error.details[].code | string | Stable 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. | |
meta | object | ✓ | Request id for this failure. |
meta.request_id | string | ✓ | 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
}
]
}
}
}' {
"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"
}
]
}