GET /v1/sniper/configs/{id}
Get a Sniper config
Fetch a single Sniper config by id. Archived configs remain readable and allow labels-only PATCH; all configuration writes return 409 task_read_only. run_state.reason: 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.
Requires the sniper:read scope.
sniper:read Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
id | string | ✓ | Config id returned by create or list. |
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
view | enum ("effective") | Pass effective to add sources to the response. Omit for the resource alone. sources.default is always config. |
Responses
200 — OK
| Field | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | ✓ | Response payload. | |
data.id | string | ✓ | Config id. Use it in the path of later calls. | |
data.status | enum ("active" | "paused" | "deleted") | ✓ | What was asked for — see engine.sync_state for what the execution engine last confirmed. A trigger cap pauses the config and sets stop_reason. | |
data.version | number | ✓ | Optimistic-concurrency version. Send as the ETag/If-Match value on writes. | |
data.run_state | object | ✓ | Task run state. Configs stored as strategy tasks (every config created since the TaskSpec migration, and migrated ones) report all three states; configs not yet migrated report running or stopped. | |
data.run_state.state | enum ("running" | "buy_paused" | "stopped") | ✓ | running: enabled; buy_paused: new buys paused, sells continue; stopped: disabled or deleted. | |
data.run_state.reason | string | 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.read_only | boolean | ✓ | True for archived configs or strategy configs using settings this API cannot express. Archived configs reject all configuration writes, including pause, resume and delete, with 409 task_read_only; GET and labels-only PATCH still work. For strategy configs, pause, resume, delete and labels-only PATCH still work, but any other PATCH, including name, returns 409 task_read_only; edit those settings in the app instead. | |
data.engine | object | ✓ | What the execution engine last confirmed. status is what you asked for; this is what the engine has applied. | |
data.engine.applied_version | number | ✓ | Config version the execution engine last acknowledged. | |
data.engine.sync_state | enum ("syncing" | "synced" | "failed") | ✓ | syncing: the engine has not confirmed this version yet. synced: it has. failed: the last attempt failed; see error_code. | |
data.engine.buy_entry | enum ("open" | "closed") | ✓ | open: the engine is accepting new buys for this config. closed: it is not (paused, deleted, or not yet confirmed). | |
data.engine.warning_code | string | The 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.error_code | string | null | ✓ | Why the last engine sync failed. Null when sync_state is not failed. | |
data.engine.updated_at | string | ✓ | When the engine last reported this state, RFC 3339 UTC. | |
data.created_via | enum ("web" | "api") | ✓ | web if the config was created in the app, api if it was created through this API. | |
data.created_at | string | ✓ | When the config was created, RFC 3339 UTC. | |
data.updated_at | string | ✓ | When the config was last changed, RFC 3339 UTC. | |
data.deleted_at | string | null | ✓ | When the config was soft-deleted, RFC 3339 UTC. Null while it is active or paused. | |
data.labels | array<string> | ✓ | The caller's own labels on this task, or an empty array if none are set. Replace them with PATCH (labels: string[]): at most 10 labels, each 1-24 characters after trimming, duplicates removed, the array replaces the whole set, null is rejected. Changing only labels does not require the config to be paused and does not change version or engine state. | |
data.kind | enum ("sniper") | ✓ | Always sniper. | |
data.stop_reason | enum ("creator_limit" | "loss_streak") | ✓ | Why the engine auto-stopped this config; null if it was not auto-stopped. | |
data.chain | enum ("bsc" | "robinhood" | "solana" | "arc") | string | ✓ | Chain this config runs on. Documented values are bsc/robinhood/solana/arc; a config stored on any other chain (created outside this API, e.g. by the Web app) is still reported verbatim rather than rejected. | |
data.wallet_id | string | ✓ | First entry of wallet_ids, kept for callers that only know a single wallet. Use wallet_ids for the complete list. Immutable once created. | |
data.wallet_ids | array<string> | ✓ | Every custodial wallet that executes this config, in stored order. A config created with the app may have several. Immutable once created. | |
data.name | string | Caller-assigned label for the config. | ||
data.slippage_pct | string | ✓ | Max slippage for the snipe buy, also the sell-side value unless sell is returned. "1" = 1%. | |
data.gas | object | ✓ | Gas settings for buys and sells on this config. | |
data.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.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.gas.auto_gas | boolean | Automatic gas estimation. Arc defaults to true; set false to use priority_fee. | ||
data.gas.high_tip | object | Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc. | ||
data.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.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.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.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.sell | object | Sell-side values, returned only when they differ from the top-level slippage_pct / gas (which show the buy side). Omitted when buy and sell are the same. | ||
data.sell.slippage_pct | string | ✓ | Stored sell-side max slippage. "1" = 1%. Only Flash Sell, Dev Sell and Migration Sell use it; the other automatic sells, including sales triggered by a confirmed earlier buy from a listed wallet (forward copy trades only), are sent at maximum slippage (see the request field sell.slippage_pct). | |
data.sell.gas | object | ✓ | Stored sell-side gas settings. | |
data.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.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.sell.gas.auto_gas | boolean | Automatic gas estimation. Arc defaults to true; set false to use priority_fee. | ||
data.sell.gas.high_tip | object | Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc. | ||
data.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.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.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.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.exit | object | ✓ | Automatic exit rules currently stored on this config. | |
data.exit.take_profit | array<object> | ✓ | Up to 20 take-profit levels. Each sells sell_pct of the position when price is up gain_pct. An expired entry stops applying and does not sell. | |
data.exit.take_profit[].amount_basis | enum ("initial" | "remaining") | Use the bought amount (default) or the amount remaining at trigger time. | ||
data.exit.take_profit[].gain_pct | string | ✓ | Price rise that triggers this take-profit. "1" = 1%. | |
data.exit.take_profit[].sell_pct | string | ✓ | Share of the position to sell when gain_pct is reached. "1" = 1%. If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too. | |
data.exit.take_profit[].expires_in_sec | integer | ✓ | How long this entry stays armed, in seconds. Default 259200 (3 days). After that it stops applying and does not sell. | |
data.exit.segmented_take_profit | object | ✓ | Segmented take-profit. Segments run in order, their rises add up from the buy price, and each has its own lifetime and timeout sell. Lifetimes are milliseconds. | |
data.exit.segmented_take_profit.enabled | boolean | ✓ | Whether segmented take-profit is active. Turning it off keeps the saved segments. At least one segment is required when this is true. Disable with enabled=false, never with null. | |
data.exit.segmented_take_profit.amount_basis | enum ("initial" | "remaining") | Use the bought amount (default) or the amount remaining at trigger time. | ||
data.exit.segmented_take_profit.segments | array<object> | ✓ | Up to 20 segments, run in order: only the current segment waits, and the next one starts after its sell fills. The last segment repeats until the position is sold. They are reported even while enabled is false, so an edit returns them unchanged. | |
data.exit.segmented_take_profit.segments[].gain_pct | string | ✓ | Rise of this segment, added to the rises of the segments before it, as a percent of the buy price: segment n triggers at buy price × (1 + the gain_pct of segments 1 to n). "1" = 1%. | |
data.exit.segmented_take_profit.segments[].sell_pct | string | ✓ | Share of the group’s selected amount basis to sell when price reaches this segment's trigger price. Capped at what is left. "1" = 1%. If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too. | |
data.exit.segmented_take_profit.segments[].expires_in_ms | integer | ✓ | Lifetime of this segment in milliseconds. Omit or set 0 for no timeout; PATCH replaces the segments array, so an omitted lifetime in a replacement segment resets to 0. The first segment's lifetime starts when the buy is sent; each later segment's starts when the previous segment ends. When a positive lifetime runs out before the trigger price is reached and timeout_sell is enabled, timeout_sell.sell_pct is sold. This is not take_profit: an expired take_profit entry simply stops applying. | |
data.exit.segmented_take_profit.segments[].timeout_sell | object | ✓ | Sell that fires when this segment expires before its trigger price. | |
data.exit.segmented_take_profit.segments[].timeout_sell.enabled | boolean | ✓ | Sell when this segment's lifetime runs out before its trigger price is reached. | |
data.exit.segmented_take_profit.segments[].timeout_sell.sell_pct | string | ✓ | Share of the group’s selected amount basis to sell on timeout. Capped at what is left. "1" = 1%. Default "100". | |
data.exit.stop_loss | object | object | ✓ | Stop-loss. When it is off, the object is only {enabled:false}. | |
data.exit.trailing | object | object | ✓ | Trailing stop. When it is off, the object is only {enabled:false}. | |
data.exit.timed_sell | object | object | ✓ | Timed sell. When it is off, the object is only {enabled:false}. | |
data.exit.dev_sell | object | ✓ | Whether this config sells the same fraction the token developer sold. The full-exit threshold is not on this API; the stored default is the developer selling their entire balance. | |
data.exit.dev_sell.enabled | boolean | default: false | Whether this option is on. Turn an object option off with enabled=false, never with null. | |
data.exit.migration_sell | object | ✓ | On Robinhood, BSC and Solana Cell tasks, sell the configured share after a token migrates to an AMM, once per task, wallet and token. Applies only to positions bought on the bonding curve while enabled; uses the task sell settings. Arc accepts and stores this rule without execution: Arc launchpads (Argus, O1, Pools) issue directly on AMMs with no migration event. | |
data.exit.migration_sell.enabled | boolean | default: false | Whether this option is on. Turn an object option off with enabled=false, never with null. | |
data.exit.migration_sell.sell_pct | string | ✓ | Share of the remaining position to sell on migration, from 0.01 to 100 percent. "1" = 1%. Default "100". If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too. | |
data.exit.anti_wick | boolean | default: false | 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. | |
data.target | object | ✓ | Which new tokens this config buys. | |
data.target.mode | enum ("launchpad" | "token") | default: "launchpad" | "launchpad" watches every new listing matching launchpads. "token" (only token_addresses) is retired after the task format update: create and PATCH requests with it return HTTP 400 unsupported_target_mode. | |
data.target.launchpads | array<string> | ✓ | Launch platforms to watch, 1 to 16, no duplicates. robinhood long-xyz (Long.xyz) carries its own minimum slippage, see buy.long_xyz_delay_sec. bsc: four-meme, flap, open-four, cheesepad-melt-curve, genius, flap-pool-launch. robinhood: pons, pons-v2, doppler, clanker, letscash, long-xyz, flap, standard-reserve, torch. solana: pumpfun, pumpfun-mayhem, pumpfun-normal, pumpfun-cashback, pumpfun-amm, raydium-launchpad, raydium-cpmm, meteora-dbc. On Solana, Pump has normal/Mayhem/Cashback children (pumpfun-normal/pumpfun-mayhem/pumpfun-cashback). Select venues pumpfun/pumpfun-amm plus allowed modes; omit mode values to allow all modes. Both flags require both modes. Pre-change lists containing pumpfun-mayhem without pumpfun-normal or pumpfun-cashback now mean Mayhem only; existing tasks are migrated. Mode values without either Pump venue imply both Pump venues. arc: minara, argus, pools-instant, o1-exchange. | |
data.target.token_addresses | array<string> | default: [] | Only with mode token, which is retired after the task format update (requests return HTTP 400 unsupported_target_mode). Must be empty in launchpad mode. At most 100. The zero address is rejected. | |
data.target.creators | object | default: {} | Restrict launches by deployer. blocked always wins over allowed. | |
data.target.creators.allowed | array<string> | default: [] | Deployer addresses to accept. Non-empty means only launches by these deployers. EVM allowed creators with publicly known private keys (the 20 default Hardhat/Anvil accounts) are rejected on create and parameter edits. Remove them before editing an existing config. At most 2000. The zero address is rejected. | |
data.target.creators.blocked | array<string> | default: [] | Deployer addresses to always reject, even if they are also in allowed. At most 2000. The zero address is rejected. | |
data.target.keywords | array<string> | default: [] | Case-insensitive substrings of the token name or symbol. Any match admits the launch. Empty means no keyword restriction. At most 100. | |
data.target.blocked_keywords | array<string> | default: [] | Case-insensitive substrings of the token name or symbol. Any match skips the launch, and this always wins over keywords. Each entry 1 to 64 characters. Empty means no exclusion. At most 100. Replaced as a whole on PATCH. | |
data.target.quote_classes | array<enum ("native" | "stable" | "stock" | "prestock" | "other")> | maxItems: 5 | Solana quote-token classes: native (SOL), stable (USDC/USDT/USD1), stock (xStocks/Backpack), prestock (PreStocks), other. Matches the quote of the launch pool that directly trades the token. Empty or absent means no class filter. AND with quotes and launchpad modes. Stocks OR cashback needs two tasks. Compiles to token.quote_class in a root all. | |
data.target.quotes | array<string> | default: [] | Allowed quote tokens of the launch pool. The zero address means the native coin. Empty means any quote. At most 512. | |
data.target.dev_buy_max | object | default: {} | Filter developer first buys by an inclusive native-token range. An omitted max means no upper bound; min and max both zero require no developer buy. | |
data.target.dev_buy_max.enabled | boolean | default: false | Only accept launches within the developer initial buy range. An omitted max means no upper bound. | |
data.target.dev_buy_max.min | string | default: "0" | Minimum developer first buy, in the native token. Optional decimal string, defaults to zero. No developer buy counts as zero. | |
data.target.dev_buy_max.max | string | Maximum developer first buy, in the native token. Optional decimal string; omitted on create means no upper bound. PATCH omission preserves it; null removes the upper bound. Explicit zero is an inclusive upper bound. | ||
data.target.skip_same_name_relaunch | boolean | default: false | Skip a token whose creator relaunched the same name within 120 seconds. | |
data.target.require_plain_name | boolean | default: false | Skip launches with special characters in the name or symbol. After trimming whitespace, only letters of any script, ordinary combining accents, decimal digits, printable ASCII and space are allowed. Emoji (including keycaps), circled numbers, math-style letters (U+1D400–U+1D7FF, such as 𝐏𝐄𝐏𝐄), zero-width and control characters, and non-ASCII punctuation are rejected. A launch that provides neither a name nor a symbol is bought as usual. | |
data.target.creator_sold | boolean | Check once before sending. True requires a sale of any size by the creator address after the launch transaction. False requires confirmed absence of a sale. Unknown history rejects either setting. Bundled wallets are excluded. Omit for no restriction on create, or send null in PATCH to clear. | ||
data.target.market_cap | object | ✓ | Snipe only within this USD market-cap range. Market cap = total supply × price in USD. Omitted or {} disables the filter; enabled requires min_usd or max_usd. 0 means unbounded on that side. | |
data.target.market_cap.enabled | boolean | default: false | Apply the market-cap window. When true, min_usd or max_usd is required. | |
data.target.market_cap.min_usd | string | Minimum token market cap in USD. Decimal string, up to 2 decimal places; 0 means unbounded. On Solana and Robinhood KOTM, checked only before sending. | ||
data.target.market_cap.max_usd | string | Maximum token market cap in USD. Decimal string, up to 2 decimal places; 0 means unbounded. Checked at fill time: BSC and Robinhood allow up to approximately 30% above this bound; Solana enforces it as given. | ||
data.buy | object | ✓ | How much to spend on each snipe. | |
data.buy.amount | string | ✓ | Native-token amount spent on each snipe. Decimal string, up to 18 decimal places. | |
data.buy.delay_ms | integer | Wait at least this many milliseconds from first observing the launch. Integer 0 to 60000. All launchpads also wait for their own release. Omit or use 0 for no added delay. Responses only include positive values. PATCH omission preserves the delay and null clears it. | ||
data.buy.anti_sniper_block_offset | integer | null | BSC only: anti-sniper fee tier for Four.meme and OpenFour launches that charge an anti-sniper fee. Integer 0 to 6; a higher tier buys later and pays a lower anti-sniper fee. Omitted or null uses the default tier 5. Requires target.launchpads to contain four-meme or open-four. Approximate anti-sniper share of the buy amount for tiers 0..6: 50%, 33%, 19%, 12%, 8%, 4%, 0%; OpenFour can be up to about 1 percentage point higher. Other fees are additional. PATCH omission preserves the setting; null resets it. Launches without an anti-sniper fee are unaffected. | ||
data.buy.long_xyz_delay_sec | integer | Robinhood only, and only while target.launchpads contains long-xyz: buy timing for Long.xyz launches, whole seconds 0 to 10. A shorter delay buys earlier but pays a higher launch tax, so slippage_pct must be at least 100 - 9.86 x seconds percent. The Web app offers 9 (sport, about 10% tax), 8 (boost, about 20%) and 7 (ultra, about 30%). Omitted means the normal timing (under 2% tax, treated as 10 seconds for the slippage floor). Send null in PATCH to return to the normal timing. | ||
data.trigger | object | ✓ | Caps that pause new buys while the task stays enabled; sells and exits continue. Editing a cap does not resume the current run; reopen the task. There is no expiry. One config buys each token at most once per wallet. | |
data.trigger.max_hits_per_creator | object | default: {} | Skip a creator after this many filled snipes. When every allowlisted creator reaches the cap, pause buys (run_state: buy_paused, reason: creator_limit); sells and exits continue. Reopening starts a fresh count. | |
data.trigger.max_hits_per_creator.enabled | boolean | default: false | Apply limit. limit is required when this is true. | |
data.trigger.max_hits_per_creator.limit | integer | min: 1, max: 100000 | Positive integer cap, at most 100000. | |
data.trigger.max_consecutive_losses | object | default: {} | Pause buys (run_state: buy_paused, reason: loss_streak) after this many consecutive losing snipes; the task stays enabled and sells and exits continue. When both caps are enabled, this limit must be less than max_hits_per_creator.limit. Resume starts a fresh count. | |
data.trigger.max_consecutive_losses.enabled | boolean | default: false | Apply limit. limit is required when this is true. | |
data.trigger.max_consecutive_losses.limit | integer | min: 1, max: 100000 | Positive integer cap, at most 100000. | |
data.advanced | object | ✓ | Retry settings for this snipe config. | |
data.advanced.trx_retry | integer | ✓ | Deprecated: execution does not read it. Accepted with default 3 and maximum 10; configs stored as strategy tasks (every config created since the TaskSpec migration) do not keep it and read back 3. | |
data.sell_fee_filter_enabled | boolean | Enable the sell-back fee filter for copy and sniper buys on Solana, BSC and Robinhood. Absent or false disables it. At buy time, estimates known sell-back fees on the buy route (pool fee plus token sell tax); a known total above sell_fee_max_bps rejects the buy as sell_fee_too_high. Unknown parts pass. When true, sell_fee_max_bps must exist in the create body or stored config merged with PATCH; otherwise HTTP 400 validation_error. GET/list return stored values as-is, without effective defaults. Omitted create/PATCH fields are not written. | ||
data.sell_fee_max_bps | number | Maximum estimated sell-back fees in integer bps, 0–9999 (100 bps = 1%). Required when sell_fee_filter_enabled is true; 0 is the strictest cap, not off. Known fees above the cap reject the buy; equal fees and unknown parts pass. Excludes price impact, priority fee, tip and platform fees; does not filter actual sell orders. GET/list preserve the stored value, including absence. Omitted create/PATCH fields are not written. | ||
data.min_sell_usd | string | 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. | ||
data.retain_bps | number | 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. | ||
data.usdc_trading | boolean | Solana only. true lets USDC pools use USDC first for buys and keeps sell proceeds in USDC; false uses SOL only. Existing USDC must be handled separately when disabled. New tasks default to false in the domain; omitted PATCH fields preserve the stored setting. GET/list return the stored value. Tasks created before the strategy-task migration cannot store it: writing it to such a task returns HTTP 400 validation_error. Writing on any other chain, including false, returns HTTP 400 unsupported_chain_feature. | ||
data.buy_slippage_sol | number | null | Solana copy and sniper buys only. SOL amount, minimum 0.1, at most 9 decimal places. Replaces percentage buy slippage on both fee lanes; stored percentages are preserved. More than this amount of SOL bought ahead of us prevents the buy: for copy configs, counted from the pool after the leader fill; for sniper configs, from the pool right after the token creation transaction, including the dev first buy. No default: omission uses percentage mode. PATCH omission preserves the value; PATCH null clears it and restores percentage mode. Unsupported chains or unmigrated tasks return validation_error. Not available for sells or manual trades. | ||
data.buy_fee_tip_first | boolean | Solana only. Lower failure cost in buy auto mode: if a buy lands on-chain but fails (for example, slippage exceeded), at most about 0.001 SOL of priority fee is charged and the tip is not. This sacrifices some speed. Applies to copy and sniper buys with fixed or proportional total fees. Absent or false disables it. Writing true requires the merged config to have buy_fee_auto true and gas.high_tip.enabled not true; otherwise HTTP 400 validation_error. Manual mode and sells ignore it. GET/list return the stored value; a Solana task in buy auto mode without high tip returns false when unset. Omitted PATCH fields are not written. Writing on any other chain, including false, returns HTTP 400 unsupported_chain_feature. | ||
data.buy_fee_tip_first_min | boolean | Solana only. No longer affects execution; still accepted, stored and read back as before. Writing true still requires the merged config to have buy_fee_tip_first true; otherwise HTTP 400 validation_error with details for buy_fee_tip_first_min. GET/list return the stored value; Solana strategy tasks in buy auto mode with tip-first enabled return false when unset. Unrelated PATCH edits preserve an inactive min flag. Turning buy_fee_tip_first off also turns min off unless the PATCH explicitly supplies min. An explicit min field in the PATCH takes precedence and is validated as supplied. Null PATCH is rejected. Writing on any other chain, including false, returns HTTP 400 unsupported_chain_feature. | ||
data.buy_fee_auto | boolean | Solana only. true = auto fee mode for buys: with gas.high_tip.enabled false the executor treats gas.priority_fee + gas.landing_fee as one budget and splits it per landing route, with no priority fee cap. Omitted or false uses manual fees as entered. Enabling high_tip also selects manual fees even when this flag is true. Read the tiers using the total budget. With ratio fees, use the total calculated for the buy amount. 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. | ||
data.sell_fee_auto | boolean | Solana only. true = auto fee mode for sells: with gas.high_tip.enabled false the executor treats gas.priority_fee + gas.landing_fee as one budget and splits it per landing route, with no priority fee cap. Omitted or false uses manual fees as entered. Enabling high_tip also selects manual fees even when this flag is true. Read the tiers using the total budget. Stop-loss sells may be late when the budget is low. 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. | ||
data.buy_fee_filter_enabled | boolean | Enable the task buy-fee filter. When absent from the task, defaults to enabled at 25% (2500 bps), or the stored limit if 0 < buy_fee_max_bps < 10000. Explicit false disables it; explicit true filters only with a valid limit. GET/list preserve the stored enabled flag (absent stays absent) and return the effective buy_fee_max_bps. An omitted enabled flag means filtering is on at the returned limit for known fees only; sending true opts into the user-set rule below. Omitted create/PATCH fields are not written. Applies to copy and snipe buys on all four Cell chains. The default caps known fees only; undetectable fees are not counted and pass in both Speed first and Price protection. With explicit true and a valid limit, copy buys in Price protection on EVM and Solana reject undetectable fees as buy_fee_unknown; on Solana a Meteora DLMM variable fee is judged at this buy's highest possible rate. | ||
data.buy_fee_max_bps | number | Maximum buy fees and taxes in integer bps (100 bps = 1%). When buy_fee_filter_enabled is absent from the task, uses a stored limit if 0 < buy_fee_max_bps < 10000, otherwise 2500 bps (25%). With explicit true, only 1–9999 enables filtering; 0 or an absent limit disables it. GET/list return the effective limit and preserve the stored buy_fee_filter_enabled flag (absent stays absent). An omitted flag means filtering is on at the returned limit for known fees only; sending true opts into the user-set rule below. Excludes price impact, priority fee, tip and platform fees. Known fees above this limit are rejected. When buy_fee_filter_enabled is absent, the default caps known fees only; undetectable fees are not counted and pass on every chain in both Speed first and Price protection. Only an explicitly enabled filter with a valid limit rejects undetectable fees for copy buys in Price protection on EVM and Solana as buy_fee_unknown (on Solana a Meteora DLMM variable fee is judged at this buy's highest possible rate); Speed first and sniper buys allow them. | ||
data.buy_landing_fee_bps | number | Solana auto mode only: buy total fee as nonnegative integer bps of the actual SOL principal (100 bps = 1%). Absent or 0 selects fixed total fees; no ratio cap. For copy and sniper buys, total = clamp(principal × bps / 10000, buy_landing_fee_min, buy_landing_fee_max), split into priority fee and tip per landing route like auto-mode total fees. The stored buy priority_fee and landing_fee are ignored; slippage still applies. Read only in auto fee mode (buy_fee_auto true, gas.high_tip.enabled false); manual mode ignores it, and setting a new positive value on a manual task returns 400. Sell and manual orders are unaffected. Callers are responsible for the chosen ratio; no confirmation step. Writing on EVM returns HTTP 400 unsupported_chain_feature, including 0. | ||
data.buy_landing_fee_min | string | Solana auto-mode ratio fee minimum total in SOL, decimal string up to 9 places, at least "0.0001" (the cheapest landing route's minimum tip; "0" is rejected). When the effective buy_landing_fee_bps > 0 and no minimum was stored or sent, create/PATCH writes "0.002". Total = clamp(principal × bps / 10000, min, max), split per landing route like auto-mode total fees; stored buy priority_fee/landing_fee are ignored. A positive minimum must not exceed a positive maximum. Ratio fees apply only in auto fee mode (buy_fee_auto true, gas.high_tip.enabled false). Copy and sniper buys only; sells and manual orders unaffected. Writing on EVM returns HTTP 400 unsupported_chain_feature, including "0". | ||
data.buy_landing_fee_max | string | Solana auto-mode ratio fee maximum total in SOL, decimal string up to 9 places. Absent or "0" means no cap. Total = clamp(principal × buy_landing_fee_bps / 10000, buy_landing_fee_min, max), split per landing route like auto-mode total fees; stored buy priority_fee/landing_fee are ignored. A positive maximum must be at least a positive minimum. Ratio fees apply only in auto fee mode (buy_fee_auto true, gas.high_tip.enabled false). Copy and sniper buys only; sells and manual orders unaffected. Writing on EVM returns HTTP 400 unsupported_chain_feature, including "0". Omitted create/PATCH maximums are not written. | ||
data.buy_schedule | object | Daily buy window. Outside the window no new positions are opened (no follow buys, no snipe buys); sells, take-profit and stop-loss keep running. Omit it, or send enabled false, for no restriction. PATCH replaces the whole object, so send all four fields; null is rejected. Supported on bsc, robinhood, arc and solana. | ||
data.buy_schedule.enabled | boolean | ✓ | Apply the window. false keeps the times stored without restricting buys. | |
data.buy_schedule.timezone | string | ✓ | IANA time zone name the minutes are read in, for example Asia/Shanghai. The name is stored in its canonical form (asia/shanghai is stored as Asia/Shanghai, utc as UTC); offsets such as +08:00 and names longer than 64 characters are rejected. | |
data.buy_schedule.start_minute | number | ✓ | Window start, in whole minutes after local midnight, 0 to 1439. The start minute is inside the window. | |
data.buy_schedule.end_minute | number | ✓ | Window end, in whole minutes after local midnight, 0 to 1439. The end minute is outside the window. When it is smaller than start_minute the window crosses midnight (1260 to 120 is 21:00 to 02:00). It must differ from start_minute. | |
data.sources | object | Present only when the request passed view=effective. | ||
data.sources.default | enum ("config") | ✓ | Always config. This API has no global override layer, so every value comes from the config itself. | |
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. |
401 — unauthorized (missing/invalid/revoked/expired Bearer token)
| Field | Type | Required | Description |
|---|---|---|---|
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
| Field | Type | Required | Description |
|---|---|---|---|
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
| Field | Type | Required | Description |
|---|---|---|---|
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)
| Field | Type | Required | Description |
|---|---|---|---|
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
| Field | Type | Required | Description |
|---|---|---|---|
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 GET "https://api.apm.fun/v1/sniper/configs/cfg_8f2a1c9b" \
-H "Authorization: Bearer apm_live_<prefix>.<secret>" {
"data": {
"id": "cfg_8f2a1c9b",
"status": "active",
"version": 0,
"run_state": {
"state": "running",
"reason": null
},
"read_only": true,
"engine": {
"applied_version": 0,
"sync_state": "syncing",
"buy_entry": "open",
"warning_code": "string",
"error_code": null,
"updated_at": "string"
},
"created_via": "web",
"created_at": "string",
"updated_at": "string",
"deleted_at": null,
"labels": [
"string"
],
"kind": "sniper",
"stop_reason": "creator_limit",
"chain": "bsc",
"wallet_id": "cfg_8f2a1c9b",
"wallet_ids": [
"0x8f2a1c9bde34567890abcdef1234567890abcdef"
],
"name": "string",
"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
},
"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
}
},
"exit": {
"take_profit": [
{
"amount_basis": "initial",
"gain_pct": "12.50",
"sell_pct": "12.50",
"expires_in_sec": 0
}
],
"segmented_take_profit": {
"enabled": true,
"amount_basis": "initial",
"segments": [
{
"gain_pct": "12.50",
"sell_pct": "12.50",
"expires_in_ms": 0,
"timeout_sell": {
"enabled": null,
"sell_pct": null
}
}
]
},
"stop_loss": {
"enabled": false
},
"trailing": {
"enabled": false
},
"timed_sell": {
"enabled": false
},
"dev_sell": {
"enabled": false
},
"migration_sell": {
"enabled": false,
"sell_pct": "12.50"
},
"anti_wick": false
},
"target": {
"mode": "launchpad",
"launchpads": [
"string"
],
"token_addresses": [],
"creators": {},
"keywords": [],
"blocked_keywords": [],
"quote_classes": [
"native"
],
"quotes": [],
"dev_buy_max": {},
"skip_same_name_relaunch": false,
"require_plain_name": false,
"creator_sold": true,
"market_cap": {
"enabled": false,
"min_usd": "string",
"max_usd": "string"
}
},
"buy": {
"amount": "0.05",
"delay_ms": 0,
"anti_sniper_block_offset": null,
"long_xyz_delay_sec": 0
},
"trigger": {
"max_hits_per_creator": {},
"max_consecutive_losses": {}
},
"advanced": {
"trx_retry": 0
},
"sell_fee_filter_enabled": true,
"sell_fee_max_bps": 0,
"min_sell_usd": "string",
"retain_bps": 0,
"usdc_trading": true,
"buy_slippage_sol": null,
"buy_fee_tip_first": true,
"buy_fee_tip_first_min": true,
"buy_fee_auto": true,
"sell_fee_auto": true,
"buy_fee_filter_enabled": true,
"buy_fee_max_bps": 0,
"buy_landing_fee_bps": 0,
"buy_landing_fee_min": "0.05",
"buy_landing_fee_max": "0.05",
"buy_schedule": {
"enabled": true,
"timezone": "string",
"start_minute": 0,
"end_minute": 0
},
"sources": {
"default": "config"
}
},
"meta": {
"request_id": "cfg_8f2a1c9b"
}
}