GET /v1/orders
List my account orders
Cursor-paged account-wide order activity, newest first. Filters include chain, wallet, token, side, type, rejected orders and order IDs. includeReject=false also hides historical failed copy-buy market-cap guards that may carry a transaction hash; it is a display filter, not proof of harmless skips. Requires orders:read.
orders:read 查询参数
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
orderIds | string | Optional comma-separated order IDs, up to one hundred UUIDs. | |
cursor | string | Cursor from the previous account order page. | |
limit | integer | Maximum account orders returned in one page. | |
includeReject | boolean | True by default. False excludes reject/rejected records and historical failed copy-buy market-cap guards; those guards may have executed and spent gas. This is a display filter, not an execution-success denominator. | |
side | enum ("buy" | "sell") | Filter by buy or sell direction. | |
type | enum ("copy" | "take_profit" | "stop_loss" | "trailing_stop" | "timed" | "auto" | "manual" | "external" | "stop") | Filter by order type. | |
chain | enum ("solana" | "bsc" | "base" | "robinhood" | "arc") | Filter to one supported account-order chain. | |
token | string | Filter by token address or mint. | |
wallet | string | Filter by owned wallet address. |
响应
200 — OK
| 字段 | 类型 | 必填 | 约束 | 说明 |
|---|---|---|---|---|
data | object | ✓ | Response payload. | |
data.orders | array<object> | ✓ | Account orders in this cursor page. | |
data.orders[].buy_tier | integer | null | min: 0 | Zero-based index of the selected buy tier, when recorded. | |
data.orders[].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.orders[].trailing_fire | integer | One-based trigger number across all tiers of this buy’s repeating trailing ladder, when recorded. | ||
data.orders[].order_id | string | ✓ | Account order ID. | |
data.orders[].chain | enum ("solana" | "bsc" | "base" | "robinhood" | "arc") | ✓ | Chain on which the order was recorded. | |
data.orders[].task_id | string | Related copy-trade or sniper task ID, when present. | ||
data.orders[].strategy_task_id | string | Related strategy task ID (source "strategy"), when present. | ||
data.orders[].order_type | string | ✓ | Display order type, such as copy, market, stop, or task_close (task-close liquidation). | |
data.orders[].stop_type | string | Stop-order subtype when this is a stop order. | ||
data.orders[].wallet | string | ✓ | Wallet address used by the order. | |
data.orders[].side | enum ("buy" | "sell" | "") | ✓ | Buy, sell, or empty for a rejected copy order with no executed direction. | |
data.orders[].status | string | ✓ | Recorded order lifecycle status. | |
data.orders[].reasonCode | string | Stable machine-readable rejection or failure reason code. | ||
data.orders[].errorMsg | string | Normalized human-readable order error message. | ||
data.orders[].error_code | string | Source error code, when recorded. | ||
data.orders[].price_strategy | string | Execution price strategy used for this order. | ||
data.orders[].price_reference_source | string | Source used for the execution reference price. | ||
data.orders[].price_min_amount_out | string | Minimum output amount used by the price strategy. | ||
data.orders[].flash_sell_status | string | Flash-sell lifecycle status when applicable. | ||
data.orders[].flash_sell_error | string | Flash-sell failure reason when applicable. | ||
data.orders[].token | object | ✓ | Token involved in the order. | |
data.orders[].token.address | string | ✓ | Token contract or mint address. | |
data.orders[].token.symbol | string | Token ticker when known. | ||
data.orders[].token.icon | string | Token icon URL when known. | ||
data.orders[].tx_hash | string | Resulting on-chain transaction hash, when available. | ||
data.orders[].explorerUrl | string | Explorer URL for the resulting transaction. | ||
data.orders[].amountToken | number | Recorded token quantity in display units. | ||
data.orders[].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.orders[].amountUsd | number | Settlement side in USD, priced with the USD price of the settlement currency recorded on the order. | ||
data.orders[].filledPriceUsd | number | Execution price per token in USD. | ||
data.orders[].filledMc | number | Market capitalization at execution when recorded. | ||
data.orders[].leader_tx_hash | string | Leader transaction hash followed by this task order. | ||
data.orders[].source | string | Original order source, such as web, API, extension, or bot. | ||
data.orders[].expiration | number | Stop-order expiry time in Unix milliseconds. | ||
data.orders[].trigger_price_usd | number | Stop-order trigger price in USD. | ||
data.orders[].triggered | boolean | Whether the stop-order trigger has fired. | ||
data.orders[].createdAt | string | ✓ | Order creation time in ISO 8601 format. | |
data.orders[].updatedAt | string | ✓ | Last order update time in ISO 8601 format. | |
data.page | object | ✓ | Cursor pagination state for account orders. | |
data.page.nextCursor | string | Cursor for the next page, omitted at the end. | ||
data.page.hasMore | boolean | ✓ | Whether another page is available. | |
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. |
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" \
-H "Authorization: Bearer apm_live_<prefix>.<secret>" 响应示例 200
{
"data": {
"orders": [
{
"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"
}
],
"page": {
"nextCursor": "string",
"hasMore": true
}
},
"meta": {
"request_id": "cfg_8f2a1c9b"
}
}