GET /v1/orders/open/{chain}
List my open orders on a chain
Open manual stop orders with optional token filter. Page/limit are applied to the current owner-filtered snapshot; concurrent order changes can shift page boundaries. Missing enrichment returns documented unknown values; a database failure is an error, never an empty page. Requires orders:read.
orders:read 路径参数
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
chain | string | ✓ | Chain whose open manual orders are queried. |
查询参数
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
token | string | Optional token address or mint to filter open orders. | |
page | integer | One-based page number in the current owner-filtered open-order snapshot. | |
limit | integer | Maximum open orders per page. |
响应
200 — OK
| 字段 | 类型 | 必填 | 约束 | 说明 |
|---|---|---|---|---|
data | array<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[].orderId | string | ✓ | minLength: 1 | Open order ID. |
data[].task_id | string | Task ID for an exit order whose task is no longer live for this user. | ||
data[].task_deleted | enum (true) | Present when the task is deleted or its document no longer exists. | ||
data[].chain | string | ✓ | minLength: 1 | Chain on which the open order is placed. |
data[].venue | enum ("oms" | "cell") | ✓ | Execution venue: Go OMS or Cell. | |
data[].side | enum ("buy" | "sell") | ✓ | Whether the order buys or sells. | |
data[].wallet | object | ✓ | Wallet that owns this open order. | |
data[].wallet.address | string | ✓ | minLength: 1 | Owned wallet address. |
data[].wallet.name | string | ✓ | User-visible wallet name, or empty when unavailable. | |
data[].token | object | ✓ | Token traded by this open order. | |
data[].token.address | string | ✓ | minLength: 1 | Token contract or mint address. |
data[].token.symbol | string | ✓ | Token ticker, or empty when unavailable. | |
data[].token.name | string | ✓ | Token name, or empty when unavailable. | |
data[].token.icon | string | null | ✓ | Token icon URL, or null when unavailable. | |
data[].trigger | object | ✓ | Price condition that activates this open order. | |
data[].trigger.direction | enum ("above" | "below") | ✓ | Whether the trigger fires above or below its price. | |
data[].trigger.priceUsd | string | ✓ | minLength: 1 | Trigger price in USD as a decimal string. |
data[].trigger.marketCapUsd | string | null | ✓ | minLength: 1 | Equivalent trigger market capitalization in USD, or null when unavailable. |
data[].amount | object | object | object | object | ✓ | Order quantity together with its explicit unit. | |
data[].expiresAt | integer | null | ✓ | Order expiration in Unix milliseconds, or null if it does not expire. | |
data[].createdAt | integer | ✓ | Order creation time in Unix milliseconds. | |
data[].source | string | ✓ | Original order source, or empty when absent. | |
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. | |
meta.page | number | ✓ | One-based page number returned. | |
meta.total_pages | number | ✓ | Number of pages in the current owner-filtered snapshot. | |
meta.total_records | number | ✓ | Number of matching owner-visible open orders. | |
meta.has_more | boolean | ✓ | Whether a later page is available. |
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/open/cfg_8f2a1c9b" \
-H "Authorization: Bearer apm_live_<prefix>.<secret>" 响应示例 200
{
"data": [
{
"buy_tier": null,
"buy_tier_market_cap_usd": null,
"orderId": "string",
"task_id": "cfg_8f2a1c9b",
"task_deleted": true,
"chain": "string",
"venue": "oms",
"side": "buy",
"wallet": {
"address": "0x8f2a1c9bde34567890abcdef1234567890abcdef",
"name": "string"
},
"token": {
"address": "0x8f2a1c9bde34567890abcdef1234567890abcdef",
"symbol": "string",
"name": "string",
"icon": null
},
"trigger": {
"direction": "above",
"priceUsd": "string",
"marketCapUsd": null
},
"amount": {
"unit": "native",
"value": "string"
},
"expiresAt": null,
"createdAt": 0,
"source": "string"
}
],
"meta": {
"request_id": "cfg_8f2a1c9b",
"page": 0,
"total_pages": 0,
"total_records": 0,
"has_more": true
}
}