API Reference v1
Get API Key API Key

On-chain wallet copy trading API

Paste this into your AI coding assistant

Hand it to Claude, Cursor, or any AI coding assistant and it can start calling the APM API right away.

Here is APM's Open API spec: https://api.apm.fun/v1/openapi.json. Auth is `Authorization: Bearer <token>`, obtained at https://pro.apm.fun/api-keys. Please help me call it to do X.
// Chain capability map

Four chains. Clear capabilities.

See what each execution route can actually do before you create a configuration.

Shared foundation Copy Trade and Sniper lifecycle, wallets, orders and trades on all four chains.
API v1 · 4 chains

Swipe to compare all four chains

Capability RobinhoodBSCSolana
Task buying pauserun_state.reason SupportedBuys pause with loss_streak, creator_limit, follow_count, buy_fail_streak or leader_token_limit; sells and exits continue. Reopening resets follow/loss/creator counts, but leader counts persist: raise that cap or disable its filter before reopening.SupportedBuys pause with loss_streak, creator_limit, follow_count, buy_fail_streak or leader_token_limit; sells and exits continue. Reopening resets follow/loss/creator counts, but leader counts persist: raise that cap or disable its filter before reopening.SupportedBuys pause with loss_streak, creator_limit, follow_count, buy_fail_streak or leader_token_limit; sells and exits continue. Reopening resets follow/loss/creator counts, but leader counts persist: raise that cap or disable its filter before reopening.
Wallet auto-balance/v1/wallets/{wallet}/auto-balance UnavailableUnavailableConditionalPer wallet and off by default. Requires an enabled live strategy. SOL to USDC also requires USDC trading on an enabled live strategy for the wallet.
Wallet rankings/v1/wallet-rankings SupportedHot is paused and returns an empty list until confirmed copy-trading wallets are observed on this chain. Rising, steady profit and long hold are published daily, and the merged ranking includes their wallets.SupportedHot is paused and returns an empty list until confirmed copy-trading wallets are observed on this chain. Rising, steady profit and long hold are published daily, and the merged ranking includes their wallets.Supported
Pause all buying/v1/strategy-tasks/account-buy-pause SupportedAccount-wide REST and MCP switch, applicable to all chains and strategy task types. Pauses new buys only; sells and exits continue, and individual task enabled states stay unchanged.SupportedAccount-wide REST and MCP switch, applicable to all chains and strategy task types. Pauses new buys only; sells and exits continue, and individual task enabled states stay unchanged.SupportedAccount-wide REST and MCP switch, applicable to all chains and strategy task types. Pauses new buys only; sells and exits continue, and individual task enabled states stay unchanged.
Task labelslabels SupportedSupportedSupported
Task venue exclusions/v1/strategy-tasks/venue-exclusions SupportedList the last 24 hours of venue-filtered buys and allow a venue with the current task version via REST or MCP.SupportedList the last 24 hours of venue-filtered buys and allow a venue with the current task version via REST or MCP.SupportedList the last 24 hours of venue-filtered buys and allow a venue with the current task version via REST or MCP.
Strategy tasks/v1/strategy-tasks SupportedPublic REST and MCP for apm.task/2 tasks; no Lab flag required. Repeated trailing tiers sell a share of the remaining position. Created paused; resume checks execution support and wallet ownership. X and Pump.fun signal limits accept the call-time price with an offset or a fixed USD price.SupportedPublic REST and MCP for apm.task/2 tasks; no Lab flag required. Repeated trailing tiers sell a share of the remaining position. Created paused; resume checks execution support and wallet ownership. X and Pump.fun signal limits accept the call-time price with an offset or a fixed USD price.SupportedPublic REST and MCP for apm.task/2 tasks; no Lab flag required. Repeated trailing tiers sell a share of the remaining position. Created paused; resume checks execution support and wallet ownership. X and Pump.fun signal limits accept the call-time price with an offset or a fixed USD price.
Sell by bought or remaining amountexits.rules[].do.sell.amount / exits.segmented_take_profit_basis SupportedSupportedSupported
Consecutive buy failure protectiontask.buy_fail_streak SupportedSupportedSupported
Pause after successful followsbuy_filter.stop_after_follows SupportedSupportedSupported
Dynamic copy buy amountbuy.max_per_trade SupportedSupportedSupported
Tiered copy buysbuy.tiers SupportedForward wallet copy buys use the first of up to 10 tiers matching the leader buy fill market cap. Each tier sets its own size, slippage and fees. The legacy config API supports market buys; use a strategy task for limit buys.SupportedForward wallet copy buys use the first of up to 10 tiers matching the leader buy fill market cap. Each tier sets its own size, slippage and fees. The legacy config API supports market buys; use a strategy task for limit buys.SupportedForward wallet copy buys use the first of up to 10 tiers matching the leader buy fill market cap. Each tier sets its own size, slippage and fees. The legacy config API supports market buys; use a strategy task for limit buys.
Callout token filtersspec.strategies[].entries[].when Supportedsocial_mention entries accept token.market_cap_usd, token.buy_tax_bps, token.sell_tax_bps, token.age_sec and token.address. Market cap and fee caps must be direct children of the root all; a limit entry cannot carry market cap. Age and address are judged when the post arrives; a token with no known launch time fails an age condition. Both social sources can filter token.dex at the root all by the main pool on the selected route. Market cap is checked before sending with the order's route quote and again on-chain, where the ceiling allows about 30% above the maximum.Supportedsocial_mention entries accept token.market_cap_usd, token.buy_tax_bps, token.sell_tax_bps, token.age_sec and token.address. Market cap and fee caps must be direct children of the root all; a limit entry cannot carry market cap. Age and address are judged when the post arrives; a token with no known launch time fails an age condition. Both social sources can filter token.dex at the root all by the main pool on the selected route. Market cap is checked before sending with the order's route quote and again on-chain, where the ceiling allows about 30% above the maximum.Supportedsocial_mention entries accept token.market_cap_usd, token.buy_tax_bps, token.sell_tax_bps, token.age_sec and token.address. Market cap and fee caps must be direct children of the root all; a limit entry cannot carry market cap. Age and address are judged when the post arrives; a token with no known launch time fails an age condition. Both social sources can filter token.dex at the root all by the main pool on the selected route. Market cap is checked before sending with the order's route quote. The root all can also filter token.quote_class on the selected main pool, the pool that directly trades the token; conversion hops before it, such as through USDC, do not count.
Pump.fun calloutsspec.strategies[].entries[].on SupportedOne social_mention source {platform:"pump_fun", source_id:"home_new"}. Live market and limit buys, with optional buy delay. Each entry needs signal.author in with 1–200 callers; saving looks the handles up. There is no separate lookup route.SupportedOne social_mention source {platform:"pump_fun", source_id:"home_new"}. Live market and limit buys, with optional buy delay. Each entry needs signal.author in with 1–200 callers; saving looks the handles up. There is no separate lookup route.SupportedOne social_mention source {platform:"pump_fun", source_id:"home_new"}. Live market and limit buys, with optional buy delay. Each entry needs signal.author in with 1–200 callers; saving looks the handles up. There is no separate lookup route.
SOL slippagebuy_slippage_sol UnavailableUnavailableSupportedCopy and sniper buys. Minimum 0.1 SOL, up to 9 decimals. Replaces percentage buy slippage; PATCH null restores percentage mode. X and Pump.fun buys use spec.exec.buy.fee.slippage_sol.
Dev Sellexit.dev_sell.enabled ConditionalRequires a known token creator.ConditionalRequires a known token creator.ConditionalRequires a known token creator.
Maximum block gapmax_block_gap SupportedSupportedSupported
Flash Sellexit.timed_sell.enabled / exit.timed_sell.same_block_delay_ms / exit.timed_sell.next_block_delay_ms SupportedSupportedSupported
Anti-wickexit.anti_wick / exits.anti_wick Stored onlyAccepted and saved; has no effect on this chain.Stored onlyAccepted and saved; has no effect on this chain.SupportedOff by default: ordinary take profit, stop loss and the strategy's limit buys trigger when a qualifying trade touches the trigger price, then fill at market, so the fill can differ from the trigger price. On: they trigger only if the price still meets the condition at the end of the slot. Segmented take profit, trailing and break-even stops and exit rules always trigger on the end-of-slot price.
Auto Sell/v1/auto-sell-tasks SupportedPer-item REST and MCP; created paused. Each item has editable sell slippage and gas settings, with chain defaults and restrictions. Price/time exits (including repeating trailing ladders), dev sell and migration sell exits protect future manual or wallet buys, excluding task buys. Event exits keep each buy's original rule; migration sell requires a launch-curve buy and dev sell cannot be cancelled per order. Resume validates execution support; edits and pause preserve existing orders.SupportedPer-item REST and MCP; created paused. Each item has editable sell slippage and gas settings, with chain defaults and restrictions. Price/time exits (including repeating trailing ladders), dev sell and migration sell exits protect future manual or wallet buys, excluding task buys. Event exits keep each buy's original rule; migration sell requires a launch-curve buy and dev sell cannot be cancelled per order. Resume validates execution support; edits and pause preserve existing orders.SupportedPer-item REST and MCP; created paused. Each item has editable sell slippage and gas settings, with chain defaults and restrictions. Price/time exits (including repeating trailing ladders), dev sell and migration sell exits protect future manual or wallet buys, excluding task buys. Event exits keep each buy's original rule; migration sell requires a launch-curve buy and dev sell cannot be cancelled per order. Resume validates execution support; edits and pause preserve existing orders.
Managed Sell (Web)task_type: managed_sell UnavailableManaged-sell tasks are retired: creation is rejected; configuration writes to archived tasks, including pause and delete, return task_read_only; labels-only PATCH remains available. Use /v1/auto-sell-tasks for per-item Auto Sell on supported chains.UnavailableManaged-sell tasks are retired: creation is rejected; configuration writes to archived tasks, including pause and delete, return task_read_only; labels-only PATCH remains available. Use /v1/auto-sell-tasks for per-item Auto Sell on supported chains.UnavailableManaged-sell tasks are retired: creation is rejected; configuration writes to archived tasks, including pause and delete, return task_read_only; labels-only PATCH remains available. Use /v1/auto-sell-tasks for per-item Auto Sell on supported chains.
DEX Filterbuy_filter.dex.allowed SupportedSupportedSupported12 execution venues plus Pump modes. Matches the venue where the leader bought the token; Pump alone excludes Pump AMM buys after graduation. Buys only; held tokens can still be sold after graduation.
Count failed buysbuy_filter.per_token_buy_limit.count_failed SupportedSupportedSupported
Token age filterbuy_filter.token_age SupportedSupportedConditionalAge counts from the token's launchpad creation only. A token with no launch record counts as older than any limit: it passes min_sec and fails max_sec.
Maximum buy feebuy_fee_filter_enabled / buy_fee_max_bps SupportedEnabled by default at 25% (2500 bps); an absent enabled flag uses a valid stored limit, otherwise 2500 bps. Explicit false disables it.SupportedEnabled by default at 25% (2500 bps); an absent enabled flag uses a valid stored limit, otherwise 2500 bps. Explicit false disables it.SupportedEnabled by default at 25% (2500 bps); an absent enabled flag uses a valid stored limit, otherwise 2500 bps. Explicit false disables it.
Minimum sell amount (USD)min_sell_usd / exec.min_sell_usd / rule.min_sell_usd SupportedSupportedSupported
Retained position (%)retain_bps / exec.retain_bps / rule.retain_bps SupportedFlash sells sent before the parent buy receipt approximate the retained share.SupportedFlash sells sent before the parent buy receipt approximate the retained share.Supported
Max sell feesell_fee_filter_enabled / sell_fee_max_bps SupportedOff when absent or false. Enabling requires a 0–9999 bps cap; 0 is strictest. At buy time, known sell-back pool fees plus token sell tax above the cap reject the buy; unknown parts pass. GET returns stored values.SupportedOff when absent or false. Enabling requires a 0–9999 bps cap; 0 is strictest. At buy time, known sell-back pool fees plus token sell tax above the cap reject the buy; unknown parts pass. GET returns stored values.SupportedOff when absent or false. Enabling requires a 0–9999 bps cap; 0 is strictest. At buy time, known sell-back pool fees plus token sell tax above the cap reject the buy; unknown parts pass. GET returns stored values.
USDC tradingusdc_trading UnavailableUnavailableSupportedOff for new tasks unless requested. USDC pools prefer USDC for buys and keep sell proceeds in USDC; false uses SOL only. Other chains reject any write, including false.
Lower failure costbuy_fee_tip_first / buy_fee_tip_first_min UnavailableUnavailableConditionalBuy auto mode only: buy_fee_auto true and gas.high_tip.enabled not true. With buy_fee_tip_first true, a buy that lands but fails is charged at most about 0.001 SOL of priority fee and no tip, at the cost of some speed. buy_fee_tip_first_min no longer affects execution; it is still accepted, stored and read back. Writing min true still requires merged tip_first true; writing tip_first true in manual mode returns 400. Other chains reject either field, including false. Turning tip_first off also turns min off unless the PATCH explicitly supplies min, which is validated as supplied.
Task save fee warningswarnings UnavailableSupportedCreate and PATCH report each effective tip above 1 BNB after saving.SupportedCreate and PATCH report individual fees above 1 SOL and buy fee ratios above 10% after saving.
Auto fee modebuy_fee_auto / sell_fee_auto UnavailableUnavailableSupportedEach side uses auto mode only when its flag is true and high_tip.enabled is false. Omitted or false stays manual.
Buy total fee ratiobuy_landing_fee_bps / buy_landing_fee_min / buy_landing_fee_max UnavailableWriting any of these fields returns HTTP 400 unsupported_chain_feature, including zero.UnavailableWriting any of these fields returns HTTP 400 unsupported_chain_feature, including zero.SupportedAuto-mode copy and sniper buys: total = principal × ratio, bounded by min (default 0.002 SOL) and optional max, split per sending route. no ratio cap; needs buy_fee_auto=true with gas.high_tip.enabled=false.
Separate copy-sell gasfollow_sell.gas / exec.follow_sell ConditionalNormal gas is automatic. Omit auto_gas and manual normal-lane fees. Enabling high tips is rejected because the route has no high-tip provider.SupportedOmit auto_gas in follow_sell.gas.SupportedOmit auto_gas in follow_sell.gas.
Grouped copy sellfollow_sell.scope / exits.follow_sell.scope SupportedWith Grouped Copy, bundle follows sales from any group member using the combined position. buyer follows each wallet only for the position bought after it and uses its own position for ratios. The scope also applies to transfer-out sells.SupportedWith Grouped Copy, bundle follows sales from any group member using the combined position. buyer follows each wallet only for the position bought after it and uses its own position for ratios. The scope also applies to transfer-out sells.SupportedWith Grouped Copy, bundle follows sales from any group member using the combined position. buyer follows each wallet only for the position bought after it and uses its own position for ratios. The scope also applies to transfer-out sells.
Buy schedulebuy_schedule / spec.schedule SupportedSupportedSupported
Prior buyers blacklist and optional late salefilters.prior_buyer_blacklist SupportedSupportedSupported
Leader first buy amountreverse_buy.min_leader_first_buy / max_leader_first_buy ConditionalOnly with Buy on Sell. Skip if the first buy amount is unknown.ConditionalOnly with Buy on Sell. Skip if the first buy amount is unknown.ConditionalOnly with Buy on Sell. Skip if the first buy amount is unknown.
First Buy Only windowdedupe.first_buy_window_minutes ConditionalCell tasks use 0–720 whole minutes; omitted means 360.ConditionalCell tasks use 0–720 whole minutes; omitted means 360. A held position is skipped only with block_if_held.ConditionalCell tasks use 0–720 whole minutes; omitted means 360. Reverse tasks ignore the window.
Snipe market cap rangetarget.market_cap SupportedTotal supply × price in USD; 0 is unbounded. The fill-time upper bound allows up to approximately 30% above max_usd. On KOTM, the lower bound is checked only before sending.SupportedTotal supply × price in USD; 0 is unbounded. The fill-time upper bound allows up to approximately 30% above max_usd.SupportedTotal supply × price in USD; 0 is unbounded. The fill-time upper bound enforces max_usd as given; the lower bound is checked only before sending.
Launch buy delay (ms)buy.delay_ms SupportedSupportedSupported
Creator sale before buyingtarget.creator_sold SupportedSupportedSupported
Dev buy amount rangetarget.dev_buy_max SupportedAn omitted max means no upper bound; explicit 0 remains a bound.SupportedAn omitted max means no upper bound; explicit 0 remains a bound.SupportedAn omitted max means no upper bound; explicit 0 remains a bound.
Skip tokens with special characters in the name or symboltarget.require_plain_name SupportedSupportedSupported
Same-name relaunch filtertarget.skip_same_name_relaunch SupportedSupportedSupported
Excluded keywordstarget.blocked_keywords SupportedSupportedSupported
Anti-sniper fee tierbuy.anti_sniper_block_offset UnavailableConditionalFour.meme / OpenFour launches that charge an anti-sniper fee; four-meme or open-four selected. Tiers 0..6; omitted/null = tier 5. A higher tier buys later and pays less. Approximate anti-sniper fee share: 50/33/19/12/8/4/0%; OpenFour up to about 1 percentage point higher.Unavailable
Snipe specific token addressestarget.mode UnavailableRetired after the task format update: target.mode "token" returns HTTP 400 unsupported_target_mode. Use launchpad mode with creator or keyword filters.UnavailableRetired after the task format update: target.mode "token" returns HTTP 400 unsupported_target_mode. Use launchpad mode with creator or keyword filters.UnavailableRetired after the task format update: target.mode "token" returns HTTP 400 unsupported_target_mode. Use launchpad mode with creator or keyword filters.
Long.xyz buy timingbuy.long_xyz_delay_sec ConditionalOnly while target.launchpads contains long-xyz. slippage_pct must be at least 100 - 9.86 x seconds percent (omitted timing counts as 10 seconds).UnavailableLong.xyz is a Robinhood launchpad.UnavailableLong.xyz is a Robinhood launchpad.
Quote Filtertarget.quotes SupportedSupportedSupported
High TIP modegas.high_tip.enabled UnavailableNo reachable high-tip provider on the current route.ConditionalDefault: tip lane on, 0.05 gwei gas and 0.0005 BNB bid. Explicit gas.priority_fee without high_tip.enabled disables the lane on create; PATCH omission retains it. An explicit gas.priority_fee also sets high_tip.priority_fee unless given, so it reaches every route.Supported
Landing Tipgas.landing_fee UnavailableNonzero values are rejected.Stored onlySaved, but BSC tasks do not pay tip from this lane.ConditionalTip in SOL. The tip tier determines which acceleration routes are available.
Auto Gasgas.auto_gas UnavailableCell chooses gas automatically, but this field is not accepted.UnavailableUnavailable
MEV protectiongas.anti_mev ConditionalConfigurable, but current Cell routes are identical.SupportedSupportedAnti-MEV fills are slower than normal mode. The tip tier determines which protected routes are available.
Ultra-fast mode (deprecated)price_strategy Stored onlyExecution ignores this field: advanced.leader_fill_buy_slippage picks the copy-buy price strategy (false is speed first, true is price protection). Configs stored as strategy tasks do not keep it and read back protected.Stored onlyExecution ignores this field: advanced.leader_fill_buy_slippage picks the copy-buy price strategy (false is speed first, true is price protection). Configs stored as strategy tasks do not keep it and read back protected.Stored onlyExecution ignores this field: advanced.leader_fill_buy_slippage picks the copy-buy price strategy (false is speed first, true is price protection). Configs stored as strategy tasks do not keep it and read back protected.
Sell price strategy (deprecated)advanced.leader_fill_sell_slippage Stored onlyAccepted; execution does not read it. Copy sells always go at maximum slippage. Configs stored as strategy tasks do not keep it and read back false.Stored onlyAccepted; execution does not read it. Copy sells always go at maximum slippage. Configs stored as strategy tasks do not keep it and read back false.Stored onlyAccepted; execution does not read it. Copy sells always go at maximum slippage. Configs stored as strategy tasks do not keep it and read back false.
Migration Sellexit.migration_sell.enabled SupportedSupportedSupported

Stored only does not trigger execution. Conditional features depend on the selected provider or route. A successful configuration response does not prove a trade was executed.

Explore chain details

Four-chain support is pending release. Check the live API specification before sending production requests.

The APM Open API is a REST API for on-chain wallet copy trading: developers manage Copy Trading and Sniper configurations and read account, custodial wallet, order and trade data. It follows blockchain wallets; it is not a MetaTrader, forex or brokerage account API. The comparison above shows which optional execution features actually work on each chain.

Check the capability table and chain guide for the chains and features supported by each execution route. Some optional fields can be saved without taking effect. The live OpenAPI document lists the request fields accepted by the gateway.

Direct manual trading uses a separate Cell token flow for market/limit buys and sells, cancellation, status and SSE on Solana, BSC and Robinhood. Cell operation paths use the returned gateway URL.

Base URL

https://api.apm.fun

Every path in the reference is relative to this base URL.

Machine-readable spec

The API documents itself. The OpenAPI 3.1 document contains request schemas plus the structured x-apm-chain-capabilities comparison shown above:

Point any OpenAPI-aware code generator or API client at the JSON/YAML URL to generate a typed client, or paste the JSON URL into an AI coding assistant — see the box above.

Resources

ResourceCovers
Copy Trade ConfigsWallet/FOMO copy-trading tasks: create, list, read, patch, pause/resume, batch pause/resume, delete, orders
Sniper ConfigsNew-launch sniping tasks: same operations, launchpad/token targeting instead of leaders
Auto Sell Tasks/v1/auto-sell-tasks: per-item create, list, read, patch, pause/resume, delete and protection orders; REST and MCP
AccountGET /v1/me (token identity + configuration quota), GET /v1/wallets (custodial wallets usable as wallet_id), and POST /v1/cell-token (short-lived Cell token)
PortfolioGET /v1/balances and GET /v1/positions: wallet balances, aggregated holdings and available PnL; requires portfolio:read
OrdersAccount-wide history, details, open orders and request-ID lookup under /v1/orders; requires orders:read

Auto Sell is pending deployment. New items are paused; resume enables protection for future qualifying buys. Check the live specification before use.

Copy Trading and Sniper configs share one per-account configuration quota — see GET /v1/me.

The current release covers robinhood, bsc and solana for wallet lookup, configuration creation and editing, chain-filtered lists, lifecycle operations, and order/trade reads. Other chains remain readable when present in historical configurations but cannot be used to create or edit configurations. See Chain support and fees for the per-chain parameter rules.

Continue with Chain support and fees, Authentication, Errors, Pagination, Idempotency & concurrency and Rate limits before calling an endpoint for the first time — every endpoint page assumes you’ve read these.

Performance statistics

Read the task performance endpoint with its sample counts. copy_sell_success_rate is a lifetime ratio from copy-sell terminal order records: filled / (filled + failed + timeout + reject). It ranges from 0 to 1; 0.5 means 50%. Zero-amount sell skips and explicit configured-policy reject skips are excluded, counted separately in copy_sell_counts.skipped_no_position and skipped_policy. Balance, route, lookup and unknown errors remain blockers; failed/timeout records are not converted into skips. Pending orders and automatic exits such as take-profit or stop-loss are outside this sample. It is not a profitability measure or the success rate of all exits; 1 successful record out of 1 does not establish a reliable overall rate. No eligible records means null.

total_pnl_percentage uses percentage units (1 means 1%) and is null with no investment or missing held-token prices. avg_fee_per_trade_usd is recorded gas divided by filled_trade_count (filled strategy buys and sells); no sample or unavailable count means null. This gas sample excludes failed-transaction fees and is not a full wallet fee ledger. total_position_count counts token-summary rows, not orders or repeated openings. Keep known zero values distinct from unknown values.

Order status=failed can include a pre-trade skip. Read failure_stage and reason_code; sell_amount_zero means no sellable amount and must not be treated as a failed chain execution.

Quickstart: from wallet to a copy-trading task

1. Identify your account and trading wallet

Create a key at APM API Keys with copytrade:read and, when you are ready to create a configuration, copytrade:write. Keep the token on your server, outside browser code, logs and AI prompts. The following examples assume it is available as the environment variable APM_API_TOKEN.

Accounts created on or after November 3, 2026 at 00 UTC must contact support for API access approval before creating any API key or approving an MCP OAuth client; older accounts and rotation of existing keys are unaffected.

curl --fail-with-body https://api.apm.fun/v1/me \
  -H "Authorization: Bearer $APM_API_TOKEN"

curl --fail-with-body https://api.apm.fun/v1/wallets \
  -H "Authorization: Bearer $APM_API_TOKEN"

Check your shared Copy Trading/Sniper quota and select a wallet_id for the intended chain from the wallet response. This is your custodial execution wallet; the leaders addresses are the wallets you want to follow. A wallet ID is chain-scoped. See wallet setup if you do not yet have one.

2. Save a paused configuration

Save the following template as copy-config.json, replacing both uppercase placeholders with your selected BSC wallet ID and a different, valid BSC leader address. The amount and percentage demonstrate field units, not suggested trading settings. Review them before submitting.

{
  "chain": "bsc",
  "wallet_id": "YOUR_BSC_WALLET_ID",
  "name": "Wallet copy example",
  "leaders": [{ "source": "wallet", "ref": "LEADER_BSC_ADDRESS" }],
  "buy": { "mode": "fixed", "amount": "0.01" },
  "slippage_pct": "1",
  "follow_sell": { "enabled": true, "mode": "proportional" }
}

Here amount is BNB per buy and "1" means 1% slippage. Proportional follow-sell copies the fraction sold by the leader, not their absolute token amount. For Solana, select a Solana wallet and leader, set chain to solana, and review the chain-specific settings; native amounts are then in SOL. Do not carry chain-specific options over blindly.

Choose one unique APM_CREATE_KEY for this intended creation and keep it with the exact request body. This next request writes a real configuration, initially paused; it does not start following trades.

curl --fail-with-body -i https://api.apm.fun/v1/copy-trade/configs \
  -H "Authorization: Bearer $APM_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $APM_CREATE_KEY" \
  --data-binary @copy-config.json

Retain the returned config id, version and ETag. If the response is lost, retry the same body with the same idempotency key rather than creating another task. A changed body with that key returns a conflict. See the create endpoint and idempotency guide.

3. Separate saved settings from engine confirmation

Read GET /v1/copy-trade/configs/{id}. The response distinguishes your requested status from engine.sync_state, engine.applied_version and engine.buy_entry:

Response or stateWhat it means
A successful create with status=pausedThe configuration was saved; it is not a trade
engine.sync_state=synced and the expected applied_versionThe engine acknowledged that configuration version
Requested status=active, matching engine acknowledgement and buy_entry=openThe engine can accept eligible new buys; no fill is promised
An order with status=confirmedThat order reached the API’s confirmed state; inspect its amounts and transaction

Only when you intend to start real trading, call POST /v1/copy-trade/configs/{id}/resume with the current quoted ETag in If-Match. Read the resource again until the engine confirms the new version; respect rate limits. If synchronization fails, inspect engine.error_code. An HTTP success or status=active alone does not mean a trade has executed. The resume reference documents this write.

Pausing also requires If-Match. By default it stops new activity and leaves existing positions open; pause is not a liquidation command. Review close_position in the pause reference before choosing it.

4. Reconcile orders and trade results

Use these read endpoints after replacing {id} with the saved config ID:

  • GET /v1/copy-trade/configs/{id}/orders: order lifecycle, including failures. Inspect status, failure_stage, reason_code, amounts and tx_hash; a broadcast hash alone does not prove success.
  • GET /v1/copy-trade/configs/{id}/trades: trade history and available PnL. Platform rows use filled, failed, timeout or reject, rather than the orders endpoint’s status vocabulary. Join platform rows by order_id. source=external denotes a sell allocated to this config, including an external wallet sale or overflow from another task. It does not mean this task placed the transaction.

Follow each endpoint’s pagination. Missing prices or PnL remain unknown: price_stale=true, null values or meta.analytics_available=false must not become zero profit. An upstream 503 is a failed read, not an empty trading history.

Why did the leader trade but my copy did not?

Start with configuration and engine state, then the order’s rejection or failure details. A filter can reject a signal before submission; an execution failure is a different stage. Raising slippage does not fix a paused task, a filter rejection or an unsupported setting. Use the slippage and failed-copy checklist, and assess a prospective leader with the wallet qualification framework.

Prefer a visual workflow? Open your APM tasks. The API manages the task lifecycle; it does not guarantee the leader’s entry price or returns.

Task orders and trades now expose the same reason_code normalization as account history. failure_stage is derived from status and does not prove broadcast or confirmation. outcome=filtered includes all rejections, including balance/route blockers, and failed copy-buy market-cap guards that may carry a transaction hash. It is not a count of harmless, unexecuted skips. outcome=success includes attributed external sells, and timeout remains unknown. Do not calculate buy execution success from these page totals.

How task gas and positions are calculated

Task gas totals include the recorded fees of all filled task orders on every chain, including Robinhood. Earlier totals captured fees for only about 10% of fills and showed zero on Robinhood, so totals rose after the 2026-10 correction. Failed-transaction fees remain excluded. Task positions use remaining wallet cost: transferred-in quantities with unknown cost are excluded from unrealized PnL, while the displayed balance and value still include them. API response fields stay unchanged.

Task trade amounts and PnL

After the task analytics update is deployed, buy/sell values use the wallet’s actual receipts and payments, including platform fees. External sells use the FIFO share allocated to this task: amount_in and task_remaining describe that share; amount_out is its native-coin value. Previously missed external sells may increase historical sold totals. An unpriced sell remains visible with price_stale=true.

New fills generally receive derived values within about two minutes. Until then, EVM fills can use the order’s own valuation; Solana fills can remain unpriced. The task’s own swap route is no longer used to reconstruct a missing price. These changes preserve response fields and pagination.