API Reference v1
Get API Key API Key

GET /v1/copy-trade/configs/{id}/performance

Task-wide trading and PnL summary for a Copy Trade task

Task-wide bought, sold, holdings, PnL, position counts and gas fees from analytics. Holdings value and PnL are null when any held token lacks a usable price; gas remains separately reported. Do not add native amounts across chains. copy_sell_success_rate is a lifetime [0,1] order-record ratio, excluding zero-amount and explicit policy reject skips, and automatic exits; copy_sell_counts explains its denominator. Null means no eligible sample. PnL percentages instead use percentage points (1 = 1%). Gas covers recorded filled strategy trades only; an empty-sample fee average and zero-investment return are null. A wallet is required internally to query the summary, but only task-wide fields are exposed; no partial wallet balance is labeled complete. retrieved_at is gateway receipt time; data_as_of=null because the source does not report a snapshot timestamp. Requires the copytrade:read scope. Deleted tasks remain readable for history.

Required scope: copytrade:read

Path parameters

FieldTypeRequiredDescription
idstring✓Task config id returned by create or list.

Responses

200 — OK

FieldTypeRequiredConstraintsDescription
dataobject✓Response payload.
data.task_idstring✓Task config id whose analytics are shown.
data.chainstring✓Chain on which the task runs.
data.retrieved_atstring✓When the gateway received the analytics result. This is not the underlying trade or price snapshot time.
data.data_as_ofnull✓Underlying analytics snapshot time is unavailable.
data.sourceenum ("task-data/summary")✓Analytics endpoint that supplied this task summary.
data.total_bought_usdnumber✓Total recorded USD value bought by this task.
data.total_sold_usdnumber✓Total recorded USD value sold by this task.
data.total_hold_usdnumber | null✓Current holdings USD value; null when any held token lacks a usable price.
data.total_pnl_usdnumber | null✓Task analytics total PnL; null when any held token lacks price. Gas is reported separately.
data.total_pnl_percentagenumber | null✓Task PnL / total_bought_usd × 100 (1 means 1%). Null when any held token lacks price or total_bought_usd is zero; a zero-investment return is undefined.
data.copy_sell_success_ratenumber | null✓Lifetime order-record ratio in [0,1], not a percentage: filled / (filled + failed + timeout + reject) from copy-sell orders on this task and chain. Zero-amount sell skips and explicit configured-policy reject skips are excluded; balance, route, lookup and unknown rejections remain. Automatic exits and pending orders are excluded. Null when no eligible records exist. This is not overall exit success, profitability or a deduplicated leader-signal rate.
data.copy_sell_countsobject | null✓Counts used by copy_sell_success_rate, including excluded zero-amount skips. Null when the analytics version does not supply the breakdown.
data.copy_sell_counts.filledinteger✓min: 0Successful copy-sell order records.
data.copy_sell_counts.failedinteger✓min: 0Failed copy-sell order records.
data.copy_sell_counts.timeoutinteger✓min: 0Timed-out copy-sell order records; outcome may be unknown.
data.copy_sell_counts.rejectinteger✓min: 0Other rejected copy-sell records; zero-amount skips excluded.
data.copy_sell_counts.skipped_policyintegermin: 0Explicit configured-policy reject skips, excluded from the denominator. Absent on older analytics; balance, route, lookup and unknown errors are not policy skips.
data.copy_sell_counts.skipped_no_positioninteger✓min: 0Zero-amount sell skips, including no tracked position, already exited and calculated zero amount. Excluded from the denominator.
data.filled_trade_countinteger | null✓min: 0Recorded filled strategy trades, buys and sells, used for the gas-fee average. Null when not supplied by analytics.
data.active_position_countnumber✓Number of currently active token positions.
data.total_position_countnumber✓Number of token-summary rows for this task and chain, including closed holdings. This is not an order count or a count of repeated position openings.
data.price_stale_tokensarray<string>✓Token addresses whose prices are stale or unavailable.
data.total_gas_fee_usdnumber✓Recorded gas fees of filled strategy trades in USD; excludes failed-transaction gas and is not a complete wallet fee ledger. Reported separately from PnL.
data.avg_fee_per_trade_usdnumber | null✓Recorded gas USD divided by filled_trade_count, including buys and sells. Null with no filled trades or when the count is unavailable. Failed-transaction gas is not included.
metaobject✓Request id, plus paging fields when this operation is a list.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.

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

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

403 — insufficient_scope / ip_not_allowed

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

404 — not_found (missing, foreign-owned or wrong task kind)

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

429 — rate_limited (Retry-After response header set)

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

500 — internal_error

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

503 — unavailable (analytics could not provide a trustworthy answer)

FieldTypeRequiredDescription
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.
Example request
curl -X GET "https://api.apm.fun/v1/copy-trade/configs/cfg_8f2a1c9b/performance" \
  -H "Authorization: Bearer apm_live_<prefix>.<secret>"
Example response 200
{
  "data": {
    "task_id": "cfg_8f2a1c9b",
    "chain": "string",
    "retrieved_at": "2026-01-15T09:30:00Z",
    "data_as_of": null,
    "source": "task-data/summary",
    "total_bought_usd": 0,
    "total_sold_usd": 0,
    "total_hold_usd": null,
    "total_pnl_usd": null,
    "total_pnl_percentage": null,
    "copy_sell_success_rate": null,
    "copy_sell_counts": {
      "filled": 0,
      "failed": 0,
      "timeout": 0,
      "reject": 0,
      "skipped_policy": 0,
      "skipped_no_position": 0
    },
    "filled_trade_count": null,
    "active_position_count": 0,
    "total_position_count": 0,
    "price_stale_tokens": [
      "string"
    ],
    "total_gas_fee_usd": 0,
    "avg_fee_per_trade_usd": null
  },
  "meta": {
    "request_id": "cfg_8f2a1c9b"
  }
}