GET /v1/sniper/configs/{id}/positions
Current token positions held by a Sniper 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 sniper:read scope. Deleted tasks remain readable for history.
sniper:read Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
id | string | ✓ | Task config id returned by create or list. |
Responses
200 — OK
| Field | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | ✓ | Response payload. | |
data.task_id | string | ✓ | Task config id whose analytics are shown. | |
data.chain | string | ✓ | Chain on which the task runs. | |
data.retrieved_at | string | ✓ | When the gateway received the analytics result. This is not the underlying trade or price snapshot time. | |
data.data_as_of | null | ✓ | Underlying analytics snapshot time is unavailable. | |
data.source | enum ("task-data/positions") | ✓ | Analytics endpoint that supplied these holdings. | |
data.positions | array<object> | ✓ | Token holdings aggregated across the task wallets. | |
data.positions[].token_address | string | ✓ | Token contract or mint address. | |
data.positions[].symbol | string | ✓ | Token ticker shown by task analytics. | |
data.positions[].wallet_count | integer | null | ✓ | min: 0 | Number of task wallets holding this token; null when unavailable. |
data.positions[].amount | number | ✓ | Current token amount across the task wallets. | |
data.positions[].value_usd | number | null | ✓ | Current USD value; null if a usable price is unavailable. | |
data.positions[].remaining_cost_basis_usd | number | null | ✓ | Remaining USD cost basis from task analytics; null when not provided. | |
data.positions[].unrealized_pnl_usd | number | null | ✓ | Unrealized USD PnL; null when price or cost basis is unavailable. | |
data.positions[].realized_pnl_usd | number | null | ✓ | Realized USD PnL; null when not provided. | |
data.positions[].total_pnl_usd | number | null | ✓ | Combined USD PnL, when calculable. | |
data.positions[].pnl_usd_percent | number | null | ✓ | Total USD PnL percentage (1 means 1%), when calculable. | |
data.positions[].price_stale | boolean | ✓ | True when the valuation uses a stale price. | |
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 (missing, foreign-owned or wrong task kind)
| 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. |
503 — unavailable (analytics could not provide a trustworthy answer)
| 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/positions" \
-H "Authorization: Bearer apm_live_<prefix>.<secret>" {
"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"
}
}