API 参考文档 v1
获取 API Key 获取 Key

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.

所需 Scope: orders:read

查询参数

字段类型必填说明
orderIdsstringOptional comma-separated order IDs, up to one hundred UUIDs.
cursorstringCursor from the previous account order page.
limitintegerMaximum account orders returned in one page.
includeRejectbooleanTrue 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.
sideenum ("buy" | "sell")Filter by buy or sell direction.
typeenum ("copy" | "take_profit" | "stop_loss" | "trailing_stop" | "timed" | "auto" | "manual" | "external" | "stop")Filter by order type.
chainenum ("solana" | "bsc" | "base" | "robinhood" | "arc")Filter to one supported account-order chain.
tokenstringFilter by token address or mint.
walletstringFilter by owned wallet address.

响应

200 — OK

字段类型必填约束说明
dataobject✓Response payload.
data.ordersarray<object>✓Account orders in this cursor page.
data.orders[].buy_tierinteger | nullmin: 0Zero-based index of the selected buy tier, when recorded.
data.orders[].buy_tier_market_cap_usdstring | nullpattern: ^-?\d+(\.\d+)?$Market cap used to select the buy tier, as a USD decimal string, when recorded.
data.orders[].trailing_fireintegerOne-based trigger number across all tiers of this buy’s repeating trailing ladder, when recorded.
data.orders[].order_idstring✓Account order ID.
data.orders[].chainenum ("solana" | "bsc" | "base" | "robinhood" | "arc")✓Chain on which the order was recorded.
data.orders[].task_idstringRelated copy-trade or sniper task ID, when present.
data.orders[].strategy_task_idstringRelated strategy task ID (source "strategy"), when present.
data.orders[].order_typestring✓Display order type, such as copy, market, stop, or task_close (task-close liquidation).
data.orders[].stop_typestringStop-order subtype when this is a stop order.
data.orders[].walletstring✓Wallet address used by the order.
data.orders[].sideenum ("buy" | "sell" | "")✓Buy, sell, or empty for a rejected copy order with no executed direction.
data.orders[].statusstring✓Recorded order lifecycle status.
data.orders[].reasonCodestringStable machine-readable rejection or failure reason code.
data.orders[].errorMsgstringNormalized human-readable order error message.
data.orders[].error_codestringSource error code, when recorded.
data.orders[].price_strategystringExecution price strategy used for this order.
data.orders[].price_reference_sourcestringSource used for the execution reference price.
data.orders[].price_min_amount_outstringMinimum output amount used by the price strategy.
data.orders[].flash_sell_statusstringFlash-sell lifecycle status when applicable.
data.orders[].flash_sell_errorstringFlash-sell failure reason when applicable.
data.orders[].tokenobject✓Token involved in the order.
data.orders[].token.addressstring✓Token contract or mint address.
data.orders[].token.symbolstringToken ticker when known.
data.orders[].token.iconstringToken icon URL when known.
data.orders[].tx_hashstringResulting on-chain transaction hash, when available.
data.orders[].explorerUrlstringExplorer URL for the resulting transaction.
data.orders[].amountTokennumberRecorded token quantity in display units.
data.orders[].amountNativenumberSettlement 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[].amountUsdnumberSettlement side in USD, priced with the USD price of the settlement currency recorded on the order.
data.orders[].filledPriceUsdnumberExecution price per token in USD.
data.orders[].filledMcnumberMarket capitalization at execution when recorded.
data.orders[].leader_tx_hashstringLeader transaction hash followed by this task order.
data.orders[].sourcestringOriginal order source, such as web, API, extension, or bot.
data.orders[].expirationnumberStop-order expiry time in Unix milliseconds.
data.orders[].trigger_price_usdnumberStop-order trigger price in USD.
data.orders[].triggeredbooleanWhether the stop-order trigger has fired.
data.orders[].createdAtstring✓Order creation time in ISO 8601 format.
data.orders[].updatedAtstring✓Last order update time in ISO 8601 format.
data.pageobject✓Cursor pagination state for account orders.
data.page.nextCursorstringCursor for the next page, omitted at the end.
data.page.hasMoreboolean✓Whether another page is available.
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)

字段类型必填说明
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

字段类型必填说明
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)

字段类型必填说明
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

字段类型必填说明
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.
请求示例
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"
  }
}