API Reference v1
Get API Key API Key

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

Current token positions held by a Copy Trade task

Cross-wallet positions grouped by token for all wallets in this task. Amounts and remaining cost basis come from task analytics; nullable USD value and PnL mean unknown, not zero. price_stale flags an outdated valuation. retrieved_at is gateway receipt time; the underlying snapshot time is unavailable (data_as_of=null). 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/positions")✓Analytics endpoint that supplied these holdings.
data.positionsarray<object>✓Token holdings aggregated across the task wallets.
data.positions[].token_addressstring✓Token contract or mint address.
data.positions[].symbolstring✓Token ticker shown by task analytics.
data.positions[].wallet_countinteger | null✓min: 0Number of task wallets holding this token; null when unavailable.
data.positions[].amountnumber✓Current token amount across the task wallets.
data.positions[].value_usdnumber | null✓Current USD value; null if a usable price is unavailable.
data.positions[].remaining_cost_basis_usdnumber | null✓Remaining USD cost basis from task analytics; null when not provided.
data.positions[].unrealized_pnl_usdnumber | null✓Unrealized USD PnL; null when price or cost basis is unavailable.
data.positions[].realized_pnl_usdnumber | null✓Realized USD PnL; null when not provided.
data.positions[].total_pnl_usdnumber | null✓Combined USD PnL, when calculable.
data.positions[].pnl_usd_percentnumber | null✓Total USD PnL percentage (1 means 1%), when calculable.
data.positions[].price_staleboolean✓True when the valuation uses a stale price.
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/positions" \
  -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/positions",
    "positions": [
      {
        "token_address": "0x8f2a1c9bde34567890abcdef1234567890abcdef",
        "symbol": "string",
        "wallet_count": null,
        "amount": 0,
        "value_usd": null,
        "remaining_cost_basis_usd": null,
        "unrealized_pnl_usd": null,
        "realized_pnl_usd": null,
        "total_pnl_usd": null,
        "pnl_usd_percent": null,
        "price_stale": true
      }
    ]
  },
  "meta": {
    "request_id": "cfg_8f2a1c9b"
  }
}