GET /v1/orders/{order_id}
Get one of my account orders
Uses the same account activity projection as the list. Missing, hidden migration rows, and orders owned by another user all return 404. Requires orders:read.
orders:read 路径参数
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
order_id | string | ✓ | Owner-visible account order ID. |
响应
200 — OK
| 字段 | 类型 | 必填 | 约束 | 说明 |
|---|---|---|---|---|
data | object | ✓ | Response payload. | |
data.buy_tier | integer | null | min: 0 | Zero-based index of the selected buy tier, when recorded. | |
data.buy_tier_market_cap_usd | string | null | pattern: ^-?\d+(\.\d+)?$ | Market cap used to select the buy tier, as a USD decimal string, when recorded. | |
data.trailing_fire | integer | One-based trigger number across all tiers of this buy’s repeating trailing ladder, when recorded. | ||
data.order_id | string | ✓ | Account order ID. | |
data.chain | enum ("solana" | "bsc" | "base" | "robinhood" | "arc") | ✓ | Chain on which the order was recorded. | |
data.task_id | string | Related copy-trade or sniper task ID, when present. | ||
data.strategy_task_id | string | Related strategy task ID (source "strategy"), when present. | ||
data.order_type | string | ✓ | Display order type, such as copy, market, stop, or task_close (task-close liquidation). | |
data.stop_type | string | Stop-order subtype when this is a stop order. | ||
data.wallet | string | ✓ | Wallet address used by the order. | |
data.side | enum ("buy" | "sell" | "") | ✓ | Buy, sell, or empty for a rejected copy order with no executed direction. | |
data.status | string | ✓ | Recorded order lifecycle status. | |
data.reasonCode | string | Stable machine-readable rejection or failure reason code. | ||
data.errorMsg | string | Normalized human-readable order error message. | ||
data.error_code | string | Source error code, when recorded. | ||
data.price_strategy | string | Execution price strategy used for this order. | ||
data.price_reference_source | string | Source used for the execution reference price. | ||
data.price_min_amount_out | string | Minimum output amount used by the price strategy. | ||
data.flash_sell_status | string | Flash-sell lifecycle status when applicable. | ||
data.flash_sell_error | string | Flash-sell failure reason when applicable. | ||
data.token | object | ✓ | Token involved in the order. | |
data.token.address | string | ✓ | Token contract or mint address. | |
data.token.symbol | string | Token ticker when known. | ||
data.token.icon | string | Token icon URL when known. | ||
data.tx_hash | string | Resulting on-chain transaction hash, when available. | ||
data.explorerUrl | string | Explorer URL for the resulting transaction. | ||
data.amountToken | number | Recorded token quantity in display units. | ||
data.amountNative | number | Settlement side (spent on a buy, received on a sell) as a chain-native quantity in display units. For a non-native settlement currency such as USDC, the settlement amount is converted at the USD prices recorded on the order; omitted when a price is missing. | ||
data.amountUsd | number | Settlement side in USD, priced with the USD price of the settlement currency recorded on the order. | ||
data.filledPriceUsd | number | Execution price per token in USD. | ||
data.filledMc | number | Market capitalization at execution when recorded. | ||
data.leader_tx_hash | string | Leader transaction hash followed by this task order. | ||
data.source | string | Original order source, such as web, API, extension, or bot. | ||
data.expiration | number | Stop-order expiry time in Unix milliseconds. | ||
data.trigger_price_usd | number | Stop-order trigger price in USD. | ||
data.triggered | boolean | Whether the stop-order trigger has fired. | ||
data.createdAt | string | ✓ | Order creation time in ISO 8601 format. | |
data.updatedAt | string | ✓ | Last order update time in ISO 8601 format. | |
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)
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
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
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
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
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
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)
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
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
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
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/orders/cfg_8f2a1c9b" \
-H "Authorization: Bearer apm_live_<prefix>.<secret>" 响应示例 200
{
"data": {
"buy_tier": null,
"buy_tier_market_cap_usd": null,
"trailing_fire": 0,
"order_id": "cfg_8f2a1c9b",
"chain": "solana",
"task_id": "cfg_8f2a1c9b",
"strategy_task_id": "cfg_8f2a1c9b",
"order_type": "string",
"stop_type": "string",
"wallet": "0x8f2a1c9bde34567890abcdef1234567890abcdef",
"side": "buy",
"status": "string",
"reasonCode": "string",
"errorMsg": "string",
"error_code": "string",
"price_strategy": "string",
"price_reference_source": "string",
"price_min_amount_out": "0.05",
"flash_sell_status": "string",
"flash_sell_error": "string",
"token": {
"address": "0x8f2a1c9bde34567890abcdef1234567890abcdef",
"symbol": "string",
"icon": "string"
},
"tx_hash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcd",
"explorerUrl": "string",
"amountToken": 0,
"amountNative": 0,
"amountUsd": 0,
"filledPriceUsd": 0,
"filledMc": 0,
"leader_tx_hash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcd",
"source": "string",
"expiration": 0,
"trigger_price_usd": 0,
"triggered": true,
"createdAt": "2026-01-15T09:30:00Z",
"updatedAt": "2026-01-15T09:30:00Z"
},
"meta": {
"request_id": "cfg_8f2a1c9b"
}
}