API Reference v1
Get API Key API Key

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.

Required scope: orders:read

Path parameters

FieldTypeRequiredDescription
chainstring✓Chain whose open manual orders are queried.

Query parameters

FieldTypeRequiredDescription
tokenstringOptional token address or mint to filter open orders.
pageintegerOne-based page number in the current owner-filtered open-order snapshot.
limitintegerMaximum open orders per page.

Responses

200 — OK

FieldTypeRequiredConstraintsDescription
dataarray<object>✓Response payload.
data[].buy_tierinteger | nullmin: 0Zero-based index of the selected buy tier, when recorded.
data[].buy_tier_market_cap_usdstring | nullpattern: ^-?\d+(\.\d+)?$Market cap used to select the buy tier, as a USD decimal string, when recorded.
data[].orderIdstring✓minLength: 1Open order ID.
data[].task_idstringTask ID for an exit order whose task is no longer live for this user.
data[].task_deletedenum (true)Present when the task is deleted or its document no longer exists.
data[].chainstring✓minLength: 1Chain on which the open order is placed.
data[].venueenum ("oms" | "cell")✓Execution venue: Go OMS or Cell.
data[].sideenum ("buy" | "sell")✓Whether the order buys or sells.
data[].walletobject✓Wallet that owns this open order.
data[].wallet.addressstring✓minLength: 1Owned wallet address.
data[].wallet.namestring✓User-visible wallet name, or empty when unavailable.
data[].tokenobject✓Token traded by this open order.
data[].token.addressstring✓minLength: 1Token contract or mint address.
data[].token.symbolstring✓Token ticker, or empty when unavailable.
data[].token.namestring✓Token name, or empty when unavailable.
data[].token.iconstring | null✓Token icon URL, or null when unavailable.
data[].triggerobject✓Price condition that activates this open order.
data[].trigger.directionenum ("above" | "below")✓Whether the trigger fires above or below its price.
data[].trigger.priceUsdstring✓minLength: 1Trigger price in USD as a decimal string.
data[].trigger.marketCapUsdstring | null✓minLength: 1Equivalent trigger market capitalization in USD, or null when unavailable.
data[].amountobject | object | object | object✓Order quantity together with its explicit unit.
data[].expiresAtinteger | null✓Order expiration in Unix milliseconds, or null if it does not expire.
data[].createdAtinteger✓Order creation time in Unix milliseconds.
data[].sourcestring✓Original order source, or empty when absent.
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.
meta.pagenumber✓One-based page number returned.
meta.total_pagesnumber✓Number of pages in the current owner-filtered snapshot.
meta.total_recordsnumber✓Number of matching owner-visible open orders.
meta.has_moreboolean✓Whether a later page is available.

401 — unauthorized (missing/invalid/revoked/expired Bearer token)

FieldTypeRequiredDescription
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

FieldTypeRequiredDescription
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)

FieldTypeRequiredDescription
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

FieldTypeRequiredDescription
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.
Example request
curl -X GET "https://api.apm.fun/v1/orders/open/cfg_8f2a1c9b" \
  -H "Authorization: Bearer apm_live_<prefix>.<secret>"
Example response 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
  }
}