{
  "openapi": "3.1.0",
  "info": {
    "title": "APM Open API",
    "version": "1.0.0",
    "description": "Programmatic management of APM Copy Trading and Sniper configurations, Solana wallet auto-balance, and account and order reads.\n\nAuthenticate with `Authorization: Bearer apm_live_<prefix>.<secret>`. Generate a token from the web app's API Keys page (`/api-keys`). Rate limit: 10 req/s and 600 req/min per account (shared by all of the account's API keys and MCP connections). The analytics-backed reads (config trades, positions and performance) additionally share a stricter per-account limit of 2 req/s and 20 req/min.\nAuthentication failures additionally have a coarse source-IP budget: after 60 HTTP 401 responses in a UTC minute, subsequent requests from that IP return 429 with Retry-After until the next minute. This protection fails open if Redis is unavailable. JSON Merge Patch rejects prototype-poisoning keys, including nested __proto__ and constructor.prototype.\nEvery operation requires one or more scopes (see each operation's description and its `x-apm-scopes` extension); a token only carries the scopes it was created with.\nTrading amounts, percentages and fees use decimal strings. Wallet auto-balance uses atomic amount strings and integer basis points. Timestamps are RFC 3339 UTC.\nTask configuration writes use optimistic concurrency: send the resource ETag (from a prior GET/POST response) in `If-Match`. Creating a config requires an `Idempotency-Key` header. The account buy pause switch uses GET/PATCH /v1/strategy-tasks/account-buy-pause without either header; it applies to all chains and preserves individual task enabled states.\nConfigs are created paused; call the resume operation to start them. `status` is what you asked for, `engine` is what the execution engine last confirmed.\nCopy Trading and Sniper configs share one per-account configuration quota (see `GET /v1/me`)."
  },
  "servers": [
    {
      "url": "https://api.apm.fun"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Inbox",
      "description": "Account messages, shared read status and marketing channel preferences."
    },
    {
      "name": "Account",
      "description": "Token identity, quota and custodial wallets."
    },
    {
      "name": "Wallet Auto-balance",
      "description": "Solana wallet auto-balance settings and executor result history."
    },
    {
      "name": "Wallet Rankings",
      "description": "Daily wallet rankings for browsing and choosing wallets to copy."
    },
    {
      "name": "Copy Trade Configs",
      "description": "Copy Trading task configuration CRUD, lifecycle and orders."
    },
    {
      "name": "Sniper Configs",
      "description": "Sniper task configuration CRUD, lifecycle and orders."
    },
    {
      "name": "Auto Sell Tasks",
      "description": "Per-item auto sell configuration, lifecycle and wallet-scoped protection orders."
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API token in the form `apm_live_<prefix>.<secret>`. Generate one from the web app’s API Keys page (`/api-keys`). The prefix identifies the token for revocation/audit; the secret half is only shown once."
      }
    },
    "schemas": {
      "StrategyTaskCreate": {
        "type": "object",
        "properties": {
          "labels": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 24
            },
            "maxItems": 10,
            "description": "Caller-defined task labels. Up to 10 labels of 1–24 characters. Whitespace is trimmed and duplicates are removed."
          },
          "spec": {
            "type": "object",
            "properties": {
              "schema": {
                "type": "string",
                "const": "apm.task/2",
                "description": "Task specification format version."
              },
              "id": {
                "type": "string",
                "pattern": "^(?:stk_[0-9A-Za-z]{26}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",
                "description": "Server-assigned task ID. Client-supplied IDs are ignored on strategy create and update."
              },
              "name": {
                "type": "string",
                "description": "Task display name; must not be blank."
              },
              "description": {
                "type": "string",
                "description": "Optional task description."
              },
              "schedule": {
                "type": "object",
                "properties": {
                  "timezone": {
                    "type": "string",
                    "maxLength": 64,
                    "description": "IANA timezone for the daily buy window."
                  },
                  "start_minute": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1439,
                    "description": "Inclusive start minute after local midnight, from 0 to 1439."
                  },
                  "end_minute": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1439,
                    "description": "Exclusive end minute; less than start crosses midnight. Must differ from start."
                  }
                },
                "required": [
                  "timezone",
                  "start_minute",
                  "end_minute"
                ],
                "additionalProperties": false,
                "description": "Daily buy window; outside it new buys stop while exits remain active."
              },
              "labels": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "description": "Task labels."
              },
              "chain": {
                "type": "string",
                "enum": [
                  "solana",
                  "bsc",
                  "robinhood"
                ],
                "description": "Execution chain; immutable after creation."
              },
              "mode": {
                "type": "string",
                "enum": [
                  "live",
                  "paper"
                ],
                "description": "Execution mode: live trading or paper decisions without sending trades."
              },
              "enabled": {
                "type": "boolean",
                "description": "Must be false on Open API creation. Use pause or resume to change trading state."
              },
              "wallets": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "wallet_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "description": "Owned wallet ID."
                    },
                    "address": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "description": "Wallet address on the task chain."
                    }
                  },
                  "required": [
                    "wallet_id",
                    "address"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 10,
                "description": "Owned execution wallets; enabled tasks require at least one."
              },
              "strategies": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^[a-z0-9_]{1,32}$",
                      "description": "Strategy ID, unique within the task."
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "description": "Optional display name."
                    },
                    "enabled": {
                      "type": "boolean",
                      "description": "Whether this rule or strategy is enabled; omitted means enabled."
                    },
                    "position": {
                      "type": "object",
                      "properties": {
                        "source": {
                          "type": "string",
                          "enum": [
                            "strategy",
                            "wallet"
                          ],
                          "description": "Position source; supported source and basis combinations are capability-checked."
                        },
                        "tokens": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1
                          },
                          "description": "Token addresses included in position selection."
                        },
                        "exclude_tokens": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1
                          },
                          "description": "Token addresses excluded from position selection."
                        },
                        "basis": {
                          "type": "string",
                          "enum": [
                            "per_buy",
                            "per_position"
                          ],
                          "description": "Position accounting basis."
                        }
                      },
                      "required": [
                        "source"
                      ],
                      "additionalProperties": false,
                      "description": "Position selection and accounting settings."
                    },
                    "entries": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "description": "Rule ID, unique within its strategy or task guard list."
                          },
                          "name": {
                            "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/name",
                            "description": "Optional display name."
                          },
                          "enabled": {
                            "type": "boolean",
                            "description": "Whether this rule or strategy is enabled; omitted means enabled."
                          },
                          "on": {
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "social_mention",
                                      "description": "Trigger event kind."
                                    },
                                    "sources": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "platform": {
                                            "type": "string",
                                            "enum": [
                                              "x",
                                              "telegram",
                                              "pump_fun"
                                            ],
                                            "description": "Social platform; executable platforms are checked by the capability catalog."
                                          },
                                          "source_id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "description": "Normalized social account identifier."
                                          }
                                        },
                                        "required": [
                                          "platform",
                                          "source_id"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "minItems": 1,
                                      "description": "Social accounts whose mentions trigger this rule."
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "sources"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "wallet_trade",
                                      "description": "Trigger event kind."
                                    },
                                    "targets": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "minItems": 1,
                                      "description": "Leader wallet addresses on the task chain."
                                    },
                                    "side": {
                                      "type": "string",
                                      "enum": [
                                        "buy",
                                        "sell"
                                      ],
                                      "description": "Leader trade side that triggers this rule."
                                    },
                                    "grouping": {
                                      "type": "string",
                                      "enum": [
                                        "any",
                                        "bundle"
                                      ],
                                      "description": "Leader matching mode; omitted uses any leader."
                                    },
                                    "fomo_pairs": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "handle": {
                                            "allOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "string",
                                                "maxLength": 64
                                              }
                                            ],
                                            "description": "FOMO handle without the leading @."
                                          },
                                          "evm": {
                                            "type": "string",
                                            "description": "EVM wallet address, or empty when unavailable."
                                          },
                                          "solana": {
                                            "type": "string",
                                            "description": "Solana wallet address, or empty when unavailable."
                                          }
                                        },
                                        "required": [
                                          "evm",
                                          "solana"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "description": "FOMO cross-chain wallet pairs."
                                    },
                                    "fomo_handle": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 64,
                                      "description": "Verified FOMO handle. Strategy writes may preserve an existing binding; changing it requires the legacy configuration endpoint."
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "targets",
                                    "side"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "token_launch",
                                      "description": "Trigger event kind."
                                    },
                                    "launchpads": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "description": "Launchpad identifiers to match."
                                    },
                                    "quote_tokens": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "description": "Quote-token identifiers to match."
                                    }
                                  },
                                  "required": [
                                    "kind"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "position_closed",
                                      "description": "Trigger event kind."
                                    }
                                  },
                                  "required": [
                                    "kind"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "buy_filled",
                                      "description": "A wallet-follow buy filled with a positive quantity."
                                    }
                                  },
                                  "required": [
                                    "kind"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "order_failed",
                                      "description": "Trigger event kind."
                                    }
                                  },
                                  "required": [
                                    "kind"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            "minItems": 1,
                            "description": "Trigger events; required for entry rules."
                          },
                          "when": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 64,
                                        "description": "Condition node ID, unique within its tree."
                                      },
                                      "f": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 64,
                                        "description": "Condition field from the strategy capability catalog."
                                      },
                                      "op": {
                                        "type": "string",
                                        "enum": [
                                          "gte",
                                          "lte",
                                          "gt",
                                          "lt",
                                          "between",
                                          "in",
                                          "nin",
                                          "contains_any",
                                          "contains_none",
                                          "is"
                                        ],
                                        "description": "Comparison operator."
                                      },
                                      "v": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "boolean"
                                          },
                                          {
                                            "type": "null"
                                          },
                                          {
                                            "type": "array",
                                            "items": {
                                              "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/when/anyOf/0/anyOf/0/properties/v"
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": {
                                              "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/when/anyOf/0/anyOf/0/properties/v"
                                            }
                                          }
                                        ],
                                        "description": "Comparison value in the field unit."
                                      },
                                      "v2": {
                                        "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/when/anyOf/0/anyOf/0/properties/v",
                                        "description": "Second comparison value for a range."
                                      },
                                      "within_sec": {
                                        "type": "integer",
                                        "description": "Observation window in seconds, when supported by the field."
                                      },
                                      "params": {
                                        "type": "object",
                                        "properties": {
                                          "hold_sec": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 86400,
                                            "description": "Short-hold threshold in seconds."
                                          },
                                          "ban_sec": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 86400,
                                            "description": "Ban duration in seconds."
                                          },
                                          "leader_position": {
                                            "type": "string",
                                            "enum": [
                                              "since_task",
                                              "total",
                                              "followed"
                                            ],
                                            "description": "Leader position basis; execution support is catalog-defined."
                                          },
                                          "count_failed": {
                                            "type": "boolean",
                                            "const": true,
                                            "description": "Count each sent follow buy once, even if it fails."
                                          },
                                          "unknown": {
                                            "type": "string",
                                            "const": "allow",
                                            "description": "Allow unknown observations when supported by this field."
                                          }
                                        },
                                        "additionalProperties": false,
                                        "description": "Field-specific condition parameters."
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "f",
                                      "op"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 64,
                                        "description": "Condition node ID, unique within its tree."
                                      },
                                      "all": {
                                        "type": "array",
                                        "items": {
                                          "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/when/anyOf/0"
                                        },
                                        "minItems": 1,
                                        "description": "All child conditions must hold."
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "all"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 64,
                                        "description": "Condition node ID, unique within its tree."
                                      },
                                      "any": {
                                        "type": "array",
                                        "items": {
                                          "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/when/anyOf/0"
                                        },
                                        "minItems": 1,
                                        "description": "At least one child condition must hold."
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "any"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 64,
                                        "description": "Condition node ID, unique within its tree."
                                      },
                                      "not": {
                                        "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/when/anyOf/0",
                                        "description": "Negated child condition."
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "not"
                                    ],
                                    "additionalProperties": false
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Condition tree; omitted or null means unconditional."
                          },
                          "do": {
                            "type": "object",
                            "properties": {
                              "buy": {
                                "type": "object",
                                "properties": {
                                  "sizing": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "mode": {
                                            "type": "string",
                                            "const": "fixed",
                                            "description": "Fixed amount sizing."
                                          },
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d+(\\.\\d+)?$",
                                            "description": "Buy amount in native token units."
                                          }
                                        },
                                        "required": [
                                          "mode",
                                          "amount"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "mode": {
                                            "type": "string",
                                            "const": "ratio",
                                            "description": "Ratio sizing."
                                          },
                                          "bps": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991,
                                            "description": "Sizing ratio in basis points."
                                          },
                                          "max": {
                                            "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/0/properties/amount",
                                            "description": "Maximum buy amount in native token units."
                                          }
                                        },
                                        "required": [
                                          "mode",
                                          "bps"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "mode": {
                                            "type": "string",
                                            "const": "mirror",
                                            "description": "Mirror leader sizing."
                                          }
                                        },
                                        "required": [
                                          "mode"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "mode": {
                                            "type": "string",
                                            "const": "tiers",
                                            "description": "Tiered sizing for forward wallet_trade buys; the first matching tier is used."
                                          },
                                          "tiers": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "when": {
                                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/when/anyOf/0",
                                                  "description": "Tier condition, a single leader.buy_market_cap_usd leaf; omitted means always match and is allowed only on the last tier."
                                                },
                                                "sizing": {
                                                  "anyOf": [
                                                    {
                                                      "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/0"
                                                    },
                                                    {
                                                      "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/1"
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "mode": {
                                                          "type": "string",
                                                          "const": "dynamic",
                                                          "description": "Subtract the leader buy amount in native units from max."
                                                        },
                                                        "max": {
                                                          "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/0/properties/amount",
                                                          "description": "Positive cap in chain native units. A leader buy at or above it is rejected."
                                                        }
                                                      },
                                                      "required": [
                                                        "mode",
                                                        "max"
                                                      ],
                                                      "additionalProperties": false
                                                    }
                                                  ],
                                                  "description": "Buy sizing for this tier."
                                                },
                                                "exec": {
                                                  "type": "object",
                                                  "properties": {
                                                    "fee": {
                                                      "type": "object",
                                                      "properties": {
                                                        "slippage_bps": {
                                                          "type": "integer",
                                                          "minimum": 0,
                                                          "maximum": 10000,
                                                          "description": "Slippage in basis points; 100 bps equals 1%."
                                                        },
                                                        "priority_fee": {
                                                          "type": "string",
                                                          "pattern": "^\\d+(?:\\.\\d+)?$",
                                                          "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM."
                                                        },
                                                        "landing_fee": {
                                                          "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/priority_fee",
                                                          "description": "Landing tip as a decimal string in the chain native token. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
                                                        },
                                                        "auto_gas": {
                                                          "type": "boolean",
                                                          "description": "Solana automatic fee mode."
                                                        },
                                                        "tip_first": {
                                                          "type": "boolean",
                                                          "description": "Lower failure cost for Solana automatic buy fees; ignored for sells and manual fees."
                                                        },
                                                        "tip_first_min": {
                                                          "type": "boolean",
                                                          "description": "No longer affects execution; retained for compatibility and accepted and read back as before."
                                                        },
                                                        "slippage_sol": {
                                                          "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/priority_fee",
                                                          "description": "Solana follow-buy slippage amount in SOL, replacing percentage slippage when present."
                                                        },
                                                        "landing_budget": {
                                                          "type": "object",
                                                          "properties": {
                                                            "bps": {
                                                              "type": "integer",
                                                              "minimum": -9007199254740991,
                                                              "maximum": 9007199254740991,
                                                              "description": "Total buy fee ratio in basis points; 100 bps equals 1%."
                                                            },
                                                            "min": {
                                                              "type": "string",
                                                              "pattern": "^\\d+(?:\\.\\d+)?$",
                                                              "description": "Minimum total buy fee in SOL."
                                                            },
                                                            "max": {
                                                              "type": "string",
                                                              "pattern": "^\\d+(?:\\.\\d+)?$",
                                                              "description": "Maximum total buy fee in SOL."
                                                            }
                                                          },
                                                          "required": [
                                                            "bps"
                                                          ],
                                                          "additionalProperties": false,
                                                          "description": "Total fee budget for Solana automatic buy fees."
                                                        }
                                                      },
                                                      "required": [
                                                        "slippage_bps"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Complete buy fees and slippage for this tier; nothing is inherited from the task."
                                                    },
                                                    "high_tip": {
                                                      "type": "object",
                                                      "properties": {
                                                        "slippage_bps": {
                                                          "type": "integer",
                                                          "minimum": 0,
                                                          "maximum": 10000,
                                                          "description": "High-tip slippage in basis points; required by the capability check."
                                                        },
                                                        "priority_fee": {
                                                          "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/priority_fee",
                                                          "description": "High-tip priority fee: SOL on Solana, Gwei on EVM."
                                                        },
                                                        "landing_fee": {
                                                          "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/priority_fee",
                                                          "description": "High-tip landing tip in the chain native token. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In manual mode, use the higher of the normal and high-tip values to read these tiers."
                                                        }
                                                      },
                                                      "additionalProperties": false,
                                                      "description": "High-tip values for this tier; required when the task enables high_tip and forbidden otherwise."
                                                    }
                                                  },
                                                  "required": [
                                                    "fee"
                                                  ],
                                                  "additionalProperties": false,
                                                  "description": "Buy execution values for this tier."
                                                }
                                              },
                                              "required": [
                                                "sizing",
                                                "exec"
                                              ],
                                              "additionalProperties": false
                                            },
                                            "description": "Ordered buy tiers, 1..10; a leader buy that matches no tier is rejected."
                                          }
                                        },
                                        "required": [
                                          "mode",
                                          "tiers"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/sizing/anyOf/2"
                                      }
                                    ],
                                    "description": "Buy sizing."
                                  },
                                  "order": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "market",
                                            "description": "Market order."
                                          }
                                        },
                                        "required": [
                                          "type"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "limit",
                                            "description": "Limit order."
                                          },
                                          "trigger": {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "basis": {
                                                    "type": "string",
                                                    "const": "price_usd",
                                                    "description": "Absolute USD price basis."
                                                  },
                                                  "value": {
                                                    "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/0/properties/amount",
                                                    "description": "Trigger price in USD."
                                                  }
                                                },
                                                "required": [
                                                  "basis",
                                                  "value"
                                                ],
                                                "additionalProperties": false
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "basis": {
                                                    "type": "string",
                                                    "const": "signal_price",
                                                    "description": "Price relative to the leader's fill for the triggering trade: its average pool-side price in USD, excluding token transfer tax and the leader route's fee. When the fill cannot be determined, the market price when the signal arrived is used. A reverse buy uses the leader's average sell price."
                                                  },
                                                  "offset_bps": {
                                                    "type": "integer",
                                                    "description": "Price offset in basis points."
                                                  }
                                                },
                                                "required": [
                                                  "basis",
                                                  "offset_bps"
                                                ],
                                                "additionalProperties": false
                                              }
                                            ],
                                            "description": "Limit trigger."
                                          },
                                          "expires_sec": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "description": "Limit order lifetime in seconds."
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "trigger",
                                          "expires_sec"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ],
                                    "description": "Buy order definition."
                                  },
                                  "delay_ms": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "description": "Delay before buying in milliseconds."
                                  }
                                },
                                "required": [
                                  "sizing",
                                  "order"
                                ],
                                "additionalProperties": false,
                                "description": "Buy action, only in contexts with buy capability."
                              },
                              "sell": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "string",
                                    "enum": [
                                      "all",
                                      "bps_of_remaining",
                                      "bps_of_initial",
                                      "leader_ratio"
                                    ],
                                    "description": "Sell sizing basis. For exit rules, all and bps_of_initial use this buy. For bps_of_remaining, ordinary exits use the current task position, staged exits use the remaining amount of this buy in the graph, and repeating trailing rules use this buy’s ladder remainder. Position guards support all and bps_of_initial."
                                  },
                                  "bps": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 10000,
                                    "description": "Fraction for bps_of_initial or bps_of_remaining; 10000 is 100%."
                                  },
                                  "leader_position": {
                                    "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/when/anyOf/0/anyOf/0/properties/params/properties/leader_position",
                                    "description": "Leader position basis; execution support is catalog-defined."
                                  },
                                  "order": {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "market",
                                        "description": "Market order."
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "additionalProperties": false,
                                    "description": "Sell order definition."
                                  }
                                },
                                "required": [
                                  "amount"
                                ],
                                "additionalProperties": false,
                                "description": "Sell action."
                              },
                              "goto": {
                                "type": "string",
                                "pattern": "^[a-z0-9_]{1,32}$",
                                "description": "Later exit stage to enter after this action."
                              },
                              "pause": {
                                "type": "string",
                                "enum": [
                                  "strategy",
                                  "task"
                                ],
                                "description": "Pause target, where supported."
                              },
                              "notify": {
                                "type": "object",
                                "properties": {
                                  "template": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128,
                                    "description": "Notification template ID."
                                  }
                                },
                                "required": [
                                  "template"
                                ],
                                "additionalProperties": false,
                                "description": "Notification action, where supported."
                              }
                            },
                            "additionalProperties": false,
                            "description": "Actions to perform when this rule matches."
                          }
                        },
                        "required": [
                          "id",
                          "do"
                        ],
                        "additionalProperties": false
                      },
                      "description": "Entry rules evaluated by the executor."
                    },
                    "inherit_exits": {
                      "type": "string",
                      "const": "auto_tpsl",
                      "description": "Legacy syntax; rejected by current execution capabilities. Set explicit exits instead."
                    },
                    "exits": {
                      "type": "object",
                      "properties": {
                        "tpsl_configs": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "price_percentage": {
                                "allOf": [
                                  {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  }
                                ],
                                "description": "Price change from the buy price in basis points; negative is stop loss."
                              },
                              "amount_percentage": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 10000,
                                "description": "Sell fraction in basis points; 10000 is 100%."
                              },
                              "expiration": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991,
                                "description": "Lifetime in milliseconds; 0 uses the executor preset default."
                              },
                              "goto": {
                                "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/goto",
                                "description": "Later stage to enter after execution."
                              }
                            },
                            "required": [
                              "price_percentage",
                              "amount_percentage",
                              "expiration"
                            ],
                            "additionalProperties": false
                          },
                          "minItems": 1,
                          "maxItems": 20,
                          "description": "Fixed-price take-profit and stop-loss rows."
                        },
                        "rules": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "description": "Stable exit rule ID, unique across all stages."
                              },
                              "name": {
                                "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/name",
                                "description": "Optional rule display name."
                              },
                              "when": {
                                "anyOf": [
                                  {
                                    "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/when/anyOf/0/anyOf/0"
                                  },
                                  {
                                    "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/when/anyOf/0/anyOf/1"
                                  },
                                  {
                                    "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/when/anyOf/0/anyOf/2"
                                  },
                                  {
                                    "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/when/anyOf/0/anyOf/3"
                                  }
                                ],
                                "description": "Condition tree; executable fields depend on the chain capability catalog."
                              },
                              "do": {
                                "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do",
                                "description": "Action when the condition holds; supported actions depend on the rule context."
                              },
                              "expiration": {
                                "type": "integer",
                                "maximum": 9007199254740991,
                                "exclusiveMinimum": 0,
                                "description": "Required positive rule lifetime in milliseconds."
                              },
                              "repeat": {
                                "type": "boolean",
                                "const": true,
                                "description": "Repeat this trailing sell as a ladder tier. Use bps_of_remaining, a distinct activation gain per tier, and no goto or stages. Only the highest reached tier fires."
                              }
                            },
                            "required": [
                              "id",
                              "when",
                              "do",
                              "expiration"
                            ],
                            "additionalProperties": false
                          },
                          "minItems": 1,
                          "maxItems": 20,
                          "description": "Conditional exit rules."
                        },
                        "segmented_take_profit_basis": {
                          "type": "string",
                          "const": "remaining",
                          "description": "Sell each price or timeout percentage from the amount remaining in this segmented group. Omit to use the bought amount."
                        },
                        "segmented_take_profit_configs": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "price_percentage": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991,
                                "description": "Segment price change in basis points."
                              },
                              "amount_percentage": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991,
                                "description": "Segment sell fraction in basis points."
                              },
                              "expiration": {
                                "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exits/properties/tpsl_configs/items/properties/expiration"
                              },
                              "timeout_sell_enabled": {
                                "type": "boolean",
                                "description": "Whether to sell when this segment expires."
                              },
                              "timeout_amount_percentage": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991,
                                "description": "Timeout sell fraction in basis points."
                              }
                            },
                            "required": [
                              "price_percentage",
                              "amount_percentage",
                              "expiration",
                              "timeout_sell_enabled",
                              "timeout_amount_percentage"
                            ],
                            "additionalProperties": false
                          },
                          "minItems": 1,
                          "description": "Sequential take-profit segments."
                        },
                        "trailing_stop_config": {
                          "type": "object",
                          "properties": {
                            "threshold_bps": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991,
                              "description": "Gain needed to activate trailing protection, in basis points."
                            },
                            "stop_bps": {
                              "type": "integer",
                              "maximum": 9007199254740991,
                              "exclusiveMinimum": 0,
                              "description": "Trailing distance below the high, in basis points."
                            },
                            "amount_percentage": {
                              "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exits/properties/tpsl_configs/items/properties/amount_percentage"
                            },
                            "expiration": {
                              "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exits/properties/tpsl_configs/items/properties/expiration"
                            },
                            "goto": {
                              "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/goto",
                              "description": "Later stage to enter after execution."
                            }
                          },
                          "required": [
                            "threshold_bps",
                            "stop_bps",
                            "amount_percentage",
                            "expiration"
                          ],
                          "additionalProperties": false,
                          "description": "Trailing stop preset."
                        },
                        "break_even_stop_config": {
                          "type": "object",
                          "properties": {
                            "threshold_bps": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 100000000,
                              "description": "Gain needed to activate break-even protection, in basis points."
                            },
                            "lock_bps": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991,
                              "description": "Locked gain in basis points; less than threshold_bps."
                            },
                            "amount_percentage": {
                              "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exits/properties/tpsl_configs/items/properties/amount_percentage"
                            },
                            "expiration": {
                              "type": "integer",
                              "maximum": 9007199254740991,
                              "exclusiveMinimum": 0,
                              "description": "Required positive break-even lifetime in milliseconds."
                            },
                            "goto": {
                              "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/goto",
                              "description": "Later stage to enter after execution."
                            }
                          },
                          "required": [
                            "threshold_bps",
                            "lock_bps",
                            "amount_percentage",
                            "expiration"
                          ],
                          "additionalProperties": false,
                          "description": "Break-even stop preset."
                        },
                        "stages": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "tpsl_configs": {
                                "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exits/properties/tpsl_configs"
                              },
                              "rules": {
                                "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exits/properties/rules"
                              },
                              "segmented_take_profit_basis": {
                                "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exits/properties/segmented_take_profit_basis"
                              },
                              "segmented_take_profit_configs": {
                                "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exits/properties/segmented_take_profit_configs"
                              },
                              "trailing_stop_config": {
                                "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exits/properties/trailing_stop_config"
                              },
                              "break_even_stop_config": {
                                "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exits/properties/break_even_stop_config"
                              },
                              "id": {
                                "type": "string",
                                "pattern": "^[a-z0-9_]{1,32}$",
                                "description": "Stage ID referenced by goto."
                              },
                              "name": {
                                "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/name",
                                "description": "Optional stage display name."
                              }
                            },
                            "required": [
                              "id"
                            ],
                            "additionalProperties": false
                          },
                          "minItems": 1,
                          "maxItems": 7,
                          "description": "Later stages reachable through forward goto references."
                        },
                        "flash_sell_config": {
                          "type": "object",
                          "properties": {
                            "delay_ms": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 86400000,
                              "description": "Default delay from sending the buy, in milliseconds. Used for unknown gaps and unset tiers."
                            },
                            "same_block_delay_ms": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 86400000,
                              "description": "Delay for a buy landing in the same block (Solana slot) as the leader."
                            },
                            "next_block_delay_ms": {
                              "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exits/properties/flash_sell_config/properties/same_block_delay_ms",
                              "description": "Delay for a buy landing one block (Solana slot) after the leader."
                            },
                            "amount_percentage": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 10000,
                              "description": "Sell fraction in basis points; 10000 is 100%."
                            }
                          },
                          "required": [
                            "delay_ms",
                            "amount_percentage"
                          ],
                          "additionalProperties": false,
                          "description": "Timed sell from buy send time. Either block-gap override selects the delay on our buy receipt. An elapsed deadline sells immediately. Cannot be combined with stages."
                        },
                        "follow_sell": {
                          "type": "object",
                          "properties": {
                            "sell_amount_mode": {
                              "type": "string",
                              "enum": [
                                "proportional",
                                "sell-all"
                              ],
                              "description": "Sell proportionally to the leader or sell the full task position."
                            },
                            "scope": {
                              "type": "string",
                              "enum": [
                                "bundle",
                                "buyer"
                              ],
                              "description": "For grouped wallet copy, bundle (default) follows any group member using the combined position. buyer follows each target only for the position bought after that target and uses its own position for ratios. Also applies to leader transfer-out sells. Buy rules and other exits are unchanged."
                            },
                            "sell_all_percentage_enabled": {
                              "type": "boolean",
                              "description": "Enable the leader-sale threshold for selling the full position."
                            },
                            "sell_all_percentage": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 10000,
                              "description": "Leader-sale threshold in basis points; 10000 means 100%."
                            }
                          },
                          "required": [
                            "sell_amount_mode",
                            "sell_all_percentage_enabled",
                            "sell_all_percentage"
                          ],
                          "additionalProperties": false,
                          "description": "Follow leader sells for task positions."
                        },
                        "dev_sell_config": {
                          "type": "object",
                          "properties": {
                            "sell_all_percentage": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 10000,
                              "description": "Creator sell threshold in basis points; 10000 is 100%. At or above it, sell all remaining; otherwise follow the creator sell proportion."
                            }
                          },
                          "required": [
                            "sell_all_percentage"
                          ],
                          "additionalProperties": false,
                          "description": "Sell when the token creator sells."
                        },
                        "migration_sell_config": {
                          "type": "object",
                          "properties": {
                            "sell_percentage": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 10000,
                              "description": "Fraction to sell on migration in basis points; 10000 is 100%."
                            }
                          },
                          "required": [
                            "sell_percentage"
                          ],
                          "additionalProperties": false,
                          "description": "Sell on token migration after a buy on a launch curve."
                        },
                        "leader_transfer_sell": {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "proportional",
                                "position"
                              ],
                              "description": "Leader transfer response mode."
                            },
                            "percentage": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 10000,
                              "description": "Position share to sell in basis points for position mode."
                            }
                          },
                          "required": [
                            "mode"
                          ],
                          "additionalProperties": false,
                          "description": "Sell when the leader transfers tokens."
                        },
                        "anti_wick": {
                          "type": "boolean",
                          "description": "Anti-wick. Off (absent or false): on Solana, ordinary take profit, stop loss and the limit buys of the same strategy trigger as soon as a qualifying trade touches the trigger price and then sell or buy at market (trades that do not count: https://apm.fun/docs/copy-trading/strategy-settings#anti-wick), so the fill can differ from the trigger price. A limit buy is not triggered by single trades in the block it was placed in. On: they trigger only if the price still meets the condition at the end of the block (Solana slot), ignoring brief spikes and dips inside it. Segmented take profit, trailing and break-even stops and conditional exits always trigger on the end-of-block price, either way. No effect on BSC and Robinhood. Not an exit by itself: exits still need at least one exit."
                        }
                      },
                      "additionalProperties": false,
                      "description": "Exit presets, rules and ordered stages for positions opened by this strategy."
                    },
                    "rules": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items"
                      },
                      "description": "Additional strategy rules; execution support is capability-checked."
                    },
                    "exec": {
                      "type": "object",
                      "properties": {
                        "buy": {
                          "type": "object",
                          "properties": {
                            "anti_mev": {
                              "type": "boolean",
                              "description": "Use the chain-specific protected execution route. On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
                            },
                            "slippage_base": {
                              "type": "string",
                              "enum": [
                                "quote",
                                "leader_fill"
                              ],
                              "description": "Buy slippage reference: current quote or leader fill price."
                            },
                            "retries": {
                              "type": "integer",
                              "minimum": 0,
                              "description": "Execution retry count; support is capability-checked."
                            },
                            "block_offset": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 6,
                              "description": "BSC snipe anti-sniper fee tier."
                            },
                            "long_offset_sec": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 10,
                              "description": "Robinhood Long.xyz buy tier in seconds. Omit to buy at the end of the tax period."
                            },
                            "fee": {
                              "type": "object",
                              "properties": {
                                "slippage_bps": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/slippage_bps"
                                },
                                "priority_fee": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/priority_fee"
                                },
                                "landing_fee": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/landing_fee"
                                },
                                "auto_gas": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/auto_gas"
                                },
                                "tip_first": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/tip_first"
                                },
                                "tip_first_min": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/tip_first_min"
                                },
                                "slippage_sol": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/slippage_sol"
                                },
                                "landing_budget": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/landing_budget"
                                }
                              },
                              "required": [
                                "slippage_bps"
                              ],
                              "additionalProperties": false,
                              "description": "Normal execution fees and slippage."
                            },
                            "high_tip": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean",
                                  "description": "Enable high-tip execution settings."
                                },
                                "slippage_bps": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 10000,
                                  "description": "Slippage in basis points; 100 bps equals 1%."
                                },
                                "priority_fee": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/priority_fee",
                                  "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM."
                                },
                                "landing_fee": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/priority_fee",
                                  "description": "Landing tip as a decimal string in the chain native token. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In manual mode, use the higher of the normal and high-tip values to read these tiers."
                                }
                              },
                              "required": [
                                "enabled"
                              ],
                              "additionalProperties": false,
                              "description": "High-tip execution overrides."
                            }
                          },
                          "additionalProperties": false,
                          "description": "Strategy buy overrides applied over task buy settings."
                        },
                        "sell": {
                          "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exec/properties/buy",
                          "description": "Sell execution overrides; omitted fields inherit supported buy settings."
                        },
                        "follow_sell": {
                          "type": "object",
                          "properties": {
                            "anti_mev": {
                              "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exec/properties/buy/properties/anti_mev"
                            },
                            "slippage_base": {
                              "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exec/properties/buy/properties/slippage_base"
                            },
                            "retries": {
                              "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exec/properties/buy/properties/retries"
                            },
                            "block_offset": {
                              "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exec/properties/buy/properties/block_offset"
                            },
                            "long_offset_sec": {
                              "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exec/properties/buy/properties/long_offset_sec"
                            },
                            "fee": {
                              "type": "object",
                              "properties": {
                                "slippage_bps": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/slippage_bps",
                                  "description": "Slippage in basis points; 100 bps equals 1%."
                                },
                                "priority_fee": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/priority_fee"
                                },
                                "landing_fee": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/landing_fee"
                                },
                                "auto_gas": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/auto_gas"
                                },
                                "tip_first": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/tip_first"
                                },
                                "tip_first_min": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/tip_first_min"
                                },
                                "slippage_sol": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/slippage_sol"
                                },
                                "landing_budget": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/landing_budget"
                                }
                              },
                              "additionalProperties": false,
                              "description": "Ordinary follow-sell fee overrides. Only priority_fee, landing_fee and auto_gas apply."
                            },
                            "high_tip": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exec/properties/buy/properties/high_tip/properties/enabled",
                                  "description": "Enable high-tip execution settings."
                                },
                                "slippage_bps": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exec/properties/buy/properties/high_tip/properties/slippage_bps"
                                },
                                "priority_fee": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exec/properties/buy/properties/high_tip/properties/priority_fee"
                                },
                                "landing_fee": {
                                  "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exec/properties/buy/properties/high_tip/properties/landing_fee"
                                }
                              },
                              "additionalProperties": false,
                              "description": "Follow-sell high-tip overrides. Omit enabled to inherit the effective sell switch."
                            }
                          },
                          "additionalProperties": false,
                          "description": "Gas overrides for wallet-triggered sells, including leader transfers. Omitted fields inherit sell execution settings."
                        }
                      },
                      "additionalProperties": false,
                      "description": "Strategy-level execution overrides."
                    }
                  },
                  "required": [
                    "id",
                    "entries"
                  ],
                  "additionalProperties": false
                },
                "minItems": 1,
                "maxItems": 8,
                "description": "Task strategies evaluated in order."
              },
              "on_conflict": {
                "type": "string",
                "enum": [
                  "first_match",
                  "all"
                ],
                "description": "Matching policy; current execution supports first_match only."
              },
              "guards": {
                "type": "object",
                "properties": {
                  "positions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exits/properties/rules/items/properties/id"
                        },
                        "name": {
                          "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exits/properties/rules/items/properties/name"
                        },
                        "when": {
                          "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exits/properties/rules/items/properties/when"
                        },
                        "do": {
                          "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exits/properties/rules/items/properties/do"
                        },
                        "expiration": {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "exclusiveMinimum": 0,
                          "description": "Lifetime in milliseconds; 0 uses the executor preset default."
                        }
                      },
                      "required": [
                        "id",
                        "when",
                        "do"
                      ],
                      "additionalProperties": false
                    },
                    "description": "Rules applied across all task positions."
                  },
                  "task": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items"
                    },
                    "description": "At most one rule per trigger. For wallet_trade entries, use buy_filled with task.follow_count gte N and pause: task to pause new buys after N distinct successfully followed transactions. position_closed uses task.loss_streak. order_failed uses task.buy_fail_streak gte 1..100 with within_sec 60..86400 in whole minutes; broadcast slippage failures count."
                  }
                },
                "additionalProperties": false,
                "description": "Task-wide position and task rules."
              },
              "limits": {
                "type": "object",
                "properties": {
                  "max_buy_native": {
                    "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/entries/items/properties/do/properties/buy/properties/sizing/anyOf/1/properties/max"
                  },
                  "max_buys_per_day": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "Maximum daily buys; execution support is capability-checked."
                  }
                },
                "additionalProperties": false,
                "description": "Task trading limits; execution support is capability-checked."
              },
              "exec": {
                "type": "object",
                "properties": {
                  "min_sell_usd": {
                    "type": "string",
                    "pattern": "^0*(?:0\\.0?[1-9]\\d*|[1-9]\\d{0,4}(?:\\.\\d+)?|100000(?:\\.0+)?)$",
                    "description": "Minimum automatic sell value in USD, a decimal string from 0.01 to 100000 inclusive. A smaller sell is enlarged up to the available position. A remainder worth less than the higher of this minimum and the sell cost is included. Omit for remainder cleanup only, using $1 and the sell cost. EVM flash sells before the buy receipt may fall below the minimum."
                  },
                  "retain_bps": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9999,
                    "description": "Share of each new buy retained from automatic sells (including stop loss), in integer basis points (1–9999, 100 bps = 1%). Omit for no retention. Changing the share affects future buys. Manual sells can use the retained tokens. An EVM task flash sell sent before the buy receipt approximates the reserve."
                  },
                  "buy": {
                    "type": "object",
                    "properties": {
                      "anti_mev": {
                        "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exec/properties/buy/properties/anti_mev"
                      },
                      "slippage_base": {
                        "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exec/properties/buy/properties/slippage_base"
                      },
                      "retries": {
                        "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exec/properties/buy/properties/retries"
                      },
                      "block_offset": {
                        "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exec/properties/buy/properties/block_offset"
                      },
                      "long_offset_sec": {
                        "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exec/properties/buy/properties/long_offset_sec"
                      },
                      "fee": {
                        "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exec/properties/buy/properties/fee"
                      },
                      "high_tip": {
                        "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exec/properties/buy/properties/high_tip"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Base buy execution settings."
                  },
                  "sell": {
                    "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exec/properties/buy",
                    "description": "Sell execution overrides; omitted fields inherit supported buy settings."
                  },
                  "follow_sell": {
                    "$ref": "#/components/schemas/StrategyTaskCreate/properties/spec/properties/strategies/items/properties/exec/properties/follow_sell"
                  },
                  "usdc": {
                    "type": "boolean",
                    "description": "Solana USDC trading switch. New Solana tasks default to false; omitted updates preserve the stored value."
                  }
                },
                "required": [
                  "buy"
                ],
                "additionalProperties": false,
                "description": "Task-level buy and sell execution settings."
              },
              "meta": {
                "type": "object",
                "properties": {
                  "template": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "description": "Template identifier. pump marks a Pump App copy-trading task. Use wallet_trade triggers with fomo_pairs containing both EVM and Solana addresses for Pump bridge buys on Robinhood and BSC."
                  },
                  "created_via": {
                    "type": "string",
                    "enum": [
                      "web",
                      "extension",
                      "telegram",
                      "openapi",
                      "system"
                    ],
                    "description": "Client channel that created the task."
                  },
                  "system": {
                    "type": "string",
                    "const": "auto_tpsl",
                    "description": "System template marker; execution support is capability-checked."
                  }
                },
                "additionalProperties": false,
                "description": "Task source and template metadata."
              }
            },
            "required": [
              "schema",
              "name",
              "chain",
              "mode",
              "enabled",
              "wallets",
              "strategies",
              "exec"
            ],
            "additionalProperties": false,
            "description": "apm.task/2 task specification without id. Created paused; call resume to start trading."
          }
        },
        "required": [
          "spec"
        ],
        "additionalProperties": false
      },
      "AutoSellTaskCreate": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "description": "Auto sell task name."
          },
          "covers_new_wallets": {
            "type": "boolean",
            "description": "Cover all active wallets, including future wallets. Only one item per chain can do this; wallets then lists exclusions."
          },
          "wallets": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "maxItems": 100,
            "description": "Owned active wallet addresses (an address already stored in this item may stay after its wallet is deactivated). Exclusions when covers_new_wallets is true; selected wallets otherwise. A selected wallet leaves the default item immediately and follows this item, so it has no auto sell protection for new buys while this item is paused. An empty selection is allowed."
          },
          "rule": {
            "type": "object",
            "properties": {
              "min_sell_usd": {
                "type": "string",
                "pattern": "^0*(?:0\\.0?[1-9]\\d*|[1-9]\\d{0,4}(?:\\.\\d+)?|100000(?:\\.0+)?)$",
                "description": "Minimum automatic sell value in USD, a decimal string from 0.01 to 100000 inclusive. A smaller sell is enlarged up to the available position. A remainder worth less than the higher of this minimum and the sell cost is included. Omit for remainder cleanup only, using $1 and the sell cost. EVM flash sells before the buy receipt may fall below the minimum."
              },
              "retain_bps": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9999,
                "description": "Share of each new buy retained from automatic sells (including stop loss), in integer basis points (1–9999, 100 bps = 1%). Omit for no retention. Changing the share affects future buys. Manual sells can use the retained tokens. An EVM task flash sell sent before the buy receipt approximates the reserve."
              },
              "enabled": {
                "type": "boolean",
                "const": false,
                "default": false,
                "description": "Must be false at creation. Use pause or resume to change this state."
              },
              "scope": {
                "type": "string",
                "enum": [
                  "apm_manual",
                  "wallet_all"
                ],
                "description": "apm_manual protects APM manual buys; wallet_all also protects external buys. Both exclude task buys."
              },
              "exits": {
                "type": "object",
                "properties": {
                  "tpsl_configs": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "price_percentage": {
                          "allOf": [
                            {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            }
                          ],
                          "description": "Price change from the buy price in basis points; negative is stop loss."
                        },
                        "amount_percentage": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 10000,
                          "description": "Sell fraction in basis points; 10000 is 100%."
                        },
                        "expiration": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991,
                          "description": "Lifetime in milliseconds; 0 uses the executor preset default."
                        },
                        "goto": {
                          "type": "string",
                          "pattern": "^[a-z0-9_]{1,32}$",
                          "description": "Later stage to enter after execution."
                        }
                      },
                      "required": [
                        "price_percentage",
                        "amount_percentage",
                        "expiration"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 1,
                    "maxItems": 20,
                    "description": "Fixed-price take-profit and stop-loss rows."
                  },
                  "rules": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "description": "Stable exit rule ID, unique across all stages."
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "description": "Optional rule display name."
                        },
                        "when": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64,
                                  "description": "Condition node ID, unique within its tree."
                                },
                                "f": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64,
                                  "description": "Condition field from the strategy capability catalog."
                                },
                                "op": {
                                  "type": "string",
                                  "enum": [
                                    "gte",
                                    "lte",
                                    "gt",
                                    "lt",
                                    "between",
                                    "in",
                                    "nin",
                                    "contains_any",
                                    "contains_none",
                                    "is"
                                  ],
                                  "description": "Comparison operator."
                                },
                                "v": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean"
                                    },
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/when/anyOf/0/properties/v"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/when/anyOf/0/properties/v"
                                      }
                                    }
                                  ],
                                  "description": "Comparison value in the field unit."
                                },
                                "v2": {
                                  "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/when/anyOf/0/properties/v",
                                  "description": "Second comparison value for a range."
                                },
                                "within_sec": {
                                  "type": "integer",
                                  "description": "Observation window in seconds, when supported by the field."
                                },
                                "params": {
                                  "type": "object",
                                  "properties": {
                                    "hold_sec": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 86400,
                                      "description": "Short-hold threshold in seconds."
                                    },
                                    "ban_sec": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 86400,
                                      "description": "Ban duration in seconds."
                                    },
                                    "leader_position": {
                                      "type": "string",
                                      "enum": [
                                        "since_task",
                                        "total",
                                        "followed"
                                      ],
                                      "description": "Leader position basis; execution support is catalog-defined."
                                    },
                                    "count_failed": {
                                      "type": "boolean",
                                      "const": true,
                                      "description": "Count each sent follow buy once, even if it fails."
                                    },
                                    "unknown": {
                                      "type": "string",
                                      "const": "allow",
                                      "description": "Allow unknown observations when supported by this field."
                                    }
                                  },
                                  "additionalProperties": false,
                                  "description": "Field-specific condition parameters."
                                }
                              },
                              "required": [
                                "id",
                                "f",
                                "op"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64,
                                  "description": "Condition node ID, unique within its tree."
                                },
                                "all": {
                                  "type": "array",
                                  "items": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/when/anyOf/0"
                                      },
                                      {
                                        "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/when/anyOf/1"
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 64,
                                            "description": "Condition node ID, unique within its tree."
                                          },
                                          "any": {
                                            "type": "array",
                                            "items": {
                                              "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/when/anyOf/1/properties/all/items"
                                            },
                                            "minItems": 1,
                                            "description": "At least one child condition must hold."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "any"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 64,
                                            "description": "Condition node ID, unique within its tree."
                                          },
                                          "not": {
                                            "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/when/anyOf/1/properties/all/items",
                                            "description": "Negated child condition."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "not"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  },
                                  "minItems": 1,
                                  "description": "All child conditions must hold."
                                }
                              },
                              "required": [
                                "id",
                                "all"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/when/anyOf/1/properties/all/items/anyOf/2"
                            },
                            {
                              "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/when/anyOf/1/properties/all/items/anyOf/3"
                            }
                          ],
                          "description": "Condition tree; executable fields depend on the chain capability catalog."
                        },
                        "do": {
                          "type": "object",
                          "properties": {
                            "buy": {
                              "type": "object",
                              "properties": {
                                "sizing": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "mode": {
                                          "type": "string",
                                          "const": "fixed",
                                          "description": "Fixed amount sizing."
                                        },
                                        "amount": {
                                          "type": "string",
                                          "pattern": "^-?\\d+(\\.\\d+)?$",
                                          "description": "Buy amount in native token units."
                                        }
                                      },
                                      "required": [
                                        "mode",
                                        "amount"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "mode": {
                                          "type": "string",
                                          "const": "ratio",
                                          "description": "Ratio sizing."
                                        },
                                        "bps": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991,
                                          "description": "Sizing ratio in basis points."
                                        },
                                        "max": {
                                          "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/do/properties/buy/properties/sizing/anyOf/0/properties/amount",
                                          "description": "Maximum buy amount in native token units."
                                        }
                                      },
                                      "required": [
                                        "mode",
                                        "bps"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "mode": {
                                          "type": "string",
                                          "const": "mirror",
                                          "description": "Mirror leader sizing."
                                        }
                                      },
                                      "required": [
                                        "mode"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "mode": {
                                          "type": "string",
                                          "const": "tiers",
                                          "description": "Tiered sizing for forward wallet_trade buys; the first matching tier is used."
                                        },
                                        "tiers": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "when": {
                                                "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/when/anyOf/1/properties/all/items",
                                                "description": "Tier condition, a single leader.buy_market_cap_usd leaf; omitted means always match and is allowed only on the last tier."
                                              },
                                              "sizing": {
                                                "anyOf": [
                                                  {
                                                    "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/do/properties/buy/properties/sizing/anyOf/0"
                                                  },
                                                  {
                                                    "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/do/properties/buy/properties/sizing/anyOf/1"
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "mode": {
                                                        "type": "string",
                                                        "const": "dynamic",
                                                        "description": "Subtract the leader buy amount in native units from max."
                                                      },
                                                      "max": {
                                                        "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/do/properties/buy/properties/sizing/anyOf/0/properties/amount",
                                                        "description": "Positive cap in chain native units. A leader buy at or above it is rejected."
                                                      }
                                                    },
                                                    "required": [
                                                      "mode",
                                                      "max"
                                                    ],
                                                    "additionalProperties": false
                                                  }
                                                ],
                                                "description": "Buy sizing for this tier."
                                              },
                                              "exec": {
                                                "type": "object",
                                                "properties": {
                                                  "fee": {
                                                    "type": "object",
                                                    "properties": {
                                                      "slippage_bps": {
                                                        "type": "integer",
                                                        "minimum": 0,
                                                        "maximum": 10000,
                                                        "description": "Slippage in basis points; 100 bps equals 1%."
                                                      },
                                                      "priority_fee": {
                                                        "type": "string",
                                                        "pattern": "^\\d+(?:\\.\\d+)?$",
                                                        "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM."
                                                      },
                                                      "landing_fee": {
                                                        "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/priority_fee",
                                                        "description": "Landing tip as a decimal string in the chain native token. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
                                                      },
                                                      "auto_gas": {
                                                        "type": "boolean",
                                                        "description": "Solana automatic fee mode."
                                                      },
                                                      "tip_first": {
                                                        "type": "boolean",
                                                        "description": "Lower failure cost for Solana automatic buy fees; ignored for sells and manual fees."
                                                      },
                                                      "tip_first_min": {
                                                        "type": "boolean",
                                                        "description": "No longer affects execution; retained for compatibility and accepted and read back as before."
                                                      },
                                                      "slippage_sol": {
                                                        "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/priority_fee",
                                                        "description": "Solana follow-buy slippage amount in SOL, replacing percentage slippage when present."
                                                      },
                                                      "landing_budget": {
                                                        "type": "object",
                                                        "properties": {
                                                          "bps": {
                                                            "type": "integer",
                                                            "minimum": -9007199254740991,
                                                            "maximum": 9007199254740991,
                                                            "description": "Total buy fee ratio in basis points; 100 bps equals 1%."
                                                          },
                                                          "min": {
                                                            "type": "string",
                                                            "pattern": "^\\d+(?:\\.\\d+)?$",
                                                            "description": "Minimum total buy fee in SOL."
                                                          },
                                                          "max": {
                                                            "type": "string",
                                                            "pattern": "^\\d+(?:\\.\\d+)?$",
                                                            "description": "Maximum total buy fee in SOL."
                                                          }
                                                        },
                                                        "required": [
                                                          "bps"
                                                        ],
                                                        "additionalProperties": false,
                                                        "description": "Total fee budget for Solana automatic buy fees."
                                                      }
                                                    },
                                                    "required": [
                                                      "slippage_bps"
                                                    ],
                                                    "additionalProperties": false,
                                                    "description": "Complete buy fees and slippage for this tier; nothing is inherited from the task."
                                                  },
                                                  "high_tip": {
                                                    "type": "object",
                                                    "properties": {
                                                      "slippage_bps": {
                                                        "type": "integer",
                                                        "minimum": 0,
                                                        "maximum": 10000,
                                                        "description": "High-tip slippage in basis points; required by the capability check."
                                                      },
                                                      "priority_fee": {
                                                        "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/priority_fee",
                                                        "description": "High-tip priority fee: SOL on Solana, Gwei on EVM."
                                                      },
                                                      "landing_fee": {
                                                        "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/exec/properties/fee/properties/priority_fee",
                                                        "description": "High-tip landing tip in the chain native token. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In manual mode, use the higher of the normal and high-tip values to read these tiers."
                                                      }
                                                    },
                                                    "additionalProperties": false,
                                                    "description": "High-tip values for this tier; required when the task enables high_tip and forbidden otherwise."
                                                  }
                                                },
                                                "required": [
                                                  "fee"
                                                ],
                                                "additionalProperties": false,
                                                "description": "Buy execution values for this tier."
                                              }
                                            },
                                            "required": [
                                              "sizing",
                                              "exec"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "description": "Ordered buy tiers, 1..10; a leader buy that matches no tier is rejected."
                                        }
                                      },
                                      "required": [
                                        "mode",
                                        "tiers"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/do/properties/buy/properties/sizing/anyOf/3/properties/tiers/items/properties/sizing/anyOf/2"
                                    }
                                  ],
                                  "description": "Buy sizing."
                                },
                                "order": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "type": "string",
                                          "const": "market",
                                          "description": "Market order."
                                        }
                                      },
                                      "required": [
                                        "type"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "type": "string",
                                          "const": "limit",
                                          "description": "Limit order."
                                        },
                                        "trigger": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "basis": {
                                                  "type": "string",
                                                  "const": "price_usd",
                                                  "description": "Absolute USD price basis."
                                                },
                                                "value": {
                                                  "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/do/properties/buy/properties/sizing/anyOf/0/properties/amount",
                                                  "description": "Trigger price in USD."
                                                }
                                              },
                                              "required": [
                                                "basis",
                                                "value"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "basis": {
                                                  "type": "string",
                                                  "const": "signal_price",
                                                  "description": "Price relative to the leader's fill for the triggering trade: its average pool-side price in USD, excluding token transfer tax and the leader route's fee. When the fill cannot be determined, the market price when the signal arrived is used. A reverse buy uses the leader's average sell price."
                                                },
                                                "offset_bps": {
                                                  "type": "integer",
                                                  "description": "Price offset in basis points."
                                                }
                                              },
                                              "required": [
                                                "basis",
                                                "offset_bps"
                                              ],
                                              "additionalProperties": false
                                            }
                                          ],
                                          "description": "Limit trigger."
                                        },
                                        "expires_sec": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "description": "Limit order lifetime in seconds."
                                        }
                                      },
                                      "required": [
                                        "type",
                                        "trigger",
                                        "expires_sec"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ],
                                  "description": "Buy order definition."
                                },
                                "delay_ms": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "description": "Delay before buying in milliseconds."
                                }
                              },
                              "required": [
                                "sizing",
                                "order"
                              ],
                              "additionalProperties": false,
                              "description": "Buy action, only in contexts with buy capability."
                            },
                            "sell": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "string",
                                  "enum": [
                                    "all",
                                    "bps_of_remaining",
                                    "bps_of_initial",
                                    "leader_ratio"
                                  ],
                                  "description": "Sell sizing basis. For exit rules, all and bps_of_initial use this buy. For bps_of_remaining, ordinary exits use the current task position, staged exits use the remaining amount of this buy in the graph, and repeating trailing rules use this buy’s ladder remainder. Position guards support all and bps_of_initial."
                                },
                                "bps": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 10000,
                                  "description": "Fraction for bps_of_initial or bps_of_remaining; 10000 is 100%."
                                },
                                "leader_position": {
                                  "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/when/anyOf/0/properties/params/properties/leader_position",
                                  "description": "Leader position basis; execution support is catalog-defined."
                                },
                                "order": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "const": "market",
                                      "description": "Market order."
                                    }
                                  },
                                  "required": [
                                    "type"
                                  ],
                                  "additionalProperties": false,
                                  "description": "Sell order definition."
                                }
                              },
                              "required": [
                                "amount"
                              ],
                              "additionalProperties": false,
                              "description": "Sell action."
                            },
                            "goto": {
                              "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/tpsl_configs/items/properties/goto",
                              "description": "Later exit stage to enter after this action."
                            },
                            "pause": {
                              "type": "string",
                              "enum": [
                                "strategy",
                                "task"
                              ],
                              "description": "Pause target, where supported."
                            },
                            "notify": {
                              "type": "object",
                              "properties": {
                                "template": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128,
                                  "description": "Notification template ID."
                                }
                              },
                              "required": [
                                "template"
                              ],
                              "additionalProperties": false,
                              "description": "Notification action, where supported."
                            }
                          },
                          "additionalProperties": false,
                          "description": "Action when the condition holds; supported actions depend on the rule context."
                        },
                        "expiration": {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "exclusiveMinimum": 0,
                          "description": "Required positive rule lifetime in milliseconds."
                        },
                        "repeat": {
                          "type": "boolean",
                          "const": true,
                          "description": "Repeat this trailing sell as a ladder tier. Use bps_of_remaining, a distinct activation gain per tier, and no goto or stages. Only the highest reached tier fires."
                        }
                      },
                      "required": [
                        "id",
                        "when",
                        "do",
                        "expiration"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 1,
                    "maxItems": 20,
                    "description": "Conditional exit rules."
                  },
                  "segmented_take_profit_basis": {
                    "type": "string",
                    "const": "remaining",
                    "description": "Sell each price or timeout percentage from the amount remaining in this segmented group. Omit to use the bought amount."
                  },
                  "segmented_take_profit_configs": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "price_percentage": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991,
                          "description": "Segment price change in basis points."
                        },
                        "amount_percentage": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991,
                          "description": "Segment sell fraction in basis points."
                        },
                        "expiration": {
                          "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/tpsl_configs/items/properties/expiration"
                        },
                        "timeout_sell_enabled": {
                          "type": "boolean",
                          "description": "Whether to sell when this segment expires."
                        },
                        "timeout_amount_percentage": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991,
                          "description": "Timeout sell fraction in basis points."
                        }
                      },
                      "required": [
                        "price_percentage",
                        "amount_percentage",
                        "expiration",
                        "timeout_sell_enabled",
                        "timeout_amount_percentage"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 1,
                    "description": "Sequential take-profit segments."
                  },
                  "trailing_stop_config": {
                    "type": "object",
                    "properties": {
                      "threshold_bps": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991,
                        "description": "Gain needed to activate trailing protection, in basis points."
                      },
                      "stop_bps": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0,
                        "description": "Trailing distance below the high, in basis points."
                      },
                      "amount_percentage": {
                        "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/tpsl_configs/items/properties/amount_percentage"
                      },
                      "expiration": {
                        "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/tpsl_configs/items/properties/expiration"
                      },
                      "goto": {
                        "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/tpsl_configs/items/properties/goto",
                        "description": "Later stage to enter after execution."
                      }
                    },
                    "required": [
                      "threshold_bps",
                      "stop_bps",
                      "amount_percentage",
                      "expiration"
                    ],
                    "additionalProperties": false,
                    "description": "Trailing stop preset."
                  },
                  "break_even_stop_config": {
                    "type": "object",
                    "properties": {
                      "threshold_bps": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100000000,
                        "description": "Gain needed to activate break-even protection, in basis points."
                      },
                      "lock_bps": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991,
                        "description": "Locked gain in basis points; less than threshold_bps."
                      },
                      "amount_percentage": {
                        "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/tpsl_configs/items/properties/amount_percentage"
                      },
                      "expiration": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0,
                        "description": "Required positive break-even lifetime in milliseconds."
                      },
                      "goto": {
                        "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/tpsl_configs/items/properties/goto",
                        "description": "Later stage to enter after execution."
                      }
                    },
                    "required": [
                      "threshold_bps",
                      "lock_bps",
                      "amount_percentage",
                      "expiration"
                    ],
                    "additionalProperties": false,
                    "description": "Break-even stop preset."
                  },
                  "stages": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "tpsl_configs": {
                          "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/tpsl_configs"
                        },
                        "rules": {
                          "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules"
                        },
                        "segmented_take_profit_basis": {
                          "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/segmented_take_profit_basis"
                        },
                        "segmented_take_profit_configs": {
                          "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/segmented_take_profit_configs"
                        },
                        "trailing_stop_config": {
                          "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/trailing_stop_config"
                        },
                        "break_even_stop_config": {
                          "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/break_even_stop_config"
                        },
                        "id": {
                          "type": "string",
                          "pattern": "^[a-z0-9_]{1,32}$",
                          "description": "Stage ID referenced by goto."
                        },
                        "name": {
                          "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/rules/items/properties/name",
                          "description": "Optional stage display name."
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 1,
                    "maxItems": 7,
                    "description": "Later stages reachable through forward goto references."
                  },
                  "flash_sell_config": {
                    "type": "object",
                    "properties": {
                      "delay_ms": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 86400000,
                        "description": "Default delay from sending the buy, in milliseconds. Used for unknown gaps and unset tiers."
                      },
                      "same_block_delay_ms": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 86400000,
                        "description": "Delay for a buy landing in the same block (Solana slot) as the leader."
                      },
                      "next_block_delay_ms": {
                        "$ref": "#/components/schemas/AutoSellTaskCreate/properties/rule/properties/exits/properties/flash_sell_config/properties/same_block_delay_ms",
                        "description": "Delay for a buy landing one block (Solana slot) after the leader."
                      },
                      "amount_percentage": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 10000,
                        "description": "Sell fraction in basis points; 10000 is 100%."
                      }
                    },
                    "required": [
                      "delay_ms",
                      "amount_percentage"
                    ],
                    "additionalProperties": false,
                    "description": "Timed sell from buy send time. Either block-gap override selects the delay on our buy receipt. An elapsed deadline sells immediately. Cannot be combined with stages."
                  },
                  "dev_sell_config": {
                    "type": "object",
                    "properties": {
                      "sell_all_percentage": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 10000,
                        "description": "Creator sell threshold in basis points; 10000 is 100%. At or above it, sell all remaining; otherwise follow the creator sell proportion."
                      }
                    },
                    "required": [
                      "sell_all_percentage"
                    ],
                    "additionalProperties": false,
                    "description": "Sell when the token creator sells."
                  },
                  "migration_sell_config": {
                    "type": "object",
                    "properties": {
                      "sell_percentage": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 10000,
                        "description": "Fraction to sell on migration in basis points; 10000 is 100%."
                      }
                    },
                    "required": [
                      "sell_percentage"
                    ],
                    "additionalProperties": false,
                    "description": "Sell on token migration after a buy on a launch curve."
                  },
                  "anti_wick": {
                    "type": "boolean",
                    "description": "Anti-wick. Off (absent or false): on Solana, ordinary take profit, stop loss and the limit buys of the same strategy trigger as soon as a qualifying trade touches the trigger price and then sell or buy at market (trades that do not count: https://apm.fun/docs/copy-trading/strategy-settings#anti-wick), so the fill can differ from the trigger price. A limit buy is not triggered by single trades in the block it was placed in. On: they trigger only if the price still meets the condition at the end of the block (Solana slot), ignoring brief spikes and dips inside it. Segmented take profit, trailing and break-even stops and conditional exits always trigger on the end-of-block price, either way. No effect on BSC and Robinhood. Not an exit by itself: exits still need at least one exit."
                  }
                },
                "additionalProperties": false,
                "description": "Price/time exits plus dev_sell_config and migration_sell_config in the shared executor format. Both event exits use the rule in force when each buy happened, even after edits or pause. Migration sell applies only to buys on a launch curve. Dev sell is a listener and cannot be cancelled per order. Percentages are basis points (10000 = 100%); preset expiration/delay values are milliseconds. Conditions retain their catalog units, including within_sec in seconds. Empty is allowed while paused."
              },
              "sell": {
                "type": "object",
                "properties": {
                  "slippage_pct": {
                    "type": "string",
                    "description": "Sell-side max slippage, e.g. \"1\" = 1%; omit to retain the chain default on create or the stored value on PATCH."
                  },
                  "gas": {
                    "type": "object",
                    "properties": {
                      "priority_fee": {
                        "type": "string",
                        "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
                      },
                      "landing_fee": {
                        "type": "string",
                        "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
                      },
                      "auto_gas": {
                        "type": "boolean",
                        "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
                      },
                      "high_tip": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean",
                            "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                          },
                          "priority_fee": {
                            "type": "string",
                            "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                          },
                          "landing_fee": {
                            "type": "string",
                            "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                          }
                        },
                        "additionalProperties": false,
                        "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
                      },
                      "anti_mev": {
                        "type": "boolean",
                        "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
                      }
                    },
                    "additionalProperties": false,
                    "description": "Gas settings for buys and sells on this config."
                  }
                },
                "additionalProperties": false,
                "description": "Sell trade parameters for this item. Omit to use the chain defaults on create or keep the stored parameters on PATCH. Given sub-fields override that base."
              }
            },
            "required": [
              "scope",
              "exits"
            ],
            "additionalProperties": false,
            "description": "Protection rule for future buys. Existing protection orders keep their original rules."
          },
          "move_wallets": {
            "type": "boolean",
            "default": false,
            "description": "Explicitly move selected wallets from other items in the same atomic write. False returns a conflict. Selecting a wallet covered by the default item needs no move, but takes it out of the default item at once (see wallets)."
          },
          "chain": {
            "type": "string",
            "enum": [
              "solana",
              "bsc",
              "robinhood"
            ],
            "description": "Chain on which the auto sell item operates. Immutable after creation."
          }
        },
        "required": [
          "name",
          "covers_new_wallets",
          "wallets",
          "rule",
          "chain"
        ],
        "additionalProperties": false
      },
      "ErrorEnvelope": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code.",
                "example": "insufficient_scope"
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation of the error."
              },
              "total": {
                "type": "number",
                "description": "Number of distinct blacklisted wallets the account would have on this chain after saving."
              },
              "limit": {
                "type": "number",
                "description": "Maximum distinct blacklisted wallets per account on this chain."
              },
              "details": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "field": {
                      "type": "string",
                      "description": "Request field this issue refers to, or a dotted path such as buy.amount."
                    },
                    "reason": {
                      "type": "string",
                      "description": "Why that field was rejected."
                    },
                    "code": {
                      "type": "string",
                      "description": "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."
                    }
                  },
                  "required": [
                    "field",
                    "reason"
                  ]
                },
                "description": "Only present when at least one field-level validation issue exists."
              }
            },
            "required": [
              "code",
              "message"
            ],
            "description": "Why the request failed."
          },
          "meta": {
            "type": "object",
            "properties": {
              "request_id": {
                "type": "string",
                "description": "Id of this request. Also sent as the X-Request-Id response header.",
                "example": "req_k3j2h1g4f5d6s7a8q9w0"
              }
            },
            "required": [
              "request_id"
            ],
            "description": "Request id for this failure."
          }
        },
        "required": [
          "error",
          "meta"
        ]
      },
      "Me": {
        "type": "object",
        "properties": {
          "token_prefix": {
            "type": "string",
            "description": "Public prefix of the calling API token. The secret half is never returned."
          },
          "token_version": {
            "type": "number",
            "description": "Version of this token. Incremented when the token is rotated."
          },
          "policy_version": {
            "type": "number",
            "description": "Version of the token policy (scopes and IP rules) currently in force."
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Scopes this token was created with. Each operation requires one of its declared scopes."
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "When the token expires, RFC 3339 UTC. Null when the token does not expire."
          },
          "quota": {
            "type": "object",
            "properties": {
              "max": {
                "type": "number",
                "description": "How many Copy Trading plus Sniper configs this account may hold."
              },
              "used": {
                "type": "number",
                "description": "How many of those configs the account currently holds."
              },
              "remaining": {
                "type": "number",
                "description": "max minus used. A create fails with configuration_quota_exceeded when this is 0."
              }
            },
            "required": [
              "max",
              "used",
              "remaining"
            ],
            "description": "Account-wide configuration quota shared by Copy Trading and Sniper."
          }
        },
        "required": [
          "token_prefix",
          "token_version",
          "policy_version",
          "scopes",
          "expires_at",
          "quota"
        ],
        "description": "Identity of the calling token and the account configuration quota."
      },
      "WalletList": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "wallet_id": {
              "type": "string",
              "description": "Use as wallet_id when creating Copy Trade / Sniper configs on this chain."
            },
            "name": {
              "type": "string",
              "description": "Display name set on the wallet. Empty when the wallet has none."
            },
            "chain": {
              "type": "string",
              "enum": [
                "bsc",
                "robinhood",
                "solana"
              ],
              "description": "Chain this wallet row is for. EVM wallets appear on the enabled chains bsc, robinhood; Solana wallets appear only on Solana."
            },
            "address": {
              "type": "string",
              "description": "On-chain address of the custodial wallet."
            },
            "status": {
              "type": "string",
              "enum": [
                "available",
                "unavailable"
              ],
              "description": "available: the wallet can be used on this chain. unavailable: it has been deactivated."
            }
          },
          "required": [
            "wallet_id",
            "name",
            "chain",
            "address",
            "status"
          ],
          "additionalProperties": false,
          "description": "One custodial wallet on one chain."
        }
      },
      "CopyTradeConfigInput": {
        "type": "object",
        "properties": {
          "chain": {
            "type": "string",
            "enum": [
              "bsc",
              "robinhood",
              "solana"
            ],
            "description": "Chain this config runs on. Supports the enabled chains bsc, robinhood, solana. Immutable once created."
          },
          "wallet_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "Custodial wallet id from GET /v1/wallets. Create only: send exactly one of wallet_id or wallet_ids, never both. wallet_id is shorthand for wallet_ids with one entry. Immutable once created."
          },
          "wallet_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "minItems": 1,
            "maxItems": 20,
            "description": "Custodial wallet ids from GET /v1/wallets that all execute this config. 1 to 20 entries, no duplicates, every wallet must belong to you, be active and match the chain. Create only: send exactly one of wallet_ids or wallet_id, never both. Immutable once created; the list cannot be changed with PATCH."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "Caller-assigned label for the config."
          },
          "slippage_pct": {
            "type": "string",
            "default": "20",
            "description": "Max slippage for buys, e.g. \"1\" = 1%. Default \"20\". Flash Sell, Dev Sell and Migration Sell share it unless sell.slippage_pct is set. In tiers mode, set buy slippage in buy.tiers[].gas.slippage_pct and any sell override in sell.slippage_pct."
          },
          "gas": {
            "type": "object",
            "properties": {
              "priority_fee": {
                "type": "string",
                "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
              },
              "landing_fee": {
                "type": "string",
                "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
              },
              "auto_gas": {
                "type": "boolean",
                "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
              },
              "high_tip": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                  },
                  "priority_fee": {
                    "type": "string",
                    "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                  },
                  "landing_fee": {
                    "type": "string",
                    "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                  }
                },
                "additionalProperties": false,
                "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
              },
              "anti_mev": {
                "type": "boolean",
                "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
              }
            },
            "default": {},
            "additionalProperties": false,
            "description": "Task gas settings. In tiers mode, set buy priority fees and landing tips, including high-tip values, in buy.tiers[].gas; the one exception is high_tip.priority_fee and high_tip.landing_fee sent with the PATCH that turns high_tip.enabled on without a buy.tiers table, which seed every tier. Use sell.gas for sell fees. anti_mev, high_tip.enabled and any supported task-level auto_gas remain task settings."
          },
          "sell": {
            "type": "object",
            "properties": {
              "slippage_pct": {
                "type": "string",
                "description": "Sell-side max slippage, e.g. \"1\" = 1%; omit to use the top-level slippage_pct. Only Flash Sell (exit.timed_sell, with the value stored when the buy armed it), Dev Sell (exit.dev_sell) and Migration Sell (exit.migration_sell) use it. Copy sells (including follow_sell.transfer_out), take profit, stop loss, trailing stop, segmented take profit (including its timeout sells), sales triggered by a confirmed earlier buy from a listed wallet (forward copy trades only) and the position close of a pause or delete with close_position=true are sent at maximum slippage whatever this value is."
              },
              "gas": {
                "type": "object",
                "properties": {
                  "priority_fee": {
                    "type": "string",
                    "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
                  },
                  "landing_fee": {
                    "type": "string",
                    "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
                  },
                  "auto_gas": {
                    "type": "boolean",
                    "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
                  },
                  "high_tip": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                      },
                      "priority_fee": {
                        "type": "string",
                        "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                      },
                      "landing_fee": {
                        "type": "string",
                        "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                      }
                    },
                    "additionalProperties": false,
                    "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
                  },
                  "anti_mev": {
                    "type": "boolean",
                    "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
                  }
                },
                "additionalProperties": false,
                "description": "Sell-side gas settings, same fields, units and per-chain limits as the top-level gas. Each field given here overrides the same top-level gas field for sells and exits only; fields you omit use the top-level gas value (on PATCH: keep the stored sell value)."
              }
            },
            "additionalProperties": false,
            "description": "Optional sell-side override. Without it the sell side takes the top-level slippage_pct and gas; sell.slippage_pct lists which sells use a sell slippage. Sell values given here win over the top-level ones. In PATCH, only the sub-fields you send change the sell side; send null for the whole sell object to make the sell side mirror the buy side again."
          },
          "exit": {
            "type": "object",
            "properties": {
              "take_profit": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "amount_basis": {
                      "type": "string",
                      "enum": [
                        "initial",
                        "remaining"
                      ],
                      "description": "Use the bought amount (default) or the amount remaining at trigger time."
                    },
                    "gain_pct": {
                      "type": "string",
                      "description": "Price rise that triggers this take-profit. \"1\" = 1%."
                    },
                    "sell_pct": {
                      "type": "string",
                      "description": "Share of the position to sell when gain_pct is reached. \"1\" = 1%. If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                    },
                    "expires_in_sec": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 31536000,
                      "default": 259200,
                      "description": "How long this entry stays armed, in seconds. Default 259200 (3 days). After that it stops applying and does not sell."
                    }
                  },
                  "required": [
                    "gain_pct",
                    "sell_pct"
                  ],
                  "additionalProperties": false,
                  "description": "One take-profit level."
                },
                "maxItems": 20,
                "default": [],
                "description": "Up to 20 take-profit levels. Each sells sell_pct of the position when price is up gain_pct. An expired entry stops applying and does not sell."
              },
              "segmented_take_profit": {
                "type": "object",
                "properties": {
                  "amount_basis": {
                    "type": "string",
                    "enum": [
                      "initial",
                      "remaining"
                    ],
                    "description": "Use the bought amount (default) or the amount remaining at trigger time."
                  },
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether segmented take-profit is active. Turning it off keeps the saved segments. At least one segment is required when this is true. Disable with enabled=false, never with null."
                  },
                  "segments": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "gain_pct": {
                          "type": "string",
                          "description": "Rise of this segment, added to the rises of the segments before it, as a percent of the buy price: segment n triggers at buy price × (1 + the gain_pct of segments 1 to n). \"1\" = 1%."
                        },
                        "sell_pct": {
                          "type": "string",
                          "description": "Share of the group’s selected amount basis to sell when price reaches this segment's trigger price. Capped at what is left. \"1\" = 1%. If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                        },
                        "expires_in_ms": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 31536000000,
                          "default": 0,
                          "description": "Lifetime of this segment in milliseconds. Omit or set 0 for no timeout; PATCH replaces the segments array, so an omitted lifetime in a replacement segment resets to 0. The first segment's lifetime starts when the buy is sent; each later segment's starts when the previous segment ends. When a positive lifetime runs out before the trigger price is reached and timeout_sell is enabled, timeout_sell.sell_pct is sold. This is not take_profit: an expired take_profit entry simply stops applying."
                        },
                        "timeout_sell": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "default": false,
                              "description": "Sell when this segment's lifetime runs out before its trigger price is reached."
                            },
                            "sell_pct": {
                              "type": "string",
                              "default": "100",
                              "description": "Share of the group’s selected amount basis to sell on timeout. Capped at what is left. \"1\" = 1%. Default \"100\"."
                            }
                          },
                          "default": {},
                          "additionalProperties": false,
                          "description": "Sell that fires when this segment expires before its trigger price."
                        }
                      },
                      "required": [
                        "gain_pct",
                        "sell_pct"
                      ],
                      "additionalProperties": false,
                      "description": "One segmented take-profit level, with its own lifetime and timeout sell."
                    },
                    "maxItems": 20,
                    "default": [],
                    "description": "Up to 20 segments, run in order: only the current segment waits, and the next one starts after its sell fills. The last segment repeats until the position is sold. They are reported even while enabled is false, so an edit returns them unchanged."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Segmented take-profit. Segments run in order, their rises add up from the buy price, and each has its own lifetime and timeout sell. Lifetimes are milliseconds."
              },
              "stop_loss": {
                "type": "object",
                "properties": {
                  "amount_basis": {
                    "type": "string",
                    "enum": [
                      "initial",
                      "remaining"
                    ],
                    "description": "Use the bought amount (default) or the amount remaining at trigger time."
                  },
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether the stop-loss is armed. Turn it off with enabled=false, never with null."
                  },
                  "loss_pct": {
                    "type": "string",
                    "description": "Drop from entry that triggers the sell. \"1\" = 1%. Required when enabled is true."
                  },
                  "sell_pct": {
                    "type": "string",
                    "default": "100",
                    "description": "Share of the position to sell. \"1\" = 1%. Default \"100\". If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                  },
                  "expires_in_sec": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31536000,
                    "default": 259200,
                    "description": "How long the stop-loss stays armed, in seconds. Default 259200 (3 days)."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Stop-loss. Disable with enabled=false, never with null."
              },
              "trailing": {
                "type": "object",
                "properties": {
                  "amount_basis": {
                    "type": "string",
                    "enum": [
                      "initial",
                      "remaining"
                    ],
                    "description": "Use the bought amount (default) or the amount remaining at trigger time."
                  },
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether the trailing stop is armed. Turn it off with enabled=false, never with null."
                  },
                  "activation_gain_pct": {
                    "type": "string",
                    "default": "0",
                    "description": "Rise that arms the trailing stop. \"0\" arms it immediately. \"1\" = 1%."
                  },
                  "drop_pct": {
                    "type": "string",
                    "description": "Drop from the high-water mark that triggers the sell. \"1\" = 1%. Required when enabled is true."
                  },
                  "sell_pct": {
                    "type": "string",
                    "default": "100",
                    "description": "Share of the position to sell. \"1\" = 1%. Default \"100\". If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                  },
                  "expires_in_sec": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31536000,
                    "default": 259200,
                    "description": "How long the trailing stop stays armed, in seconds. Default 259200 (3 days)."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Trailing stop. Disable with enabled=false, never with null."
              },
              "timed_sell": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether the timed sell is armed. Turn it off with enabled=false, never with null."
                  },
                  "same_block_delay_ms": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 86400000,
                    "description": "Delay for a buy landing in the same block (Solana slot) as the leader."
                  },
                  "next_block_delay_ms": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 86400000,
                    "description": "Delay for a buy landing one block (Solana slot) after the leader."
                  },
                  "after_sec": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 86400,
                    "description": "Delay in whole seconds from the first actual buy write, up to 86400. Best effort: approval, nonce ordering and available funds can delay the sell, and a restart before the intent is saved can lose it."
                  },
                  "after_ms": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 86400000,
                    "description": "Millisecond form of after_sec, for delays under a second (up to 86400000). Responses carry both; after_ms is exact and wins when a request sends both."
                  },
                  "sell_pct": {
                    "type": "string",
                    "default": "100",
                    "description": "Share of the position to sell. \"1\" = 1%. Default \"100\"."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Timed sell. When either block-gap delay is set, the buy receipt selects the delay. Unset tiers, gaps of two or more and unknown gaps use the default delay. A deadline already past triggers at the receipt. When enabled, after_sec or after_ms is required. Disable with enabled=false, never with null."
              },
              "dev_sell": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether this option is on. Turn an object option off with enabled=false, never with null."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Sell the same fraction of this position that the token developer sold of theirs. This API does not set the full-exit threshold; the stored default sells the whole position once the developer sells their entire balance."
              },
              "migration_sell": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether this option is on. Turn an object option off with enabled=false, never with null."
                  },
                  "sell_pct": {
                    "type": "string",
                    "default": "100",
                    "description": "Share of the remaining position to sell on migration, from 0.01 to 100 percent. \"1\" = 1%. Default \"100\". If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "On Robinhood, BSC and Solana Cell tasks, sell the configured share after a token migrates to an AMM, once per task, wallet and token. Applies only to positions bought on the bonding curve while enabled; uses the task sell settings. Arc accepts and stores this rule without execution: Arc launchpads (Argus, O1, Pools) issue directly on AMMs with no migration event."
              },
              "anti_wick": {
                "type": "boolean",
                "default": false,
                "description": "Anti-wick. Off (absent or false): on Solana, ordinary take profit, stop loss and the limit buys of the same strategy trigger as soon as a qualifying trade touches the trigger price and then sell or buy at market (trades that do not count: https://apm.fun/docs/copy-trading/strategy-settings#anti-wick), so the fill can differ from the trigger price. A limit buy is not triggered by single trades in the block it was placed in. On: they trigger only if the price still meets the condition at the end of the block (Solana slot), ignoring brief spikes and dips inside it. Segmented take profit, trailing and break-even stops and conditional exits always trigger on the end-of-block price, either way. No effect on BSC and Robinhood. Not an exit by itself: exits still need at least one exit."
              }
            },
            "default": {},
            "additionalProperties": false,
            "description": "Automatic exit rules for a position opened by this config."
          },
          "price_strategy": {
            "type": "string",
            "enum": [
              "protected",
              "speed_first"
            ],
            "default": "protected",
            "description": "Deprecated: accepted, but execution ignores it, and configs stored as strategy tasks (every config created since the TaskSpec migration) read back protected. The copy-buy price strategy is advanced.leader_fill_buy_slippage (false is speed first, true is price protection); advanced.leader_fill_sell_slippage is deprecated too."
          },
          "leaders": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string",
                  "enum": [
                    "wallet",
                    "fomo"
                  ],
                  "description": "wallet: copy an address. fomo: copy one FOMO handle. A fomo leader must be the only leader on the config."
                },
                "ref": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "description": "For source wallet, a Solana base58 address or an EVM address on the selected chain. For source fomo, a handle (letters, digits, \"_\", \".\", \"-\"; optional leading \"@\"). A wallet cannot follow itself, and the same wallet cannot be listed twice. EVM wallet leaders with publicly known private keys (the 20 default Hardhat/Anvil accounts) are rejected."
                }
              },
              "required": [
                "source",
                "ref"
              ],
              "additionalProperties": false,
              "description": "One leader to copy."
            },
            "minItems": 1,
            "maxItems": 2000,
            "description": "Who to copy. 1 to 2000 entries. PATCH replaces the complete wallet leaders array on ordinary wallet-copy configs; omit to keep it. FOMO/Pump bindings and source changes cannot be edited through leaders. source wallet: ref is an address on the selected chain. source fomo: ref is one FOMO handle (bare or @handle), resolved to its wallet on the chain at creation, and it must be the only leader. Responses add resolved_wallet."
          },
          "buy": {
            "type": "object",
            "properties": {
              "mode": {
                "type": "string",
                "enum": [
                  "fixed",
                  "ratio",
                  "copy",
                  "dynamic",
                  "tiers"
                ],
                "default": "ratio",
                "description": "fixed spends amount of the native token each buy (amount is required). ratio multiplies the leader amount by ratio (\"1\" = the same size). copy mirrors the leader native amount and rejects amount and ratio. dynamic buys max_per_trade minus the leader buy amount converted to native tokens. A zero result or a leader buy at or above the cap rejects with buy_dynamic_cap_reached. tiers sizes each buy using the first matching entry in tiers. Default ratio."
              },
              "amount": {
                "type": "string",
                "description": "Native-token amount per buy. Required when mode is fixed. Decimal string, up to 18 decimal places."
              },
              "ratio": {
                "type": "string",
                "description": "Multiplier of the leader amount when mode is ratio. \"1\" = the same size. Up to 4 decimal places, maximum \"100\"."
              },
              "max_per_trade": {
                "type": "string",
                "description": "Cap on one buy, in the native token. Required in dynamic mode. Decimal string."
              },
              "tiers": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "market_cap": {
                      "type": "object",
                      "properties": {
                        "min_usd": {
                          "type": "string",
                          "description": "Inclusive lower bound in USD. Omit or send \"0\" for no lower bound."
                        },
                        "max_usd": {
                          "type": "string",
                          "description": "Inclusive upper bound in USD. Omit or send \"0\" for no upper bound."
                        }
                      },
                      "additionalProperties": false,
                      "description": "Leader buy fill market cap window. A tier without either bound is a fallback and can only be last."
                    },
                    "mode": {
                      "type": "string",
                      "enum": [
                        "fixed",
                        "ratio",
                        "dynamic"
                      ],
                      "description": "fixed uses amount. ratio uses ratio and can cap it with max_per_trade. dynamic buys max_per_trade minus the leader buy amount converted to native tokens."
                    },
                    "amount": {
                      "type": "string",
                      "description": "Native-token amount for this tier, required in fixed mode."
                    },
                    "ratio": {
                      "type": "string",
                      "description": "Leader buy size multiplier for this tier, required in ratio mode. \"1\" = the same size."
                    },
                    "max_per_trade": {
                      "type": "string",
                      "description": "Native-token cap, required for dynamic and optional for ratio."
                    },
                    "gas": {
                      "type": "object",
                      "properties": {
                        "slippage_pct": {
                          "type": "string",
                          "description": "Buy slippage for this fee lane. \"1\" = 1%."
                        },
                        "priority_fee": {
                          "type": "string",
                          "description": "Priority fee as a decimal string in SOL on Solana or Gwei on EVM."
                        },
                        "landing_fee": {
                          "type": "string",
                          "description": "Landing tip as a decimal string in the native token. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings."
                        },
                        "auto_gas": {
                          "type": "boolean",
                          "description": "Automatic gas estimation on EVM. On Solana use buy_fee_auto."
                        },
                        "high_tip": {
                          "type": "object",
                          "properties": {
                            "slippage_pct": {
                              "type": "string",
                              "description": "Buy slippage for this fee lane. \"1\" = 1%."
                            },
                            "priority_fee": {
                              "type": "string",
                              "description": "Priority fee as a decimal string in SOL on Solana or Gwei on EVM."
                            },
                            "landing_fee": {
                              "type": "string",
                              "description": "Landing tip as a decimal string in the native token. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings."
                            }
                          },
                          "required": [
                            "slippage_pct",
                            "priority_fee",
                            "landing_fee"
                          ],
                          "additionalProperties": false,
                          "description": "This tier’s high-tip slippage, priority fee and landing tip. Required on every tier when task gas.high_tip.enabled is true, and must be omitted otherwise."
                        }
                      },
                      "required": [
                        "slippage_pct",
                        "priority_fee",
                        "landing_fee"
                      ],
                      "additionalProperties": false,
                      "description": "Complete buy fees and slippage for this tier. Each tier supplies its own values. Anti-MEV and the high-tip switch are set on the task."
                    },
                    "buy_fee_auto": {
                      "type": "boolean",
                      "description": "Solana only. Use automatic fee splitting for this tier when the task high-tip lane is off. Read tip tiers using the combined priority fee and tip budget."
                    },
                    "buy_fee_tip_first": {
                      "type": "boolean",
                      "description": "Solana only. Use tip-first splitting for this tier in automatic fee mode."
                    },
                    "buy_fee_tip_first_min": {
                      "type": "boolean",
                      "description": "Solana only. Stored for compatibility and has no execution effect."
                    },
                    "buy_landing_fee_bps": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "Solana only. Budget for the two fees combined, in basis points of this buy’s SOL principal. A positive ratio requires auto fees with the task high-tip lane off. Omit or use 0 for fixed fees."
                    },
                    "buy_landing_fee_min": {
                      "type": "string",
                      "description": "Minimum total automatic landing fee in SOL. Requires buy_landing_fee_bps."
                    },
                    "buy_landing_fee_max": {
                      "type": "string",
                      "description": "Maximum total automatic landing fee in SOL. Requires buy_landing_fee_bps. Omit or send \"0\" for no cap."
                    },
                    "buy_slippage_sol": {
                      "type": "number",
                      "minimum": 0.1,
                      "description": "Solana only. Amount of SOL bought ahead of this tier’s buy, measured from the pool after the leader fill. Minimum 0.1 SOL, at most 9 decimals. Replaces percentage slippage on both fee lanes."
                    }
                  },
                  "required": [
                    "mode",
                    "gas"
                  ],
                  "additionalProperties": false
                },
                "minItems": 1,
                "maxItems": 10,
                "description": "Required in tiers mode for forward copy buys. Supply 1 to 10 tiers in match order; the first matching tier wins and both USD bounds are inclusive. Each tier supplies its own sizing, fees and slippage. Selection uses the leader buy fill market cap. EVM Speed first uses the resident market cap before the leader’s buy if the fill has not landed. A buy with no match is rejected as buy_tier_no_match. If the market cap is unavailable, Speed first rejects as buy_tier_market_cap_unknown and Price protection reads once more before rejecting with the same code. PATCH replaces the entire array when supplied and clears it when switching to another mode."
              },
              "delay_ms": {
                "type": "integer",
                "minimum": 0,
                "maximum": 86400000,
                "description": "Wait this many milliseconds after a copy signal before buying, an integer from 0 to 86400000 (24 hours). 0 means no delay and is not echoed back; responses include delay_ms only when it is above 0. Omit to leave unset on create and unchanged on PATCH."
              }
            },
            "default": {},
            "additionalProperties": false,
            "description": "How much to buy when a leader buys."
          },
          "dedupe": {
            "type": "object",
            "properties": {
              "first_buy_only": {
                "type": "boolean",
                "default": false,
                "description": "Only copy a leader's first buy of a token within first_buy_window_minutes (360 minutes when omitted). A later buy outside the window can add to an existing position; set block_if_held to skip tokens this wallet already holds."
              },
              "first_buy_window_minutes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 720,
                "description": "First-buy lookback in whole minutes, 0–720. Omit for the executor default of 360 minutes. 0 ignores the leader's buy history but still blocks another copy while the first is in flight. Reverse tasks do not use this window."
              },
              "block_if_held": {
                "type": "boolean",
                "default": false,
                "description": "Skip the buy when this wallet already holds the token."
              }
            },
            "default": {},
            "additionalProperties": false,
            "description": "Skip repeat buys of a token."
          },
          "group_follow": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "boolean",
                "default": false,
                "description": "Whether this option is on. Turn an object option off with enabled=false, never with null."
              }
            },
            "default": {},
            "additionalProperties": false,
            "description": "Treat all leader wallets as one portfolio for stateful buy filters and for copy sells when follow_sell.scope is bundle."
          },
          "reverse_buy": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "boolean",
                "default": false,
                "description": "Whether this option is on. Turn an object option off with enabled=false, never with null."
              },
              "min_leader_first_buy": {
                "type": "string",
                "description": "Inclusive minimum for the leader wallet’s first buy in the sold token’s current holding round. Decimal string in SOL, BNB or ETH. Omit or use \"0\" for no lower bound. A positive value requires reverse_buy.enabled. Unknown first-buy amounts skip entry."
              },
              "max_leader_first_buy": {
                "type": "string",
                "description": "Inclusive maximum for the leader wallet’s first buy in the sold token’s current holding round. Decimal string in SOL, BNB or ETH. Omit or use \"0\" for no upper bound. A positive value requires reverse_buy.enabled and must be at least the minimum."
              },
              "min_leader_sell_pct": {
                "type": "string",
                "description": "Only for Buy on Sell (reverse_buy). Buy only when the leader sale reaches at least this share of the leader position before the sale. \"1\" = 1%, up to 2 decimal places, maximum \"100\". Omit or \"0\" for no limit. On solana the share is computed over the target token accounts involved in the transaction. A non-zero value is rejected while enabled is false; PATCH that turns reverse_buy off clears the stored value."
              }
            },
            "default": {},
            "additionalProperties": false,
            "description": "Buy on Sell: buy when the leader sells; their buys are ignored, and their sells are not copied (follow_sell has no effect while this is on). Exit with take-profit, stop-loss or other sell settings."
          },
          "filters": {
            "type": "object",
            "properties": {
              "prior_buyer_blacklist": {
                "type": "object",
                "properties": {
                  "sell_on_late_discovery": {
                    "type": "boolean",
                    "description": "Set filters.prior_buyer_blacklist.sell_on_late_discovery to true to sell this buy if the task later confirms a listed wallet bought the token before the leader. This automatic exit is sent at maximum slippage and uses the task's sell settings for fees, tip and gas. Omit it on create and a buy that gets through is not sold by this rule. Omit it on update to keep the saved setting."
                  },
                  "addresses": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "minItems": 1,
                    "maxItems": 200,
                    "description": "1–200 wallet addresses on the task chain. Across all running and paused tasks on the same chain, an account may list up to 5000 distinct wallets. Exceeding this limit returns 400 prior_buyers_wallet_limit with total and limit."
                  },
                  "window_sec": {
                    "type": "integer",
                    "minimum": 60,
                    "maximum": 43200,
                    "description": "Lookback before each leader buy, in seconds: 60–43200 in steps of 60. For each listed wallet, the task looks back over the window you set or the last 5,000 distinct tokens it bought, whichever comes first."
                  }
                },
                "required": [
                  "addresses",
                  "window_sec"
                ],
                "additionalProperties": false,
                "description": "Skip a forward copy buy if the task has already seen a listed wallet buy the token within the lookback before this leader buy. When a listed wallet and the leader buy almost at the same time, the task may occasionally copy the leader’s buy because it has not yet seen the listed wallet’s purchase or cannot tell which came first."
              }
            },
            "additionalProperties": false,
            "description": "Forward copy-buy filters."
          },
          "buy_filter": {
            "type": "object",
            "properties": {
              "amount": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply the leader buy-size window. When true, min or max is required."
                  },
                  "min": {
                    "type": "string",
                    "description": "Smallest leader buy to copy, in the native token. When reverse_buy.enabled is true, this is the minimum native-token amount the leader receives from this sell. Decimal string. Zero is allowed."
                  },
                  "max": {
                    "type": "string",
                    "description": "Largest leader buy to copy, in the native token. When reverse_buy.enabled is true, this is the maximum native-token amount the leader receives from this sell. Decimal string. Zero is allowed."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Only copy leader buys whose native-token size falls inside this window."
              },
              "market_cap": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply the market-cap window. When true, min_usd or max_usd is required."
                  },
                  "min_usd": {
                    "type": "string",
                    "description": "Smallest token market cap to copy, in USD. Decimal string, up to 2 decimal places."
                  },
                  "max_usd": {
                    "type": "string",
                    "description": "Largest token market cap to copy, in USD. Decimal string, up to 2 decimal places."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Only copy buys of tokens inside this USD market-cap window."
              },
              "dex": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Only copy buys on the DEXes in allowed. An enabled filter with an empty list is rejected, because it would block every buy."
                  },
                  "allowed": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    },
                    "maxItems": 32,
                    "description": "DEX allowlist. On Solana, Pump has normal/Mayhem/Cashback children: pumpfun-normal/pumpfun-mayhem/pumpfun-cashback. Select venues pumpfun/pumpfun-amm plus allowed modes; no modes means all. Both flags require both modes; direct PumpSwap pools are normal. Pre-change lists containing pumpfun-mayhem without pumpfun-normal or pumpfun-cashback now mean Mayhem only; existing tasks are migrated. Mode values without either Pump venue imply both Pump venues. Other Solana venues: raydium-amm, raydium-clmm, raydium-cpmm, raydium-launchpad, pancakeswap-clmm, orca-whirlpool, meteora-dbc, meteora-dlmm, meteora-damm, meteora-damm-v2; other covers missing or unknown venue identities. Solana matches the venue where the leader bought the token: selecting only Pump does not copy buys on Pump AMM after graduation. DEX filtering applies only to buys; already-held tokens can still be sold after graduation. Quote classes use quote_class_filter; stocks OR cashback requires two tasks. At most 32. Required when enabled is true. While enabled is false the list is not applied and responses show the chain's full current DEX list, so a PATCH that only sets enabled to true starts from that full list."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Restrict copied buys to selected DEXes."
              },
              "token_blacklist": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Never buy the tokens in addresses. addresses is required when this is true."
                  },
                  "addresses": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "maxItems": 500,
                    "description": "Token addresses to skip. At most 500."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Token blacklist."
              },
              "per_token_buy_limit": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply limit. limit is required when this is true."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000,
                    "description": "Positive integer cap, at most 100000."
                  },
                  "count_failed": {
                    "type": "boolean",
                    "default": false,
                    "description": "Count each sent follow buy once even if it reverts, never lands or its broadcast fails. Signals filtered before sending never count. By default a failed buy frees its slot."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Maximum buys of one token per leader, shared across leaders in Grouped Copy. Sell monitoring is unaffected."
              },
              "fail_guard": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Whether consecutive broadcast buy failures pause buying. Slippage failures count. Defaults to off."
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100,
                    "description": "Consecutive failed broadcast buys required to pause buying (1 to 100)."
                  },
                  "within_sec": {
                    "type": "integer",
                    "minimum": 60,
                    "maximum": 86400,
                    "description": "Rolling window in seconds, from 60 to 86400 in whole minutes."
                  }
                },
                "required": [
                  "enabled",
                  "count",
                  "within_sec"
                ],
                "additionalProperties": false,
                "description": "Consecutive broadcast buy failures, including slippage. Disabled by default; initial threshold is four failures in 3600 seconds."
              },
              "stop_after_follows": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether this option is on. Turn an object option off with enabled=false, never with null."
                  },
                  "count": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "description": "Positive number of successfully followed leader transactions. Required when enabled. Disabling clears the threshold."
                  }
                },
                "additionalProperties": false,
                "description": "On Solana, BSC and Robinhood, pause new buys after count distinct leader transactions produce positive buy fills in this run. Multiple wallets following one transaction count once. Reverse copies and later fills of leader-triggered strategy limits count. Manual buys, manual limits and snipes do not. The task stays enabled and sells continue. Checks occur at signal intake and before sending. In-flight orders can overshoot: even with count=1, two buys can fill. Re-enabling starts at zero; a same-run executor restart preserves the count."
              },
              "per_leader_token_limit": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply limit. limit is required when this is true."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000,
                    "description": "Positive integer cap, at most 100000."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Maximum distinct tokens to buy per leader. When every leader on every wallet reaches the cap for every buy entry, pause buys (run_state: buy_paused, reason: leader_token_limit); sells and exits continue. Counts persist across reopening: raise the limit or turn off this filter, then reopen. Otherwise the task pauses again."
              },
              "quick_sell_ban": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Ban a leader who sells too soon after a buy this task copied and filled. threshold_sec and ban_sec are required when this is true."
                  },
                  "threshold_sec": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 86400,
                    "description": "A leader who sells within this many seconds of a buy this task copied and filled is banned; skipped or unfilled copies do not count. At most 86400."
                  },
                  "ban_sec": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2592000,
                    "description": "How long the ban lasts, in seconds. At most 30 days."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Temporarily stop copying a leader who dumps right after a buy this task copied and filled."
              },
              "token_age": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply the token-age window. When true, min_sec or max_sec is required."
                  },
                  "min_sec": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 31536000,
                    "description": "Minimum token age to copy, in whole seconds since the token's first pool or launch. 0 is allowed. Maximum 31536000 (1 year)."
                  },
                  "max_sec": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 31536000,
                    "description": "Maximum token age to copy, in whole seconds since the token's first pool or launch. 0 is allowed. Maximum 31536000 (1 year)."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Only copy buys of tokens whose age (seconds since first pool or launch) falls inside this window. 0 on either side means no limit on that side; when both are set, max_sec must be greater than min_sec. Supported on bsc, robinhood, arc and solana. On solana the age counts from the token's launchpad creation only, and a token with no launch record counts as older than any limit (it passes min_sec and fails max_sec). A buy whose token birth cannot be found is skipped."
              },
              "rug_leader_ban": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Stop following a leader once its buys have led this config into pools whose liquidity was later pulled (rug pulls) threshold times. Turning it off resets the counts. Supported on bsc, robinhood, arc and solana."
                  },
                  "threshold": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10,
                    "description": "Number of rug pulls that bans a leader, an integer from 1 to 10. When omitted the execution engine uses 1. PATCH keeps the stored value when omitted, including while enabled is false."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Stop copying a leader whose buys keep ending in pulled liquidity."
              }
            },
            "default": {},
            "additionalProperties": false,
            "description": "Conditions that skip a leader buy."
          },
          "follow_sell": {
            "type": "object",
            "properties": {
              "gas": {
                "type": "object",
                "properties": {
                  "priority_fee": {
                    "type": "string",
                    "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
                  },
                  "landing_fee": {
                    "type": "string",
                    "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
                  },
                  "auto_gas": {
                    "type": "boolean",
                    "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
                  },
                  "high_tip": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                      },
                      "priority_fee": {
                        "type": "string",
                        "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                      },
                      "landing_fee": {
                        "type": "string",
                        "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                      }
                    },
                    "additionalProperties": false,
                    "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
                  },
                  "anti_mev": {
                    "type": "boolean",
                    "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
                  }
                },
                "additionalProperties": false,
                "description": "Gas for sells triggered by a followed wallet, including transfer_out. Copy sells use maximum slippage. Each supplied field overrides the same field in sell.gas, then top-level gas. Unspecified fields inherit, including high_tip.enabled. A supplied priority_fee also sets high_tip.priority_fee unless the same request gives its own; otherwise high_tip.priority_fee inherits. BSC, Solana and Robinhood reject an explicit auto_gas, including false. Robinhood uses automatic ordinary gas and rejects high_tip.enabled=true because its routes have no high-tip provider. Other exits and manual sells keep their ordinary sell gas. The same priority_fee rule applies on PATCH; other unsent fields keep their values. Send gas: null to inherit all sell settings again."
              },
              "enabled": {
                "type": "boolean",
                "default": true,
                "description": "Copy the leader's sells. Default true."
              },
              "mode": {
                "type": "string",
                "enum": [
                  "proportional",
                  "sell_all"
                ],
                "default": "proportional",
                "description": "proportional matches the fraction sold by the leader under the selected scope. sell_all sells your whole corresponding position on the first eligible leader sale. Default proportional."
              },
              "scope": {
                "type": "string",
                "enum": [
                  "bundle",
                  "buyer"
                ],
                "default": "bundle",
                "description": "For grouped copy, bundle (default) follows any member using the combined position. buyer follows each leader only for the position bought after that leader and uses its own position for ratios. This also applies to transfer-out sells."
              },
              "sell_all": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Sell the whole position once the leader sells at least pct of theirs. pct is required when this is true."
                  },
                  "pct": {
                    "type": "string",
                    "description": "Leader sell size, as a percent of their position, that triggers a full exit. \"1\" = 1%."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Full exit once the leader sells a large enough share."
              },
              "transfer_out": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Also sell when a followed leader transfers a token out to another wallet (not a swap). Takes effect only while follow_sell.enabled is true and reverse_buy.enabled is false. Transfers to your own wallets or to a contract address (such as a lock, an escrow, a vault or a Safe multisig) do not trigger it. With bundle scope, transfers between leaders of a grouped config also do not trigger it. There is no leader fill price to reference, so the sell goes out at maximum slippage. The resulting orders are ordinary copy sell orders. Supported on bsc, robinhood, arc and solana. Default false."
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "proportional",
                      "position"
                    ],
                    "default": "proportional",
                    "description": "proportional sells the same fraction of your position as the fraction of its balance the leader transferred. position sells pct of your position on every transfer. Default proportional."
                  },
                  "pct": {
                    "type": "string",
                    "description": "Share of your position to sell on every leader transfer, from 0.01 to 100. \"1\" = 1%. Required when enabled is true and mode is position; ignored in proportional mode."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Sell when a followed leader transfers a token out instead of selling it."
              }
            },
            "default": {},
            "additionalProperties": false,
            "description": "How to sell when a leader sells. No effect while reverse_buy.enabled is true."
          },
          "advanced": {
            "type": "object",
            "properties": {
              "trx_retry": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10,
                "default": 3,
                "description": "Deprecated: execution does not read it. Accepted with default 3 and maximum 10; configs stored as strategy tasks (every config created since the TaskSpec migration) do not keep it and read back 3."
              },
              "leader_fill_buy_slippage": {
                "type": "boolean",
                "default": false,
                "description": "Price strategy for copy buys. false (default) is Speed first: sent at once, never waiting for the target's fill. Below 100% slippage, if the target's average fill price is available without waiting, the signed minimum received is the higher of the existing basis less slippage and the tokens your amount would buy at that average fill price less slippage. The target's price rise and your own impact then use up slippage. Even if the price already misses the bound, Speed first still sends: the order fails on-chain and you pay network fees. On EVM (BSC/Robinhood), this bound applies when the local estimate covers the target's whole trade or its fill result is already known; otherwise the existing basis remains: the full-amount estimate after the target's fill, else the quote at send time or pool state at execution. On Solana, the fill arrives with the chain event, so Speed first normally uses it; different quote tokens are converted at their latest USD prices. Missing fill or conversion prices leave Speed first using its own quote at send time, with no rejection for missing prices. true is Price protection, unchanged: it uses the target's average fill, may wait, and skips sending without that price or when its quote already misses the bound. On Solana, Price protection usually adds no wait; when the target's transaction cannot be fully read before it lands, or is expected to fail, it decides once that transaction lands. It counts the pool fees you also pay, and sends nothing without the required fill or conversion prices."
              },
              "leader_fill_sell_slippage": {
                "type": "boolean",
                "default": false,
                "description": "Deprecated: accepted, but execution does not read it, and configs stored as strategy tasks read back false. Copy sells always go at maximum slippage (10000 bps, no minimum received), whatever this field and the sell slippage say; on BSC and Robinhood a copy sell that continues on the new market after its curve migrates is capped at 9999 bps."
              }
            },
            "default": {},
            "additionalProperties": false,
            "description": "Retry count and the copy-buy price strategy (leader_fill_sell_slippage is deprecated)."
          },
          "quote_class_filter": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "native",
                "stable",
                "stock",
                "prestock",
                "other"
              ]
            },
            "maxItems": 5,
            "description": "Solana buy quote-token classes: native (SOL), stable (USDC/USDT/USD1), stock (xStocks/Backpack), prestock (PreStocks), other. Matches the quote of the pool that directly trades the token (the last hop of the leader buy); conversion hops before it, such as through USDC, do not count. Empty or absent means no filter. AND with DEX/mode filters; stocks OR cashback needs two tasks. Compiles to token.quote_class in a root all."
          },
          "max_block_gap": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "description": "Maximum estimated block gap at the wallet-copy buy decision (Solana: slots). Zero is a same-block estimate. Omit for no limit; PATCH null clears the limit."
          },
          "sell_fee_filter_enabled": {
            "type": "boolean",
            "description": "Enable the sell-back fee filter for copy and sniper buys on Solana, BSC and Robinhood. Absent or false disables it. At buy time, estimates known sell-back fees on the buy route (pool fee plus token sell tax); a known total above sell_fee_max_bps rejects the buy as sell_fee_too_high. Unknown parts pass. When true, sell_fee_max_bps must exist in the create body or stored config merged with PATCH; otherwise HTTP 400 validation_error. GET/list return stored values as-is, without effective defaults. Omitted create/PATCH fields are not written."
          },
          "sell_fee_max_bps": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9999,
            "description": "Maximum estimated sell-back fees in integer bps, 0–9999 (100 bps = 1%). Required when sell_fee_filter_enabled is true; 0 is the strictest cap, not off. Known fees above the cap reject the buy; equal fees and unknown parts pass. Excludes price impact, priority fee, tip and platform fees; does not filter actual sell orders. GET/list preserve the stored value, including absence. Omitted create/PATCH fields are not written."
          },
          "buy_slippage_sol": {
            "type": "number",
            "minimum": 0.1,
            "description": "Solana copy and sniper buys only. SOL amount, minimum 0.1, at most 9 decimal places. Replaces percentage buy slippage on both fee lanes; stored percentages are preserved. More than this amount of SOL bought ahead of us prevents the buy: for copy configs, counted from the pool after the leader fill; for sniper configs, from the pool right after the token creation transaction, including the dev first buy. No default: omission uses percentage mode. PATCH omission preserves the value; PATCH null clears it and restores percentage mode. Unsupported chains or unmigrated tasks return validation_error. Not available for sells or manual trades."
          },
          "min_sell_usd": {
            "type": "string",
            "pattern": "^0*(?:0\\.0?[1-9]\\d*|[1-9]\\d{0,4}(?:\\.\\d+)?|100000(?:\\.0+)?)$",
            "description": "Minimum automatic sell value in USD, a decimal string from 0.01 to 100000 inclusive. A smaller sell is enlarged up to the available position. A remainder worth less than the higher of this minimum and the sell cost is included. Omit for remainder cleanup only, using $1 and the sell cost. EVM flash sells before the buy receipt may fall below the minimum."
          },
          "retain_bps": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9999,
            "description": "Share of each new buy retained from automatic sells (including stop loss), in integer basis points (1–9999, 100 bps = 1%). Omit for no retention. Changing the share affects future buys. Manual sells can use the retained tokens. An EVM task flash sell sent before the buy receipt approximates the reserve."
          },
          "usdc_trading": {
            "type": "boolean",
            "description": "Solana only. true lets USDC pools use USDC first for buys and keeps sell proceeds in USDC; false uses SOL only. Existing USDC must be handled separately when disabled. New tasks default to false in the domain; omitted PATCH fields preserve the stored setting. GET/list return the stored value. Tasks created before the strategy-task migration cannot store it: writing it to such a task returns HTTP 400 validation_error. Writing on any other chain, including false, returns HTTP 400 unsupported_chain_feature."
          },
          "buy_fee_tip_first": {
            "type": "boolean",
            "description": "Solana only. Lower failure cost in buy auto mode: if a buy lands on-chain but fails (for example, slippage exceeded), at most about 0.001 SOL of priority fee is charged and the tip is not. This sacrifices some speed. Applies to copy and sniper buys with fixed or proportional total fees. Absent or false disables it. Writing true requires the merged config to have buy_fee_auto true and gas.high_tip.enabled not true; otherwise HTTP 400 validation_error. Manual mode and sells ignore it. GET/list return the stored value; a Solana task in buy auto mode without high tip returns false when unset. Omitted PATCH fields are not written. Writing on any other chain, including false, returns HTTP 400 unsupported_chain_feature."
          },
          "buy_fee_tip_first_min": {
            "type": "boolean",
            "description": "Solana only. No longer affects execution; still accepted, stored and read back as before. Writing true still requires the merged config to have buy_fee_tip_first true; otherwise HTTP 400 validation_error with details for buy_fee_tip_first_min. GET/list return the stored value; Solana strategy tasks in buy auto mode with tip-first enabled return false when unset. Unrelated PATCH edits preserve an inactive min flag. Turning buy_fee_tip_first off also turns min off unless the PATCH explicitly supplies min. An explicit min field in the PATCH takes precedence and is validated as supplied. Null PATCH is rejected. Writing on any other chain, including false, returns HTTP 400 unsupported_chain_feature."
          },
          "buy_fee_auto": {
            "type": "boolean",
            "description": "Solana only. true = auto fee mode for buys: with gas.high_tip.enabled false the executor treats gas.priority_fee + gas.landing_fee as one budget and splits it per landing route, with no priority fee cap. Omitted or false uses manual fees as entered. Enabling high_tip also selects manual fees even when this flag is true. Read the tiers using the total budget. With ratio fees, use the total calculated for the buy amount. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings."
          },
          "sell_fee_auto": {
            "type": "boolean",
            "description": "Solana only. true = auto fee mode for sells: with gas.high_tip.enabled false the executor treats gas.priority_fee + gas.landing_fee as one budget and splits it per landing route, with no priority fee cap. Omitted or false uses manual fees as entered. Enabling high_tip also selects manual fees even when this flag is true. Read the tiers using the total budget. Stop-loss sells may be late when the budget is low. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings."
          },
          "buy_fee_filter_enabled": {
            "type": "boolean",
            "description": "Enable the task buy-fee filter. When absent from the task, defaults to enabled at 25% (2500 bps), or the stored limit if 0 < buy_fee_max_bps < 10000. Explicit false disables it; explicit true filters only with a valid limit. GET/list preserve the stored enabled flag (absent stays absent) and return the effective buy_fee_max_bps. An omitted enabled flag means filtering is on at the returned limit for known fees only; sending true opts into the user-set rule below. Omitted create/PATCH fields are not written. Applies to copy and snipe buys on all four Cell chains. The default caps known fees only; undetectable fees are not counted and pass in both Speed first and Price protection. With explicit true and a valid limit, copy buys in Price protection on EVM and Solana reject undetectable fees as buy_fee_unknown; on Solana a Meteora DLMM variable fee is judged at this buy's highest possible rate."
          },
          "buy_fee_max_bps": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9999,
            "description": "Maximum buy fees and taxes in integer bps (100 bps = 1%). When buy_fee_filter_enabled is absent from the task, uses a stored limit if 0 < buy_fee_max_bps < 10000, otherwise 2500 bps (25%). With explicit true, only 1–9999 enables filtering; 0 or an absent limit disables it. GET/list return the effective limit and preserve the stored buy_fee_filter_enabled flag (absent stays absent). An omitted flag means filtering is on at the returned limit for known fees only; sending true opts into the user-set rule below. Excludes price impact, priority fee, tip and platform fees. Known fees above this limit are rejected. When buy_fee_filter_enabled is absent, the default caps known fees only; undetectable fees are not counted and pass on every chain in both Speed first and Price protection. Only an explicitly enabled filter with a valid limit rejects undetectable fees for copy buys in Price protection on EVM and Solana as buy_fee_unknown (on Solana a Meteora DLMM variable fee is judged at this buy's highest possible rate); Speed first and sniper buys allow them."
          },
          "buy_landing_fee_bps": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Solana auto mode only: buy total fee as nonnegative integer bps of the actual SOL principal (100 bps = 1%). Absent or 0 selects fixed total fees; no ratio cap. For copy and sniper buys, total = clamp(principal × bps / 10000, buy_landing_fee_min, buy_landing_fee_max), split into priority fee and tip per landing route like auto-mode total fees. The stored buy priority_fee and landing_fee are ignored; slippage still applies. Read only in auto fee mode (buy_fee_auto true, gas.high_tip.enabled false); manual mode ignores it, and setting a new positive value on a manual task returns 400. Sell and manual orders are unaffected. Callers are responsible for the chosen ratio; no confirmation step. Writing on EVM returns HTTP 400 unsupported_chain_feature, including 0."
          },
          "buy_landing_fee_min": {
            "type": "string",
            "description": "Solana auto-mode ratio fee minimum total in SOL, decimal string up to 9 places, at least \"0.0001\" (the cheapest landing route's minimum tip; \"0\" is rejected). When the effective buy_landing_fee_bps > 0 and no minimum was stored or sent, create/PATCH writes \"0.002\". Total = clamp(principal × bps / 10000, min, max), split per landing route like auto-mode total fees; stored buy priority_fee/landing_fee are ignored. A positive minimum must not exceed a positive maximum. Ratio fees apply only in auto fee mode (buy_fee_auto true, gas.high_tip.enabled false). Copy and sniper buys only; sells and manual orders unaffected. Writing on EVM returns HTTP 400 unsupported_chain_feature, including \"0\"."
          },
          "buy_landing_fee_max": {
            "type": "string",
            "description": "Solana auto-mode ratio fee maximum total in SOL, decimal string up to 9 places. Absent or \"0\" means no cap. Total = clamp(principal × buy_landing_fee_bps / 10000, buy_landing_fee_min, max), split per landing route like auto-mode total fees; stored buy priority_fee/landing_fee are ignored. A positive maximum must be at least a positive minimum. Ratio fees apply only in auto fee mode (buy_fee_auto true, gas.high_tip.enabled false). Copy and sniper buys only; sells and manual orders unaffected. Writing on EVM returns HTTP 400 unsupported_chain_feature, including \"0\". Omitted create/PATCH maximums are not written."
          },
          "buy_schedule": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "boolean",
                "description": "Apply the window. false keeps the times stored without restricting buys."
              },
              "timezone": {
                "type": "string",
                "maxLength": 64,
                "description": "IANA time zone name the minutes are read in, for example Asia/Shanghai. The name is stored in its canonical form (asia/shanghai is stored as Asia/Shanghai, utc as UTC); offsets such as +08:00 and names longer than 64 characters are rejected."
              },
              "start_minute": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1439,
                "description": "Window start, in whole minutes after local midnight, 0 to 1439. The start minute is inside the window."
              },
              "end_minute": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1439,
                "description": "Window end, in whole minutes after local midnight, 0 to 1439. The end minute is outside the window. When it is smaller than start_minute the window crosses midnight (1260 to 120 is 21:00 to 02:00). It must differ from start_minute."
              }
            },
            "required": [
              "enabled",
              "timezone",
              "start_minute",
              "end_minute"
            ],
            "additionalProperties": false,
            "description": "Daily buy window. Outside the window no new positions are opened (no follow buys, no snipe buys); sells, take-profit and stop-loss keep running. Omit it, or send enabled false, for no restriction. PATCH replaces the whole object, so send all four fields; null is rejected. Supported on bsc, robinhood, arc and solana."
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 24
            },
            "maxItems": 10,
            "description": "Caller-defined task labels. Up to 10 labels of 1–24 characters. Whitespace is trimmed and duplicates are removed."
          }
        },
        "required": [
          "chain",
          "leaders"
        ],
        "additionalProperties": false
      },
      "CopyTradeConfigPatch": {
        "type": "object",
        "additionalProperties": {},
        "description": "JSON Merge Patch for an existing config. Omit min_sell_usd to retain it or set it to null to restore the default. Omit retain_bps to keep the setting or send null to turn retention off. When switching buy.mode, send the sizing for the new mode in the same request; previous sizing is cleared and buy.delay_ms is preserved unless patched. Entering tiers mode requires a complete buy.tiers array. In tiers mode an omitted table is preserved; supplying buy.tiers replaces it in full. When the resulting mode is tiers, set buy slippage, priority fees and landing tips, including high-tip values, in buy.tiers[].gas. Top-level slippage_pct and the corresponding gas fee fields return 400 validation_error, except gas.high_tip.priority_fee and gas.high_tip.landing_fee sent with the request that turns gas.high_tip.enabled on without a buy.tiers table: those seed the high-tip values of every tier, and each omitted value comes from the fees of that tier. Use sell for sell-side settings. Within follow_sell.gas, PATCH changes only supplied fields, except that a supplied priority_fee also sets high_tip.priority_fee unless the same request gives its own. Set follow_sell.gas to null to restore sell gas inheritance. Switching away from tiers removes the table. buy_slippage_sol accepts a Solana copy-buy SOL amount (minimum 0.1, at most 9 decimals); null restores percentage mode and omission preserves the current value. The optional labels array (at most 10, each at most 24 characters) replaces the whole label set and is the only field that can be changed without pausing; send it alone to edit labels while the config runs. Ordinary wallet-copy configs may replace leaders with the complete array of 1–2000 wallet leaders; omitted leaders stay unchanged, and null/empty arrays are rejected. Requires If-Match and a paused config with engine.sync_state synced and engine.buy_entry closed. chain, wallet_id and wallet_ids remain immutable. FOMO/Pump bindings and source changes are not editable through leaders. Set filters.prior_buyer_blacklist to null to remove the entry filter and its late-discovery sale. Omit reverse_buy first-buy bounds to preserve them, use null or \"0\" to clear one bound, or set reverse_buy.enabled to false to clear both."
      },
      "CopyTradeConfigResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Config id. Use it in the path of later calls."
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "paused",
              "deleted"
            ],
            "description": "What was asked for — see engine.sync_state for what the execution engine last confirmed."
          },
          "version": {
            "type": "number",
            "description": "Optimistic-concurrency version. Send as the ETag/If-Match value on writes."
          },
          "run_state": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "enum": [
                  "running",
                  "buy_paused",
                  "stopped"
                ],
                "description": "running: enabled; buy_paused: new buys paused, sells continue; stopped: disabled or deleted."
              },
              "reason": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Known buy-pause reasons: account, loss_streak, creator_limit, leader_token_limit, follow_count, buy_fail_streak, funding_low. Buys pause while sells and exits continue. For run-bound pauses, reopen to start a new run: follow, loss and creator counts reset; leader distinct-token counts persist, so raise the limit or disable that filter before reopening. Known stop reasons: low_balance, inactivity, loss_streak, creator_limit. Null means no recorded reason or user stop; unknown reasons are preserved."
              }
            },
            "required": [
              "state",
              "reason"
            ],
            "description": "Task run state. Configs stored as strategy tasks (every config created since the TaskSpec migration, and migrated ones) report all three states; configs not yet migrated report running or stopped."
          },
          "read_only": {
            "type": "boolean",
            "description": "True for archived configs or strategy configs using settings this API cannot express. Archived configs reject all configuration writes, including pause, resume and delete, with 409 task_read_only; GET and labels-only PATCH still work. For strategy configs, pause, resume, delete and labels-only PATCH still work, but any other PATCH, including name, returns 409 task_read_only; edit those settings in the app instead."
          },
          "engine": {
            "type": "object",
            "properties": {
              "applied_version": {
                "type": "number",
                "description": "Config version the execution engine last acknowledged."
              },
              "sync_state": {
                "type": "string",
                "enum": [
                  "syncing",
                  "synced",
                  "failed"
                ],
                "description": "syncing: the engine has not confirmed this version yet. synced: it has. failed: the last attempt failed; see error_code."
              },
              "buy_entry": {
                "type": "string",
                "enum": [
                  "open",
                  "closed"
                ],
                "description": "open: the engine is accepting new buys for this config. closed: it is not (paused, deleted, or not yet confirmed)."
              },
              "warning_code": {
                "type": "string",
                "description": "The config has taken effect. prior_buyers_unavailable means listed wallet history is still loading. prior_buyers_fast_unavailable means updates for some listed wallets are delayed. The task may miss purchases those wallets make just before the leader buys. This warning does not reject buys. prior_buyers_over_limit means the account exceeds the wallet limit on this chain. Purchases by wallets beyond the limit are not checked. prior_buyers_history_truncated means a listed wallet bought more than 5,000 distinct tokens inside the window. Only its most recent 5,000 are checked. The task keeps running."
              },
              "error_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why the last engine sync failed. Null when sync_state is not failed."
              },
              "updated_at": {
                "type": "string",
                "description": "When the engine last reported this state, RFC 3339 UTC."
              }
            },
            "required": [
              "applied_version",
              "sync_state",
              "buy_entry",
              "error_code",
              "updated_at"
            ],
            "description": "What the execution engine last confirmed. status is what you asked for; this is what the engine has applied."
          },
          "created_via": {
            "type": "string",
            "enum": [
              "web",
              "api"
            ],
            "description": "web if the config was created in the app, api if it was created through this API."
          },
          "created_at": {
            "type": "string",
            "description": "When the config was created, RFC 3339 UTC."
          },
          "updated_at": {
            "type": "string",
            "description": "When the config was last changed, RFC 3339 UTC."
          },
          "deleted_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "When the config was soft-deleted, RFC 3339 UTC. Null while it is active or paused."
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 24
            },
            "description": "The caller's own labels on this task, or an empty array if none are set. Replace them with PATCH (labels: string[]): at most 10 labels, each 1-24 characters after trimming, duplicates removed, the array replaces the whole set, null is rejected. Changing only labels does not require the config to be paused and does not change version or engine state."
          },
          "kind": {
            "type": "string",
            "enum": [
              "copy_trade"
            ],
            "description": "Always copy_trade."
          },
          "chain": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "bsc",
                  "robinhood",
                  "solana",
                  "arc"
                ]
              },
              {
                "type": "string",
                "minLength": 1
              }
            ],
            "description": "Chain this config runs on. Documented values are bsc/robinhood/solana/arc; a config stored on any other chain (created outside this API, e.g. by the Web app) is still reported verbatim rather than rejected."
          },
          "wallet_id": {
            "type": "string",
            "description": "First entry of wallet_ids, kept for callers that only know a single wallet. Use wallet_ids for the complete list. Immutable once created."
          },
          "wallet_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Every custodial wallet that executes this config, in stored order. A config created with the app may have several. Immutable once created."
          },
          "name": {
            "type": "string",
            "description": "Caller-assigned label for the config."
          },
          "slippage_pct": {
            "type": "string",
            "description": "Task-level slippage percentage. \"1\" = 1%. Also the sell-side value unless sell is returned. In tiers mode, buy slippage comes from buy.tiers[].gas.slippage_pct."
          },
          "gas": {
            "type": "object",
            "properties": {
              "priority_fee": {
                "type": "string",
                "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
              },
              "landing_fee": {
                "type": "string",
                "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
              },
              "auto_gas": {
                "type": "boolean",
                "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
              },
              "high_tip": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                  },
                  "priority_fee": {
                    "type": "string",
                    "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                  },
                  "landing_fee": {
                    "type": "string",
                    "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                  }
                },
                "additionalProperties": false,
                "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
              },
              "anti_mev": {
                "type": "boolean",
                "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
              }
            },
            "additionalProperties": false,
            "description": "Task gas settings. In tiers mode, set buy priority fees and landing tips, including high-tip values, in buy.tiers[].gas; the one exception is high_tip.priority_fee and high_tip.landing_fee sent with the PATCH that turns high_tip.enabled on without a buy.tiers table, which seed every tier. Use sell.gas for sell fees. anti_mev, high_tip.enabled and any supported task-level auto_gas remain task settings."
          },
          "sell": {
            "type": "object",
            "properties": {
              "slippage_pct": {
                "type": "string",
                "description": "Stored sell-side max slippage. \"1\" = 1%. Only Flash Sell, Dev Sell and Migration Sell use it; the other automatic sells, including sales triggered by a confirmed earlier buy from a listed wallet (forward copy trades only), are sent at maximum slippage (see the request field sell.slippage_pct)."
              },
              "gas": {
                "type": "object",
                "properties": {
                  "priority_fee": {
                    "type": "string",
                    "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
                  },
                  "landing_fee": {
                    "type": "string",
                    "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
                  },
                  "auto_gas": {
                    "type": "boolean",
                    "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
                  },
                  "high_tip": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                      },
                      "priority_fee": {
                        "type": "string",
                        "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                      },
                      "landing_fee": {
                        "type": "string",
                        "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                      }
                    },
                    "additionalProperties": false,
                    "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
                  },
                  "anti_mev": {
                    "type": "boolean",
                    "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
                  }
                },
                "additionalProperties": false,
                "description": "Stored sell-side gas settings."
              }
            },
            "required": [
              "slippage_pct",
              "gas"
            ],
            "additionalProperties": false,
            "description": "Sell-side values, returned only when they differ from the top-level slippage_pct / gas (which show the buy side). Omitted when buy and sell are the same."
          },
          "exit": {
            "type": "object",
            "properties": {
              "take_profit": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "amount_basis": {
                      "type": "string",
                      "enum": [
                        "initial",
                        "remaining"
                      ],
                      "description": "Use the bought amount (default) or the amount remaining at trigger time."
                    },
                    "gain_pct": {
                      "type": "string",
                      "description": "Price rise that triggers this take-profit. \"1\" = 1%."
                    },
                    "sell_pct": {
                      "type": "string",
                      "description": "Share of the position to sell when gain_pct is reached. \"1\" = 1%. If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                    },
                    "expires_in_sec": {
                      "type": "integer",
                      "description": "How long this entry stays armed, in seconds. Default 259200 (3 days). After that it stops applying and does not sell."
                    }
                  },
                  "required": [
                    "gain_pct",
                    "sell_pct",
                    "expires_in_sec"
                  ],
                  "additionalProperties": false,
                  "description": "One take-profit level."
                },
                "description": "Up to 20 take-profit levels. Each sells sell_pct of the position when price is up gain_pct. An expired entry stops applying and does not sell."
              },
              "segmented_take_profit": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Whether segmented take-profit is active. Turning it off keeps the saved segments. At least one segment is required when this is true. Disable with enabled=false, never with null."
                  },
                  "amount_basis": {
                    "type": "string",
                    "enum": [
                      "initial",
                      "remaining"
                    ],
                    "description": "Use the bought amount (default) or the amount remaining at trigger time."
                  },
                  "segments": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "gain_pct": {
                          "type": "string",
                          "description": "Rise of this segment, added to the rises of the segments before it, as a percent of the buy price: segment n triggers at buy price × (1 + the gain_pct of segments 1 to n). \"1\" = 1%."
                        },
                        "sell_pct": {
                          "type": "string",
                          "description": "Share of the group’s selected amount basis to sell when price reaches this segment's trigger price. Capped at what is left. \"1\" = 1%. If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                        },
                        "expires_in_ms": {
                          "type": "integer",
                          "description": "Lifetime of this segment in milliseconds. Omit or set 0 for no timeout; PATCH replaces the segments array, so an omitted lifetime in a replacement segment resets to 0. The first segment's lifetime starts when the buy is sent; each later segment's starts when the previous segment ends. When a positive lifetime runs out before the trigger price is reached and timeout_sell is enabled, timeout_sell.sell_pct is sold. This is not take_profit: an expired take_profit entry simply stops applying."
                        },
                        "timeout_sell": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "description": "Sell when this segment's lifetime runs out before its trigger price is reached."
                            },
                            "sell_pct": {
                              "type": "string",
                              "description": "Share of the group’s selected amount basis to sell on timeout. Capped at what is left. \"1\" = 1%. Default \"100\"."
                            }
                          },
                          "required": [
                            "enabled",
                            "sell_pct"
                          ],
                          "additionalProperties": false,
                          "description": "Sell that fires when this segment expires before its trigger price."
                        }
                      },
                      "required": [
                        "gain_pct",
                        "sell_pct",
                        "expires_in_ms",
                        "timeout_sell"
                      ],
                      "additionalProperties": false,
                      "description": "One segmented take-profit level, with its own lifetime and timeout sell."
                    },
                    "description": "Up to 20 segments, run in order: only the current segment waits, and the next one starts after its sell fills. The last segment repeats until the position is sold. They are reported even while enabled is false, so an edit returns them unchanged."
                  }
                },
                "required": [
                  "enabled",
                  "segments"
                ],
                "additionalProperties": false,
                "description": "Segmented take-profit. Segments run in order, their rises add up from the buy price, and each has its own lifetime and timeout sell. Lifetimes are milliseconds."
              },
              "stop_loss": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          false
                        ],
                        "description": "Stop-loss is off. A disabled response is only this field — the other keys are absent."
                      }
                    },
                    "required": [
                      "enabled"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          true
                        ],
                        "description": "Stop-loss is armed."
                      },
                      "amount_basis": {
                        "type": "string",
                        "enum": [
                          "initial",
                          "remaining"
                        ],
                        "description": "Use the bought amount (default) or the amount remaining at trigger time."
                      },
                      "loss_pct": {
                        "type": "string",
                        "description": "Drop from entry that triggers the sell. \"1\" = 1%."
                      },
                      "sell_pct": {
                        "type": "string",
                        "description": "Share of the position to sell. \"1\" = 1%."
                      },
                      "expires_in_sec": {
                        "type": "integer",
                        "description": "How long the stop-loss stays armed, in seconds."
                      }
                    },
                    "required": [
                      "enabled",
                      "loss_pct",
                      "sell_pct",
                      "expires_in_sec"
                    ],
                    "additionalProperties": false
                  }
                ],
                "description": "Stop-loss. When it is off, the object is only {enabled:false}."
              },
              "trailing": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          false
                        ],
                        "description": "Trailing stop is off. A disabled response is only this field — the other keys are absent."
                      }
                    },
                    "required": [
                      "enabled"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          true
                        ],
                        "description": "Trailing stop is armed."
                      },
                      "amount_basis": {
                        "type": "string",
                        "enum": [
                          "initial",
                          "remaining"
                        ],
                        "description": "Use the bought amount (default) or the amount remaining at trigger time."
                      },
                      "activation_gain_pct": {
                        "type": "string",
                        "description": "Rise that armed the trailing stop. \"0\" means it was armed immediately. \"1\" = 1%."
                      },
                      "drop_pct": {
                        "type": "string",
                        "description": "Drop from the high-water mark that triggers the sell. \"1\" = 1%."
                      },
                      "sell_pct": {
                        "type": "string",
                        "description": "Share of the position to sell. \"1\" = 1%."
                      },
                      "expires_in_sec": {
                        "type": "integer",
                        "description": "How long the trailing stop stays armed, in seconds."
                      }
                    },
                    "required": [
                      "enabled",
                      "activation_gain_pct",
                      "drop_pct",
                      "sell_pct",
                      "expires_in_sec"
                    ],
                    "additionalProperties": false
                  }
                ],
                "description": "Trailing stop. When it is off, the object is only {enabled:false}."
              },
              "timed_sell": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          false
                        ],
                        "description": "Timed sell is off. A disabled response is only this field — the other keys are absent."
                      }
                    },
                    "required": [
                      "enabled"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          true
                        ],
                        "description": "Timed sell is armed."
                      },
                      "same_block_delay_ms": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 86400000,
                        "description": "Delay for a buy landing in the same block (Solana slot) as the leader."
                      },
                      "next_block_delay_ms": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 86400000,
                        "description": "Delay for a buy landing one block (Solana slot) after the leader."
                      },
                      "after_sec": {
                        "type": "integer",
                        "description": "Delay in whole seconds from the first actual buy write."
                      },
                      "after_ms": {
                        "type": "integer",
                        "description": "Exact delay in milliseconds. Present together with after_sec; after_ms is the precise value."
                      },
                      "sell_pct": {
                        "type": "string",
                        "description": "Share of the position to sell. \"1\" = 1%."
                      }
                    },
                    "required": [
                      "enabled",
                      "after_sec",
                      "after_ms",
                      "sell_pct"
                    ],
                    "additionalProperties": false
                  }
                ],
                "description": "Timed sell. When it is off, the object is only {enabled:false}."
              },
              "dev_sell": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether this option is on. Turn an object option off with enabled=false, never with null."
                  }
                },
                "additionalProperties": false,
                "description": "Whether this config sells the same fraction the token developer sold. The full-exit threshold is not on this API; the stored default is the developer selling their entire balance."
              },
              "migration_sell": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether this option is on. Turn an object option off with enabled=false, never with null."
                  },
                  "sell_pct": {
                    "type": "string",
                    "description": "Share of the remaining position to sell on migration, from 0.01 to 100 percent. \"1\" = 1%. Default \"100\". If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                  }
                },
                "required": [
                  "sell_pct"
                ],
                "additionalProperties": false,
                "description": "On Robinhood, BSC and Solana Cell tasks, sell the configured share after a token migrates to an AMM, once per task, wallet and token. Applies only to positions bought on the bonding curve while enabled; uses the task sell settings. Arc accepts and stores this rule without execution: Arc launchpads (Argus, O1, Pools) issue directly on AMMs with no migration event."
              },
              "anti_wick": {
                "type": "boolean",
                "default": false,
                "description": "Anti-wick. Off (absent or false): on Solana, ordinary take profit, stop loss and the limit buys of the same strategy trigger as soon as a qualifying trade touches the trigger price and then sell or buy at market (trades that do not count: https://apm.fun/docs/copy-trading/strategy-settings#anti-wick), so the fill can differ from the trigger price. A limit buy is not triggered by single trades in the block it was placed in. On: they trigger only if the price still meets the condition at the end of the block (Solana slot), ignoring brief spikes and dips inside it. Segmented take profit, trailing and break-even stops and conditional exits always trigger on the end-of-block price, either way. No effect on BSC and Robinhood. Not an exit by itself: exits still need at least one exit."
              }
            },
            "required": [
              "take_profit",
              "segmented_take_profit",
              "stop_loss",
              "trailing",
              "timed_sell",
              "dev_sell",
              "migration_sell"
            ],
            "additionalProperties": false,
            "description": "Automatic exit rules currently stored on this config."
          },
          "leaders": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string",
                  "enum": [
                    "wallet",
                    "fomo"
                  ],
                  "description": "wallet: copy an address. fomo: copy one FOMO handle. A fomo leader must be the only leader on the config."
                },
                "ref": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "description": "For source wallet, a Solana base58 address or an EVM address on the selected chain. For source fomo, a handle (letters, digits, \"_\", \".\", \"-\"; optional leading \"@\"). A wallet cannot follow itself, and the same wallet cannot be listed twice. EVM wallet leaders with publicly known private keys (the 20 default Hardhat/Anvil accounts) are rejected."
                },
                "resolved_wallet": {
                  "type": "string",
                  "description": "Read-only. The address this leader entry resolves to."
                }
              },
              "required": [
                "source",
                "ref",
                "resolved_wallet"
              ],
              "additionalProperties": false,
              "description": "One leader to copy."
            },
            "description": "Leaders this config copies. Ordinary wallet leaders can be replaced with PATCH while paused and synced. Each entry includes resolved_wallet, the address it follows."
          },
          "buy": {
            "type": "object",
            "properties": {
              "mode": {
                "type": "string",
                "enum": [
                  "fixed",
                  "ratio",
                  "copy",
                  "dynamic",
                  "tiers"
                ],
                "description": "fixed spends amount of the native token each buy (amount is required). ratio multiplies the leader amount by ratio (\"1\" = the same size). copy mirrors the leader native amount and rejects amount and ratio. dynamic buys max_per_trade minus the leader buy amount converted to native tokens. A zero result or a leader buy at or above the cap rejects with buy_dynamic_cap_reached. tiers sizes each buy using the first matching entry in tiers. Default ratio."
              },
              "amount": {
                "type": "string",
                "description": "Native-token amount per buy. Required when mode is fixed. Decimal string, up to 18 decimal places."
              },
              "ratio": {
                "type": "string",
                "description": "Multiplier of the leader amount when mode is ratio. \"1\" = the same size. Up to 4 decimal places, maximum \"100\"."
              },
              "max_per_trade": {
                "type": "string",
                "description": "Cap on one buy, in the native token. Required in dynamic mode. Decimal string."
              },
              "tiers": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "market_cap": {
                      "type": "object",
                      "properties": {
                        "min_usd": {
                          "type": "string",
                          "description": "Inclusive lower bound in USD. Omit or send \"0\" for no lower bound."
                        },
                        "max_usd": {
                          "type": "string",
                          "description": "Inclusive upper bound in USD. Omit or send \"0\" for no upper bound."
                        }
                      },
                      "additionalProperties": false,
                      "description": "Leader buy fill market cap window. A tier without either bound is a fallback and can only be last."
                    },
                    "mode": {
                      "type": "string",
                      "enum": [
                        "fixed",
                        "ratio",
                        "dynamic"
                      ],
                      "description": "fixed uses amount. ratio uses ratio and can cap it with max_per_trade. dynamic buys max_per_trade minus the leader buy amount converted to native tokens."
                    },
                    "amount": {
                      "type": "string",
                      "description": "Native-token amount for this tier, required in fixed mode."
                    },
                    "ratio": {
                      "type": "string",
                      "description": "Leader buy size multiplier for this tier, required in ratio mode. \"1\" = the same size."
                    },
                    "max_per_trade": {
                      "type": "string",
                      "description": "Native-token cap, required for dynamic and optional for ratio."
                    },
                    "gas": {
                      "type": "object",
                      "properties": {
                        "slippage_pct": {
                          "type": "string",
                          "description": "Buy slippage for this fee lane. \"1\" = 1%."
                        },
                        "priority_fee": {
                          "type": "string",
                          "description": "Priority fee as a decimal string in SOL on Solana or Gwei on EVM."
                        },
                        "landing_fee": {
                          "type": "string",
                          "description": "Landing tip as a decimal string in the native token. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings."
                        },
                        "auto_gas": {
                          "type": "boolean",
                          "description": "Automatic gas estimation on EVM. On Solana use buy_fee_auto."
                        },
                        "high_tip": {
                          "type": "object",
                          "properties": {
                            "slippage_pct": {
                              "type": "string",
                              "description": "Buy slippage for this fee lane. \"1\" = 1%."
                            },
                            "priority_fee": {
                              "type": "string",
                              "description": "Priority fee as a decimal string in SOL on Solana or Gwei on EVM."
                            },
                            "landing_fee": {
                              "type": "string",
                              "description": "Landing tip as a decimal string in the native token. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings."
                            }
                          },
                          "required": [
                            "slippage_pct",
                            "priority_fee",
                            "landing_fee"
                          ],
                          "additionalProperties": false,
                          "description": "This tier’s high-tip slippage, priority fee and landing tip. Required on every tier when task gas.high_tip.enabled is true, and must be omitted otherwise."
                        }
                      },
                      "required": [
                        "slippage_pct",
                        "priority_fee",
                        "landing_fee"
                      ],
                      "additionalProperties": false,
                      "description": "Complete buy fees and slippage for this tier. Each tier supplies its own values. Anti-MEV and the high-tip switch are set on the task."
                    },
                    "buy_fee_auto": {
                      "type": "boolean",
                      "description": "Solana only. Use automatic fee splitting for this tier when the task high-tip lane is off. Read tip tiers using the combined priority fee and tip budget."
                    },
                    "buy_fee_tip_first": {
                      "type": "boolean",
                      "description": "Solana only. Use tip-first splitting for this tier in automatic fee mode."
                    },
                    "buy_fee_tip_first_min": {
                      "type": "boolean",
                      "description": "Solana only. Stored for compatibility and has no execution effect."
                    },
                    "buy_landing_fee_bps": {
                      "type": "integer",
                      "description": "Solana only. Budget for the two fees combined, in basis points of this buy’s SOL principal. A positive ratio requires auto fees with the task high-tip lane off. Omit or use 0 for fixed fees."
                    },
                    "buy_landing_fee_min": {
                      "type": "string",
                      "description": "Minimum total automatic landing fee in SOL. Requires buy_landing_fee_bps."
                    },
                    "buy_landing_fee_max": {
                      "type": "string",
                      "description": "Maximum total automatic landing fee in SOL. Requires buy_landing_fee_bps. Omit or send \"0\" for no cap."
                    },
                    "buy_slippage_sol": {
                      "type": "number",
                      "description": "Solana only. Amount of SOL bought ahead of this tier’s buy, measured from the pool after the leader fill. Minimum 0.1 SOL, at most 9 decimals. Replaces percentage slippage on both fee lanes."
                    }
                  },
                  "required": [
                    "mode",
                    "gas"
                  ],
                  "additionalProperties": false
                },
                "description": "Required in tiers mode for forward copy buys. Supply 1 to 10 tiers in match order; the first matching tier wins and both USD bounds are inclusive. Each tier supplies its own sizing, fees and slippage. Selection uses the leader buy fill market cap. EVM Speed first uses the resident market cap before the leader’s buy if the fill has not landed. A buy with no match is rejected as buy_tier_no_match. If the market cap is unavailable, Speed first rejects as buy_tier_market_cap_unknown and Price protection reads once more before rejecting with the same code. PATCH replaces the entire array when supplied and clears it when switching to another mode."
              },
              "delay_ms": {
                "type": "integer",
                "description": "Wait this many milliseconds after a copy signal before buying, an integer from 0 to 86400000 (24 hours). 0 means no delay and is not echoed back; responses include delay_ms only when it is above 0. Omit to leave unset on create and unchanged on PATCH."
              }
            },
            "required": [
              "mode"
            ],
            "additionalProperties": false,
            "description": "How much to buy when a leader buys."
          },
          "dedupe": {
            "type": "object",
            "properties": {
              "first_buy_only": {
                "type": "boolean",
                "default": false,
                "description": "Only copy a leader's first buy of a token within first_buy_window_minutes (360 minutes when omitted). A later buy outside the window can add to an existing position; set block_if_held to skip tokens this wallet already holds."
              },
              "first_buy_window_minutes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 720,
                "description": "First-buy lookback in whole minutes, 0–720. Omit for the executor default of 360 minutes. 0 ignores the leader's buy history but still blocks another copy while the first is in flight. Reverse tasks do not use this window."
              },
              "block_if_held": {
                "type": "boolean",
                "default": false,
                "description": "Skip the buy when this wallet already holds the token."
              }
            },
            "additionalProperties": false,
            "description": "Skip repeat buys of a token."
          },
          "group_follow": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "boolean",
                "default": false,
                "description": "Whether this option is on. Turn an object option off with enabled=false, never with null."
              }
            },
            "additionalProperties": false,
            "description": "Whether all leader wallets are treated as one portfolio for stateful buy filters and for copy sells when follow_sell.scope is bundle."
          },
          "reverse_buy": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "boolean",
                "description": "Whether this option is on. Turn an object option off with enabled=false, never with null."
              },
              "min_leader_sell_pct": {
                "type": "string",
                "description": "Only for Buy on Sell (reverse_buy). Buy only when the leader sale reaches at least this share of the leader position before the sale. \"1\" = 1%, up to 2 decimal places, maximum \"100\". Omit or \"0\" for no limit. On solana the share is computed over the target token accounts involved in the transaction. A non-zero value is rejected while enabled is false; PATCH that turns reverse_buy off clears the stored value."
              },
              "min_leader_first_buy": {
                "type": "string",
                "description": "Inclusive minimum for the leader wallet’s first buy in the sold token’s current holding round. Decimal string in SOL, BNB or ETH. Omit or use \"0\" for no lower bound. A positive value requires reverse_buy.enabled. Unknown first-buy amounts skip entry."
              },
              "max_leader_first_buy": {
                "type": "string",
                "description": "Inclusive maximum for the leader wallet’s first buy in the sold token’s current holding round. Decimal string in SOL, BNB or ETH. Omit or use \"0\" for no upper bound. A positive value requires reverse_buy.enabled and must be at least the minimum."
              }
            },
            "required": [
              "enabled"
            ],
            "additionalProperties": false,
            "description": "Buy on Sell: buy when the leader sells; their buys are ignored, and their sells are not copied (follow_sell has no effect while this is on). Exit with take-profit, stop-loss or other sell settings."
          },
          "filters": {
            "type": "object",
            "properties": {
              "prior_buyer_blacklist": {
                "type": "object",
                "properties": {
                  "sell_on_late_discovery": {
                    "type": "boolean",
                    "description": "Whether to sell this buy if a listed wallet is later confirmed to have bought before the leader."
                  },
                  "addresses": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Wallets checked for purchases before the leader buy."
                  },
                  "window_sec": {
                    "type": "number",
                    "description": "Stored lookback before each leader buy, in seconds. For each listed wallet, the task looks back over the window you set or the last 5,000 distinct tokens it bought, whichever comes first."
                  }
                },
                "required": [
                  "addresses",
                  "window_sec"
                ],
                "description": "Wallets to check for earlier purchases and the lookback before each leader buy."
              }
            },
            "description": "Forward copy-buy filters."
          },
          "buy_filter": {
            "type": "object",
            "properties": {
              "amount": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply the leader buy-size window. When true, min or max is required."
                  },
                  "min": {
                    "type": "string",
                    "description": "Smallest leader buy to copy, in the native token. When reverse_buy.enabled is true, this is the minimum native-token amount the leader receives from this sell. Decimal string. Zero is allowed."
                  },
                  "max": {
                    "type": "string",
                    "description": "Largest leader buy to copy, in the native token. When reverse_buy.enabled is true, this is the maximum native-token amount the leader receives from this sell. Decimal string. Zero is allowed."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Only copy leader buys whose native-token size falls inside this window."
              },
              "market_cap": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply the market-cap window. When true, min_usd or max_usd is required."
                  },
                  "min_usd": {
                    "type": "string",
                    "description": "Smallest token market cap to copy, in USD. Decimal string, up to 2 decimal places."
                  },
                  "max_usd": {
                    "type": "string",
                    "description": "Largest token market cap to copy, in USD. Decimal string, up to 2 decimal places."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Only copy buys of tokens inside this USD market-cap window."
              },
              "dex": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Only copy buys on the DEXes in allowed. An enabled filter with an empty list is rejected, because it would block every buy."
                  },
                  "allowed": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    },
                    "maxItems": 32,
                    "description": "DEX allowlist. On Solana, Pump has normal/Mayhem/Cashback children: pumpfun-normal/pumpfun-mayhem/pumpfun-cashback. Select venues pumpfun/pumpfun-amm plus allowed modes; no modes means all. Both flags require both modes; direct PumpSwap pools are normal. Pre-change lists containing pumpfun-mayhem without pumpfun-normal or pumpfun-cashback now mean Mayhem only; existing tasks are migrated. Mode values without either Pump venue imply both Pump venues. Other Solana venues: raydium-amm, raydium-clmm, raydium-cpmm, raydium-launchpad, pancakeswap-clmm, orca-whirlpool, meteora-dbc, meteora-dlmm, meteora-damm, meteora-damm-v2; other covers missing or unknown venue identities. Solana matches the venue where the leader bought the token: selecting only Pump does not copy buys on Pump AMM after graduation. DEX filtering applies only to buys; already-held tokens can still be sold after graduation. Quote classes use quote_class_filter; stocks OR cashback requires two tasks. At most 32. Required when enabled is true. While enabled is false the list is not applied and responses show the chain's full current DEX list, so a PATCH that only sets enabled to true starts from that full list."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Restrict copied buys to selected DEXes."
              },
              "token_blacklist": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Never buy the tokens in addresses. addresses is required when this is true."
                  },
                  "addresses": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "maxItems": 500,
                    "description": "Token addresses to skip. At most 500."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Token blacklist."
              },
              "per_token_buy_limit": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply limit. limit is required when this is true."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000,
                    "description": "Positive integer cap, at most 100000."
                  },
                  "count_failed": {
                    "type": "boolean",
                    "default": false,
                    "description": "Count each sent follow buy once even if it reverts, never lands or its broadcast fails. Signals filtered before sending never count. By default a failed buy frees its slot."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Maximum buys of one token per leader, shared across leaders in Grouped Copy. Sell monitoring is unaffected."
              },
              "fail_guard": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Whether consecutive broadcast buy failures pause buying. Slippage failures count. Defaults to off."
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100,
                    "description": "Consecutive failed broadcast buys required to pause buying (1 to 100)."
                  },
                  "within_sec": {
                    "type": "integer",
                    "minimum": 60,
                    "maximum": 86400,
                    "description": "Rolling window in seconds, from 60 to 86400 in whole minutes."
                  }
                },
                "required": [
                  "enabled",
                  "count",
                  "within_sec"
                ],
                "additionalProperties": false,
                "description": "Consecutive broadcast buy failures, including slippage. Disabled by default; initial threshold is four failures in 3600 seconds."
              },
              "stop_after_follows": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether this option is on. Turn an object option off with enabled=false, never with null."
                  },
                  "count": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "description": "Positive number of successfully followed leader transactions. Required when enabled. Disabling clears the threshold."
                  }
                },
                "additionalProperties": false,
                "description": "On Solana, BSC and Robinhood, pause new buys after count distinct leader transactions produce positive buy fills in this run. Multiple wallets following one transaction count once. Reverse copies and later fills of leader-triggered strategy limits count. Manual buys, manual limits and snipes do not. The task stays enabled and sells continue. Checks occur at signal intake and before sending. In-flight orders can overshoot: even with count=1, two buys can fill. Re-enabling starts at zero; a same-run executor restart preserves the count."
              },
              "per_leader_token_limit": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply limit. limit is required when this is true."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000,
                    "description": "Positive integer cap, at most 100000."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Maximum distinct tokens to buy per leader. When every leader on every wallet reaches the cap for every buy entry, pause buys (run_state: buy_paused, reason: leader_token_limit); sells and exits continue. Counts persist across reopening: raise the limit or turn off this filter, then reopen. Otherwise the task pauses again."
              },
              "quick_sell_ban": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Ban a leader who sells too soon after a buy this task copied and filled. threshold_sec and ban_sec are required when this is true."
                  },
                  "threshold_sec": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 86400,
                    "description": "A leader who sells within this many seconds of a buy this task copied and filled is banned; skipped or unfilled copies do not count. At most 86400."
                  },
                  "ban_sec": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2592000,
                    "description": "How long the ban lasts, in seconds. At most 30 days."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Temporarily stop copying a leader who dumps right after a buy this task copied and filled."
              },
              "token_age": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply the token-age window. When true, min_sec or max_sec is required."
                  },
                  "min_sec": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 31536000,
                    "description": "Minimum token age to copy, in whole seconds since the token's first pool or launch. 0 is allowed. Maximum 31536000 (1 year)."
                  },
                  "max_sec": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 31536000,
                    "description": "Maximum token age to copy, in whole seconds since the token's first pool or launch. 0 is allowed. Maximum 31536000 (1 year)."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Only copy buys of tokens whose age (seconds since first pool or launch) falls inside this window. 0 on either side means no limit on that side; when both are set, max_sec must be greater than min_sec. Supported on bsc, robinhood, arc and solana. On solana the age counts from the token's launchpad creation only, and a token with no launch record counts as older than any limit (it passes min_sec and fails max_sec). A buy whose token birth cannot be found is skipped."
              },
              "rug_leader_ban": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Stop following a leader once its buys have led this config into pools whose liquidity was later pulled (rug pulls) threshold times. Turning it off resets the counts. Supported on bsc, robinhood, arc and solana."
                  },
                  "threshold": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10,
                    "description": "Number of rug pulls that bans a leader, an integer from 1 to 10. When omitted the execution engine uses 1. PATCH keeps the stored value when omitted, including while enabled is false."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Stop copying a leader whose buys keep ending in pulled liquidity."
              }
            },
            "additionalProperties": false,
            "description": "Conditions that skip a leader buy."
          },
          "follow_sell": {
            "type": "object",
            "properties": {
              "gas": {
                "type": "object",
                "properties": {
                  "priority_fee": {
                    "type": "string",
                    "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
                  },
                  "landing_fee": {
                    "type": "string",
                    "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
                  },
                  "auto_gas": {
                    "type": "boolean",
                    "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
                  },
                  "high_tip": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                      },
                      "priority_fee": {
                        "type": "string",
                        "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                      },
                      "landing_fee": {
                        "type": "string",
                        "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                      }
                    },
                    "additionalProperties": false,
                    "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
                  },
                  "anti_mev": {
                    "type": "boolean",
                    "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
                  }
                },
                "additionalProperties": false,
                "description": "Gas for sells triggered by a followed wallet, including transfer_out. Copy sells use maximum slippage. Each supplied field overrides the same field in sell.gas, then top-level gas. Unspecified fields inherit, including high_tip.enabled. A supplied priority_fee also sets high_tip.priority_fee unless the same request gives its own; otherwise high_tip.priority_fee inherits. BSC, Solana and Robinhood reject an explicit auto_gas, including false. Robinhood uses automatic ordinary gas and rejects high_tip.enabled=true because its routes have no high-tip provider. Other exits and manual sells keep their ordinary sell gas. The same priority_fee rule applies on PATCH; other unsent fields keep their values. Send gas: null to inherit all sell settings again."
              },
              "enabled": {
                "type": "boolean",
                "default": true,
                "description": "Copy the leader's sells. Default true."
              },
              "mode": {
                "type": "string",
                "enum": [
                  "proportional",
                  "sell_all"
                ],
                "default": "proportional",
                "description": "proportional matches the fraction sold by the leader under the selected scope. sell_all sells your whole corresponding position on the first eligible leader sale. Default proportional."
              },
              "scope": {
                "type": "string",
                "enum": [
                  "bundle",
                  "buyer"
                ],
                "default": "bundle",
                "description": "For grouped copy, bundle (default) follows any member using the combined position. buyer follows each leader only for the position bought after that leader and uses its own position for ratios. This also applies to transfer-out sells."
              },
              "sell_all": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Sell the whole position once the leader sells at least pct of theirs. pct is required when this is true."
                  },
                  "pct": {
                    "type": "string",
                    "description": "Leader sell size, as a percent of their position, that triggers a full exit. \"1\" = 1%."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Full exit once the leader sells a large enough share."
              },
              "transfer_out": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Also sell when a followed leader transfers a token out to another wallet (not a swap). Takes effect only while follow_sell.enabled is true and reverse_buy.enabled is false. Transfers to your own wallets or to a contract address (such as a lock, an escrow, a vault or a Safe multisig) do not trigger it. With bundle scope, transfers between leaders of a grouped config also do not trigger it. There is no leader fill price to reference, so the sell goes out at maximum slippage. The resulting orders are ordinary copy sell orders. Supported on bsc, robinhood, arc and solana. Default false."
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "proportional",
                      "position"
                    ],
                    "default": "proportional",
                    "description": "proportional sells the same fraction of your position as the fraction of its balance the leader transferred. position sells pct of your position on every transfer. Default proportional."
                  },
                  "pct": {
                    "type": "string",
                    "description": "Share of your position to sell on every leader transfer, from 0.01 to 100. \"1\" = 1%. Required when enabled is true and mode is position; ignored in proportional mode."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Sell when a followed leader transfers a token out instead of selling it."
              }
            },
            "additionalProperties": false,
            "description": "How to sell when a leader sells. No effect while reverse_buy.enabled is true."
          },
          "price_strategy": {
            "type": "string",
            "enum": [
              "protected",
              "speed_first"
            ],
            "description": "Deprecated; execution ignores it. Configs stored as strategy tasks always read back protected; configs not yet migrated return their stored value. advanced.leader_fill_buy_slippage picks the copy-buy price strategy; advanced.leader_fill_sell_slippage is deprecated too."
          },
          "advanced": {
            "type": "object",
            "properties": {
              "trx_retry": {
                "type": "integer",
                "description": "Deprecated: execution does not read it. Accepted with default 3 and maximum 10; configs stored as strategy tasks (every config created since the TaskSpec migration) do not keep it and read back 3."
              },
              "leader_fill_buy_slippage": {
                "type": "boolean",
                "description": "Price strategy for copy buys. false (default) is Speed first: sent at once, never waiting for the target's fill. Below 100% slippage, if the target's average fill price is available without waiting, the signed minimum received is the higher of the existing basis less slippage and the tokens your amount would buy at that average fill price less slippage. The target's price rise and your own impact then use up slippage. Even if the price already misses the bound, Speed first still sends: the order fails on-chain and you pay network fees. On EVM (BSC/Robinhood), this bound applies when the local estimate covers the target's whole trade or its fill result is already known; otherwise the existing basis remains: the full-amount estimate after the target's fill, else the quote at send time or pool state at execution. On Solana, the fill arrives with the chain event, so Speed first normally uses it; different quote tokens are converted at their latest USD prices. Missing fill or conversion prices leave Speed first using its own quote at send time, with no rejection for missing prices. true is Price protection, unchanged: it uses the target's average fill, may wait, and skips sending without that price or when its quote already misses the bound. On Solana, Price protection usually adds no wait; when the target's transaction cannot be fully read before it lands, or is expected to fail, it decides once that transaction lands. It counts the pool fees you also pay, and sends nothing without the required fill or conversion prices."
              },
              "leader_fill_sell_slippage": {
                "type": "boolean",
                "description": "Deprecated: accepted, but execution does not read it, and configs stored as strategy tasks read back false. Copy sells always go at maximum slippage (10000 bps, no minimum received), whatever this field and the sell slippage say; on BSC and Robinhood a copy sell that continues on the new market after its curve migrates is capped at 9999 bps."
              }
            },
            "required": [
              "trx_retry",
              "leader_fill_buy_slippage",
              "leader_fill_sell_slippage"
            ],
            "additionalProperties": false,
            "description": "Retry count and the copy-buy price strategy (leader_fill_sell_slippage is deprecated)."
          },
          "quote_class_filter": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "native",
                "stable",
                "stock",
                "prestock",
                "other"
              ]
            },
            "maxItems": 5,
            "description": "Solana buy quote-token classes: native (SOL), stable (USDC/USDT/USD1), stock (xStocks/Backpack), prestock (PreStocks), other. Matches the quote of the pool that directly trades the token (the last hop of the leader buy); conversion hops before it, such as through USDC, do not count. Empty or absent means no filter. AND with DEX/mode filters; stocks OR cashback needs two tasks. Compiles to token.quote_class in a root all."
          },
          "max_block_gap": {
            "type": [
              "number",
              "null"
            ],
            "description": "Maximum estimated block gap at the wallet-copy buy decision (Solana: slots). Zero is a same-block estimate. Omit for no limit; PATCH null clears the limit."
          },
          "sell_fee_filter_enabled": {
            "type": "boolean",
            "description": "Enable the sell-back fee filter for copy and sniper buys on Solana, BSC and Robinhood. Absent or false disables it. At buy time, estimates known sell-back fees on the buy route (pool fee plus token sell tax); a known total above sell_fee_max_bps rejects the buy as sell_fee_too_high. Unknown parts pass. When true, sell_fee_max_bps must exist in the create body or stored config merged with PATCH; otherwise HTTP 400 validation_error. GET/list return stored values as-is, without effective defaults. Omitted create/PATCH fields are not written."
          },
          "sell_fee_max_bps": {
            "type": "number",
            "description": "Maximum estimated sell-back fees in integer bps, 0–9999 (100 bps = 1%). Required when sell_fee_filter_enabled is true; 0 is the strictest cap, not off. Known fees above the cap reject the buy; equal fees and unknown parts pass. Excludes price impact, priority fee, tip and platform fees; does not filter actual sell orders. GET/list preserve the stored value, including absence. Omitted create/PATCH fields are not written."
          },
          "buy_slippage_sol": {
            "type": [
              "number",
              "null"
            ],
            "description": "Solana copy and sniper buys only. SOL amount, minimum 0.1, at most 9 decimal places. Replaces percentage buy slippage on both fee lanes; stored percentages are preserved. More than this amount of SOL bought ahead of us prevents the buy: for copy configs, counted from the pool after the leader fill; for sniper configs, from the pool right after the token creation transaction, including the dev first buy. No default: omission uses percentage mode. PATCH omission preserves the value; PATCH null clears it and restores percentage mode. Unsupported chains or unmigrated tasks return validation_error. Not available for sells or manual trades."
          },
          "min_sell_usd": {
            "type": "string",
            "description": "Minimum automatic sell value in USD, a decimal string from 0.01 to 100000 inclusive. A smaller sell is enlarged up to the available position. A remainder worth less than the higher of this minimum and the sell cost is included. Omit for remainder cleanup only, using $1 and the sell cost. EVM flash sells before the buy receipt may fall below the minimum."
          },
          "retain_bps": {
            "type": "number",
            "description": "Share of each new buy retained from automatic sells (including stop loss), in integer basis points (1–9999, 100 bps = 1%). Omit for no retention. Changing the share affects future buys. Manual sells can use the retained tokens. An EVM task flash sell sent before the buy receipt approximates the reserve."
          },
          "usdc_trading": {
            "type": "boolean",
            "description": "Solana only. true lets USDC pools use USDC first for buys and keeps sell proceeds in USDC; false uses SOL only. Existing USDC must be handled separately when disabled. New tasks default to false in the domain; omitted PATCH fields preserve the stored setting. GET/list return the stored value. Tasks created before the strategy-task migration cannot store it: writing it to such a task returns HTTP 400 validation_error. Writing on any other chain, including false, returns HTTP 400 unsupported_chain_feature."
          },
          "buy_fee_tip_first": {
            "type": "boolean",
            "description": "Solana only. Lower failure cost in buy auto mode: if a buy lands on-chain but fails (for example, slippage exceeded), at most about 0.001 SOL of priority fee is charged and the tip is not. This sacrifices some speed. Applies to copy and sniper buys with fixed or proportional total fees. Absent or false disables it. Writing true requires the merged config to have buy_fee_auto true and gas.high_tip.enabled not true; otherwise HTTP 400 validation_error. Manual mode and sells ignore it. GET/list return the stored value; a Solana task in buy auto mode without high tip returns false when unset. Omitted PATCH fields are not written. Writing on any other chain, including false, returns HTTP 400 unsupported_chain_feature."
          },
          "buy_fee_tip_first_min": {
            "type": "boolean",
            "description": "Solana only. No longer affects execution; still accepted, stored and read back as before. Writing true still requires the merged config to have buy_fee_tip_first true; otherwise HTTP 400 validation_error with details for buy_fee_tip_first_min. GET/list return the stored value; Solana strategy tasks in buy auto mode with tip-first enabled return false when unset. Unrelated PATCH edits preserve an inactive min flag. Turning buy_fee_tip_first off also turns min off unless the PATCH explicitly supplies min. An explicit min field in the PATCH takes precedence and is validated as supplied. Null PATCH is rejected. Writing on any other chain, including false, returns HTTP 400 unsupported_chain_feature."
          },
          "buy_fee_auto": {
            "type": "boolean",
            "description": "Solana only. true = auto fee mode for buys: with gas.high_tip.enabled false the executor treats gas.priority_fee + gas.landing_fee as one budget and splits it per landing route, with no priority fee cap. Omitted or false uses manual fees as entered. Enabling high_tip also selects manual fees even when this flag is true. Read the tiers using the total budget. With ratio fees, use the total calculated for the buy amount. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings."
          },
          "sell_fee_auto": {
            "type": "boolean",
            "description": "Solana only. true = auto fee mode for sells: with gas.high_tip.enabled false the executor treats gas.priority_fee + gas.landing_fee as one budget and splits it per landing route, with no priority fee cap. Omitted or false uses manual fees as entered. Enabling high_tip also selects manual fees even when this flag is true. Read the tiers using the total budget. Stop-loss sells may be late when the budget is low. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings."
          },
          "buy_fee_filter_enabled": {
            "type": "boolean",
            "description": "Enable the task buy-fee filter. When absent from the task, defaults to enabled at 25% (2500 bps), or the stored limit if 0 < buy_fee_max_bps < 10000. Explicit false disables it; explicit true filters only with a valid limit. GET/list preserve the stored enabled flag (absent stays absent) and return the effective buy_fee_max_bps. An omitted enabled flag means filtering is on at the returned limit for known fees only; sending true opts into the user-set rule below. Omitted create/PATCH fields are not written. Applies to copy and snipe buys on all four Cell chains. The default caps known fees only; undetectable fees are not counted and pass in both Speed first and Price protection. With explicit true and a valid limit, copy buys in Price protection on EVM and Solana reject undetectable fees as buy_fee_unknown; on Solana a Meteora DLMM variable fee is judged at this buy's highest possible rate."
          },
          "buy_fee_max_bps": {
            "type": "number",
            "description": "Maximum buy fees and taxes in integer bps (100 bps = 1%). When buy_fee_filter_enabled is absent from the task, uses a stored limit if 0 < buy_fee_max_bps < 10000, otherwise 2500 bps (25%). With explicit true, only 1–9999 enables filtering; 0 or an absent limit disables it. GET/list return the effective limit and preserve the stored buy_fee_filter_enabled flag (absent stays absent). An omitted flag means filtering is on at the returned limit for known fees only; sending true opts into the user-set rule below. Excludes price impact, priority fee, tip and platform fees. Known fees above this limit are rejected. When buy_fee_filter_enabled is absent, the default caps known fees only; undetectable fees are not counted and pass on every chain in both Speed first and Price protection. Only an explicitly enabled filter with a valid limit rejects undetectable fees for copy buys in Price protection on EVM and Solana as buy_fee_unknown (on Solana a Meteora DLMM variable fee is judged at this buy's highest possible rate); Speed first and sniper buys allow them."
          },
          "buy_landing_fee_bps": {
            "type": "number",
            "description": "Solana auto mode only: buy total fee as nonnegative integer bps of the actual SOL principal (100 bps = 1%). Absent or 0 selects fixed total fees; no ratio cap. For copy and sniper buys, total = clamp(principal × bps / 10000, buy_landing_fee_min, buy_landing_fee_max), split into priority fee and tip per landing route like auto-mode total fees. The stored buy priority_fee and landing_fee are ignored; slippage still applies. Read only in auto fee mode (buy_fee_auto true, gas.high_tip.enabled false); manual mode ignores it, and setting a new positive value on a manual task returns 400. Sell and manual orders are unaffected. Callers are responsible for the chosen ratio; no confirmation step. Writing on EVM returns HTTP 400 unsupported_chain_feature, including 0."
          },
          "buy_landing_fee_min": {
            "type": "string",
            "description": "Solana auto-mode ratio fee minimum total in SOL, decimal string up to 9 places, at least \"0.0001\" (the cheapest landing route's minimum tip; \"0\" is rejected). When the effective buy_landing_fee_bps > 0 and no minimum was stored or sent, create/PATCH writes \"0.002\". Total = clamp(principal × bps / 10000, min, max), split per landing route like auto-mode total fees; stored buy priority_fee/landing_fee are ignored. A positive minimum must not exceed a positive maximum. Ratio fees apply only in auto fee mode (buy_fee_auto true, gas.high_tip.enabled false). Copy and sniper buys only; sells and manual orders unaffected. Writing on EVM returns HTTP 400 unsupported_chain_feature, including \"0\"."
          },
          "buy_landing_fee_max": {
            "type": "string",
            "description": "Solana auto-mode ratio fee maximum total in SOL, decimal string up to 9 places. Absent or \"0\" means no cap. Total = clamp(principal × buy_landing_fee_bps / 10000, buy_landing_fee_min, max), split per landing route like auto-mode total fees; stored buy priority_fee/landing_fee are ignored. A positive maximum must be at least a positive minimum. Ratio fees apply only in auto fee mode (buy_fee_auto true, gas.high_tip.enabled false). Copy and sniper buys only; sells and manual orders unaffected. Writing on EVM returns HTTP 400 unsupported_chain_feature, including \"0\". Omitted create/PATCH maximums are not written."
          },
          "buy_schedule": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "boolean",
                "description": "Apply the window. false keeps the times stored without restricting buys."
              },
              "timezone": {
                "type": "string",
                "description": "IANA time zone name the minutes are read in, for example Asia/Shanghai. The name is stored in its canonical form (asia/shanghai is stored as Asia/Shanghai, utc as UTC); offsets such as +08:00 and names longer than 64 characters are rejected."
              },
              "start_minute": {
                "type": "number",
                "description": "Window start, in whole minutes after local midnight, 0 to 1439. The start minute is inside the window."
              },
              "end_minute": {
                "type": "number",
                "description": "Window end, in whole minutes after local midnight, 0 to 1439. The end minute is outside the window. When it is smaller than start_minute the window crosses midnight (1260 to 120 is 21:00 to 02:00). It must differ from start_minute."
              }
            },
            "required": [
              "enabled",
              "timezone",
              "start_minute",
              "end_minute"
            ],
            "additionalProperties": false,
            "description": "Daily buy window. Outside the window no new positions are opened (no follow buys, no snipe buys); sells, take-profit and stop-loss keep running. Omit it, or send enabled false, for no restriction. PATCH replaces the whole object, so send all four fields; null is rejected. Supported on bsc, robinhood, arc and solana."
          }
        },
        "required": [
          "id",
          "status",
          "version",
          "run_state",
          "read_only",
          "engine",
          "created_via",
          "created_at",
          "updated_at",
          "deleted_at",
          "labels",
          "kind",
          "chain",
          "wallet_id",
          "wallet_ids",
          "slippage_pct",
          "gas",
          "exit",
          "leaders",
          "buy",
          "dedupe",
          "group_follow",
          "reverse_buy",
          "buy_filter",
          "follow_sell",
          "price_strategy",
          "advanced"
        ]
      },
      "CopyTradeConfigDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Config id. Use it in the path of later calls."
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "paused",
              "deleted"
            ],
            "description": "What was asked for — see engine.sync_state for what the execution engine last confirmed."
          },
          "version": {
            "type": "number",
            "description": "Optimistic-concurrency version. Send as the ETag/If-Match value on writes."
          },
          "run_state": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "enum": [
                  "running",
                  "buy_paused",
                  "stopped"
                ],
                "description": "running: enabled; buy_paused: new buys paused, sells continue; stopped: disabled or deleted."
              },
              "reason": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Known buy-pause reasons: account, loss_streak, creator_limit, leader_token_limit, follow_count, buy_fail_streak, funding_low. Buys pause while sells and exits continue. For run-bound pauses, reopen to start a new run: follow, loss and creator counts reset; leader distinct-token counts persist, so raise the limit or disable that filter before reopening. Known stop reasons: low_balance, inactivity, loss_streak, creator_limit. Null means no recorded reason or user stop; unknown reasons are preserved."
              }
            },
            "required": [
              "state",
              "reason"
            ],
            "description": "Task run state. Configs stored as strategy tasks (every config created since the TaskSpec migration, and migrated ones) report all three states; configs not yet migrated report running or stopped."
          },
          "read_only": {
            "type": "boolean",
            "description": "True for archived configs or strategy configs using settings this API cannot express. Archived configs reject all configuration writes, including pause, resume and delete, with 409 task_read_only; GET and labels-only PATCH still work. For strategy configs, pause, resume, delete and labels-only PATCH still work, but any other PATCH, including name, returns 409 task_read_only; edit those settings in the app instead."
          },
          "engine": {
            "type": "object",
            "properties": {
              "applied_version": {
                "type": "number",
                "description": "Config version the execution engine last acknowledged."
              },
              "sync_state": {
                "type": "string",
                "enum": [
                  "syncing",
                  "synced",
                  "failed"
                ],
                "description": "syncing: the engine has not confirmed this version yet. synced: it has. failed: the last attempt failed; see error_code."
              },
              "buy_entry": {
                "type": "string",
                "enum": [
                  "open",
                  "closed"
                ],
                "description": "open: the engine is accepting new buys for this config. closed: it is not (paused, deleted, or not yet confirmed)."
              },
              "warning_code": {
                "type": "string",
                "description": "The config has taken effect. prior_buyers_unavailable means listed wallet history is still loading. prior_buyers_fast_unavailable means updates for some listed wallets are delayed. The task may miss purchases those wallets make just before the leader buys. This warning does not reject buys. prior_buyers_over_limit means the account exceeds the wallet limit on this chain. Purchases by wallets beyond the limit are not checked. prior_buyers_history_truncated means a listed wallet bought more than 5,000 distinct tokens inside the window. Only its most recent 5,000 are checked. The task keeps running."
              },
              "error_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why the last engine sync failed. Null when sync_state is not failed."
              },
              "updated_at": {
                "type": "string",
                "description": "When the engine last reported this state, RFC 3339 UTC."
              }
            },
            "required": [
              "applied_version",
              "sync_state",
              "buy_entry",
              "error_code",
              "updated_at"
            ],
            "description": "What the execution engine last confirmed. status is what you asked for; this is what the engine has applied."
          },
          "created_via": {
            "type": "string",
            "enum": [
              "web",
              "api"
            ],
            "description": "web if the config was created in the app, api if it was created through this API."
          },
          "created_at": {
            "type": "string",
            "description": "When the config was created, RFC 3339 UTC."
          },
          "updated_at": {
            "type": "string",
            "description": "When the config was last changed, RFC 3339 UTC."
          },
          "deleted_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "When the config was soft-deleted, RFC 3339 UTC. Null while it is active or paused."
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 24
            },
            "description": "The caller's own labels on this task, or an empty array if none are set. Replace them with PATCH (labels: string[]): at most 10 labels, each 1-24 characters after trimming, duplicates removed, the array replaces the whole set, null is rejected. Changing only labels does not require the config to be paused and does not change version or engine state."
          },
          "kind": {
            "type": "string",
            "enum": [
              "copy_trade"
            ],
            "description": "Always copy_trade."
          },
          "chain": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "bsc",
                  "robinhood",
                  "solana",
                  "arc"
                ]
              },
              {
                "type": "string",
                "minLength": 1
              }
            ],
            "description": "Chain this config runs on. Documented values are bsc/robinhood/solana/arc; a config stored on any other chain (created outside this API, e.g. by the Web app) is still reported verbatim rather than rejected."
          },
          "wallet_id": {
            "type": "string",
            "description": "First entry of wallet_ids, kept for callers that only know a single wallet. Use wallet_ids for the complete list. Immutable once created."
          },
          "wallet_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Every custodial wallet that executes this config, in stored order. A config created with the app may have several. Immutable once created."
          },
          "name": {
            "type": "string",
            "description": "Caller-assigned label for the config."
          },
          "slippage_pct": {
            "type": "string",
            "description": "Task-level slippage percentage. \"1\" = 1%. Also the sell-side value unless sell is returned. In tiers mode, buy slippage comes from buy.tiers[].gas.slippage_pct."
          },
          "gas": {
            "type": "object",
            "properties": {
              "priority_fee": {
                "type": "string",
                "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
              },
              "landing_fee": {
                "type": "string",
                "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
              },
              "auto_gas": {
                "type": "boolean",
                "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
              },
              "high_tip": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                  },
                  "priority_fee": {
                    "type": "string",
                    "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                  },
                  "landing_fee": {
                    "type": "string",
                    "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                  }
                },
                "additionalProperties": false,
                "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
              },
              "anti_mev": {
                "type": "boolean",
                "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
              }
            },
            "additionalProperties": false,
            "description": "Task gas settings. In tiers mode, set buy priority fees and landing tips, including high-tip values, in buy.tiers[].gas; the one exception is high_tip.priority_fee and high_tip.landing_fee sent with the PATCH that turns high_tip.enabled on without a buy.tiers table, which seed every tier. Use sell.gas for sell fees. anti_mev, high_tip.enabled and any supported task-level auto_gas remain task settings."
          },
          "sell": {
            "type": "object",
            "properties": {
              "slippage_pct": {
                "type": "string",
                "description": "Stored sell-side max slippage. \"1\" = 1%. Only Flash Sell, Dev Sell and Migration Sell use it; the other automatic sells, including sales triggered by a confirmed earlier buy from a listed wallet (forward copy trades only), are sent at maximum slippage (see the request field sell.slippage_pct)."
              },
              "gas": {
                "type": "object",
                "properties": {
                  "priority_fee": {
                    "type": "string",
                    "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
                  },
                  "landing_fee": {
                    "type": "string",
                    "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
                  },
                  "auto_gas": {
                    "type": "boolean",
                    "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
                  },
                  "high_tip": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                      },
                      "priority_fee": {
                        "type": "string",
                        "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                      },
                      "landing_fee": {
                        "type": "string",
                        "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                      }
                    },
                    "additionalProperties": false,
                    "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
                  },
                  "anti_mev": {
                    "type": "boolean",
                    "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
                  }
                },
                "additionalProperties": false,
                "description": "Stored sell-side gas settings."
              }
            },
            "required": [
              "slippage_pct",
              "gas"
            ],
            "additionalProperties": false,
            "description": "Sell-side values, returned only when they differ from the top-level slippage_pct / gas (which show the buy side). Omitted when buy and sell are the same."
          },
          "exit": {
            "type": "object",
            "properties": {
              "take_profit": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "amount_basis": {
                      "type": "string",
                      "enum": [
                        "initial",
                        "remaining"
                      ],
                      "description": "Use the bought amount (default) or the amount remaining at trigger time."
                    },
                    "gain_pct": {
                      "type": "string",
                      "description": "Price rise that triggers this take-profit. \"1\" = 1%."
                    },
                    "sell_pct": {
                      "type": "string",
                      "description": "Share of the position to sell when gain_pct is reached. \"1\" = 1%. If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                    },
                    "expires_in_sec": {
                      "type": "integer",
                      "description": "How long this entry stays armed, in seconds. Default 259200 (3 days). After that it stops applying and does not sell."
                    }
                  },
                  "required": [
                    "gain_pct",
                    "sell_pct",
                    "expires_in_sec"
                  ],
                  "additionalProperties": false,
                  "description": "One take-profit level."
                },
                "description": "Up to 20 take-profit levels. Each sells sell_pct of the position when price is up gain_pct. An expired entry stops applying and does not sell."
              },
              "segmented_take_profit": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Whether segmented take-profit is active. Turning it off keeps the saved segments. At least one segment is required when this is true. Disable with enabled=false, never with null."
                  },
                  "amount_basis": {
                    "type": "string",
                    "enum": [
                      "initial",
                      "remaining"
                    ],
                    "description": "Use the bought amount (default) or the amount remaining at trigger time."
                  },
                  "segments": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "gain_pct": {
                          "type": "string",
                          "description": "Rise of this segment, added to the rises of the segments before it, as a percent of the buy price: segment n triggers at buy price × (1 + the gain_pct of segments 1 to n). \"1\" = 1%."
                        },
                        "sell_pct": {
                          "type": "string",
                          "description": "Share of the group’s selected amount basis to sell when price reaches this segment's trigger price. Capped at what is left. \"1\" = 1%. If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                        },
                        "expires_in_ms": {
                          "type": "integer",
                          "description": "Lifetime of this segment in milliseconds. Omit or set 0 for no timeout; PATCH replaces the segments array, so an omitted lifetime in a replacement segment resets to 0. The first segment's lifetime starts when the buy is sent; each later segment's starts when the previous segment ends. When a positive lifetime runs out before the trigger price is reached and timeout_sell is enabled, timeout_sell.sell_pct is sold. This is not take_profit: an expired take_profit entry simply stops applying."
                        },
                        "timeout_sell": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "description": "Sell when this segment's lifetime runs out before its trigger price is reached."
                            },
                            "sell_pct": {
                              "type": "string",
                              "description": "Share of the group’s selected amount basis to sell on timeout. Capped at what is left. \"1\" = 1%. Default \"100\"."
                            }
                          },
                          "required": [
                            "enabled",
                            "sell_pct"
                          ],
                          "additionalProperties": false,
                          "description": "Sell that fires when this segment expires before its trigger price."
                        }
                      },
                      "required": [
                        "gain_pct",
                        "sell_pct",
                        "expires_in_ms",
                        "timeout_sell"
                      ],
                      "additionalProperties": false,
                      "description": "One segmented take-profit level, with its own lifetime and timeout sell."
                    },
                    "description": "Up to 20 segments, run in order: only the current segment waits, and the next one starts after its sell fills. The last segment repeats until the position is sold. They are reported even while enabled is false, so an edit returns them unchanged."
                  }
                },
                "required": [
                  "enabled",
                  "segments"
                ],
                "additionalProperties": false,
                "description": "Segmented take-profit. Segments run in order, their rises add up from the buy price, and each has its own lifetime and timeout sell. Lifetimes are milliseconds."
              },
              "stop_loss": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          false
                        ],
                        "description": "Stop-loss is off. A disabled response is only this field — the other keys are absent."
                      }
                    },
                    "required": [
                      "enabled"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          true
                        ],
                        "description": "Stop-loss is armed."
                      },
                      "amount_basis": {
                        "type": "string",
                        "enum": [
                          "initial",
                          "remaining"
                        ],
                        "description": "Use the bought amount (default) or the amount remaining at trigger time."
                      },
                      "loss_pct": {
                        "type": "string",
                        "description": "Drop from entry that triggers the sell. \"1\" = 1%."
                      },
                      "sell_pct": {
                        "type": "string",
                        "description": "Share of the position to sell. \"1\" = 1%."
                      },
                      "expires_in_sec": {
                        "type": "integer",
                        "description": "How long the stop-loss stays armed, in seconds."
                      }
                    },
                    "required": [
                      "enabled",
                      "loss_pct",
                      "sell_pct",
                      "expires_in_sec"
                    ],
                    "additionalProperties": false
                  }
                ],
                "description": "Stop-loss. When it is off, the object is only {enabled:false}."
              },
              "trailing": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          false
                        ],
                        "description": "Trailing stop is off. A disabled response is only this field — the other keys are absent."
                      }
                    },
                    "required": [
                      "enabled"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          true
                        ],
                        "description": "Trailing stop is armed."
                      },
                      "amount_basis": {
                        "type": "string",
                        "enum": [
                          "initial",
                          "remaining"
                        ],
                        "description": "Use the bought amount (default) or the amount remaining at trigger time."
                      },
                      "activation_gain_pct": {
                        "type": "string",
                        "description": "Rise that armed the trailing stop. \"0\" means it was armed immediately. \"1\" = 1%."
                      },
                      "drop_pct": {
                        "type": "string",
                        "description": "Drop from the high-water mark that triggers the sell. \"1\" = 1%."
                      },
                      "sell_pct": {
                        "type": "string",
                        "description": "Share of the position to sell. \"1\" = 1%."
                      },
                      "expires_in_sec": {
                        "type": "integer",
                        "description": "How long the trailing stop stays armed, in seconds."
                      }
                    },
                    "required": [
                      "enabled",
                      "activation_gain_pct",
                      "drop_pct",
                      "sell_pct",
                      "expires_in_sec"
                    ],
                    "additionalProperties": false
                  }
                ],
                "description": "Trailing stop. When it is off, the object is only {enabled:false}."
              },
              "timed_sell": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          false
                        ],
                        "description": "Timed sell is off. A disabled response is only this field — the other keys are absent."
                      }
                    },
                    "required": [
                      "enabled"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          true
                        ],
                        "description": "Timed sell is armed."
                      },
                      "same_block_delay_ms": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 86400000,
                        "description": "Delay for a buy landing in the same block (Solana slot) as the leader."
                      },
                      "next_block_delay_ms": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 86400000,
                        "description": "Delay for a buy landing one block (Solana slot) after the leader."
                      },
                      "after_sec": {
                        "type": "integer",
                        "description": "Delay in whole seconds from the first actual buy write."
                      },
                      "after_ms": {
                        "type": "integer",
                        "description": "Exact delay in milliseconds. Present together with after_sec; after_ms is the precise value."
                      },
                      "sell_pct": {
                        "type": "string",
                        "description": "Share of the position to sell. \"1\" = 1%."
                      }
                    },
                    "required": [
                      "enabled",
                      "after_sec",
                      "after_ms",
                      "sell_pct"
                    ],
                    "additionalProperties": false
                  }
                ],
                "description": "Timed sell. When it is off, the object is only {enabled:false}."
              },
              "dev_sell": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether this option is on. Turn an object option off with enabled=false, never with null."
                  }
                },
                "additionalProperties": false,
                "description": "Whether this config sells the same fraction the token developer sold. The full-exit threshold is not on this API; the stored default is the developer selling their entire balance."
              },
              "migration_sell": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether this option is on. Turn an object option off with enabled=false, never with null."
                  },
                  "sell_pct": {
                    "type": "string",
                    "description": "Share of the remaining position to sell on migration, from 0.01 to 100 percent. \"1\" = 1%. Default \"100\". If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                  }
                },
                "required": [
                  "sell_pct"
                ],
                "additionalProperties": false,
                "description": "On Robinhood, BSC and Solana Cell tasks, sell the configured share after a token migrates to an AMM, once per task, wallet and token. Applies only to positions bought on the bonding curve while enabled; uses the task sell settings. Arc accepts and stores this rule without execution: Arc launchpads (Argus, O1, Pools) issue directly on AMMs with no migration event."
              },
              "anti_wick": {
                "type": "boolean",
                "default": false,
                "description": "Anti-wick. Off (absent or false): on Solana, ordinary take profit, stop loss and the limit buys of the same strategy trigger as soon as a qualifying trade touches the trigger price and then sell or buy at market (trades that do not count: https://apm.fun/docs/copy-trading/strategy-settings#anti-wick), so the fill can differ from the trigger price. A limit buy is not triggered by single trades in the block it was placed in. On: they trigger only if the price still meets the condition at the end of the block (Solana slot), ignoring brief spikes and dips inside it. Segmented take profit, trailing and break-even stops and conditional exits always trigger on the end-of-block price, either way. No effect on BSC and Robinhood. Not an exit by itself: exits still need at least one exit."
              }
            },
            "required": [
              "take_profit",
              "segmented_take_profit",
              "stop_loss",
              "trailing",
              "timed_sell",
              "dev_sell",
              "migration_sell"
            ],
            "additionalProperties": false,
            "description": "Automatic exit rules currently stored on this config."
          },
          "leaders": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string",
                  "enum": [
                    "wallet",
                    "fomo"
                  ],
                  "description": "wallet: copy an address. fomo: copy one FOMO handle. A fomo leader must be the only leader on the config."
                },
                "ref": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "description": "For source wallet, a Solana base58 address or an EVM address on the selected chain. For source fomo, a handle (letters, digits, \"_\", \".\", \"-\"; optional leading \"@\"). A wallet cannot follow itself, and the same wallet cannot be listed twice. EVM wallet leaders with publicly known private keys (the 20 default Hardhat/Anvil accounts) are rejected."
                },
                "resolved_wallet": {
                  "type": "string",
                  "description": "Read-only. The address this leader entry resolves to."
                }
              },
              "required": [
                "source",
                "ref",
                "resolved_wallet"
              ],
              "additionalProperties": false,
              "description": "One leader to copy."
            },
            "description": "Leaders this config copies. Ordinary wallet leaders can be replaced with PATCH while paused and synced. Each entry includes resolved_wallet, the address it follows."
          },
          "buy": {
            "type": "object",
            "properties": {
              "mode": {
                "type": "string",
                "enum": [
                  "fixed",
                  "ratio",
                  "copy",
                  "dynamic",
                  "tiers"
                ],
                "description": "fixed spends amount of the native token each buy (amount is required). ratio multiplies the leader amount by ratio (\"1\" = the same size). copy mirrors the leader native amount and rejects amount and ratio. dynamic buys max_per_trade minus the leader buy amount converted to native tokens. A zero result or a leader buy at or above the cap rejects with buy_dynamic_cap_reached. tiers sizes each buy using the first matching entry in tiers. Default ratio."
              },
              "amount": {
                "type": "string",
                "description": "Native-token amount per buy. Required when mode is fixed. Decimal string, up to 18 decimal places."
              },
              "ratio": {
                "type": "string",
                "description": "Multiplier of the leader amount when mode is ratio. \"1\" = the same size. Up to 4 decimal places, maximum \"100\"."
              },
              "max_per_trade": {
                "type": "string",
                "description": "Cap on one buy, in the native token. Required in dynamic mode. Decimal string."
              },
              "tiers": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "market_cap": {
                      "type": "object",
                      "properties": {
                        "min_usd": {
                          "type": "string",
                          "description": "Inclusive lower bound in USD. Omit or send \"0\" for no lower bound."
                        },
                        "max_usd": {
                          "type": "string",
                          "description": "Inclusive upper bound in USD. Omit or send \"0\" for no upper bound."
                        }
                      },
                      "additionalProperties": false,
                      "description": "Leader buy fill market cap window. A tier without either bound is a fallback and can only be last."
                    },
                    "mode": {
                      "type": "string",
                      "enum": [
                        "fixed",
                        "ratio",
                        "dynamic"
                      ],
                      "description": "fixed uses amount. ratio uses ratio and can cap it with max_per_trade. dynamic buys max_per_trade minus the leader buy amount converted to native tokens."
                    },
                    "amount": {
                      "type": "string",
                      "description": "Native-token amount for this tier, required in fixed mode."
                    },
                    "ratio": {
                      "type": "string",
                      "description": "Leader buy size multiplier for this tier, required in ratio mode. \"1\" = the same size."
                    },
                    "max_per_trade": {
                      "type": "string",
                      "description": "Native-token cap, required for dynamic and optional for ratio."
                    },
                    "gas": {
                      "type": "object",
                      "properties": {
                        "slippage_pct": {
                          "type": "string",
                          "description": "Buy slippage for this fee lane. \"1\" = 1%."
                        },
                        "priority_fee": {
                          "type": "string",
                          "description": "Priority fee as a decimal string in SOL on Solana or Gwei on EVM."
                        },
                        "landing_fee": {
                          "type": "string",
                          "description": "Landing tip as a decimal string in the native token. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings."
                        },
                        "auto_gas": {
                          "type": "boolean",
                          "description": "Automatic gas estimation on EVM. On Solana use buy_fee_auto."
                        },
                        "high_tip": {
                          "type": "object",
                          "properties": {
                            "slippage_pct": {
                              "type": "string",
                              "description": "Buy slippage for this fee lane. \"1\" = 1%."
                            },
                            "priority_fee": {
                              "type": "string",
                              "description": "Priority fee as a decimal string in SOL on Solana or Gwei on EVM."
                            },
                            "landing_fee": {
                              "type": "string",
                              "description": "Landing tip as a decimal string in the native token. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings."
                            }
                          },
                          "required": [
                            "slippage_pct",
                            "priority_fee",
                            "landing_fee"
                          ],
                          "additionalProperties": false,
                          "description": "This tier’s high-tip slippage, priority fee and landing tip. Required on every tier when task gas.high_tip.enabled is true, and must be omitted otherwise."
                        }
                      },
                      "required": [
                        "slippage_pct",
                        "priority_fee",
                        "landing_fee"
                      ],
                      "additionalProperties": false,
                      "description": "Complete buy fees and slippage for this tier. Each tier supplies its own values. Anti-MEV and the high-tip switch are set on the task."
                    },
                    "buy_fee_auto": {
                      "type": "boolean",
                      "description": "Solana only. Use automatic fee splitting for this tier when the task high-tip lane is off. Read tip tiers using the combined priority fee and tip budget."
                    },
                    "buy_fee_tip_first": {
                      "type": "boolean",
                      "description": "Solana only. Use tip-first splitting for this tier in automatic fee mode."
                    },
                    "buy_fee_tip_first_min": {
                      "type": "boolean",
                      "description": "Solana only. Stored for compatibility and has no execution effect."
                    },
                    "buy_landing_fee_bps": {
                      "type": "integer",
                      "description": "Solana only. Budget for the two fees combined, in basis points of this buy’s SOL principal. A positive ratio requires auto fees with the task high-tip lane off. Omit or use 0 for fixed fees."
                    },
                    "buy_landing_fee_min": {
                      "type": "string",
                      "description": "Minimum total automatic landing fee in SOL. Requires buy_landing_fee_bps."
                    },
                    "buy_landing_fee_max": {
                      "type": "string",
                      "description": "Maximum total automatic landing fee in SOL. Requires buy_landing_fee_bps. Omit or send \"0\" for no cap."
                    },
                    "buy_slippage_sol": {
                      "type": "number",
                      "description": "Solana only. Amount of SOL bought ahead of this tier’s buy, measured from the pool after the leader fill. Minimum 0.1 SOL, at most 9 decimals. Replaces percentage slippage on both fee lanes."
                    }
                  },
                  "required": [
                    "mode",
                    "gas"
                  ],
                  "additionalProperties": false
                },
                "description": "Required in tiers mode for forward copy buys. Supply 1 to 10 tiers in match order; the first matching tier wins and both USD bounds are inclusive. Each tier supplies its own sizing, fees and slippage. Selection uses the leader buy fill market cap. EVM Speed first uses the resident market cap before the leader’s buy if the fill has not landed. A buy with no match is rejected as buy_tier_no_match. If the market cap is unavailable, Speed first rejects as buy_tier_market_cap_unknown and Price protection reads once more before rejecting with the same code. PATCH replaces the entire array when supplied and clears it when switching to another mode."
              },
              "delay_ms": {
                "type": "integer",
                "description": "Wait this many milliseconds after a copy signal before buying, an integer from 0 to 86400000 (24 hours). 0 means no delay and is not echoed back; responses include delay_ms only when it is above 0. Omit to leave unset on create and unchanged on PATCH."
              }
            },
            "required": [
              "mode"
            ],
            "additionalProperties": false,
            "description": "How much to buy when a leader buys."
          },
          "dedupe": {
            "type": "object",
            "properties": {
              "first_buy_only": {
                "type": "boolean",
                "default": false,
                "description": "Only copy a leader's first buy of a token within first_buy_window_minutes (360 minutes when omitted). A later buy outside the window can add to an existing position; set block_if_held to skip tokens this wallet already holds."
              },
              "first_buy_window_minutes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 720,
                "description": "First-buy lookback in whole minutes, 0–720. Omit for the executor default of 360 minutes. 0 ignores the leader's buy history but still blocks another copy while the first is in flight. Reverse tasks do not use this window."
              },
              "block_if_held": {
                "type": "boolean",
                "default": false,
                "description": "Skip the buy when this wallet already holds the token."
              }
            },
            "additionalProperties": false,
            "description": "Skip repeat buys of a token."
          },
          "group_follow": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "boolean",
                "default": false,
                "description": "Whether this option is on. Turn an object option off with enabled=false, never with null."
              }
            },
            "additionalProperties": false,
            "description": "Whether all leader wallets are treated as one portfolio for stateful buy filters and for copy sells when follow_sell.scope is bundle."
          },
          "reverse_buy": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "boolean",
                "description": "Whether this option is on. Turn an object option off with enabled=false, never with null."
              },
              "min_leader_sell_pct": {
                "type": "string",
                "description": "Only for Buy on Sell (reverse_buy). Buy only when the leader sale reaches at least this share of the leader position before the sale. \"1\" = 1%, up to 2 decimal places, maximum \"100\". Omit or \"0\" for no limit. On solana the share is computed over the target token accounts involved in the transaction. A non-zero value is rejected while enabled is false; PATCH that turns reverse_buy off clears the stored value."
              },
              "min_leader_first_buy": {
                "type": "string",
                "description": "Inclusive minimum for the leader wallet’s first buy in the sold token’s current holding round. Decimal string in SOL, BNB or ETH. Omit or use \"0\" for no lower bound. A positive value requires reverse_buy.enabled. Unknown first-buy amounts skip entry."
              },
              "max_leader_first_buy": {
                "type": "string",
                "description": "Inclusive maximum for the leader wallet’s first buy in the sold token’s current holding round. Decimal string in SOL, BNB or ETH. Omit or use \"0\" for no upper bound. A positive value requires reverse_buy.enabled and must be at least the minimum."
              }
            },
            "required": [
              "enabled"
            ],
            "additionalProperties": false,
            "description": "Buy on Sell: buy when the leader sells; their buys are ignored, and their sells are not copied (follow_sell has no effect while this is on). Exit with take-profit, stop-loss or other sell settings."
          },
          "filters": {
            "type": "object",
            "properties": {
              "prior_buyer_blacklist": {
                "type": "object",
                "properties": {
                  "sell_on_late_discovery": {
                    "type": "boolean",
                    "description": "Whether to sell this buy if a listed wallet is later confirmed to have bought before the leader."
                  },
                  "addresses": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Wallets checked for purchases before the leader buy."
                  },
                  "window_sec": {
                    "type": "number",
                    "description": "Stored lookback before each leader buy, in seconds. For each listed wallet, the task looks back over the window you set or the last 5,000 distinct tokens it bought, whichever comes first."
                  }
                },
                "required": [
                  "addresses",
                  "window_sec"
                ],
                "description": "Wallets to check for earlier purchases and the lookback before each leader buy."
              }
            },
            "description": "Forward copy-buy filters."
          },
          "buy_filter": {
            "type": "object",
            "properties": {
              "amount": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply the leader buy-size window. When true, min or max is required."
                  },
                  "min": {
                    "type": "string",
                    "description": "Smallest leader buy to copy, in the native token. When reverse_buy.enabled is true, this is the minimum native-token amount the leader receives from this sell. Decimal string. Zero is allowed."
                  },
                  "max": {
                    "type": "string",
                    "description": "Largest leader buy to copy, in the native token. When reverse_buy.enabled is true, this is the maximum native-token amount the leader receives from this sell. Decimal string. Zero is allowed."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Only copy leader buys whose native-token size falls inside this window."
              },
              "market_cap": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply the market-cap window. When true, min_usd or max_usd is required."
                  },
                  "min_usd": {
                    "type": "string",
                    "description": "Smallest token market cap to copy, in USD. Decimal string, up to 2 decimal places."
                  },
                  "max_usd": {
                    "type": "string",
                    "description": "Largest token market cap to copy, in USD. Decimal string, up to 2 decimal places."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Only copy buys of tokens inside this USD market-cap window."
              },
              "dex": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Only copy buys on the DEXes in allowed. An enabled filter with an empty list is rejected, because it would block every buy."
                  },
                  "allowed": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    },
                    "maxItems": 32,
                    "description": "DEX allowlist. On Solana, Pump has normal/Mayhem/Cashback children: pumpfun-normal/pumpfun-mayhem/pumpfun-cashback. Select venues pumpfun/pumpfun-amm plus allowed modes; no modes means all. Both flags require both modes; direct PumpSwap pools are normal. Pre-change lists containing pumpfun-mayhem without pumpfun-normal or pumpfun-cashback now mean Mayhem only; existing tasks are migrated. Mode values without either Pump venue imply both Pump venues. Other Solana venues: raydium-amm, raydium-clmm, raydium-cpmm, raydium-launchpad, pancakeswap-clmm, orca-whirlpool, meteora-dbc, meteora-dlmm, meteora-damm, meteora-damm-v2; other covers missing or unknown venue identities. Solana matches the venue where the leader bought the token: selecting only Pump does not copy buys on Pump AMM after graduation. DEX filtering applies only to buys; already-held tokens can still be sold after graduation. Quote classes use quote_class_filter; stocks OR cashback requires two tasks. At most 32. Required when enabled is true. While enabled is false the list is not applied and responses show the chain's full current DEX list, so a PATCH that only sets enabled to true starts from that full list."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Restrict copied buys to selected DEXes."
              },
              "token_blacklist": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Never buy the tokens in addresses. addresses is required when this is true."
                  },
                  "addresses": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "maxItems": 500,
                    "description": "Token addresses to skip. At most 500."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Token blacklist."
              },
              "per_token_buy_limit": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply limit. limit is required when this is true."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000,
                    "description": "Positive integer cap, at most 100000."
                  },
                  "count_failed": {
                    "type": "boolean",
                    "default": false,
                    "description": "Count each sent follow buy once even if it reverts, never lands or its broadcast fails. Signals filtered before sending never count. By default a failed buy frees its slot."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Maximum buys of one token per leader, shared across leaders in Grouped Copy. Sell monitoring is unaffected."
              },
              "fail_guard": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Whether consecutive broadcast buy failures pause buying. Slippage failures count. Defaults to off."
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100,
                    "description": "Consecutive failed broadcast buys required to pause buying (1 to 100)."
                  },
                  "within_sec": {
                    "type": "integer",
                    "minimum": 60,
                    "maximum": 86400,
                    "description": "Rolling window in seconds, from 60 to 86400 in whole minutes."
                  }
                },
                "required": [
                  "enabled",
                  "count",
                  "within_sec"
                ],
                "additionalProperties": false,
                "description": "Consecutive broadcast buy failures, including slippage. Disabled by default; initial threshold is four failures in 3600 seconds."
              },
              "stop_after_follows": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether this option is on. Turn an object option off with enabled=false, never with null."
                  },
                  "count": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "description": "Positive number of successfully followed leader transactions. Required when enabled. Disabling clears the threshold."
                  }
                },
                "additionalProperties": false,
                "description": "On Solana, BSC and Robinhood, pause new buys after count distinct leader transactions produce positive buy fills in this run. Multiple wallets following one transaction count once. Reverse copies and later fills of leader-triggered strategy limits count. Manual buys, manual limits and snipes do not. The task stays enabled and sells continue. Checks occur at signal intake and before sending. In-flight orders can overshoot: even with count=1, two buys can fill. Re-enabling starts at zero; a same-run executor restart preserves the count."
              },
              "per_leader_token_limit": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply limit. limit is required when this is true."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000,
                    "description": "Positive integer cap, at most 100000."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Maximum distinct tokens to buy per leader. When every leader on every wallet reaches the cap for every buy entry, pause buys (run_state: buy_paused, reason: leader_token_limit); sells and exits continue. Counts persist across reopening: raise the limit or turn off this filter, then reopen. Otherwise the task pauses again."
              },
              "quick_sell_ban": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Ban a leader who sells too soon after a buy this task copied and filled. threshold_sec and ban_sec are required when this is true."
                  },
                  "threshold_sec": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 86400,
                    "description": "A leader who sells within this many seconds of a buy this task copied and filled is banned; skipped or unfilled copies do not count. At most 86400."
                  },
                  "ban_sec": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2592000,
                    "description": "How long the ban lasts, in seconds. At most 30 days."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Temporarily stop copying a leader who dumps right after a buy this task copied and filled."
              },
              "token_age": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply the token-age window. When true, min_sec or max_sec is required."
                  },
                  "min_sec": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 31536000,
                    "description": "Minimum token age to copy, in whole seconds since the token's first pool or launch. 0 is allowed. Maximum 31536000 (1 year)."
                  },
                  "max_sec": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 31536000,
                    "description": "Maximum token age to copy, in whole seconds since the token's first pool or launch. 0 is allowed. Maximum 31536000 (1 year)."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Only copy buys of tokens whose age (seconds since first pool or launch) falls inside this window. 0 on either side means no limit on that side; when both are set, max_sec must be greater than min_sec. Supported on bsc, robinhood, arc and solana. On solana the age counts from the token's launchpad creation only, and a token with no launch record counts as older than any limit (it passes min_sec and fails max_sec). A buy whose token birth cannot be found is skipped."
              },
              "rug_leader_ban": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Stop following a leader once its buys have led this config into pools whose liquidity was later pulled (rug pulls) threshold times. Turning it off resets the counts. Supported on bsc, robinhood, arc and solana."
                  },
                  "threshold": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10,
                    "description": "Number of rug pulls that bans a leader, an integer from 1 to 10. When omitted the execution engine uses 1. PATCH keeps the stored value when omitted, including while enabled is false."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Stop copying a leader whose buys keep ending in pulled liquidity."
              }
            },
            "additionalProperties": false,
            "description": "Conditions that skip a leader buy."
          },
          "follow_sell": {
            "type": "object",
            "properties": {
              "gas": {
                "type": "object",
                "properties": {
                  "priority_fee": {
                    "type": "string",
                    "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
                  },
                  "landing_fee": {
                    "type": "string",
                    "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
                  },
                  "auto_gas": {
                    "type": "boolean",
                    "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
                  },
                  "high_tip": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                      },
                      "priority_fee": {
                        "type": "string",
                        "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                      },
                      "landing_fee": {
                        "type": "string",
                        "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                      }
                    },
                    "additionalProperties": false,
                    "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
                  },
                  "anti_mev": {
                    "type": "boolean",
                    "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
                  }
                },
                "additionalProperties": false,
                "description": "Gas for sells triggered by a followed wallet, including transfer_out. Copy sells use maximum slippage. Each supplied field overrides the same field in sell.gas, then top-level gas. Unspecified fields inherit, including high_tip.enabled. A supplied priority_fee also sets high_tip.priority_fee unless the same request gives its own; otherwise high_tip.priority_fee inherits. BSC, Solana and Robinhood reject an explicit auto_gas, including false. Robinhood uses automatic ordinary gas and rejects high_tip.enabled=true because its routes have no high-tip provider. Other exits and manual sells keep their ordinary sell gas. The same priority_fee rule applies on PATCH; other unsent fields keep their values. Send gas: null to inherit all sell settings again."
              },
              "enabled": {
                "type": "boolean",
                "default": true,
                "description": "Copy the leader's sells. Default true."
              },
              "mode": {
                "type": "string",
                "enum": [
                  "proportional",
                  "sell_all"
                ],
                "default": "proportional",
                "description": "proportional matches the fraction sold by the leader under the selected scope. sell_all sells your whole corresponding position on the first eligible leader sale. Default proportional."
              },
              "scope": {
                "type": "string",
                "enum": [
                  "bundle",
                  "buyer"
                ],
                "default": "bundle",
                "description": "For grouped copy, bundle (default) follows any member using the combined position. buyer follows each leader only for the position bought after that leader and uses its own position for ratios. This also applies to transfer-out sells."
              },
              "sell_all": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Sell the whole position once the leader sells at least pct of theirs. pct is required when this is true."
                  },
                  "pct": {
                    "type": "string",
                    "description": "Leader sell size, as a percent of their position, that triggers a full exit. \"1\" = 1%."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Full exit once the leader sells a large enough share."
              },
              "transfer_out": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Also sell when a followed leader transfers a token out to another wallet (not a swap). Takes effect only while follow_sell.enabled is true and reverse_buy.enabled is false. Transfers to your own wallets or to a contract address (such as a lock, an escrow, a vault or a Safe multisig) do not trigger it. With bundle scope, transfers between leaders of a grouped config also do not trigger it. There is no leader fill price to reference, so the sell goes out at maximum slippage. The resulting orders are ordinary copy sell orders. Supported on bsc, robinhood, arc and solana. Default false."
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "proportional",
                      "position"
                    ],
                    "default": "proportional",
                    "description": "proportional sells the same fraction of your position as the fraction of its balance the leader transferred. position sells pct of your position on every transfer. Default proportional."
                  },
                  "pct": {
                    "type": "string",
                    "description": "Share of your position to sell on every leader transfer, from 0.01 to 100. \"1\" = 1%. Required when enabled is true and mode is position; ignored in proportional mode."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Sell when a followed leader transfers a token out instead of selling it."
              }
            },
            "additionalProperties": false,
            "description": "How to sell when a leader sells. No effect while reverse_buy.enabled is true."
          },
          "price_strategy": {
            "type": "string",
            "enum": [
              "protected",
              "speed_first"
            ],
            "description": "Deprecated; execution ignores it. Configs stored as strategy tasks always read back protected; configs not yet migrated return their stored value. advanced.leader_fill_buy_slippage picks the copy-buy price strategy; advanced.leader_fill_sell_slippage is deprecated too."
          },
          "advanced": {
            "type": "object",
            "properties": {
              "trx_retry": {
                "type": "integer",
                "description": "Deprecated: execution does not read it. Accepted with default 3 and maximum 10; configs stored as strategy tasks (every config created since the TaskSpec migration) do not keep it and read back 3."
              },
              "leader_fill_buy_slippage": {
                "type": "boolean",
                "description": "Price strategy for copy buys. false (default) is Speed first: sent at once, never waiting for the target's fill. Below 100% slippage, if the target's average fill price is available without waiting, the signed minimum received is the higher of the existing basis less slippage and the tokens your amount would buy at that average fill price less slippage. The target's price rise and your own impact then use up slippage. Even if the price already misses the bound, Speed first still sends: the order fails on-chain and you pay network fees. On EVM (BSC/Robinhood), this bound applies when the local estimate covers the target's whole trade or its fill result is already known; otherwise the existing basis remains: the full-amount estimate after the target's fill, else the quote at send time or pool state at execution. On Solana, the fill arrives with the chain event, so Speed first normally uses it; different quote tokens are converted at their latest USD prices. Missing fill or conversion prices leave Speed first using its own quote at send time, with no rejection for missing prices. true is Price protection, unchanged: it uses the target's average fill, may wait, and skips sending without that price or when its quote already misses the bound. On Solana, Price protection usually adds no wait; when the target's transaction cannot be fully read before it lands, or is expected to fail, it decides once that transaction lands. It counts the pool fees you also pay, and sends nothing without the required fill or conversion prices."
              },
              "leader_fill_sell_slippage": {
                "type": "boolean",
                "description": "Deprecated: accepted, but execution does not read it, and configs stored as strategy tasks read back false. Copy sells always go at maximum slippage (10000 bps, no minimum received), whatever this field and the sell slippage say; on BSC and Robinhood a copy sell that continues on the new market after its curve migrates is capped at 9999 bps."
              }
            },
            "required": [
              "trx_retry",
              "leader_fill_buy_slippage",
              "leader_fill_sell_slippage"
            ],
            "additionalProperties": false,
            "description": "Retry count and the copy-buy price strategy (leader_fill_sell_slippage is deprecated)."
          },
          "quote_class_filter": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "native",
                "stable",
                "stock",
                "prestock",
                "other"
              ]
            },
            "maxItems": 5,
            "description": "Solana buy quote-token classes: native (SOL), stable (USDC/USDT/USD1), stock (xStocks/Backpack), prestock (PreStocks), other. Matches the quote of the pool that directly trades the token (the last hop of the leader buy); conversion hops before it, such as through USDC, do not count. Empty or absent means no filter. AND with DEX/mode filters; stocks OR cashback needs two tasks. Compiles to token.quote_class in a root all."
          },
          "max_block_gap": {
            "type": [
              "number",
              "null"
            ],
            "description": "Maximum estimated block gap at the wallet-copy buy decision (Solana: slots). Zero is a same-block estimate. Omit for no limit; PATCH null clears the limit."
          },
          "sell_fee_filter_enabled": {
            "type": "boolean",
            "description": "Enable the sell-back fee filter for copy and sniper buys on Solana, BSC and Robinhood. Absent or false disables it. At buy time, estimates known sell-back fees on the buy route (pool fee plus token sell tax); a known total above sell_fee_max_bps rejects the buy as sell_fee_too_high. Unknown parts pass. When true, sell_fee_max_bps must exist in the create body or stored config merged with PATCH; otherwise HTTP 400 validation_error. GET/list return stored values as-is, without effective defaults. Omitted create/PATCH fields are not written."
          },
          "sell_fee_max_bps": {
            "type": "number",
            "description": "Maximum estimated sell-back fees in integer bps, 0–9999 (100 bps = 1%). Required when sell_fee_filter_enabled is true; 0 is the strictest cap, not off. Known fees above the cap reject the buy; equal fees and unknown parts pass. Excludes price impact, priority fee, tip and platform fees; does not filter actual sell orders. GET/list preserve the stored value, including absence. Omitted create/PATCH fields are not written."
          },
          "buy_slippage_sol": {
            "type": [
              "number",
              "null"
            ],
            "description": "Solana copy and sniper buys only. SOL amount, minimum 0.1, at most 9 decimal places. Replaces percentage buy slippage on both fee lanes; stored percentages are preserved. More than this amount of SOL bought ahead of us prevents the buy: for copy configs, counted from the pool after the leader fill; for sniper configs, from the pool right after the token creation transaction, including the dev first buy. No default: omission uses percentage mode. PATCH omission preserves the value; PATCH null clears it and restores percentage mode. Unsupported chains or unmigrated tasks return validation_error. Not available for sells or manual trades."
          },
          "min_sell_usd": {
            "type": "string",
            "description": "Minimum automatic sell value in USD, a decimal string from 0.01 to 100000 inclusive. A smaller sell is enlarged up to the available position. A remainder worth less than the higher of this minimum and the sell cost is included. Omit for remainder cleanup only, using $1 and the sell cost. EVM flash sells before the buy receipt may fall below the minimum."
          },
          "retain_bps": {
            "type": "number",
            "description": "Share of each new buy retained from automatic sells (including stop loss), in integer basis points (1–9999, 100 bps = 1%). Omit for no retention. Changing the share affects future buys. Manual sells can use the retained tokens. An EVM task flash sell sent before the buy receipt approximates the reserve."
          },
          "usdc_trading": {
            "type": "boolean",
            "description": "Solana only. true lets USDC pools use USDC first for buys and keeps sell proceeds in USDC; false uses SOL only. Existing USDC must be handled separately when disabled. New tasks default to false in the domain; omitted PATCH fields preserve the stored setting. GET/list return the stored value. Tasks created before the strategy-task migration cannot store it: writing it to such a task returns HTTP 400 validation_error. Writing on any other chain, including false, returns HTTP 400 unsupported_chain_feature."
          },
          "buy_fee_tip_first": {
            "type": "boolean",
            "description": "Solana only. Lower failure cost in buy auto mode: if a buy lands on-chain but fails (for example, slippage exceeded), at most about 0.001 SOL of priority fee is charged and the tip is not. This sacrifices some speed. Applies to copy and sniper buys with fixed or proportional total fees. Absent or false disables it. Writing true requires the merged config to have buy_fee_auto true and gas.high_tip.enabled not true; otherwise HTTP 400 validation_error. Manual mode and sells ignore it. GET/list return the stored value; a Solana task in buy auto mode without high tip returns false when unset. Omitted PATCH fields are not written. Writing on any other chain, including false, returns HTTP 400 unsupported_chain_feature."
          },
          "buy_fee_tip_first_min": {
            "type": "boolean",
            "description": "Solana only. No longer affects execution; still accepted, stored and read back as before. Writing true still requires the merged config to have buy_fee_tip_first true; otherwise HTTP 400 validation_error with details for buy_fee_tip_first_min. GET/list return the stored value; Solana strategy tasks in buy auto mode with tip-first enabled return false when unset. Unrelated PATCH edits preserve an inactive min flag. Turning buy_fee_tip_first off also turns min off unless the PATCH explicitly supplies min. An explicit min field in the PATCH takes precedence and is validated as supplied. Null PATCH is rejected. Writing on any other chain, including false, returns HTTP 400 unsupported_chain_feature."
          },
          "buy_fee_auto": {
            "type": "boolean",
            "description": "Solana only. true = auto fee mode for buys: with gas.high_tip.enabled false the executor treats gas.priority_fee + gas.landing_fee as one budget and splits it per landing route, with no priority fee cap. Omitted or false uses manual fees as entered. Enabling high_tip also selects manual fees even when this flag is true. Read the tiers using the total budget. With ratio fees, use the total calculated for the buy amount. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings."
          },
          "sell_fee_auto": {
            "type": "boolean",
            "description": "Solana only. true = auto fee mode for sells: with gas.high_tip.enabled false the executor treats gas.priority_fee + gas.landing_fee as one budget and splits it per landing route, with no priority fee cap. Omitted or false uses manual fees as entered. Enabling high_tip also selects manual fees even when this flag is true. Read the tiers using the total budget. Stop-loss sells may be late when the budget is low. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings."
          },
          "buy_fee_filter_enabled": {
            "type": "boolean",
            "description": "Enable the task buy-fee filter. When absent from the task, defaults to enabled at 25% (2500 bps), or the stored limit if 0 < buy_fee_max_bps < 10000. Explicit false disables it; explicit true filters only with a valid limit. GET/list preserve the stored enabled flag (absent stays absent) and return the effective buy_fee_max_bps. An omitted enabled flag means filtering is on at the returned limit for known fees only; sending true opts into the user-set rule below. Omitted create/PATCH fields are not written. Applies to copy and snipe buys on all four Cell chains. The default caps known fees only; undetectable fees are not counted and pass in both Speed first and Price protection. With explicit true and a valid limit, copy buys in Price protection on EVM and Solana reject undetectable fees as buy_fee_unknown; on Solana a Meteora DLMM variable fee is judged at this buy's highest possible rate."
          },
          "buy_fee_max_bps": {
            "type": "number",
            "description": "Maximum buy fees and taxes in integer bps (100 bps = 1%). When buy_fee_filter_enabled is absent from the task, uses a stored limit if 0 < buy_fee_max_bps < 10000, otherwise 2500 bps (25%). With explicit true, only 1–9999 enables filtering; 0 or an absent limit disables it. GET/list return the effective limit and preserve the stored buy_fee_filter_enabled flag (absent stays absent). An omitted flag means filtering is on at the returned limit for known fees only; sending true opts into the user-set rule below. Excludes price impact, priority fee, tip and platform fees. Known fees above this limit are rejected. When buy_fee_filter_enabled is absent, the default caps known fees only; undetectable fees are not counted and pass on every chain in both Speed first and Price protection. Only an explicitly enabled filter with a valid limit rejects undetectable fees for copy buys in Price protection on EVM and Solana as buy_fee_unknown (on Solana a Meteora DLMM variable fee is judged at this buy's highest possible rate); Speed first and sniper buys allow them."
          },
          "buy_landing_fee_bps": {
            "type": "number",
            "description": "Solana auto mode only: buy total fee as nonnegative integer bps of the actual SOL principal (100 bps = 1%). Absent or 0 selects fixed total fees; no ratio cap. For copy and sniper buys, total = clamp(principal × bps / 10000, buy_landing_fee_min, buy_landing_fee_max), split into priority fee and tip per landing route like auto-mode total fees. The stored buy priority_fee and landing_fee are ignored; slippage still applies. Read only in auto fee mode (buy_fee_auto true, gas.high_tip.enabled false); manual mode ignores it, and setting a new positive value on a manual task returns 400. Sell and manual orders are unaffected. Callers are responsible for the chosen ratio; no confirmation step. Writing on EVM returns HTTP 400 unsupported_chain_feature, including 0."
          },
          "buy_landing_fee_min": {
            "type": "string",
            "description": "Solana auto-mode ratio fee minimum total in SOL, decimal string up to 9 places, at least \"0.0001\" (the cheapest landing route's minimum tip; \"0\" is rejected). When the effective buy_landing_fee_bps > 0 and no minimum was stored or sent, create/PATCH writes \"0.002\". Total = clamp(principal × bps / 10000, min, max), split per landing route like auto-mode total fees; stored buy priority_fee/landing_fee are ignored. A positive minimum must not exceed a positive maximum. Ratio fees apply only in auto fee mode (buy_fee_auto true, gas.high_tip.enabled false). Copy and sniper buys only; sells and manual orders unaffected. Writing on EVM returns HTTP 400 unsupported_chain_feature, including \"0\"."
          },
          "buy_landing_fee_max": {
            "type": "string",
            "description": "Solana auto-mode ratio fee maximum total in SOL, decimal string up to 9 places. Absent or \"0\" means no cap. Total = clamp(principal × buy_landing_fee_bps / 10000, buy_landing_fee_min, max), split per landing route like auto-mode total fees; stored buy priority_fee/landing_fee are ignored. A positive maximum must be at least a positive minimum. Ratio fees apply only in auto fee mode (buy_fee_auto true, gas.high_tip.enabled false). Copy and sniper buys only; sells and manual orders unaffected. Writing on EVM returns HTTP 400 unsupported_chain_feature, including \"0\". Omitted create/PATCH maximums are not written."
          },
          "buy_schedule": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "boolean",
                "description": "Apply the window. false keeps the times stored without restricting buys."
              },
              "timezone": {
                "type": "string",
                "description": "IANA time zone name the minutes are read in, for example Asia/Shanghai. The name is stored in its canonical form (asia/shanghai is stored as Asia/Shanghai, utc as UTC); offsets such as +08:00 and names longer than 64 characters are rejected."
              },
              "start_minute": {
                "type": "number",
                "description": "Window start, in whole minutes after local midnight, 0 to 1439. The start minute is inside the window."
              },
              "end_minute": {
                "type": "number",
                "description": "Window end, in whole minutes after local midnight, 0 to 1439. The end minute is outside the window. When it is smaller than start_minute the window crosses midnight (1260 to 120 is 21:00 to 02:00). It must differ from start_minute."
              }
            },
            "required": [
              "enabled",
              "timezone",
              "start_minute",
              "end_minute"
            ],
            "additionalProperties": false,
            "description": "Daily buy window. Outside the window no new positions are opened (no follow buys, no snipe buys); sells, take-profit and stop-loss keep running. Omit it, or send enabled false, for no restriction. PATCH replaces the whole object, so send all four fields; null is rejected. Supported on bsc, robinhood, arc and solana."
          },
          "sources": {
            "type": "object",
            "properties": {
              "default": {
                "type": "string",
                "enum": [
                  "config"
                ],
                "description": "Always config. This API has no global override layer, so every value comes from the config itself."
              }
            },
            "required": [
              "default"
            ],
            "additionalProperties": false,
            "description": "Present only when the request passed view=effective."
          }
        },
        "required": [
          "id",
          "status",
          "version",
          "run_state",
          "read_only",
          "engine",
          "created_via",
          "created_at",
          "updated_at",
          "deleted_at",
          "labels",
          "kind",
          "chain",
          "wallet_id",
          "wallet_ids",
          "slippage_pct",
          "gas",
          "exit",
          "leaders",
          "buy",
          "dedupe",
          "group_follow",
          "reverse_buy",
          "buy_filter",
          "follow_sell",
          "price_strategy",
          "advanced"
        ]
      },
      "SniperConfigInput": {
        "type": "object",
        "properties": {
          "chain": {
            "type": "string",
            "enum": [
              "bsc",
              "robinhood",
              "solana"
            ],
            "description": "Chain this config runs on. Sniper supports the enabled chains bsc, robinhood, solana. Immutable once created."
          },
          "wallet_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "Custodial wallet id from GET /v1/wallets. Create only: send exactly one of wallet_id or wallet_ids, never both. wallet_id is shorthand for wallet_ids with one entry. Immutable once created."
          },
          "wallet_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "minItems": 1,
            "maxItems": 20,
            "description": "Custodial wallet ids from GET /v1/wallets that all execute this config. 1 to 20 entries, no duplicates, every wallet must belong to you, be active and match the chain. Create only: send exactly one of wallet_ids or wallet_id, never both. Immutable once created; the list cannot be changed with PATCH."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "Caller-assigned label for the config."
          },
          "slippage_pct": {
            "type": "string",
            "default": "20",
            "description": "Max slippage for buys, e.g. \"1\" = 1%. Default \"20\". Unless sell.slippage_pct overrides it, it is also the sell-side slippage, which only Flash Sell, Dev Sell and Migration Sell use."
          },
          "gas": {
            "type": "object",
            "properties": {
              "priority_fee": {
                "type": "string",
                "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
              },
              "landing_fee": {
                "type": "string",
                "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
              },
              "auto_gas": {
                "type": "boolean",
                "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
              },
              "high_tip": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                  },
                  "priority_fee": {
                    "type": "string",
                    "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                  },
                  "landing_fee": {
                    "type": "string",
                    "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                  }
                },
                "additionalProperties": false,
                "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
              },
              "anti_mev": {
                "type": "boolean",
                "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
              }
            },
            "default": {},
            "additionalProperties": false,
            "description": "Gas settings for buys and sells on this config."
          },
          "sell": {
            "type": "object",
            "properties": {
              "slippage_pct": {
                "type": "string",
                "description": "Sell-side max slippage, e.g. \"1\" = 1%; omit to use the top-level slippage_pct. Only Flash Sell (exit.timed_sell, with the value stored when the buy armed it), Dev Sell (exit.dev_sell) and Migration Sell (exit.migration_sell) use it. Copy sells (including follow_sell.transfer_out), take profit, stop loss, trailing stop, segmented take profit (including its timeout sells), sales triggered by a confirmed earlier buy from a listed wallet (forward copy trades only) and the position close of a pause or delete with close_position=true are sent at maximum slippage whatever this value is."
              },
              "gas": {
                "type": "object",
                "properties": {
                  "priority_fee": {
                    "type": "string",
                    "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
                  },
                  "landing_fee": {
                    "type": "string",
                    "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
                  },
                  "auto_gas": {
                    "type": "boolean",
                    "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
                  },
                  "high_tip": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                      },
                      "priority_fee": {
                        "type": "string",
                        "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                      },
                      "landing_fee": {
                        "type": "string",
                        "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                      }
                    },
                    "additionalProperties": false,
                    "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
                  },
                  "anti_mev": {
                    "type": "boolean",
                    "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
                  }
                },
                "additionalProperties": false,
                "description": "Sell-side gas settings, same fields, units and per-chain limits as the top-level gas. Each field given here overrides the same top-level gas field for sells and exits only; fields you omit use the top-level gas value (on PATCH: keep the stored sell value)."
              }
            },
            "additionalProperties": false,
            "description": "Optional sell-side override. Without it the sell side takes the top-level slippage_pct and gas; sell.slippage_pct lists which sells use a sell slippage. Sell values given here win over the top-level ones. In PATCH, only the sub-fields you send change the sell side; send null for the whole sell object to make the sell side mirror the buy side again."
          },
          "exit": {
            "type": "object",
            "properties": {
              "take_profit": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "amount_basis": {
                      "type": "string",
                      "enum": [
                        "initial",
                        "remaining"
                      ],
                      "description": "Use the bought amount (default) or the amount remaining at trigger time."
                    },
                    "gain_pct": {
                      "type": "string",
                      "description": "Price rise that triggers this take-profit. \"1\" = 1%."
                    },
                    "sell_pct": {
                      "type": "string",
                      "description": "Share of the position to sell when gain_pct is reached. \"1\" = 1%. If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                    },
                    "expires_in_sec": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 31536000,
                      "default": 259200,
                      "description": "How long this entry stays armed, in seconds. Default 259200 (3 days). After that it stops applying and does not sell."
                    }
                  },
                  "required": [
                    "gain_pct",
                    "sell_pct"
                  ],
                  "additionalProperties": false,
                  "description": "One take-profit level."
                },
                "maxItems": 20,
                "default": [],
                "description": "Up to 20 take-profit levels. Each sells sell_pct of the position when price is up gain_pct. An expired entry stops applying and does not sell."
              },
              "segmented_take_profit": {
                "type": "object",
                "properties": {
                  "amount_basis": {
                    "type": "string",
                    "enum": [
                      "initial",
                      "remaining"
                    ],
                    "description": "Use the bought amount (default) or the amount remaining at trigger time."
                  },
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether segmented take-profit is active. Turning it off keeps the saved segments. At least one segment is required when this is true. Disable with enabled=false, never with null."
                  },
                  "segments": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "gain_pct": {
                          "type": "string",
                          "description": "Rise of this segment, added to the rises of the segments before it, as a percent of the buy price: segment n triggers at buy price × (1 + the gain_pct of segments 1 to n). \"1\" = 1%."
                        },
                        "sell_pct": {
                          "type": "string",
                          "description": "Share of the group’s selected amount basis to sell when price reaches this segment's trigger price. Capped at what is left. \"1\" = 1%. If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                        },
                        "expires_in_ms": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 31536000000,
                          "default": 0,
                          "description": "Lifetime of this segment in milliseconds. Omit or set 0 for no timeout; PATCH replaces the segments array, so an omitted lifetime in a replacement segment resets to 0. The first segment's lifetime starts when the buy is sent; each later segment's starts when the previous segment ends. When a positive lifetime runs out before the trigger price is reached and timeout_sell is enabled, timeout_sell.sell_pct is sold. This is not take_profit: an expired take_profit entry simply stops applying."
                        },
                        "timeout_sell": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "default": false,
                              "description": "Sell when this segment's lifetime runs out before its trigger price is reached."
                            },
                            "sell_pct": {
                              "type": "string",
                              "default": "100",
                              "description": "Share of the group’s selected amount basis to sell on timeout. Capped at what is left. \"1\" = 1%. Default \"100\"."
                            }
                          },
                          "default": {},
                          "additionalProperties": false,
                          "description": "Sell that fires when this segment expires before its trigger price."
                        }
                      },
                      "required": [
                        "gain_pct",
                        "sell_pct"
                      ],
                      "additionalProperties": false,
                      "description": "One segmented take-profit level, with its own lifetime and timeout sell."
                    },
                    "maxItems": 20,
                    "default": [],
                    "description": "Up to 20 segments, run in order: only the current segment waits, and the next one starts after its sell fills. The last segment repeats until the position is sold. They are reported even while enabled is false, so an edit returns them unchanged."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Segmented take-profit. Segments run in order, their rises add up from the buy price, and each has its own lifetime and timeout sell. Lifetimes are milliseconds."
              },
              "stop_loss": {
                "type": "object",
                "properties": {
                  "amount_basis": {
                    "type": "string",
                    "enum": [
                      "initial",
                      "remaining"
                    ],
                    "description": "Use the bought amount (default) or the amount remaining at trigger time."
                  },
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether the stop-loss is armed. Turn it off with enabled=false, never with null."
                  },
                  "loss_pct": {
                    "type": "string",
                    "description": "Drop from entry that triggers the sell. \"1\" = 1%. Required when enabled is true."
                  },
                  "sell_pct": {
                    "type": "string",
                    "default": "100",
                    "description": "Share of the position to sell. \"1\" = 1%. Default \"100\". If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                  },
                  "expires_in_sec": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31536000,
                    "default": 259200,
                    "description": "How long the stop-loss stays armed, in seconds. Default 259200 (3 days)."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Stop-loss. Disable with enabled=false, never with null."
              },
              "trailing": {
                "type": "object",
                "properties": {
                  "amount_basis": {
                    "type": "string",
                    "enum": [
                      "initial",
                      "remaining"
                    ],
                    "description": "Use the bought amount (default) or the amount remaining at trigger time."
                  },
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether the trailing stop is armed. Turn it off with enabled=false, never with null."
                  },
                  "activation_gain_pct": {
                    "type": "string",
                    "default": "0",
                    "description": "Rise that arms the trailing stop. \"0\" arms it immediately. \"1\" = 1%."
                  },
                  "drop_pct": {
                    "type": "string",
                    "description": "Drop from the high-water mark that triggers the sell. \"1\" = 1%. Required when enabled is true."
                  },
                  "sell_pct": {
                    "type": "string",
                    "default": "100",
                    "description": "Share of the position to sell. \"1\" = 1%. Default \"100\". If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                  },
                  "expires_in_sec": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31536000,
                    "default": 259200,
                    "description": "How long the trailing stop stays armed, in seconds. Default 259200 (3 days)."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Trailing stop. Disable with enabled=false, never with null."
              },
              "timed_sell": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether the timed sell is armed. Turn it off with enabled=false, never with null."
                  },
                  "same_block_delay_ms": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 86400000,
                    "description": "Delay for a buy landing in the same block (Solana slot) as the leader."
                  },
                  "next_block_delay_ms": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 86400000,
                    "description": "Delay for a buy landing one block (Solana slot) after the leader."
                  },
                  "after_sec": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 86400,
                    "description": "Delay in whole seconds from the first actual buy write, up to 86400. Best effort: approval, nonce ordering and available funds can delay the sell, and a restart before the intent is saved can lose it."
                  },
                  "after_ms": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 86400000,
                    "description": "Millisecond form of after_sec, for delays under a second (up to 86400000). Responses carry both; after_ms is exact and wins when a request sends both."
                  },
                  "sell_pct": {
                    "type": "string",
                    "default": "100",
                    "description": "Share of the position to sell. \"1\" = 1%. Default \"100\"."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Timed sell. When either block-gap delay is set, the buy receipt selects the delay. Unset tiers, gaps of two or more and unknown gaps use the default delay. A deadline already past triggers at the receipt. When enabled, after_sec or after_ms is required. Disable with enabled=false, never with null."
              },
              "dev_sell": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether this option is on. Turn an object option off with enabled=false, never with null."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Sell the same fraction of this position that the token developer sold of theirs. This API does not set the full-exit threshold; the stored default sells the whole position once the developer sells their entire balance."
              },
              "migration_sell": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether this option is on. Turn an object option off with enabled=false, never with null."
                  },
                  "sell_pct": {
                    "type": "string",
                    "default": "100",
                    "description": "Share of the remaining position to sell on migration, from 0.01 to 100 percent. \"1\" = 1%. Default \"100\". If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "On Robinhood, BSC and Solana Cell tasks, sell the configured share after a token migrates to an AMM, once per task, wallet and token. Applies only to positions bought on the bonding curve while enabled; uses the task sell settings. Arc accepts and stores this rule without execution: Arc launchpads (Argus, O1, Pools) issue directly on AMMs with no migration event."
              },
              "anti_wick": {
                "type": "boolean",
                "default": false,
                "description": "Anti-wick. Off (absent or false): on Solana, ordinary take profit, stop loss and the limit buys of the same strategy trigger as soon as a qualifying trade touches the trigger price and then sell or buy at market (trades that do not count: https://apm.fun/docs/copy-trading/strategy-settings#anti-wick), so the fill can differ from the trigger price. A limit buy is not triggered by single trades in the block it was placed in. On: they trigger only if the price still meets the condition at the end of the block (Solana slot), ignoring brief spikes and dips inside it. Segmented take profit, trailing and break-even stops and conditional exits always trigger on the end-of-block price, either way. No effect on BSC and Robinhood. Not an exit by itself: exits still need at least one exit."
              }
            },
            "default": {},
            "additionalProperties": false,
            "description": "Automatic exit rules for a position opened by this config."
          },
          "target": {
            "type": "object",
            "properties": {
              "mode": {
                "type": "string",
                "enum": [
                  "launchpad",
                  "token"
                ],
                "default": "launchpad",
                "description": "\"launchpad\" watches every new listing matching launchpads. \"token\" (only token_addresses) is retired after the task format update: create and PATCH requests with it return HTTP 400 unsupported_target_mode."
              },
              "launchpads": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "minItems": 1,
                "maxItems": 16,
                "description": "Launch platforms to watch, 1 to 16, no duplicates. robinhood long-xyz (Long.xyz) carries its own minimum slippage, see buy.long_xyz_delay_sec. bsc: four-meme, flap, open-four, cheesepad-melt-curve, genius, flap-pool-launch. robinhood: pons, pons-v2, doppler, clanker, letscash, long-xyz, flap, standard-reserve, torch. solana: pumpfun, pumpfun-mayhem, pumpfun-normal, pumpfun-cashback, pumpfun-amm, raydium-launchpad, raydium-cpmm, meteora-dbc. On Solana, Pump has normal/Mayhem/Cashback children (pumpfun-normal/pumpfun-mayhem/pumpfun-cashback). Select venues pumpfun/pumpfun-amm plus allowed modes; omit mode values to allow all modes. Both flags require both modes. Pre-change lists containing pumpfun-mayhem without pumpfun-normal or pumpfun-cashback now mean Mayhem only; existing tasks are migrated. Mode values without either Pump venue imply both Pump venues. arc: minara, argus, pools-instant, o1-exchange."
              },
              "token_addresses": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                },
                "maxItems": 100,
                "default": [],
                "description": "Only with mode token, which is retired after the task format update (requests return HTTP 400 unsupported_target_mode). Must be empty in launchpad mode. At most 100. The zero address is rejected."
              },
              "creators": {
                "type": "object",
                "properties": {
                  "allowed": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "maxItems": 2000,
                    "default": [],
                    "description": "Deployer addresses to accept. Non-empty means only launches by these deployers. EVM allowed creators with publicly known private keys (the 20 default Hardhat/Anvil accounts) are rejected on create and parameter edits. Remove them before editing an existing config. At most 2000. The zero address is rejected."
                  },
                  "blocked": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "maxItems": 2000,
                    "default": [],
                    "description": "Deployer addresses to always reject, even if they are also in allowed. At most 2000. The zero address is rejected."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Restrict launches by deployer. blocked always wins over allowed."
              },
              "keywords": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "maxItems": 100,
                "default": [],
                "description": "Case-insensitive substrings of the token name or symbol. Any match admits the launch. Empty means no keyword restriction. At most 100."
              },
              "blocked_keywords": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "maxItems": 100,
                "default": [],
                "description": "Case-insensitive substrings of the token name or symbol. Any match skips the launch, and this always wins over keywords. Each entry 1 to 64 characters. Empty means no exclusion. At most 100. Replaced as a whole on PATCH."
              },
              "quote_classes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "native",
                    "stable",
                    "stock",
                    "prestock",
                    "other"
                  ]
                },
                "maxItems": 5,
                "description": "Solana quote-token classes: native (SOL), stable (USDC/USDT/USD1), stock (xStocks/Backpack), prestock (PreStocks), other. Matches the quote of the launch pool that directly trades the token. Empty or absent means no class filter. AND with quotes and launchpad modes. Stocks OR cashback needs two tasks. Compiles to token.quote_class in a root all."
              },
              "quotes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                },
                "maxItems": 512,
                "default": [],
                "description": "Allowed quote tokens of the launch pool. The zero address means the native coin. Empty means any quote. At most 512."
              },
              "dev_buy_max": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Only accept launches within the developer initial buy range. An omitted max means no upper bound."
                  },
                  "min": {
                    "type": "string",
                    "default": "0",
                    "description": "Minimum developer first buy, in the native token. Optional decimal string, defaults to zero. No developer buy counts as zero."
                  },
                  "max": {
                    "type": "string",
                    "description": "Maximum developer first buy, in the native token. Optional decimal string; omitted on create means no upper bound. PATCH omission preserves it; null removes the upper bound. Explicit zero is an inclusive upper bound."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Filter developer first buys by an inclusive native-token range. An omitted max means no upper bound; min and max both zero require no developer buy."
              },
              "creator_sold": {
                "type": "boolean",
                "description": "Check once before sending. True requires a sale of any size by the creator address after the launch transaction. False requires confirmed absence of a sale. Unknown history rejects either setting. Bundled wallets are excluded. Omit for no restriction on create, or send null in PATCH to clear."
              },
              "market_cap": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply the market-cap window. When true, min_usd or max_usd is required."
                  },
                  "min_usd": {
                    "type": "string",
                    "description": "Minimum token market cap in USD. Decimal string, up to 2 decimal places; 0 means unbounded. On Solana and Robinhood KOTM, checked only before sending."
                  },
                  "max_usd": {
                    "type": "string",
                    "description": "Maximum token market cap in USD. Decimal string, up to 2 decimal places; 0 means unbounded. Checked at fill time: BSC and Robinhood allow up to approximately 30% above this bound; Solana enforces it as given."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Snipe only within this USD market-cap range. Market cap = total supply × price in USD. Omitted or {} disables the filter; enabled requires min_usd or max_usd. 0 means unbounded on that side."
              },
              "skip_same_name_relaunch": {
                "type": "boolean",
                "default": false,
                "description": "Skip a token whose creator relaunched the same name within 120 seconds."
              },
              "require_plain_name": {
                "type": "boolean",
                "default": false,
                "description": "Skip launches with special characters in the name or symbol. After trimming whitespace, only letters of any script, ordinary combining accents, decimal digits, printable ASCII and space are allowed. Emoji (including keycaps), circled numbers, math-style letters (U+1D400–U+1D7FF, such as 𝐏𝐄𝐏𝐄), zero-width and control characters, and non-ASCII punctuation are rejected. A launch that provides neither a name nor a symbol is bought as usual."
              }
            },
            "required": [
              "launchpads"
            ],
            "additionalProperties": false,
            "description": "Which new tokens this config buys."
          },
          "buy": {
            "type": "object",
            "properties": {
              "amount": {
                "type": "string",
                "description": "Native-token amount spent on each snipe. Decimal string, up to 18 decimal places."
              },
              "delay_ms": {
                "type": "integer",
                "minimum": 0,
                "maximum": 60000,
                "description": "Wait at least this many milliseconds from first observing the launch. Integer 0 to 60000. All launchpads also wait for their own release. Omit or use 0 for no added delay. Responses only include positive values. PATCH omission preserves the delay and null clears it."
              },
              "anti_sniper_block_offset": {
                "type": [
                  "integer",
                  "null"
                ],
                "minimum": 0,
                "maximum": 6,
                "description": "BSC only: anti-sniper fee tier for Four.meme and OpenFour launches that charge an anti-sniper fee. Integer 0 to 6; a higher tier buys later and pays a lower anti-sniper fee. Omitted or null uses the default tier 5. Requires target.launchpads to contain four-meme or open-four. Approximate anti-sniper share of the buy amount for tiers 0..6: 50%, 33%, 19%, 12%, 8%, 4%, 0%; OpenFour can be up to about 1 percentage point higher. Other fees are additional. PATCH omission preserves the setting; null resets it. Launches without an anti-sniper fee are unaffected."
              },
              "long_xyz_delay_sec": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10,
                "description": "Robinhood only, and only while target.launchpads contains long-xyz: buy timing for Long.xyz launches, whole seconds 0 to 10. A shorter delay buys earlier but pays a higher launch tax, so slippage_pct must be at least 100 - 9.86 x seconds percent. The Web app offers 9 (sport, about 10% tax), 8 (boost, about 20%) and 7 (ultra, about 30%). Omitted means the normal timing (under 2% tax, treated as 10 seconds for the slippage floor). Send null in PATCH to return to the normal timing."
              }
            },
            "required": [
              "amount"
            ],
            "additionalProperties": false,
            "description": "How much to spend on each snipe."
          },
          "trigger": {
            "type": "object",
            "properties": {
              "max_hits_per_creator": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply limit. limit is required when this is true."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000,
                    "description": "Positive integer cap, at most 100000."
                  },
                  "window_sec": {
                    "type": "integer",
                    "minimum": 3600,
                    "maximum": 604800,
                    "description": "Rolling window in whole hours (3600–604800 seconds). Omit to count for the current run."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Skip a creator who reaches the cap. With window_sec, count recent filled snipes and all in-flight snipes; buys stay enabled and a creator becomes eligible as their snipes age out. Without window_sec, pause buys when every allowlisted creator reaches the cap (run_state: buy_paused, reason: creator_limit). Reopening starts a fresh count."
              },
              "max_consecutive_losses": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply limit. limit is required when this is true."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000,
                    "description": "Positive integer cap, at most 100000."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Pause buys (run_state: buy_paused, reason: loss_streak) after this many consecutive losing snipes; the task stays enabled and sells and exits continue. When both caps are enabled and max_hits_per_creator.window_sec is omitted, this limit must be less than max_hits_per_creator.limit. Resume starts a fresh count."
              }
            },
            "default": {},
            "additionalProperties": false,
            "description": "Caps on sniper buys. Sells and exits continue during a buy pause. The creator cap can use a rolling window; the consecutive-loss cap applies to the current run. One config buys each token at most once per wallet."
          },
          "advanced": {
            "type": "object",
            "properties": {
              "trx_retry": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10,
                "default": 3,
                "description": "Deprecated: execution does not read it. Accepted with default 3 and maximum 10; configs stored as strategy tasks (every config created since the TaskSpec migration) do not keep it and read back 3."
              }
            },
            "default": {},
            "additionalProperties": false,
            "description": "Retry settings for this snipe config."
          },
          "sell_fee_filter_enabled": {
            "type": "boolean",
            "description": "Enable the sell-back fee filter for copy and sniper buys on Solana, BSC and Robinhood. Absent or false disables it. At buy time, estimates known sell-back fees on the buy route (pool fee plus token sell tax); a known total above sell_fee_max_bps rejects the buy as sell_fee_too_high. Unknown parts pass. When true, sell_fee_max_bps must exist in the create body or stored config merged with PATCH; otherwise HTTP 400 validation_error. GET/list return stored values as-is, without effective defaults. Omitted create/PATCH fields are not written."
          },
          "sell_fee_max_bps": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9999,
            "description": "Maximum estimated sell-back fees in integer bps, 0–9999 (100 bps = 1%). Required when sell_fee_filter_enabled is true; 0 is the strictest cap, not off. Known fees above the cap reject the buy; equal fees and unknown parts pass. Excludes price impact, priority fee, tip and platform fees; does not filter actual sell orders. GET/list preserve the stored value, including absence. Omitted create/PATCH fields are not written."
          },
          "min_sell_usd": {
            "type": "string",
            "pattern": "^0*(?:0\\.0?[1-9]\\d*|[1-9]\\d{0,4}(?:\\.\\d+)?|100000(?:\\.0+)?)$",
            "description": "Minimum automatic sell value in USD, a decimal string from 0.01 to 100000 inclusive. A smaller sell is enlarged up to the available position. A remainder worth less than the higher of this minimum and the sell cost is included. Omit for remainder cleanup only, using $1 and the sell cost. EVM flash sells before the buy receipt may fall below the minimum."
          },
          "retain_bps": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9999,
            "description": "Share of each new buy retained from automatic sells (including stop loss), in integer basis points (1–9999, 100 bps = 1%). Omit for no retention. Changing the share affects future buys. Manual sells can use the retained tokens. An EVM task flash sell sent before the buy receipt approximates the reserve."
          },
          "usdc_trading": {
            "type": "boolean",
            "description": "Solana only. true lets USDC pools use USDC first for buys and keeps sell proceeds in USDC; false uses SOL only. Existing USDC must be handled separately when disabled. New tasks default to false in the domain; omitted PATCH fields preserve the stored setting. GET/list return the stored value. Tasks created before the strategy-task migration cannot store it: writing it to such a task returns HTTP 400 validation_error. Writing on any other chain, including false, returns HTTP 400 unsupported_chain_feature."
          },
          "buy_slippage_sol": {
            "type": "number",
            "minimum": 0.1,
            "description": "Solana copy and sniper buys only. SOL amount, minimum 0.1, at most 9 decimal places. Replaces percentage buy slippage on both fee lanes; stored percentages are preserved. More than this amount of SOL bought ahead of us prevents the buy: for copy configs, counted from the pool after the leader fill; for sniper configs, from the pool right after the token creation transaction, including the dev first buy. No default: omission uses percentage mode. PATCH omission preserves the value; PATCH null clears it and restores percentage mode. Unsupported chains or unmigrated tasks return validation_error. Not available for sells or manual trades."
          },
          "buy_fee_tip_first": {
            "type": "boolean",
            "description": "Solana only. Lower failure cost in buy auto mode: if a buy lands on-chain but fails (for example, slippage exceeded), at most about 0.001 SOL of priority fee is charged and the tip is not. This sacrifices some speed. Applies to copy and sniper buys with fixed or proportional total fees. Absent or false disables it. Writing true requires the merged config to have buy_fee_auto true and gas.high_tip.enabled not true; otherwise HTTP 400 validation_error. Manual mode and sells ignore it. GET/list return the stored value; a Solana task in buy auto mode without high tip returns false when unset. Omitted PATCH fields are not written. Writing on any other chain, including false, returns HTTP 400 unsupported_chain_feature."
          },
          "buy_fee_tip_first_min": {
            "type": "boolean",
            "description": "Solana only. No longer affects execution; still accepted, stored and read back as before. Writing true still requires the merged config to have buy_fee_tip_first true; otherwise HTTP 400 validation_error with details for buy_fee_tip_first_min. GET/list return the stored value; Solana strategy tasks in buy auto mode with tip-first enabled return false when unset. Unrelated PATCH edits preserve an inactive min flag. Turning buy_fee_tip_first off also turns min off unless the PATCH explicitly supplies min. An explicit min field in the PATCH takes precedence and is validated as supplied. Null PATCH is rejected. Writing on any other chain, including false, returns HTTP 400 unsupported_chain_feature."
          },
          "buy_fee_auto": {
            "type": "boolean",
            "description": "Solana only. true = auto fee mode for buys: with gas.high_tip.enabled false the executor treats gas.priority_fee + gas.landing_fee as one budget and splits it per landing route, with no priority fee cap. Omitted or false uses manual fees as entered. Enabling high_tip also selects manual fees even when this flag is true. Read the tiers using the total budget. With ratio fees, use the total calculated for the buy amount. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings."
          },
          "sell_fee_auto": {
            "type": "boolean",
            "description": "Solana only. true = auto fee mode for sells: with gas.high_tip.enabled false the executor treats gas.priority_fee + gas.landing_fee as one budget and splits it per landing route, with no priority fee cap. Omitted or false uses manual fees as entered. Enabling high_tip also selects manual fees even when this flag is true. Read the tiers using the total budget. Stop-loss sells may be late when the budget is low. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings."
          },
          "buy_fee_filter_enabled": {
            "type": "boolean",
            "description": "Enable the task buy-fee filter. When absent from the task, defaults to enabled at 25% (2500 bps), or the stored limit if 0 < buy_fee_max_bps < 10000. Explicit false disables it; explicit true filters only with a valid limit. GET/list preserve the stored enabled flag (absent stays absent) and return the effective buy_fee_max_bps. An omitted enabled flag means filtering is on at the returned limit for known fees only; sending true opts into the user-set rule below. Omitted create/PATCH fields are not written. Applies to copy and snipe buys on all four Cell chains. The default caps known fees only; undetectable fees are not counted and pass in both Speed first and Price protection. With explicit true and a valid limit, copy buys in Price protection on EVM and Solana reject undetectable fees as buy_fee_unknown; on Solana a Meteora DLMM variable fee is judged at this buy's highest possible rate."
          },
          "buy_fee_max_bps": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9999,
            "description": "Maximum buy fees and taxes in integer bps (100 bps = 1%). When buy_fee_filter_enabled is absent from the task, uses a stored limit if 0 < buy_fee_max_bps < 10000, otherwise 2500 bps (25%). With explicit true, only 1–9999 enables filtering; 0 or an absent limit disables it. GET/list return the effective limit and preserve the stored buy_fee_filter_enabled flag (absent stays absent). An omitted flag means filtering is on at the returned limit for known fees only; sending true opts into the user-set rule below. Excludes price impact, priority fee, tip and platform fees. Known fees above this limit are rejected. When buy_fee_filter_enabled is absent, the default caps known fees only; undetectable fees are not counted and pass on every chain in both Speed first and Price protection. Only an explicitly enabled filter with a valid limit rejects undetectable fees for copy buys in Price protection on EVM and Solana as buy_fee_unknown (on Solana a Meteora DLMM variable fee is judged at this buy's highest possible rate); Speed first and sniper buys allow them."
          },
          "buy_landing_fee_bps": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Solana auto mode only: buy total fee as nonnegative integer bps of the actual SOL principal (100 bps = 1%). Absent or 0 selects fixed total fees; no ratio cap. For copy and sniper buys, total = clamp(principal × bps / 10000, buy_landing_fee_min, buy_landing_fee_max), split into priority fee and tip per landing route like auto-mode total fees. The stored buy priority_fee and landing_fee are ignored; slippage still applies. Read only in auto fee mode (buy_fee_auto true, gas.high_tip.enabled false); manual mode ignores it, and setting a new positive value on a manual task returns 400. Sell and manual orders are unaffected. Callers are responsible for the chosen ratio; no confirmation step. Writing on EVM returns HTTP 400 unsupported_chain_feature, including 0."
          },
          "buy_landing_fee_min": {
            "type": "string",
            "description": "Solana auto-mode ratio fee minimum total in SOL, decimal string up to 9 places, at least \"0.0001\" (the cheapest landing route's minimum tip; \"0\" is rejected). When the effective buy_landing_fee_bps > 0 and no minimum was stored or sent, create/PATCH writes \"0.002\". Total = clamp(principal × bps / 10000, min, max), split per landing route like auto-mode total fees; stored buy priority_fee/landing_fee are ignored. A positive minimum must not exceed a positive maximum. Ratio fees apply only in auto fee mode (buy_fee_auto true, gas.high_tip.enabled false). Copy and sniper buys only; sells and manual orders unaffected. Writing on EVM returns HTTP 400 unsupported_chain_feature, including \"0\"."
          },
          "buy_landing_fee_max": {
            "type": "string",
            "description": "Solana auto-mode ratio fee maximum total in SOL, decimal string up to 9 places. Absent or \"0\" means no cap. Total = clamp(principal × buy_landing_fee_bps / 10000, buy_landing_fee_min, max), split per landing route like auto-mode total fees; stored buy priority_fee/landing_fee are ignored. A positive maximum must be at least a positive minimum. Ratio fees apply only in auto fee mode (buy_fee_auto true, gas.high_tip.enabled false). Copy and sniper buys only; sells and manual orders unaffected. Writing on EVM returns HTTP 400 unsupported_chain_feature, including \"0\". Omitted create/PATCH maximums are not written."
          },
          "buy_schedule": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "boolean",
                "description": "Apply the window. false keeps the times stored without restricting buys."
              },
              "timezone": {
                "type": "string",
                "maxLength": 64,
                "description": "IANA time zone name the minutes are read in, for example Asia/Shanghai. The name is stored in its canonical form (asia/shanghai is stored as Asia/Shanghai, utc as UTC); offsets such as +08:00 and names longer than 64 characters are rejected."
              },
              "start_minute": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1439,
                "description": "Window start, in whole minutes after local midnight, 0 to 1439. The start minute is inside the window."
              },
              "end_minute": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1439,
                "description": "Window end, in whole minutes after local midnight, 0 to 1439. The end minute is outside the window. When it is smaller than start_minute the window crosses midnight (1260 to 120 is 21:00 to 02:00). It must differ from start_minute."
              }
            },
            "required": [
              "enabled",
              "timezone",
              "start_minute",
              "end_minute"
            ],
            "additionalProperties": false,
            "description": "Daily buy window. Outside the window no new positions are opened (no follow buys, no snipe buys); sells, take-profit and stop-loss keep running. Omit it, or send enabled false, for no restriction. PATCH replaces the whole object, so send all four fields; null is rejected. Supported on bsc, robinhood, arc and solana."
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 24
            },
            "maxItems": 10,
            "description": "Caller-defined task labels. Up to 10 labels of 1–24 characters. Whitespace is trimmed and duplicates are removed."
          }
        },
        "required": [
          "chain",
          "target",
          "buy"
        ],
        "additionalProperties": false
      },
      "SniperConfigPatch": {
        "type": "object",
        "additionalProperties": {},
        "description": "JSON Merge Patch for an existing config. Omit min_sell_usd to retain it or set it to null to restore the default. Omit retain_bps to keep the setting or send null to turn retention off. Omit trigger.max_hits_per_creator.window_sec to retain the window or set it to null to count for the whole run. Disable the creator cap with enabled: false. Omission preserves buy.delay_ms, target.creator_sold and target.require_plain_name. Set target.require_plain_name to false to turn off the name filter. Set buy.delay_ms to null or 0 to remove the added delay, or target.creator_sold to null to remove the sale condition. buy_slippage_sol accepts a Solana sniper-buy SOL amount (minimum 0.1, at most 9 decimals); null restores percentage mode and omission preserves the current value. Requires If-Match. The optional labels array (at most 10, each at most 24 characters) replaces the whole label set; send it alone to edit labels without pausing the config. Every other field requires a paused config with engine.sync_state synced and engine.buy_entry closed."
      },
      "SniperConfigResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Config id. Use it in the path of later calls."
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "paused",
              "deleted"
            ],
            "description": "What was asked for — see engine.sync_state for what the execution engine last confirmed. A trigger cap pauses the config and sets stop_reason."
          },
          "version": {
            "type": "number",
            "description": "Optimistic-concurrency version. Send as the ETag/If-Match value on writes."
          },
          "run_state": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "enum": [
                  "running",
                  "buy_paused",
                  "stopped"
                ],
                "description": "running: enabled; buy_paused: new buys paused, sells continue; stopped: disabled or deleted."
              },
              "reason": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Known buy-pause reasons: account, loss_streak, creator_limit, leader_token_limit, follow_count, buy_fail_streak, funding_low. Buys pause while sells and exits continue. For run-bound pauses, reopen to start a new run: follow, loss and creator counts reset; leader distinct-token counts persist, so raise the limit or disable that filter before reopening. Known stop reasons: low_balance, inactivity, loss_streak, creator_limit. Null means no recorded reason or user stop; unknown reasons are preserved."
              }
            },
            "required": [
              "state",
              "reason"
            ],
            "description": "Task run state. Configs stored as strategy tasks (every config created since the TaskSpec migration, and migrated ones) report all three states; configs not yet migrated report running or stopped."
          },
          "read_only": {
            "type": "boolean",
            "description": "True for archived configs or strategy configs using settings this API cannot express. Archived configs reject all configuration writes, including pause, resume and delete, with 409 task_read_only; GET and labels-only PATCH still work. For strategy configs, pause, resume, delete and labels-only PATCH still work, but any other PATCH, including name, returns 409 task_read_only; edit those settings in the app instead."
          },
          "engine": {
            "type": "object",
            "properties": {
              "applied_version": {
                "type": "number",
                "description": "Config version the execution engine last acknowledged."
              },
              "sync_state": {
                "type": "string",
                "enum": [
                  "syncing",
                  "synced",
                  "failed"
                ],
                "description": "syncing: the engine has not confirmed this version yet. synced: it has. failed: the last attempt failed; see error_code."
              },
              "buy_entry": {
                "type": "string",
                "enum": [
                  "open",
                  "closed"
                ],
                "description": "open: the engine is accepting new buys for this config. closed: it is not (paused, deleted, or not yet confirmed)."
              },
              "warning_code": {
                "type": "string",
                "description": "The config has taken effect. prior_buyers_unavailable means listed wallet history is still loading. prior_buyers_fast_unavailable means updates for some listed wallets are delayed. The task may miss purchases those wallets make just before the leader buys. This warning does not reject buys. prior_buyers_over_limit means the account exceeds the wallet limit on this chain. Purchases by wallets beyond the limit are not checked. prior_buyers_history_truncated means a listed wallet bought more than 5,000 distinct tokens inside the window. Only its most recent 5,000 are checked. The task keeps running."
              },
              "error_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why the last engine sync failed. Null when sync_state is not failed."
              },
              "updated_at": {
                "type": "string",
                "description": "When the engine last reported this state, RFC 3339 UTC."
              }
            },
            "required": [
              "applied_version",
              "sync_state",
              "buy_entry",
              "error_code",
              "updated_at"
            ],
            "description": "What the execution engine last confirmed. status is what you asked for; this is what the engine has applied."
          },
          "created_via": {
            "type": "string",
            "enum": [
              "web",
              "api"
            ],
            "description": "web if the config was created in the app, api if it was created through this API."
          },
          "created_at": {
            "type": "string",
            "description": "When the config was created, RFC 3339 UTC."
          },
          "updated_at": {
            "type": "string",
            "description": "When the config was last changed, RFC 3339 UTC."
          },
          "deleted_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "When the config was soft-deleted, RFC 3339 UTC. Null while it is active or paused."
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 24
            },
            "description": "The caller's own labels on this task, or an empty array if none are set. Replace them with PATCH (labels: string[]): at most 10 labels, each 1-24 characters after trimming, duplicates removed, the array replaces the whole set, null is rejected. Changing only labels does not require the config to be paused and does not change version or engine state."
          },
          "kind": {
            "type": "string",
            "enum": [
              "sniper"
            ],
            "description": "Always sniper."
          },
          "stop_reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "creator_limit",
              "loss_streak"
            ],
            "description": "Why the engine auto-stopped this config; null if it was not auto-stopped."
          },
          "chain": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "bsc",
                  "robinhood",
                  "solana",
                  "arc"
                ]
              },
              {
                "type": "string",
                "minLength": 1
              }
            ],
            "description": "Chain this config runs on. Documented values are bsc/robinhood/solana/arc; a config stored on any other chain (created outside this API, e.g. by the Web app) is still reported verbatim rather than rejected."
          },
          "wallet_id": {
            "type": "string",
            "description": "First entry of wallet_ids, kept for callers that only know a single wallet. Use wallet_ids for the complete list. Immutable once created."
          },
          "wallet_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Every custodial wallet that executes this config, in stored order. A config created with the app may have several. Immutable once created."
          },
          "name": {
            "type": "string",
            "description": "Caller-assigned label for the config."
          },
          "slippage_pct": {
            "type": "string",
            "description": "Max slippage for the snipe buy, also the sell-side value unless sell is returned. \"1\" = 1%."
          },
          "gas": {
            "type": "object",
            "properties": {
              "priority_fee": {
                "type": "string",
                "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
              },
              "landing_fee": {
                "type": "string",
                "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
              },
              "auto_gas": {
                "type": "boolean",
                "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
              },
              "high_tip": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                  },
                  "priority_fee": {
                    "type": "string",
                    "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                  },
                  "landing_fee": {
                    "type": "string",
                    "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                  }
                },
                "additionalProperties": false,
                "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
              },
              "anti_mev": {
                "type": "boolean",
                "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
              }
            },
            "additionalProperties": false,
            "description": "Gas settings for buys and sells on this config."
          },
          "sell": {
            "type": "object",
            "properties": {
              "slippage_pct": {
                "type": "string",
                "description": "Stored sell-side max slippage. \"1\" = 1%. Only Flash Sell, Dev Sell and Migration Sell use it; the other automatic sells, including sales triggered by a confirmed earlier buy from a listed wallet (forward copy trades only), are sent at maximum slippage (see the request field sell.slippage_pct)."
              },
              "gas": {
                "type": "object",
                "properties": {
                  "priority_fee": {
                    "type": "string",
                    "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
                  },
                  "landing_fee": {
                    "type": "string",
                    "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
                  },
                  "auto_gas": {
                    "type": "boolean",
                    "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
                  },
                  "high_tip": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                      },
                      "priority_fee": {
                        "type": "string",
                        "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                      },
                      "landing_fee": {
                        "type": "string",
                        "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                      }
                    },
                    "additionalProperties": false,
                    "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
                  },
                  "anti_mev": {
                    "type": "boolean",
                    "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
                  }
                },
                "additionalProperties": false,
                "description": "Stored sell-side gas settings."
              }
            },
            "required": [
              "slippage_pct",
              "gas"
            ],
            "additionalProperties": false,
            "description": "Sell-side values, returned only when they differ from the top-level slippage_pct / gas (which show the buy side). Omitted when buy and sell are the same."
          },
          "exit": {
            "type": "object",
            "properties": {
              "take_profit": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "amount_basis": {
                      "type": "string",
                      "enum": [
                        "initial",
                        "remaining"
                      ],
                      "description": "Use the bought amount (default) or the amount remaining at trigger time."
                    },
                    "gain_pct": {
                      "type": "string",
                      "description": "Price rise that triggers this take-profit. \"1\" = 1%."
                    },
                    "sell_pct": {
                      "type": "string",
                      "description": "Share of the position to sell when gain_pct is reached. \"1\" = 1%. If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                    },
                    "expires_in_sec": {
                      "type": "integer",
                      "description": "How long this entry stays armed, in seconds. Default 259200 (3 days). After that it stops applying and does not sell."
                    }
                  },
                  "required": [
                    "gain_pct",
                    "sell_pct",
                    "expires_in_sec"
                  ],
                  "additionalProperties": false,
                  "description": "One take-profit level."
                },
                "description": "Up to 20 take-profit levels. Each sells sell_pct of the position when price is up gain_pct. An expired entry stops applying and does not sell."
              },
              "segmented_take_profit": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Whether segmented take-profit is active. Turning it off keeps the saved segments. At least one segment is required when this is true. Disable with enabled=false, never with null."
                  },
                  "amount_basis": {
                    "type": "string",
                    "enum": [
                      "initial",
                      "remaining"
                    ],
                    "description": "Use the bought amount (default) or the amount remaining at trigger time."
                  },
                  "segments": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "gain_pct": {
                          "type": "string",
                          "description": "Rise of this segment, added to the rises of the segments before it, as a percent of the buy price: segment n triggers at buy price × (1 + the gain_pct of segments 1 to n). \"1\" = 1%."
                        },
                        "sell_pct": {
                          "type": "string",
                          "description": "Share of the group’s selected amount basis to sell when price reaches this segment's trigger price. Capped at what is left. \"1\" = 1%. If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                        },
                        "expires_in_ms": {
                          "type": "integer",
                          "description": "Lifetime of this segment in milliseconds. Omit or set 0 for no timeout; PATCH replaces the segments array, so an omitted lifetime in a replacement segment resets to 0. The first segment's lifetime starts when the buy is sent; each later segment's starts when the previous segment ends. When a positive lifetime runs out before the trigger price is reached and timeout_sell is enabled, timeout_sell.sell_pct is sold. This is not take_profit: an expired take_profit entry simply stops applying."
                        },
                        "timeout_sell": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "description": "Sell when this segment's lifetime runs out before its trigger price is reached."
                            },
                            "sell_pct": {
                              "type": "string",
                              "description": "Share of the group’s selected amount basis to sell on timeout. Capped at what is left. \"1\" = 1%. Default \"100\"."
                            }
                          },
                          "required": [
                            "enabled",
                            "sell_pct"
                          ],
                          "additionalProperties": false,
                          "description": "Sell that fires when this segment expires before its trigger price."
                        }
                      },
                      "required": [
                        "gain_pct",
                        "sell_pct",
                        "expires_in_ms",
                        "timeout_sell"
                      ],
                      "additionalProperties": false,
                      "description": "One segmented take-profit level, with its own lifetime and timeout sell."
                    },
                    "description": "Up to 20 segments, run in order: only the current segment waits, and the next one starts after its sell fills. The last segment repeats until the position is sold. They are reported even while enabled is false, so an edit returns them unchanged."
                  }
                },
                "required": [
                  "enabled",
                  "segments"
                ],
                "additionalProperties": false,
                "description": "Segmented take-profit. Segments run in order, their rises add up from the buy price, and each has its own lifetime and timeout sell. Lifetimes are milliseconds."
              },
              "stop_loss": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          false
                        ],
                        "description": "Stop-loss is off. A disabled response is only this field — the other keys are absent."
                      }
                    },
                    "required": [
                      "enabled"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          true
                        ],
                        "description": "Stop-loss is armed."
                      },
                      "amount_basis": {
                        "type": "string",
                        "enum": [
                          "initial",
                          "remaining"
                        ],
                        "description": "Use the bought amount (default) or the amount remaining at trigger time."
                      },
                      "loss_pct": {
                        "type": "string",
                        "description": "Drop from entry that triggers the sell. \"1\" = 1%."
                      },
                      "sell_pct": {
                        "type": "string",
                        "description": "Share of the position to sell. \"1\" = 1%."
                      },
                      "expires_in_sec": {
                        "type": "integer",
                        "description": "How long the stop-loss stays armed, in seconds."
                      }
                    },
                    "required": [
                      "enabled",
                      "loss_pct",
                      "sell_pct",
                      "expires_in_sec"
                    ],
                    "additionalProperties": false
                  }
                ],
                "description": "Stop-loss. When it is off, the object is only {enabled:false}."
              },
              "trailing": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          false
                        ],
                        "description": "Trailing stop is off. A disabled response is only this field — the other keys are absent."
                      }
                    },
                    "required": [
                      "enabled"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          true
                        ],
                        "description": "Trailing stop is armed."
                      },
                      "amount_basis": {
                        "type": "string",
                        "enum": [
                          "initial",
                          "remaining"
                        ],
                        "description": "Use the bought amount (default) or the amount remaining at trigger time."
                      },
                      "activation_gain_pct": {
                        "type": "string",
                        "description": "Rise that armed the trailing stop. \"0\" means it was armed immediately. \"1\" = 1%."
                      },
                      "drop_pct": {
                        "type": "string",
                        "description": "Drop from the high-water mark that triggers the sell. \"1\" = 1%."
                      },
                      "sell_pct": {
                        "type": "string",
                        "description": "Share of the position to sell. \"1\" = 1%."
                      },
                      "expires_in_sec": {
                        "type": "integer",
                        "description": "How long the trailing stop stays armed, in seconds."
                      }
                    },
                    "required": [
                      "enabled",
                      "activation_gain_pct",
                      "drop_pct",
                      "sell_pct",
                      "expires_in_sec"
                    ],
                    "additionalProperties": false
                  }
                ],
                "description": "Trailing stop. When it is off, the object is only {enabled:false}."
              },
              "timed_sell": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          false
                        ],
                        "description": "Timed sell is off. A disabled response is only this field — the other keys are absent."
                      }
                    },
                    "required": [
                      "enabled"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          true
                        ],
                        "description": "Timed sell is armed."
                      },
                      "same_block_delay_ms": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 86400000,
                        "description": "Delay for a buy landing in the same block (Solana slot) as the leader."
                      },
                      "next_block_delay_ms": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 86400000,
                        "description": "Delay for a buy landing one block (Solana slot) after the leader."
                      },
                      "after_sec": {
                        "type": "integer",
                        "description": "Delay in whole seconds from the first actual buy write."
                      },
                      "after_ms": {
                        "type": "integer",
                        "description": "Exact delay in milliseconds. Present together with after_sec; after_ms is the precise value."
                      },
                      "sell_pct": {
                        "type": "string",
                        "description": "Share of the position to sell. \"1\" = 1%."
                      }
                    },
                    "required": [
                      "enabled",
                      "after_sec",
                      "after_ms",
                      "sell_pct"
                    ],
                    "additionalProperties": false
                  }
                ],
                "description": "Timed sell. When it is off, the object is only {enabled:false}."
              },
              "dev_sell": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether this option is on. Turn an object option off with enabled=false, never with null."
                  }
                },
                "additionalProperties": false,
                "description": "Whether this config sells the same fraction the token developer sold. The full-exit threshold is not on this API; the stored default is the developer selling their entire balance."
              },
              "migration_sell": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether this option is on. Turn an object option off with enabled=false, never with null."
                  },
                  "sell_pct": {
                    "type": "string",
                    "description": "Share of the remaining position to sell on migration, from 0.01 to 100 percent. \"1\" = 1%. Default \"100\". If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                  }
                },
                "required": [
                  "sell_pct"
                ],
                "additionalProperties": false,
                "description": "On Robinhood, BSC and Solana Cell tasks, sell the configured share after a token migrates to an AMM, once per task, wallet and token. Applies only to positions bought on the bonding curve while enabled; uses the task sell settings. Arc accepts and stores this rule without execution: Arc launchpads (Argus, O1, Pools) issue directly on AMMs with no migration event."
              },
              "anti_wick": {
                "type": "boolean",
                "default": false,
                "description": "Anti-wick. Off (absent or false): on Solana, ordinary take profit, stop loss and the limit buys of the same strategy trigger as soon as a qualifying trade touches the trigger price and then sell or buy at market (trades that do not count: https://apm.fun/docs/copy-trading/strategy-settings#anti-wick), so the fill can differ from the trigger price. A limit buy is not triggered by single trades in the block it was placed in. On: they trigger only if the price still meets the condition at the end of the block (Solana slot), ignoring brief spikes and dips inside it. Segmented take profit, trailing and break-even stops and conditional exits always trigger on the end-of-block price, either way. No effect on BSC and Robinhood. Not an exit by itself: exits still need at least one exit."
              }
            },
            "required": [
              "take_profit",
              "segmented_take_profit",
              "stop_loss",
              "trailing",
              "timed_sell",
              "dev_sell",
              "migration_sell"
            ],
            "additionalProperties": false,
            "description": "Automatic exit rules currently stored on this config."
          },
          "target": {
            "type": "object",
            "properties": {
              "mode": {
                "type": "string",
                "enum": [
                  "launchpad",
                  "token"
                ],
                "default": "launchpad",
                "description": "\"launchpad\" watches every new listing matching launchpads. \"token\" (only token_addresses) is retired after the task format update: create and PATCH requests with it return HTTP 400 unsupported_target_mode."
              },
              "launchpads": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Launch platforms to watch, 1 to 16, no duplicates. robinhood long-xyz (Long.xyz) carries its own minimum slippage, see buy.long_xyz_delay_sec. bsc: four-meme, flap, open-four, cheesepad-melt-curve, genius, flap-pool-launch. robinhood: pons, pons-v2, doppler, clanker, letscash, long-xyz, flap, standard-reserve, torch. solana: pumpfun, pumpfun-mayhem, pumpfun-normal, pumpfun-cashback, pumpfun-amm, raydium-launchpad, raydium-cpmm, meteora-dbc. On Solana, Pump has normal/Mayhem/Cashback children (pumpfun-normal/pumpfun-mayhem/pumpfun-cashback). Select venues pumpfun/pumpfun-amm plus allowed modes; omit mode values to allow all modes. Both flags require both modes. Pre-change lists containing pumpfun-mayhem without pumpfun-normal or pumpfun-cashback now mean Mayhem only; existing tasks are migrated. Mode values without either Pump venue imply both Pump venues. arc: minara, argus, pools-instant, o1-exchange."
              },
              "token_addresses": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "default": [],
                "description": "Only with mode token, which is retired after the task format update (requests return HTTP 400 unsupported_target_mode). Must be empty in launchpad mode. At most 100. The zero address is rejected."
              },
              "creators": {
                "type": "object",
                "properties": {
                  "allowed": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": [],
                    "description": "Deployer addresses to accept. Non-empty means only launches by these deployers. EVM allowed creators with publicly known private keys (the 20 default Hardhat/Anvil accounts) are rejected on create and parameter edits. Remove them before editing an existing config. At most 2000. The zero address is rejected."
                  },
                  "blocked": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": [],
                    "description": "Deployer addresses to always reject, even if they are also in allowed. At most 2000. The zero address is rejected."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Restrict launches by deployer. blocked always wins over allowed."
              },
              "keywords": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "default": [],
                "description": "Case-insensitive substrings of the token name or symbol. Any match admits the launch. Empty means no keyword restriction. At most 100."
              },
              "blocked_keywords": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "default": [],
                "description": "Case-insensitive substrings of the token name or symbol. Any match skips the launch, and this always wins over keywords. Each entry 1 to 64 characters. Empty means no exclusion. At most 100. Replaced as a whole on PATCH."
              },
              "quote_classes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "native",
                    "stable",
                    "stock",
                    "prestock",
                    "other"
                  ]
                },
                "maxItems": 5,
                "description": "Solana quote-token classes: native (SOL), stable (USDC/USDT/USD1), stock (xStocks/Backpack), prestock (PreStocks), other. Matches the quote of the launch pool that directly trades the token. Empty or absent means no class filter. AND with quotes and launchpad modes. Stocks OR cashback needs two tasks. Compiles to token.quote_class in a root all."
              },
              "quotes": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "default": [],
                "description": "Allowed quote tokens of the launch pool. The zero address means the native coin. Empty means any quote. At most 512."
              },
              "dev_buy_max": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Only accept launches within the developer initial buy range. An omitted max means no upper bound."
                  },
                  "min": {
                    "type": "string",
                    "default": "0",
                    "description": "Minimum developer first buy, in the native token. Optional decimal string, defaults to zero. No developer buy counts as zero."
                  },
                  "max": {
                    "type": "string",
                    "description": "Maximum developer first buy, in the native token. Optional decimal string; omitted on create means no upper bound. PATCH omission preserves it; null removes the upper bound. Explicit zero is an inclusive upper bound."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Filter developer first buys by an inclusive native-token range. An omitted max means no upper bound; min and max both zero require no developer buy."
              },
              "skip_same_name_relaunch": {
                "type": "boolean",
                "default": false,
                "description": "Skip a token whose creator relaunched the same name within 120 seconds."
              },
              "require_plain_name": {
                "type": "boolean",
                "default": false,
                "description": "Skip launches with special characters in the name or symbol. After trimming whitespace, only letters of any script, ordinary combining accents, decimal digits, printable ASCII and space are allowed. Emoji (including keycaps), circled numbers, math-style letters (U+1D400–U+1D7FF, such as 𝐏𝐄𝐏𝐄), zero-width and control characters, and non-ASCII punctuation are rejected. A launch that provides neither a name nor a symbol is bought as usual."
              },
              "creator_sold": {
                "type": "boolean",
                "description": "Check once before sending. True requires a sale of any size by the creator address after the launch transaction. False requires confirmed absence of a sale. Unknown history rejects either setting. Bundled wallets are excluded. Omit for no restriction on create, or send null in PATCH to clear."
              },
              "market_cap": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply the market-cap window. When true, min_usd or max_usd is required."
                  },
                  "min_usd": {
                    "type": "string",
                    "description": "Minimum token market cap in USD. Decimal string, up to 2 decimal places; 0 means unbounded. On Solana and Robinhood KOTM, checked only before sending."
                  },
                  "max_usd": {
                    "type": "string",
                    "description": "Maximum token market cap in USD. Decimal string, up to 2 decimal places; 0 means unbounded. Checked at fill time: BSC and Robinhood allow up to approximately 30% above this bound; Solana enforces it as given."
                  }
                },
                "additionalProperties": false,
                "description": "Snipe only within this USD market-cap range. Market cap = total supply × price in USD. Omitted or {} disables the filter; enabled requires min_usd or max_usd. 0 means unbounded on that side."
              }
            },
            "required": [
              "launchpads",
              "market_cap"
            ],
            "additionalProperties": false,
            "description": "Which new tokens this config buys."
          },
          "buy": {
            "type": "object",
            "properties": {
              "amount": {
                "type": "string",
                "description": "Native-token amount spent on each snipe. Decimal string, up to 18 decimal places."
              },
              "delay_ms": {
                "type": "integer",
                "description": "Wait at least this many milliseconds from first observing the launch. Integer 0 to 60000. All launchpads also wait for their own release. Omit or use 0 for no added delay. Responses only include positive values. PATCH omission preserves the delay and null clears it."
              },
              "anti_sniper_block_offset": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "BSC only: anti-sniper fee tier for Four.meme and OpenFour launches that charge an anti-sniper fee. Integer 0 to 6; a higher tier buys later and pays a lower anti-sniper fee. Omitted or null uses the default tier 5. Requires target.launchpads to contain four-meme or open-four. Approximate anti-sniper share of the buy amount for tiers 0..6: 50%, 33%, 19%, 12%, 8%, 4%, 0%; OpenFour can be up to about 1 percentage point higher. Other fees are additional. PATCH omission preserves the setting; null resets it. Launches without an anti-sniper fee are unaffected."
              },
              "long_xyz_delay_sec": {
                "type": "integer",
                "description": "Robinhood only, and only while target.launchpads contains long-xyz: buy timing for Long.xyz launches, whole seconds 0 to 10. A shorter delay buys earlier but pays a higher launch tax, so slippage_pct must be at least 100 - 9.86 x seconds percent. The Web app offers 9 (sport, about 10% tax), 8 (boost, about 20%) and 7 (ultra, about 30%). Omitted means the normal timing (under 2% tax, treated as 10 seconds for the slippage floor). Send null in PATCH to return to the normal timing."
              }
            },
            "required": [
              "amount"
            ],
            "additionalProperties": false,
            "description": "How much to spend on each snipe."
          },
          "trigger": {
            "type": "object",
            "properties": {
              "max_hits_per_creator": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply limit. limit is required when this is true."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000,
                    "description": "Positive integer cap, at most 100000."
                  },
                  "window_sec": {
                    "type": "integer",
                    "minimum": 3600,
                    "maximum": 604800,
                    "description": "Rolling window in whole hours (3600–604800 seconds). Omit to count for the current run."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Skip a creator who reaches the cap. With window_sec, count recent filled snipes and all in-flight snipes; buys stay enabled and a creator becomes eligible as their snipes age out. Without window_sec, pause buys when every allowlisted creator reaches the cap (run_state: buy_paused, reason: creator_limit). Reopening starts a fresh count."
              },
              "max_consecutive_losses": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply limit. limit is required when this is true."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000,
                    "description": "Positive integer cap, at most 100000."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Pause buys (run_state: buy_paused, reason: loss_streak) after this many consecutive losing snipes; the task stays enabled and sells and exits continue. When both caps are enabled and max_hits_per_creator.window_sec is omitted, this limit must be less than max_hits_per_creator.limit. Resume starts a fresh count."
              }
            },
            "additionalProperties": false,
            "description": "Caps on sniper buys. Sells and exits continue during a buy pause. The creator cap can use a rolling window; the consecutive-loss cap applies to the current run. One config buys each token at most once per wallet."
          },
          "advanced": {
            "type": "object",
            "properties": {
              "trx_retry": {
                "type": "integer",
                "description": "Deprecated: execution does not read it. Accepted with default 3 and maximum 10; configs stored as strategy tasks (every config created since the TaskSpec migration) do not keep it and read back 3."
              }
            },
            "required": [
              "trx_retry"
            ],
            "additionalProperties": false,
            "description": "Retry settings for this snipe config."
          },
          "sell_fee_filter_enabled": {
            "type": "boolean",
            "description": "Enable the sell-back fee filter for copy and sniper buys on Solana, BSC and Robinhood. Absent or false disables it. At buy time, estimates known sell-back fees on the buy route (pool fee plus token sell tax); a known total above sell_fee_max_bps rejects the buy as sell_fee_too_high. Unknown parts pass. When true, sell_fee_max_bps must exist in the create body or stored config merged with PATCH; otherwise HTTP 400 validation_error. GET/list return stored values as-is, without effective defaults. Omitted create/PATCH fields are not written."
          },
          "sell_fee_max_bps": {
            "type": "number",
            "description": "Maximum estimated sell-back fees in integer bps, 0–9999 (100 bps = 1%). Required when sell_fee_filter_enabled is true; 0 is the strictest cap, not off. Known fees above the cap reject the buy; equal fees and unknown parts pass. Excludes price impact, priority fee, tip and platform fees; does not filter actual sell orders. GET/list preserve the stored value, including absence. Omitted create/PATCH fields are not written."
          },
          "min_sell_usd": {
            "type": "string",
            "description": "Minimum automatic sell value in USD, a decimal string from 0.01 to 100000 inclusive. A smaller sell is enlarged up to the available position. A remainder worth less than the higher of this minimum and the sell cost is included. Omit for remainder cleanup only, using $1 and the sell cost. EVM flash sells before the buy receipt may fall below the minimum."
          },
          "retain_bps": {
            "type": "number",
            "description": "Share of each new buy retained from automatic sells (including stop loss), in integer basis points (1–9999, 100 bps = 1%). Omit for no retention. Changing the share affects future buys. Manual sells can use the retained tokens. An EVM task flash sell sent before the buy receipt approximates the reserve."
          },
          "usdc_trading": {
            "type": "boolean",
            "description": "Solana only. true lets USDC pools use USDC first for buys and keeps sell proceeds in USDC; false uses SOL only. Existing USDC must be handled separately when disabled. New tasks default to false in the domain; omitted PATCH fields preserve the stored setting. GET/list return the stored value. Tasks created before the strategy-task migration cannot store it: writing it to such a task returns HTTP 400 validation_error. Writing on any other chain, including false, returns HTTP 400 unsupported_chain_feature."
          },
          "buy_slippage_sol": {
            "type": [
              "number",
              "null"
            ],
            "description": "Solana copy and sniper buys only. SOL amount, minimum 0.1, at most 9 decimal places. Replaces percentage buy slippage on both fee lanes; stored percentages are preserved. More than this amount of SOL bought ahead of us prevents the buy: for copy configs, counted from the pool after the leader fill; for sniper configs, from the pool right after the token creation transaction, including the dev first buy. No default: omission uses percentage mode. PATCH omission preserves the value; PATCH null clears it and restores percentage mode. Unsupported chains or unmigrated tasks return validation_error. Not available for sells or manual trades."
          },
          "buy_fee_tip_first": {
            "type": "boolean",
            "description": "Solana only. Lower failure cost in buy auto mode: if a buy lands on-chain but fails (for example, slippage exceeded), at most about 0.001 SOL of priority fee is charged and the tip is not. This sacrifices some speed. Applies to copy and sniper buys with fixed or proportional total fees. Absent or false disables it. Writing true requires the merged config to have buy_fee_auto true and gas.high_tip.enabled not true; otherwise HTTP 400 validation_error. Manual mode and sells ignore it. GET/list return the stored value; a Solana task in buy auto mode without high tip returns false when unset. Omitted PATCH fields are not written. Writing on any other chain, including false, returns HTTP 400 unsupported_chain_feature."
          },
          "buy_fee_tip_first_min": {
            "type": "boolean",
            "description": "Solana only. No longer affects execution; still accepted, stored and read back as before. Writing true still requires the merged config to have buy_fee_tip_first true; otherwise HTTP 400 validation_error with details for buy_fee_tip_first_min. GET/list return the stored value; Solana strategy tasks in buy auto mode with tip-first enabled return false when unset. Unrelated PATCH edits preserve an inactive min flag. Turning buy_fee_tip_first off also turns min off unless the PATCH explicitly supplies min. An explicit min field in the PATCH takes precedence and is validated as supplied. Null PATCH is rejected. Writing on any other chain, including false, returns HTTP 400 unsupported_chain_feature."
          },
          "buy_fee_auto": {
            "type": "boolean",
            "description": "Solana only. true = auto fee mode for buys: with gas.high_tip.enabled false the executor treats gas.priority_fee + gas.landing_fee as one budget and splits it per landing route, with no priority fee cap. Omitted or false uses manual fees as entered. Enabling high_tip also selects manual fees even when this flag is true. Read the tiers using the total budget. With ratio fees, use the total calculated for the buy amount. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings."
          },
          "sell_fee_auto": {
            "type": "boolean",
            "description": "Solana only. true = auto fee mode for sells: with gas.high_tip.enabled false the executor treats gas.priority_fee + gas.landing_fee as one budget and splits it per landing route, with no priority fee cap. Omitted or false uses manual fees as entered. Enabling high_tip also selects manual fees even when this flag is true. Read the tiers using the total budget. Stop-loss sells may be late when the budget is low. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings."
          },
          "buy_fee_filter_enabled": {
            "type": "boolean",
            "description": "Enable the task buy-fee filter. When absent from the task, defaults to enabled at 25% (2500 bps), or the stored limit if 0 < buy_fee_max_bps < 10000. Explicit false disables it; explicit true filters only with a valid limit. GET/list preserve the stored enabled flag (absent stays absent) and return the effective buy_fee_max_bps. An omitted enabled flag means filtering is on at the returned limit for known fees only; sending true opts into the user-set rule below. Omitted create/PATCH fields are not written. Applies to copy and snipe buys on all four Cell chains. The default caps known fees only; undetectable fees are not counted and pass in both Speed first and Price protection. With explicit true and a valid limit, copy buys in Price protection on EVM and Solana reject undetectable fees as buy_fee_unknown; on Solana a Meteora DLMM variable fee is judged at this buy's highest possible rate."
          },
          "buy_fee_max_bps": {
            "type": "number",
            "description": "Maximum buy fees and taxes in integer bps (100 bps = 1%). When buy_fee_filter_enabled is absent from the task, uses a stored limit if 0 < buy_fee_max_bps < 10000, otherwise 2500 bps (25%). With explicit true, only 1–9999 enables filtering; 0 or an absent limit disables it. GET/list return the effective limit and preserve the stored buy_fee_filter_enabled flag (absent stays absent). An omitted flag means filtering is on at the returned limit for known fees only; sending true opts into the user-set rule below. Excludes price impact, priority fee, tip and platform fees. Known fees above this limit are rejected. When buy_fee_filter_enabled is absent, the default caps known fees only; undetectable fees are not counted and pass on every chain in both Speed first and Price protection. Only an explicitly enabled filter with a valid limit rejects undetectable fees for copy buys in Price protection on EVM and Solana as buy_fee_unknown (on Solana a Meteora DLMM variable fee is judged at this buy's highest possible rate); Speed first and sniper buys allow them."
          },
          "buy_landing_fee_bps": {
            "type": "number",
            "description": "Solana auto mode only: buy total fee as nonnegative integer bps of the actual SOL principal (100 bps = 1%). Absent or 0 selects fixed total fees; no ratio cap. For copy and sniper buys, total = clamp(principal × bps / 10000, buy_landing_fee_min, buy_landing_fee_max), split into priority fee and tip per landing route like auto-mode total fees. The stored buy priority_fee and landing_fee are ignored; slippage still applies. Read only in auto fee mode (buy_fee_auto true, gas.high_tip.enabled false); manual mode ignores it, and setting a new positive value on a manual task returns 400. Sell and manual orders are unaffected. Callers are responsible for the chosen ratio; no confirmation step. Writing on EVM returns HTTP 400 unsupported_chain_feature, including 0."
          },
          "buy_landing_fee_min": {
            "type": "string",
            "description": "Solana auto-mode ratio fee minimum total in SOL, decimal string up to 9 places, at least \"0.0001\" (the cheapest landing route's minimum tip; \"0\" is rejected). When the effective buy_landing_fee_bps > 0 and no minimum was stored or sent, create/PATCH writes \"0.002\". Total = clamp(principal × bps / 10000, min, max), split per landing route like auto-mode total fees; stored buy priority_fee/landing_fee are ignored. A positive minimum must not exceed a positive maximum. Ratio fees apply only in auto fee mode (buy_fee_auto true, gas.high_tip.enabled false). Copy and sniper buys only; sells and manual orders unaffected. Writing on EVM returns HTTP 400 unsupported_chain_feature, including \"0\"."
          },
          "buy_landing_fee_max": {
            "type": "string",
            "description": "Solana auto-mode ratio fee maximum total in SOL, decimal string up to 9 places. Absent or \"0\" means no cap. Total = clamp(principal × buy_landing_fee_bps / 10000, buy_landing_fee_min, max), split per landing route like auto-mode total fees; stored buy priority_fee/landing_fee are ignored. A positive maximum must be at least a positive minimum. Ratio fees apply only in auto fee mode (buy_fee_auto true, gas.high_tip.enabled false). Copy and sniper buys only; sells and manual orders unaffected. Writing on EVM returns HTTP 400 unsupported_chain_feature, including \"0\". Omitted create/PATCH maximums are not written."
          },
          "buy_schedule": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "boolean",
                "description": "Apply the window. false keeps the times stored without restricting buys."
              },
              "timezone": {
                "type": "string",
                "description": "IANA time zone name the minutes are read in, for example Asia/Shanghai. The name is stored in its canonical form (asia/shanghai is stored as Asia/Shanghai, utc as UTC); offsets such as +08:00 and names longer than 64 characters are rejected."
              },
              "start_minute": {
                "type": "number",
                "description": "Window start, in whole minutes after local midnight, 0 to 1439. The start minute is inside the window."
              },
              "end_minute": {
                "type": "number",
                "description": "Window end, in whole minutes after local midnight, 0 to 1439. The end minute is outside the window. When it is smaller than start_minute the window crosses midnight (1260 to 120 is 21:00 to 02:00). It must differ from start_minute."
              }
            },
            "required": [
              "enabled",
              "timezone",
              "start_minute",
              "end_minute"
            ],
            "additionalProperties": false,
            "description": "Daily buy window. Outside the window no new positions are opened (no follow buys, no snipe buys); sells, take-profit and stop-loss keep running. Omit it, or send enabled false, for no restriction. PATCH replaces the whole object, so send all four fields; null is rejected. Supported on bsc, robinhood, arc and solana."
          }
        },
        "required": [
          "id",
          "status",
          "version",
          "run_state",
          "read_only",
          "engine",
          "created_via",
          "created_at",
          "updated_at",
          "deleted_at",
          "labels",
          "kind",
          "stop_reason",
          "chain",
          "wallet_id",
          "wallet_ids",
          "slippage_pct",
          "gas",
          "exit",
          "target",
          "buy",
          "trigger",
          "advanced"
        ]
      },
      "SniperConfigDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Config id. Use it in the path of later calls."
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "paused",
              "deleted"
            ],
            "description": "What was asked for — see engine.sync_state for what the execution engine last confirmed. A trigger cap pauses the config and sets stop_reason."
          },
          "version": {
            "type": "number",
            "description": "Optimistic-concurrency version. Send as the ETag/If-Match value on writes."
          },
          "run_state": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "enum": [
                  "running",
                  "buy_paused",
                  "stopped"
                ],
                "description": "running: enabled; buy_paused: new buys paused, sells continue; stopped: disabled or deleted."
              },
              "reason": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Known buy-pause reasons: account, loss_streak, creator_limit, leader_token_limit, follow_count, buy_fail_streak, funding_low. Buys pause while sells and exits continue. For run-bound pauses, reopen to start a new run: follow, loss and creator counts reset; leader distinct-token counts persist, so raise the limit or disable that filter before reopening. Known stop reasons: low_balance, inactivity, loss_streak, creator_limit. Null means no recorded reason or user stop; unknown reasons are preserved."
              }
            },
            "required": [
              "state",
              "reason"
            ],
            "description": "Task run state. Configs stored as strategy tasks (every config created since the TaskSpec migration, and migrated ones) report all three states; configs not yet migrated report running or stopped."
          },
          "read_only": {
            "type": "boolean",
            "description": "True for archived configs or strategy configs using settings this API cannot express. Archived configs reject all configuration writes, including pause, resume and delete, with 409 task_read_only; GET and labels-only PATCH still work. For strategy configs, pause, resume, delete and labels-only PATCH still work, but any other PATCH, including name, returns 409 task_read_only; edit those settings in the app instead."
          },
          "engine": {
            "type": "object",
            "properties": {
              "applied_version": {
                "type": "number",
                "description": "Config version the execution engine last acknowledged."
              },
              "sync_state": {
                "type": "string",
                "enum": [
                  "syncing",
                  "synced",
                  "failed"
                ],
                "description": "syncing: the engine has not confirmed this version yet. synced: it has. failed: the last attempt failed; see error_code."
              },
              "buy_entry": {
                "type": "string",
                "enum": [
                  "open",
                  "closed"
                ],
                "description": "open: the engine is accepting new buys for this config. closed: it is not (paused, deleted, or not yet confirmed)."
              },
              "warning_code": {
                "type": "string",
                "description": "The config has taken effect. prior_buyers_unavailable means listed wallet history is still loading. prior_buyers_fast_unavailable means updates for some listed wallets are delayed. The task may miss purchases those wallets make just before the leader buys. This warning does not reject buys. prior_buyers_over_limit means the account exceeds the wallet limit on this chain. Purchases by wallets beyond the limit are not checked. prior_buyers_history_truncated means a listed wallet bought more than 5,000 distinct tokens inside the window. Only its most recent 5,000 are checked. The task keeps running."
              },
              "error_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why the last engine sync failed. Null when sync_state is not failed."
              },
              "updated_at": {
                "type": "string",
                "description": "When the engine last reported this state, RFC 3339 UTC."
              }
            },
            "required": [
              "applied_version",
              "sync_state",
              "buy_entry",
              "error_code",
              "updated_at"
            ],
            "description": "What the execution engine last confirmed. status is what you asked for; this is what the engine has applied."
          },
          "created_via": {
            "type": "string",
            "enum": [
              "web",
              "api"
            ],
            "description": "web if the config was created in the app, api if it was created through this API."
          },
          "created_at": {
            "type": "string",
            "description": "When the config was created, RFC 3339 UTC."
          },
          "updated_at": {
            "type": "string",
            "description": "When the config was last changed, RFC 3339 UTC."
          },
          "deleted_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "When the config was soft-deleted, RFC 3339 UTC. Null while it is active or paused."
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 24
            },
            "description": "The caller's own labels on this task, or an empty array if none are set. Replace them with PATCH (labels: string[]): at most 10 labels, each 1-24 characters after trimming, duplicates removed, the array replaces the whole set, null is rejected. Changing only labels does not require the config to be paused and does not change version or engine state."
          },
          "kind": {
            "type": "string",
            "enum": [
              "sniper"
            ],
            "description": "Always sniper."
          },
          "stop_reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "creator_limit",
              "loss_streak"
            ],
            "description": "Why the engine auto-stopped this config; null if it was not auto-stopped."
          },
          "chain": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "bsc",
                  "robinhood",
                  "solana",
                  "arc"
                ]
              },
              {
                "type": "string",
                "minLength": 1
              }
            ],
            "description": "Chain this config runs on. Documented values are bsc/robinhood/solana/arc; a config stored on any other chain (created outside this API, e.g. by the Web app) is still reported verbatim rather than rejected."
          },
          "wallet_id": {
            "type": "string",
            "description": "First entry of wallet_ids, kept for callers that only know a single wallet. Use wallet_ids for the complete list. Immutable once created."
          },
          "wallet_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Every custodial wallet that executes this config, in stored order. A config created with the app may have several. Immutable once created."
          },
          "name": {
            "type": "string",
            "description": "Caller-assigned label for the config."
          },
          "slippage_pct": {
            "type": "string",
            "description": "Max slippage for the snipe buy, also the sell-side value unless sell is returned. \"1\" = 1%."
          },
          "gas": {
            "type": "object",
            "properties": {
              "priority_fee": {
                "type": "string",
                "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
              },
              "landing_fee": {
                "type": "string",
                "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
              },
              "auto_gas": {
                "type": "boolean",
                "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
              },
              "high_tip": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                  },
                  "priority_fee": {
                    "type": "string",
                    "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                  },
                  "landing_fee": {
                    "type": "string",
                    "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                  }
                },
                "additionalProperties": false,
                "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
              },
              "anti_mev": {
                "type": "boolean",
                "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
              }
            },
            "additionalProperties": false,
            "description": "Gas settings for buys and sells on this config."
          },
          "sell": {
            "type": "object",
            "properties": {
              "slippage_pct": {
                "type": "string",
                "description": "Stored sell-side max slippage. \"1\" = 1%. Only Flash Sell, Dev Sell and Migration Sell use it; the other automatic sells, including sales triggered by a confirmed earlier buy from a listed wallet (forward copy trades only), are sent at maximum slippage (see the request field sell.slippage_pct)."
              },
              "gas": {
                "type": "object",
                "properties": {
                  "priority_fee": {
                    "type": "string",
                    "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
                  },
                  "landing_fee": {
                    "type": "string",
                    "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
                  },
                  "auto_gas": {
                    "type": "boolean",
                    "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
                  },
                  "high_tip": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                      },
                      "priority_fee": {
                        "type": "string",
                        "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                      },
                      "landing_fee": {
                        "type": "string",
                        "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                      }
                    },
                    "additionalProperties": false,
                    "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
                  },
                  "anti_mev": {
                    "type": "boolean",
                    "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
                  }
                },
                "additionalProperties": false,
                "description": "Stored sell-side gas settings."
              }
            },
            "required": [
              "slippage_pct",
              "gas"
            ],
            "additionalProperties": false,
            "description": "Sell-side values, returned only when they differ from the top-level slippage_pct / gas (which show the buy side). Omitted when buy and sell are the same."
          },
          "exit": {
            "type": "object",
            "properties": {
              "take_profit": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "amount_basis": {
                      "type": "string",
                      "enum": [
                        "initial",
                        "remaining"
                      ],
                      "description": "Use the bought amount (default) or the amount remaining at trigger time."
                    },
                    "gain_pct": {
                      "type": "string",
                      "description": "Price rise that triggers this take-profit. \"1\" = 1%."
                    },
                    "sell_pct": {
                      "type": "string",
                      "description": "Share of the position to sell when gain_pct is reached. \"1\" = 1%. If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                    },
                    "expires_in_sec": {
                      "type": "integer",
                      "description": "How long this entry stays armed, in seconds. Default 259200 (3 days). After that it stops applying and does not sell."
                    }
                  },
                  "required": [
                    "gain_pct",
                    "sell_pct",
                    "expires_in_sec"
                  ],
                  "additionalProperties": false,
                  "description": "One take-profit level."
                },
                "description": "Up to 20 take-profit levels. Each sells sell_pct of the position when price is up gain_pct. An expired entry stops applying and does not sell."
              },
              "segmented_take_profit": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Whether segmented take-profit is active. Turning it off keeps the saved segments. At least one segment is required when this is true. Disable with enabled=false, never with null."
                  },
                  "amount_basis": {
                    "type": "string",
                    "enum": [
                      "initial",
                      "remaining"
                    ],
                    "description": "Use the bought amount (default) or the amount remaining at trigger time."
                  },
                  "segments": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "gain_pct": {
                          "type": "string",
                          "description": "Rise of this segment, added to the rises of the segments before it, as a percent of the buy price: segment n triggers at buy price × (1 + the gain_pct of segments 1 to n). \"1\" = 1%."
                        },
                        "sell_pct": {
                          "type": "string",
                          "description": "Share of the group’s selected amount basis to sell when price reaches this segment's trigger price. Capped at what is left. \"1\" = 1%. If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                        },
                        "expires_in_ms": {
                          "type": "integer",
                          "description": "Lifetime of this segment in milliseconds. Omit or set 0 for no timeout; PATCH replaces the segments array, so an omitted lifetime in a replacement segment resets to 0. The first segment's lifetime starts when the buy is sent; each later segment's starts when the previous segment ends. When a positive lifetime runs out before the trigger price is reached and timeout_sell is enabled, timeout_sell.sell_pct is sold. This is not take_profit: an expired take_profit entry simply stops applying."
                        },
                        "timeout_sell": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "description": "Sell when this segment's lifetime runs out before its trigger price is reached."
                            },
                            "sell_pct": {
                              "type": "string",
                              "description": "Share of the group’s selected amount basis to sell on timeout. Capped at what is left. \"1\" = 1%. Default \"100\"."
                            }
                          },
                          "required": [
                            "enabled",
                            "sell_pct"
                          ],
                          "additionalProperties": false,
                          "description": "Sell that fires when this segment expires before its trigger price."
                        }
                      },
                      "required": [
                        "gain_pct",
                        "sell_pct",
                        "expires_in_ms",
                        "timeout_sell"
                      ],
                      "additionalProperties": false,
                      "description": "One segmented take-profit level, with its own lifetime and timeout sell."
                    },
                    "description": "Up to 20 segments, run in order: only the current segment waits, and the next one starts after its sell fills. The last segment repeats until the position is sold. They are reported even while enabled is false, so an edit returns them unchanged."
                  }
                },
                "required": [
                  "enabled",
                  "segments"
                ],
                "additionalProperties": false,
                "description": "Segmented take-profit. Segments run in order, their rises add up from the buy price, and each has its own lifetime and timeout sell. Lifetimes are milliseconds."
              },
              "stop_loss": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          false
                        ],
                        "description": "Stop-loss is off. A disabled response is only this field — the other keys are absent."
                      }
                    },
                    "required": [
                      "enabled"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          true
                        ],
                        "description": "Stop-loss is armed."
                      },
                      "amount_basis": {
                        "type": "string",
                        "enum": [
                          "initial",
                          "remaining"
                        ],
                        "description": "Use the bought amount (default) or the amount remaining at trigger time."
                      },
                      "loss_pct": {
                        "type": "string",
                        "description": "Drop from entry that triggers the sell. \"1\" = 1%."
                      },
                      "sell_pct": {
                        "type": "string",
                        "description": "Share of the position to sell. \"1\" = 1%."
                      },
                      "expires_in_sec": {
                        "type": "integer",
                        "description": "How long the stop-loss stays armed, in seconds."
                      }
                    },
                    "required": [
                      "enabled",
                      "loss_pct",
                      "sell_pct",
                      "expires_in_sec"
                    ],
                    "additionalProperties": false
                  }
                ],
                "description": "Stop-loss. When it is off, the object is only {enabled:false}."
              },
              "trailing": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          false
                        ],
                        "description": "Trailing stop is off. A disabled response is only this field — the other keys are absent."
                      }
                    },
                    "required": [
                      "enabled"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          true
                        ],
                        "description": "Trailing stop is armed."
                      },
                      "amount_basis": {
                        "type": "string",
                        "enum": [
                          "initial",
                          "remaining"
                        ],
                        "description": "Use the bought amount (default) or the amount remaining at trigger time."
                      },
                      "activation_gain_pct": {
                        "type": "string",
                        "description": "Rise that armed the trailing stop. \"0\" means it was armed immediately. \"1\" = 1%."
                      },
                      "drop_pct": {
                        "type": "string",
                        "description": "Drop from the high-water mark that triggers the sell. \"1\" = 1%."
                      },
                      "sell_pct": {
                        "type": "string",
                        "description": "Share of the position to sell. \"1\" = 1%."
                      },
                      "expires_in_sec": {
                        "type": "integer",
                        "description": "How long the trailing stop stays armed, in seconds."
                      }
                    },
                    "required": [
                      "enabled",
                      "activation_gain_pct",
                      "drop_pct",
                      "sell_pct",
                      "expires_in_sec"
                    ],
                    "additionalProperties": false
                  }
                ],
                "description": "Trailing stop. When it is off, the object is only {enabled:false}."
              },
              "timed_sell": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          false
                        ],
                        "description": "Timed sell is off. A disabled response is only this field — the other keys are absent."
                      }
                    },
                    "required": [
                      "enabled"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "enum": [
                          true
                        ],
                        "description": "Timed sell is armed."
                      },
                      "same_block_delay_ms": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 86400000,
                        "description": "Delay for a buy landing in the same block (Solana slot) as the leader."
                      },
                      "next_block_delay_ms": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 86400000,
                        "description": "Delay for a buy landing one block (Solana slot) after the leader."
                      },
                      "after_sec": {
                        "type": "integer",
                        "description": "Delay in whole seconds from the first actual buy write."
                      },
                      "after_ms": {
                        "type": "integer",
                        "description": "Exact delay in milliseconds. Present together with after_sec; after_ms is the precise value."
                      },
                      "sell_pct": {
                        "type": "string",
                        "description": "Share of the position to sell. \"1\" = 1%."
                      }
                    },
                    "required": [
                      "enabled",
                      "after_sec",
                      "after_ms",
                      "sell_pct"
                    ],
                    "additionalProperties": false
                  }
                ],
                "description": "Timed sell. When it is off, the object is only {enabled:false}."
              },
              "dev_sell": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether this option is on. Turn an object option off with enabled=false, never with null."
                  }
                },
                "additionalProperties": false,
                "description": "Whether this config sells the same fraction the token developer sold. The full-exit threshold is not on this API; the stored default is the developer selling their entire balance."
              },
              "migration_sell": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether this option is on. Turn an object option off with enabled=false, never with null."
                  },
                  "sell_pct": {
                    "type": "string",
                    "description": "Share of the remaining position to sell on migration, from 0.01 to 100 percent. \"1\" = 1%. Default \"100\". If what would be left after the sell is worth less than the task minimum sell amount (default $1) or less than that sell's own priority fee and tip, whichever is higher, the remainder is sold too."
                  }
                },
                "required": [
                  "sell_pct"
                ],
                "additionalProperties": false,
                "description": "On Robinhood, BSC and Solana Cell tasks, sell the configured share after a token migrates to an AMM, once per task, wallet and token. Applies only to positions bought on the bonding curve while enabled; uses the task sell settings. Arc accepts and stores this rule without execution: Arc launchpads (Argus, O1, Pools) issue directly on AMMs with no migration event."
              },
              "anti_wick": {
                "type": "boolean",
                "default": false,
                "description": "Anti-wick. Off (absent or false): on Solana, ordinary take profit, stop loss and the limit buys of the same strategy trigger as soon as a qualifying trade touches the trigger price and then sell or buy at market (trades that do not count: https://apm.fun/docs/copy-trading/strategy-settings#anti-wick), so the fill can differ from the trigger price. A limit buy is not triggered by single trades in the block it was placed in. On: they trigger only if the price still meets the condition at the end of the block (Solana slot), ignoring brief spikes and dips inside it. Segmented take profit, trailing and break-even stops and conditional exits always trigger on the end-of-block price, either way. No effect on BSC and Robinhood. Not an exit by itself: exits still need at least one exit."
              }
            },
            "required": [
              "take_profit",
              "segmented_take_profit",
              "stop_loss",
              "trailing",
              "timed_sell",
              "dev_sell",
              "migration_sell"
            ],
            "additionalProperties": false,
            "description": "Automatic exit rules currently stored on this config."
          },
          "target": {
            "type": "object",
            "properties": {
              "mode": {
                "type": "string",
                "enum": [
                  "launchpad",
                  "token"
                ],
                "default": "launchpad",
                "description": "\"launchpad\" watches every new listing matching launchpads. \"token\" (only token_addresses) is retired after the task format update: create and PATCH requests with it return HTTP 400 unsupported_target_mode."
              },
              "launchpads": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Launch platforms to watch, 1 to 16, no duplicates. robinhood long-xyz (Long.xyz) carries its own minimum slippage, see buy.long_xyz_delay_sec. bsc: four-meme, flap, open-four, cheesepad-melt-curve, genius, flap-pool-launch. robinhood: pons, pons-v2, doppler, clanker, letscash, long-xyz, flap, standard-reserve, torch. solana: pumpfun, pumpfun-mayhem, pumpfun-normal, pumpfun-cashback, pumpfun-amm, raydium-launchpad, raydium-cpmm, meteora-dbc. On Solana, Pump has normal/Mayhem/Cashback children (pumpfun-normal/pumpfun-mayhem/pumpfun-cashback). Select venues pumpfun/pumpfun-amm plus allowed modes; omit mode values to allow all modes. Both flags require both modes. Pre-change lists containing pumpfun-mayhem without pumpfun-normal or pumpfun-cashback now mean Mayhem only; existing tasks are migrated. Mode values without either Pump venue imply both Pump venues. arc: minara, argus, pools-instant, o1-exchange."
              },
              "token_addresses": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "default": [],
                "description": "Only with mode token, which is retired after the task format update (requests return HTTP 400 unsupported_target_mode). Must be empty in launchpad mode. At most 100. The zero address is rejected."
              },
              "creators": {
                "type": "object",
                "properties": {
                  "allowed": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": [],
                    "description": "Deployer addresses to accept. Non-empty means only launches by these deployers. EVM allowed creators with publicly known private keys (the 20 default Hardhat/Anvil accounts) are rejected on create and parameter edits. Remove them before editing an existing config. At most 2000. The zero address is rejected."
                  },
                  "blocked": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": [],
                    "description": "Deployer addresses to always reject, even if they are also in allowed. At most 2000. The zero address is rejected."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Restrict launches by deployer. blocked always wins over allowed."
              },
              "keywords": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "default": [],
                "description": "Case-insensitive substrings of the token name or symbol. Any match admits the launch. Empty means no keyword restriction. At most 100."
              },
              "blocked_keywords": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "default": [],
                "description": "Case-insensitive substrings of the token name or symbol. Any match skips the launch, and this always wins over keywords. Each entry 1 to 64 characters. Empty means no exclusion. At most 100. Replaced as a whole on PATCH."
              },
              "quote_classes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "native",
                    "stable",
                    "stock",
                    "prestock",
                    "other"
                  ]
                },
                "maxItems": 5,
                "description": "Solana quote-token classes: native (SOL), stable (USDC/USDT/USD1), stock (xStocks/Backpack), prestock (PreStocks), other. Matches the quote of the launch pool that directly trades the token. Empty or absent means no class filter. AND with quotes and launchpad modes. Stocks OR cashback needs two tasks. Compiles to token.quote_class in a root all."
              },
              "quotes": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "default": [],
                "description": "Allowed quote tokens of the launch pool. The zero address means the native coin. Empty means any quote. At most 512."
              },
              "dev_buy_max": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Only accept launches within the developer initial buy range. An omitted max means no upper bound."
                  },
                  "min": {
                    "type": "string",
                    "default": "0",
                    "description": "Minimum developer first buy, in the native token. Optional decimal string, defaults to zero. No developer buy counts as zero."
                  },
                  "max": {
                    "type": "string",
                    "description": "Maximum developer first buy, in the native token. Optional decimal string; omitted on create means no upper bound. PATCH omission preserves it; null removes the upper bound. Explicit zero is an inclusive upper bound."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Filter developer first buys by an inclusive native-token range. An omitted max means no upper bound; min and max both zero require no developer buy."
              },
              "skip_same_name_relaunch": {
                "type": "boolean",
                "default": false,
                "description": "Skip a token whose creator relaunched the same name within 120 seconds."
              },
              "require_plain_name": {
                "type": "boolean",
                "default": false,
                "description": "Skip launches with special characters in the name or symbol. After trimming whitespace, only letters of any script, ordinary combining accents, decimal digits, printable ASCII and space are allowed. Emoji (including keycaps), circled numbers, math-style letters (U+1D400–U+1D7FF, such as 𝐏𝐄𝐏𝐄), zero-width and control characters, and non-ASCII punctuation are rejected. A launch that provides neither a name nor a symbol is bought as usual."
              },
              "creator_sold": {
                "type": "boolean",
                "description": "Check once before sending. True requires a sale of any size by the creator address after the launch transaction. False requires confirmed absence of a sale. Unknown history rejects either setting. Bundled wallets are excluded. Omit for no restriction on create, or send null in PATCH to clear."
              },
              "market_cap": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply the market-cap window. When true, min_usd or max_usd is required."
                  },
                  "min_usd": {
                    "type": "string",
                    "description": "Minimum token market cap in USD. Decimal string, up to 2 decimal places; 0 means unbounded. On Solana and Robinhood KOTM, checked only before sending."
                  },
                  "max_usd": {
                    "type": "string",
                    "description": "Maximum token market cap in USD. Decimal string, up to 2 decimal places; 0 means unbounded. Checked at fill time: BSC and Robinhood allow up to approximately 30% above this bound; Solana enforces it as given."
                  }
                },
                "additionalProperties": false,
                "description": "Snipe only within this USD market-cap range. Market cap = total supply × price in USD. Omitted or {} disables the filter; enabled requires min_usd or max_usd. 0 means unbounded on that side."
              }
            },
            "required": [
              "launchpads",
              "market_cap"
            ],
            "additionalProperties": false,
            "description": "Which new tokens this config buys."
          },
          "buy": {
            "type": "object",
            "properties": {
              "amount": {
                "type": "string",
                "description": "Native-token amount spent on each snipe. Decimal string, up to 18 decimal places."
              },
              "delay_ms": {
                "type": "integer",
                "description": "Wait at least this many milliseconds from first observing the launch. Integer 0 to 60000. All launchpads also wait for their own release. Omit or use 0 for no added delay. Responses only include positive values. PATCH omission preserves the delay and null clears it."
              },
              "anti_sniper_block_offset": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "BSC only: anti-sniper fee tier for Four.meme and OpenFour launches that charge an anti-sniper fee. Integer 0 to 6; a higher tier buys later and pays a lower anti-sniper fee. Omitted or null uses the default tier 5. Requires target.launchpads to contain four-meme or open-four. Approximate anti-sniper share of the buy amount for tiers 0..6: 50%, 33%, 19%, 12%, 8%, 4%, 0%; OpenFour can be up to about 1 percentage point higher. Other fees are additional. PATCH omission preserves the setting; null resets it. Launches without an anti-sniper fee are unaffected."
              },
              "long_xyz_delay_sec": {
                "type": "integer",
                "description": "Robinhood only, and only while target.launchpads contains long-xyz: buy timing for Long.xyz launches, whole seconds 0 to 10. A shorter delay buys earlier but pays a higher launch tax, so slippage_pct must be at least 100 - 9.86 x seconds percent. The Web app offers 9 (sport, about 10% tax), 8 (boost, about 20%) and 7 (ultra, about 30%). Omitted means the normal timing (under 2% tax, treated as 10 seconds for the slippage floor). Send null in PATCH to return to the normal timing."
              }
            },
            "required": [
              "amount"
            ],
            "additionalProperties": false,
            "description": "How much to spend on each snipe."
          },
          "trigger": {
            "type": "object",
            "properties": {
              "max_hits_per_creator": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply limit. limit is required when this is true."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000,
                    "description": "Positive integer cap, at most 100000."
                  },
                  "window_sec": {
                    "type": "integer",
                    "minimum": 3600,
                    "maximum": 604800,
                    "description": "Rolling window in whole hours (3600–604800 seconds). Omit to count for the current run."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Skip a creator who reaches the cap. With window_sec, count recent filled snipes and all in-flight snipes; buys stay enabled and a creator becomes eligible as their snipes age out. Without window_sec, pause buys when every allowlisted creator reaches the cap (run_state: buy_paused, reason: creator_limit). Reopening starts a fresh count."
              },
              "max_consecutive_losses": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "Apply limit. limit is required when this is true."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000,
                    "description": "Positive integer cap, at most 100000."
                  }
                },
                "default": {},
                "additionalProperties": false,
                "description": "Pause buys (run_state: buy_paused, reason: loss_streak) after this many consecutive losing snipes; the task stays enabled and sells and exits continue. When both caps are enabled and max_hits_per_creator.window_sec is omitted, this limit must be less than max_hits_per_creator.limit. Resume starts a fresh count."
              }
            },
            "additionalProperties": false,
            "description": "Caps on sniper buys. Sells and exits continue during a buy pause. The creator cap can use a rolling window; the consecutive-loss cap applies to the current run. One config buys each token at most once per wallet."
          },
          "advanced": {
            "type": "object",
            "properties": {
              "trx_retry": {
                "type": "integer",
                "description": "Deprecated: execution does not read it. Accepted with default 3 and maximum 10; configs stored as strategy tasks (every config created since the TaskSpec migration) do not keep it and read back 3."
              }
            },
            "required": [
              "trx_retry"
            ],
            "additionalProperties": false,
            "description": "Retry settings for this snipe config."
          },
          "sell_fee_filter_enabled": {
            "type": "boolean",
            "description": "Enable the sell-back fee filter for copy and sniper buys on Solana, BSC and Robinhood. Absent or false disables it. At buy time, estimates known sell-back fees on the buy route (pool fee plus token sell tax); a known total above sell_fee_max_bps rejects the buy as sell_fee_too_high. Unknown parts pass. When true, sell_fee_max_bps must exist in the create body or stored config merged with PATCH; otherwise HTTP 400 validation_error. GET/list return stored values as-is, without effective defaults. Omitted create/PATCH fields are not written."
          },
          "sell_fee_max_bps": {
            "type": "number",
            "description": "Maximum estimated sell-back fees in integer bps, 0–9999 (100 bps = 1%). Required when sell_fee_filter_enabled is true; 0 is the strictest cap, not off. Known fees above the cap reject the buy; equal fees and unknown parts pass. Excludes price impact, priority fee, tip and platform fees; does not filter actual sell orders. GET/list preserve the stored value, including absence. Omitted create/PATCH fields are not written."
          },
          "min_sell_usd": {
            "type": "string",
            "description": "Minimum automatic sell value in USD, a decimal string from 0.01 to 100000 inclusive. A smaller sell is enlarged up to the available position. A remainder worth less than the higher of this minimum and the sell cost is included. Omit for remainder cleanup only, using $1 and the sell cost. EVM flash sells before the buy receipt may fall below the minimum."
          },
          "retain_bps": {
            "type": "number",
            "description": "Share of each new buy retained from automatic sells (including stop loss), in integer basis points (1–9999, 100 bps = 1%). Omit for no retention. Changing the share affects future buys. Manual sells can use the retained tokens. An EVM task flash sell sent before the buy receipt approximates the reserve."
          },
          "usdc_trading": {
            "type": "boolean",
            "description": "Solana only. true lets USDC pools use USDC first for buys and keeps sell proceeds in USDC; false uses SOL only. Existing USDC must be handled separately when disabled. New tasks default to false in the domain; omitted PATCH fields preserve the stored setting. GET/list return the stored value. Tasks created before the strategy-task migration cannot store it: writing it to such a task returns HTTP 400 validation_error. Writing on any other chain, including false, returns HTTP 400 unsupported_chain_feature."
          },
          "buy_slippage_sol": {
            "type": [
              "number",
              "null"
            ],
            "description": "Solana copy and sniper buys only. SOL amount, minimum 0.1, at most 9 decimal places. Replaces percentage buy slippage on both fee lanes; stored percentages are preserved. More than this amount of SOL bought ahead of us prevents the buy: for copy configs, counted from the pool after the leader fill; for sniper configs, from the pool right after the token creation transaction, including the dev first buy. No default: omission uses percentage mode. PATCH omission preserves the value; PATCH null clears it and restores percentage mode. Unsupported chains or unmigrated tasks return validation_error. Not available for sells or manual trades."
          },
          "buy_fee_tip_first": {
            "type": "boolean",
            "description": "Solana only. Lower failure cost in buy auto mode: if a buy lands on-chain but fails (for example, slippage exceeded), at most about 0.001 SOL of priority fee is charged and the tip is not. This sacrifices some speed. Applies to copy and sniper buys with fixed or proportional total fees. Absent or false disables it. Writing true requires the merged config to have buy_fee_auto true and gas.high_tip.enabled not true; otherwise HTTP 400 validation_error. Manual mode and sells ignore it. GET/list return the stored value; a Solana task in buy auto mode without high tip returns false when unset. Omitted PATCH fields are not written. Writing on any other chain, including false, returns HTTP 400 unsupported_chain_feature."
          },
          "buy_fee_tip_first_min": {
            "type": "boolean",
            "description": "Solana only. No longer affects execution; still accepted, stored and read back as before. Writing true still requires the merged config to have buy_fee_tip_first true; otherwise HTTP 400 validation_error with details for buy_fee_tip_first_min. GET/list return the stored value; Solana strategy tasks in buy auto mode with tip-first enabled return false when unset. Unrelated PATCH edits preserve an inactive min flag. Turning buy_fee_tip_first off also turns min off unless the PATCH explicitly supplies min. An explicit min field in the PATCH takes precedence and is validated as supplied. Null PATCH is rejected. Writing on any other chain, including false, returns HTTP 400 unsupported_chain_feature."
          },
          "buy_fee_auto": {
            "type": "boolean",
            "description": "Solana only. true = auto fee mode for buys: with gas.high_tip.enabled false the executor treats gas.priority_fee + gas.landing_fee as one budget and splits it per landing route, with no priority fee cap. Omitted or false uses manual fees as entered. Enabling high_tip also selects manual fees even when this flag is true. Read the tiers using the total budget. With ratio fees, use the total calculated for the buy amount. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings."
          },
          "sell_fee_auto": {
            "type": "boolean",
            "description": "Solana only. true = auto fee mode for sells: with gas.high_tip.enabled false the executor treats gas.priority_fee + gas.landing_fee as one budget and splits it per landing route, with no priority fee cap. Omitted or false uses manual fees as entered. Enabling high_tip also selects manual fees even when this flag is true. Read the tiers using the total budget. Stop-loss sells may be late when the budget is low. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings."
          },
          "buy_fee_filter_enabled": {
            "type": "boolean",
            "description": "Enable the task buy-fee filter. When absent from the task, defaults to enabled at 25% (2500 bps), or the stored limit if 0 < buy_fee_max_bps < 10000. Explicit false disables it; explicit true filters only with a valid limit. GET/list preserve the stored enabled flag (absent stays absent) and return the effective buy_fee_max_bps. An omitted enabled flag means filtering is on at the returned limit for known fees only; sending true opts into the user-set rule below. Omitted create/PATCH fields are not written. Applies to copy and snipe buys on all four Cell chains. The default caps known fees only; undetectable fees are not counted and pass in both Speed first and Price protection. With explicit true and a valid limit, copy buys in Price protection on EVM and Solana reject undetectable fees as buy_fee_unknown; on Solana a Meteora DLMM variable fee is judged at this buy's highest possible rate."
          },
          "buy_fee_max_bps": {
            "type": "number",
            "description": "Maximum buy fees and taxes in integer bps (100 bps = 1%). When buy_fee_filter_enabled is absent from the task, uses a stored limit if 0 < buy_fee_max_bps < 10000, otherwise 2500 bps (25%). With explicit true, only 1–9999 enables filtering; 0 or an absent limit disables it. GET/list return the effective limit and preserve the stored buy_fee_filter_enabled flag (absent stays absent). An omitted flag means filtering is on at the returned limit for known fees only; sending true opts into the user-set rule below. Excludes price impact, priority fee, tip and platform fees. Known fees above this limit are rejected. When buy_fee_filter_enabled is absent, the default caps known fees only; undetectable fees are not counted and pass on every chain in both Speed first and Price protection. Only an explicitly enabled filter with a valid limit rejects undetectable fees for copy buys in Price protection on EVM and Solana as buy_fee_unknown (on Solana a Meteora DLMM variable fee is judged at this buy's highest possible rate); Speed first and sniper buys allow them."
          },
          "buy_landing_fee_bps": {
            "type": "number",
            "description": "Solana auto mode only: buy total fee as nonnegative integer bps of the actual SOL principal (100 bps = 1%). Absent or 0 selects fixed total fees; no ratio cap. For copy and sniper buys, total = clamp(principal × bps / 10000, buy_landing_fee_min, buy_landing_fee_max), split into priority fee and tip per landing route like auto-mode total fees. The stored buy priority_fee and landing_fee are ignored; slippage still applies. Read only in auto fee mode (buy_fee_auto true, gas.high_tip.enabled false); manual mode ignores it, and setting a new positive value on a manual task returns 400. Sell and manual orders are unaffected. Callers are responsible for the chosen ratio; no confirmation step. Writing on EVM returns HTTP 400 unsupported_chain_feature, including 0."
          },
          "buy_landing_fee_min": {
            "type": "string",
            "description": "Solana auto-mode ratio fee minimum total in SOL, decimal string up to 9 places, at least \"0.0001\" (the cheapest landing route's minimum tip; \"0\" is rejected). When the effective buy_landing_fee_bps > 0 and no minimum was stored or sent, create/PATCH writes \"0.002\". Total = clamp(principal × bps / 10000, min, max), split per landing route like auto-mode total fees; stored buy priority_fee/landing_fee are ignored. A positive minimum must not exceed a positive maximum. Ratio fees apply only in auto fee mode (buy_fee_auto true, gas.high_tip.enabled false). Copy and sniper buys only; sells and manual orders unaffected. Writing on EVM returns HTTP 400 unsupported_chain_feature, including \"0\"."
          },
          "buy_landing_fee_max": {
            "type": "string",
            "description": "Solana auto-mode ratio fee maximum total in SOL, decimal string up to 9 places. Absent or \"0\" means no cap. Total = clamp(principal × buy_landing_fee_bps / 10000, buy_landing_fee_min, max), split per landing route like auto-mode total fees; stored buy priority_fee/landing_fee are ignored. A positive maximum must be at least a positive minimum. Ratio fees apply only in auto fee mode (buy_fee_auto true, gas.high_tip.enabled false). Copy and sniper buys only; sells and manual orders unaffected. Writing on EVM returns HTTP 400 unsupported_chain_feature, including \"0\". Omitted create/PATCH maximums are not written."
          },
          "buy_schedule": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "boolean",
                "description": "Apply the window. false keeps the times stored without restricting buys."
              },
              "timezone": {
                "type": "string",
                "description": "IANA time zone name the minutes are read in, for example Asia/Shanghai. The name is stored in its canonical form (asia/shanghai is stored as Asia/Shanghai, utc as UTC); offsets such as +08:00 and names longer than 64 characters are rejected."
              },
              "start_minute": {
                "type": "number",
                "description": "Window start, in whole minutes after local midnight, 0 to 1439. The start minute is inside the window."
              },
              "end_minute": {
                "type": "number",
                "description": "Window end, in whole minutes after local midnight, 0 to 1439. The end minute is outside the window. When it is smaller than start_minute the window crosses midnight (1260 to 120 is 21:00 to 02:00). It must differ from start_minute."
              }
            },
            "required": [
              "enabled",
              "timezone",
              "start_minute",
              "end_minute"
            ],
            "additionalProperties": false,
            "description": "Daily buy window. Outside the window no new positions are opened (no follow buys, no snipe buys); sells, take-profit and stop-loss keep running. Omit it, or send enabled false, for no restriction. PATCH replaces the whole object, so send all four fields; null is rejected. Supported on bsc, robinhood, arc and solana."
          },
          "sources": {
            "type": "object",
            "properties": {
              "default": {
                "type": "string",
                "enum": [
                  "config"
                ],
                "description": "Always config. This API has no global override layer, so every value comes from the config itself."
              }
            },
            "required": [
              "default"
            ],
            "additionalProperties": false,
            "description": "Present only when the request passed view=effective."
          }
        },
        "required": [
          "id",
          "status",
          "version",
          "run_state",
          "read_only",
          "engine",
          "created_via",
          "created_at",
          "updated_at",
          "deleted_at",
          "labels",
          "kind",
          "stop_reason",
          "chain",
          "wallet_id",
          "wallet_ids",
          "slippage_pct",
          "gas",
          "exit",
          "target",
          "buy",
          "trigger",
          "advanced"
        ]
      }
    },
    "parameters": {}
  },
  "paths": {
    "/v1/me": {
      "get": {
        "operationId": "getMe",
        "tags": [
          "Account"
        ],
        "summary": "Token identity and configuration quota of the caller",
        "description": "Identity of the calling token (prefix, scopes, expiry) plus the account-wide Copy Trading + Sniper configuration quota.\n\nRequires the any read scope (`copytrade:read`, `sniper:read`, `portfolio:read`, or `orders:read`).",
        "x-apm-scopes": [
          "copytrade:read",
          "sniper:read",
          "portfolio:read",
          "orders:read"
        ],
        "x-apm-nav-label": "Retrieve current token",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Me"
                        },
                        {
                          "description": "Response payload."
                        }
                      ]
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/wallets": {
      "get": {
        "operationId": "listWallets",
        "tags": [
          "Account"
        ],
        "summary": "Custodial wallets usable as wallet_id in configs",
        "description": "The caller's custodial wallets. EVM wallets are listed once per currently enabled EVM chain; Solana wallets have one solana row. A `wallet_id` is chain-scoped.\n\nRequires the any read scope (`copytrade:read`, `sniper:read`, `portfolio:read`, or `orders:read`).",
        "x-apm-scopes": [
          "copytrade:read",
          "sniper:read",
          "portfolio:read",
          "orders:read"
        ],
        "x-apm-nav-label": "List wallets",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WalletList"
                        },
                        {
                          "description": "Response payload."
                        }
                      ]
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/copy-trade/configs": {
      "get": {
        "operationId": "listCopyTradeConfigs",
        "tags": [
          "Copy Trade Configs"
        ],
        "summary": "List Copy Trading configs",
        "description": "Paginated list of the caller's Copy Trading configs. run_state.reason: Known buy-pause reasons: account, loss_streak, creator_limit, leader_token_limit, follow_count, buy_fail_streak, funding_low. Buys pause while sells and exits continue. For run-bound pauses, reopen to start a new run: follow, loss and creator counts reset; leader distinct-token counts persist, so raise the limit or disable that filter before reopening. Known stop reasons: low_balance, inactivity, loss_streak, creator_limit. Null means no recorded reason or user stop; unknown reasons are preserved.\n\nRequires the `copytrade:read` scope.",
        "x-apm-scopes": [
          "copytrade:read"
        ],
        "x-apm-nav-label": "List",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "active",
                "paused",
                "deleted"
              ],
              "description": "Filter by the requested status. Omit to list configs that are not soft-deleted. deleted returns only soft-deleted configs."
            },
            "required": false,
            "description": "Filter by the requested status. Omit to list configs that are not soft-deleted. deleted returns only soft-deleted configs.",
            "name": "status",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "bsc",
                "robinhood",
                "solana",
                "arc"
              ],
              "description": "Filter by chain: bsc, robinhood, solana or arc."
            },
            "required": false,
            "description": "Filter by chain: bsc, robinhood, solana or arc.",
            "name": "chain",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "syncing",
                "synced",
                "failed"
              ],
              "description": "Filter by engine.sync_state."
            },
            "required": false,
            "description": "Filter by engine.sync_state.",
            "name": "sync_state",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 24,
              "description": "Filter to configs carrying this caller-defined label."
            },
            "required": false,
            "description": "Filter to configs carrying this caller-defined label.",
            "name": "label",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "description": "Page size. Default 20, maximum 100."
            },
            "required": false,
            "description": "Page size. Default 20, maximum 100.",
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "Opaque keyset cursor from the previous response meta.next_cursor. Changing any filter invalidates it."
            },
            "required": false,
            "description": "Opaque keyset cursor from the previous response meta.next_cursor. Changing any filter invalidates it.",
            "name": "cursor",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "wallet",
                "fomo"
              ],
              "description": "Copy-trade list only. wallet: configs that copy addresses. fomo: configs that copy a FOMO handle."
            },
            "required": false,
            "description": "Copy-trade list only. wallet: configs that copy addresses. fomo: configs that copy a FOMO handle.",
            "name": "leader_source",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CopyTradeConfigResource"
                      },
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "next_cursor": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Opaque keyset cursor for the next page. Null on the last page."
                        }
                      },
                      "required": [
                        "request_id",
                        "next_cursor"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createCopyTradeConfig",
        "tags": [
          "Copy Trade Configs"
        ],
        "summary": "Create a Copy Trading config",
        "description": "Created paused (status=paused). Call the resume operation to start it. Set filters.prior_buyer_blacklist.sell_on_late_discovery to true to sell this buy if the task later confirms a listed wallet bought the token before the leader. This automatic exit is sent at maximum slippage and uses the task's sell settings for fees, tip and gas. Omit it on create and a buy that gets through is not sold by this rule. Omit it on update to keep the saved setting.\n\nRequires the `copytrade:write` scope.",
        "x-apm-scopes": [
          "copytrade:write"
        ],
        "x-apm-nav-label": "Create",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "Client-generated key. Replaying the same key with the same body returns the original 201 response."
            },
            "required": true,
            "name": "Idempotency-Key",
            "in": "header"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CopyTradeConfigInput"
              },
              "example": {
                "chain": "bsc",
                "wallet_id": "0x8f2a1c9bde34567890abcdef1234567890abcdef",
                "name": "Momentum wallets",
                "slippage_pct": "20",
                "price_strategy": "protected",
                "gas": {
                  "priority_fee": "0.000000005",
                  "anti_mev": true
                },
                "leaders": [
                  {
                    "source": "wallet",
                    "ref": "0x1234567890abcdef1234567890abcdef12345678"
                  }
                ],
                "buy": {
                  "mode": "ratio",
                  "ratio": "50"
                },
                "dedupe": {
                  "first_buy_only": false,
                  "block_if_held": true
                },
                "buy_filter": {
                  "amount": {
                    "enabled": true,
                    "min": "0.01",
                    "max": "5"
                  }
                },
                "follow_sell": {
                  "enabled": true,
                  "mode": "proportional"
                },
                "exit": {
                  "take_profit": [
                    {
                      "gain_pct": "100",
                      "sell_pct": "50",
                      "expires_in_sec": 259200
                    }
                  ],
                  "stop_loss": {
                    "enabled": true,
                    "loss_pct": "20",
                    "sell_pct": "100",
                    "expires_in_sec": 259200
                  },
                  "migration_sell": {
                    "enabled": true,
                    "sell_pct": "50"
                  }
                },
                "buy_schedule": {
                  "enabled": true,
                  "timezone": "Asia/Shanghai",
                  "start_minute": 1260,
                  "end_minute": 120
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CopyTradeConfigResource"
                        },
                        {
                          "description": "Response payload."
                        }
                      ]
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "persistence": {
                          "type": "string",
                          "enum": [
                            "committed"
                          ],
                          "description": "The write has been committed to storage."
                        }
                      },
                      "required": [
                        "request_id",
                        "persistence"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "high_fee"
                                ],
                                "description": "A native fee exceeds the warning threshold."
                              },
                              "path": {
                                "type": "string",
                                "description": "Field of this resource that sets the fee: a dot path such as `gas.high_tip.landing_fee` or `buy.tiers.0.gas`, or a TaskSpec JSON Pointer for Strategy Tasks. When `sell` is omitted the sell side inherits `gas`, so a buy and a sell warning can share one path."
                              },
                              "side": {
                                "type": "string",
                                "enum": [
                                  "buy",
                                  "sell"
                                ],
                                "description": "Trading side that pays the fee."
                              },
                              "item": {
                                "type": "string",
                                "enum": [
                                  "priority_fee",
                                  "landing_fee",
                                  "total",
                                  "ratio_min",
                                  "ratio_max"
                                ],
                                "description": "Fee component, automatic total, or ratio budget bound."
                              },
                              "amount": {
                                "type": "string",
                                "description": "Fee in native tokens, as a decimal string."
                              },
                              "threshold": {
                                "type": "string",
                                "description": "Warning threshold in the same unit."
                              },
                              "unit": {
                                "type": "string",
                                "enum": [
                                  "SOL",
                                  "BNB"
                                ],
                                "description": "Native token for both amount and threshold."
                              }
                            },
                            "required": [
                              "code",
                              "path",
                              "side",
                              "item",
                              "amount",
                              "threshold",
                              "unit"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "high_fee_ratio"
                                ],
                                "description": "The automatic buy fee ratio exceeds the warning threshold."
                              },
                              "path": {
                                "type": "string",
                                "description": "Field of this resource that sets the fee: a dot path such as `gas.high_tip.landing_fee` or `buy.tiers.0.gas`, or a TaskSpec JSON Pointer for Strategy Tasks. When `sell` is omitted the sell side inherits `gas`, so a buy and a sell warning can share one path."
                              },
                              "bps": {
                                "type": "number",
                                "description": "Buy fee ratio in basis points."
                              },
                              "threshold_bps": {
                                "type": "number",
                                "description": "Warning threshold in basis points."
                              }
                            },
                            "required": [
                              "code",
                              "path",
                              "bps",
                              "threshold_bps"
                            ]
                          }
                        ]
                      },
                      "description": "Advisory fees from the saved configuration. The write succeeded. No confirmation or retry is needed. Empty when no threshold is exceeded."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "configuration_quota_exceeded / idempotency_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/copy-trade/configs/{id}": {
      "get": {
        "operationId": "getCopyTradeConfig",
        "tags": [
          "Copy Trade Configs"
        ],
        "summary": "Get a Copy Trading config",
        "description": "Fetch a single Copy Trading config by id. Archived configs remain readable and allow labels-only PATCH; all configuration writes return 409 task_read_only. run_state.reason: Known buy-pause reasons: account, loss_streak, creator_limit, leader_token_limit, follow_count, buy_fail_streak, funding_low. Buys pause while sells and exits continue. For run-bound pauses, reopen to start a new run: follow, loss and creator counts reset; leader distinct-token counts persist, so raise the limit or disable that filter before reopening. Known stop reasons: low_balance, inactivity, loss_streak, creator_limit. Null means no recorded reason or user stop; unknown reasons are preserved.\n\nRequires the `copytrade:read` scope.",
        "x-apm-scopes": [
          "copytrade:read"
        ],
        "x-apm-nav-label": "Retrieve",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "description": "Config id returned by create or list."
            },
            "required": true,
            "description": "Config id returned by create or list.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "effective"
              ],
              "description": "Pass effective to add sources to the response. Omit for the resource alone. sources.default is always config."
            },
            "required": false,
            "description": "Pass effective to add sources to the response. Omit for the resource alone. sources.default is always config.",
            "name": "view",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CopyTradeConfigDetail"
                        },
                        {
                          "description": "Response payload."
                        }
                      ]
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateCopyTradeConfig",
        "tags": [
          "Copy Trade Configs"
        ],
        "summary": "Patch a Copy Trading config",
        "description": "Body is `application/merge-patch+json` (RFC 7396). Omitted keys are untouched, nested objects merge, arrays replace, `null` restores the default — except the fields this resource marks immutable, and the exit sub-objects that must be turned off with `{enabled:false}` instead of `null`. Set filters.prior_buyer_blacklist.sell_on_late_discovery to true to sell this buy if the task later confirms a listed wallet bought the token before the leader. This automatic exit is sent at maximum slippage and uses the task's sell settings for fees, tip and gas. Omit it on create and a buy that gets through is not sold by this rule. Omit it on update to keep the saved setting.\n\nRequires the `copytrade:write` scope.",
        "x-apm-scopes": [
          "copytrade:write"
        ],
        "x-apm-nav-label": "Update",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "description": "Config id returned by create or list."
            },
            "required": true,
            "description": "Config id returned by create or list.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "ETag of the version you last read. 428 when missing, 412 when it has moved on.",
              "example": "\"3\""
            },
            "required": true,
            "name": "If-Match",
            "in": "header"
          }
        ],
        "requestBody": {
          "content": {
            "application/merge-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/CopyTradeConfigPatch"
              },
              "example": {
                "slippage_pct": "15",
                "exit": {
                  "stop_loss": {
                    "enabled": true,
                    "loss_pct": "10"
                  },
                  "migration_sell": {
                    "sell_pct": "25"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CopyTradeConfigResource"
                        },
                        {
                          "description": "Response payload."
                        }
                      ]
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "persistence": {
                          "type": "string",
                          "enum": [
                            "committed"
                          ],
                          "description": "The write has been committed to storage."
                        }
                      },
                      "required": [
                        "request_id",
                        "persistence"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "high_fee"
                                ],
                                "description": "A native fee exceeds the warning threshold."
                              },
                              "path": {
                                "type": "string",
                                "description": "Field of this resource that sets the fee: a dot path such as `gas.high_tip.landing_fee` or `buy.tiers.0.gas`, or a TaskSpec JSON Pointer for Strategy Tasks. When `sell` is omitted the sell side inherits `gas`, so a buy and a sell warning can share one path."
                              },
                              "side": {
                                "type": "string",
                                "enum": [
                                  "buy",
                                  "sell"
                                ],
                                "description": "Trading side that pays the fee."
                              },
                              "item": {
                                "type": "string",
                                "enum": [
                                  "priority_fee",
                                  "landing_fee",
                                  "total",
                                  "ratio_min",
                                  "ratio_max"
                                ],
                                "description": "Fee component, automatic total, or ratio budget bound."
                              },
                              "amount": {
                                "type": "string",
                                "description": "Fee in native tokens, as a decimal string."
                              },
                              "threshold": {
                                "type": "string",
                                "description": "Warning threshold in the same unit."
                              },
                              "unit": {
                                "type": "string",
                                "enum": [
                                  "SOL",
                                  "BNB"
                                ],
                                "description": "Native token for both amount and threshold."
                              }
                            },
                            "required": [
                              "code",
                              "path",
                              "side",
                              "item",
                              "amount",
                              "threshold",
                              "unit"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "high_fee_ratio"
                                ],
                                "description": "The automatic buy fee ratio exceeds the warning threshold."
                              },
                              "path": {
                                "type": "string",
                                "description": "Field of this resource that sets the fee: a dot path such as `gas.high_tip.landing_fee` or `buy.tiers.0.gas`, or a TaskSpec JSON Pointer for Strategy Tasks. When `sell` is omitted the sell side inherits `gas`, so a buy and a sell warning can share one path."
                              },
                              "bps": {
                                "type": "number",
                                "description": "Buy fee ratio in basis points."
                              },
                              "threshold_bps": {
                                "type": "number",
                                "description": "Warning threshold in basis points."
                              }
                            },
                            "required": [
                              "code",
                              "path",
                              "bps",
                              "threshold_bps"
                            ]
                          }
                        ]
                      },
                      "description": "Advisory fees from the saved configuration. The write succeeded. No confirmation or retry is needed. Empty when no threshold is exceeded."
                    }
                  },
                  "required": [
                    "data",
                    "meta",
                    "warnings"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "task_read_only (archived or read_only config) / invalid_state (deleted) / not_paused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required (missing If-Match)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteCopyTradeConfig",
        "tags": [
          "Copy Trade Configs"
        ],
        "summary": "Delete a Copy Trading config",
        "description": "Soft delete: stops new activity, the config remains readable with status=deleted. Existing positions stay open unless close_position=true.\n\nRequires the `copytrade:delete` scope.",
        "x-apm-scopes": [
          "copytrade:delete"
        ],
        "x-apm-nav-label": "Delete",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "description": "Config id returned by create or list."
            },
            "required": true,
            "description": "Config id returned by create or list.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "default": "false",
              "description": "On pause and delete, true also closes positions this config opened. Default false, and the value is stored even when omitted. Deleting without closing keeps the config's open exit orders: they stay listed under /v1/orders, and a key with orders:cancel can cancel them. Resume rejects the query. On a batch, true is per item for batch-pause; any true item makes batch-resume reject the whole request."
            },
            "required": false,
            "description": "On pause and delete, true also closes positions this config opened. Default false, and the value is stored even when omitted. Deleting without closing keeps the config's open exit orders: they stay listed under /v1/orders, and a key with orders:cancel can cancel them. Resume rejects the query. On a batch, true is per item for batch-pause; any true item makes batch-resume reject the whole request.",
            "name": "close_position",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "ETag of the version you last read. 428 when missing, 412 when it has moved on.",
              "example": "\"3\""
            },
            "required": true,
            "name": "If-Match",
            "in": "header"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CopyTradeConfigResource"
                        },
                        {
                          "description": "Response payload."
                        }
                      ]
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "task_read_only (archived config) / invalid_state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required (missing If-Match)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/copy-trade/configs/{id}/pause": {
      "post": {
        "operationId": "pauseCopyTradeConfig",
        "tags": [
          "Copy Trade Configs"
        ],
        "summary": "Pause a Copy Trading config",
        "description": "Stops new activity (status=paused). Existing positions stay open unless close_position=true. Resume does not accept that query.\n\nRequires the `copytrade:write` scope.",
        "x-apm-scopes": [
          "copytrade:write"
        ],
        "x-apm-nav-label": "Pause",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "description": "Config id returned by create or list."
            },
            "required": true,
            "description": "Config id returned by create or list.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "default": "false",
              "description": "On pause and delete, true also closes positions this config opened. Default false, and the value is stored even when omitted. Deleting without closing keeps the config's open exit orders: they stay listed under /v1/orders, and a key with orders:cancel can cancel them. Resume rejects the query. On a batch, true is per item for batch-pause; any true item makes batch-resume reject the whole request."
            },
            "required": false,
            "description": "On pause and delete, true also closes positions this config opened. Default false, and the value is stored even when omitted. Deleting without closing keeps the config's open exit orders: they stay listed under /v1/orders, and a key with orders:cancel can cancel them. Resume rejects the query. On a batch, true is per item for batch-pause; any true item makes batch-resume reject the whole request.",
            "name": "close_position",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "ETag of the version you last read. 428 when missing, 412 when it has moved on.",
              "example": "\"3\""
            },
            "required": true,
            "name": "If-Match",
            "in": "header"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CopyTradeConfigResource"
                        },
                        {
                          "description": "Response payload."
                        }
                      ]
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "task_read_only (archived config) / invalid_state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required (missing If-Match)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/copy-trade/configs/{id}/resume": {
      "post": {
        "operationId": "resumeCopyTradeConfig",
        "tags": [
          "Copy Trade Configs"
        ],
        "summary": "Resume a Copy Trading config",
        "description": "Starts (or restarts) a paused config (status=active).\n\nRequires the `copytrade:write` scope.",
        "x-apm-scopes": [
          "copytrade:write"
        ],
        "x-apm-nav-label": "Resume",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "description": "Config id returned by create or list."
            },
            "required": true,
            "description": "Config id returned by create or list.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "ETag of the version you last read. 428 when missing, 412 when it has moved on.",
              "example": "\"3\""
            },
            "required": true,
            "name": "If-Match",
            "in": "header"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CopyTradeConfigResource"
                        },
                        {
                          "description": "Response payload."
                        }
                      ]
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "task_read_only (archived config) / invalid_state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required (missing If-Match)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/copy-trade/configs/batch-pause": {
      "post": {
        "operationId": "batchPauseCopyTradeConfigs",
        "tags": [
          "Copy Trade Configs"
        ],
        "summary": "Pause multiple Copy Trading configs",
        "description": "Per-item If-Match (in the request body, not a header). One failing item does not fail the batch — see the per-item status_code/code in the response. Archived configs return 409 task_read_only; deleted configs keep 409 invalid_state.\n\nRequires the `copytrade:write` scope.",
        "x-apm-scopes": [
          "copytrade:write"
        ],
        "x-apm-nav-label": "Batch pause",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "description": "Config id to pause or resume."
                        },
                        "if_match": {
                          "type": "string",
                          "minLength": 1,
                          "description": "Quoted ETag of the version you last read, for example \"3\". Checked per item, not as a request header."
                        },
                        "close_position": {
                          "type": "boolean",
                          "default": false,
                          "description": "batch-pause: also close positions this config opened. batch-resume: true on any item rejects the whole request. Default false."
                        }
                      },
                      "required": [
                        "id",
                        "if_match"
                      ],
                      "additionalProperties": false,
                      "description": "One config in a batch pause or resume."
                    },
                    "minItems": 1,
                    "maxItems": 100,
                    "description": "1 to 100 configs. One failing item does not fail the rest."
                  }
                },
                "required": [
                  "items"
                ],
                "additionalProperties": false,
                "description": "Batch pause or resume."
              },
              "example": {
                "items": [
                  {
                    "id": "cfg_8f2a1c9b",
                    "if_match": "\"3\""
                  },
                  {
                    "id": "cfg_2b7e441d",
                    "if_match": "\"1\""
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK (see per-item results)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "results": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Config id this result is for."
                              },
                              "status_code": {
                                "type": "number",
                                "description": "HTTP status for this item: 200 when it changed or was already in the requested state, or an error status."
                              },
                              "code": {
                                "type": "string",
                                "description": "Error code when this item failed. Absent on success."
                              },
                              "version": {
                                "type": "number",
                                "description": "New optimistic-concurrency version. Present on success."
                              },
                              "sync_state": {
                                "type": "string",
                                "enum": [
                                  "syncing",
                                  "synced",
                                  "failed"
                                ],
                                "description": "Engine sync state after the change. Present on success."
                              }
                            },
                            "required": [
                              "id",
                              "status_code"
                            ],
                            "additionalProperties": false,
                            "description": "Result for one config. A failure here does not fail the batch."
                          },
                          "description": "One entry per requested item, in request order."
                        }
                      },
                      "required": [
                        "results"
                      ],
                      "additionalProperties": false,
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/copy-trade/configs/batch-resume": {
      "post": {
        "operationId": "batchResumeCopyTradeConfigs",
        "tags": [
          "Copy Trade Configs"
        ],
        "summary": "Resume multiple Copy Trading configs",
        "description": "Per-item If-Match (in the request body, not a header). One failing item does not fail the batch — see the per-item status_code/code in the response. Archived configs return 409 task_read_only; deleted configs keep 409 invalid_state.\n\nRequires the `copytrade:write` scope.",
        "x-apm-scopes": [
          "copytrade:write"
        ],
        "x-apm-nav-label": "Batch resume",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "description": "Config id to pause or resume."
                        },
                        "if_match": {
                          "type": "string",
                          "minLength": 1,
                          "description": "Quoted ETag of the version you last read, for example \"3\". Checked per item, not as a request header."
                        },
                        "close_position": {
                          "type": "boolean",
                          "default": false,
                          "description": "batch-pause: also close positions this config opened. batch-resume: true on any item rejects the whole request. Default false."
                        }
                      },
                      "required": [
                        "id",
                        "if_match"
                      ],
                      "additionalProperties": false,
                      "description": "One config in a batch pause or resume."
                    },
                    "minItems": 1,
                    "maxItems": 100,
                    "description": "1 to 100 configs. One failing item does not fail the rest."
                  }
                },
                "required": [
                  "items"
                ],
                "additionalProperties": false,
                "description": "Batch pause or resume."
              },
              "example": {
                "items": [
                  {
                    "id": "cfg_8f2a1c9b",
                    "if_match": "\"3\""
                  },
                  {
                    "id": "cfg_2b7e441d",
                    "if_match": "\"1\""
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK (see per-item results)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "results": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Config id this result is for."
                              },
                              "status_code": {
                                "type": "number",
                                "description": "HTTP status for this item: 200 when it changed or was already in the requested state, or an error status."
                              },
                              "code": {
                                "type": "string",
                                "description": "Error code when this item failed. Absent on success."
                              },
                              "version": {
                                "type": "number",
                                "description": "New optimistic-concurrency version. Present on success."
                              },
                              "sync_state": {
                                "type": "string",
                                "enum": [
                                  "syncing",
                                  "synced",
                                  "failed"
                                ],
                                "description": "Engine sync state after the change. Present on success."
                              }
                            },
                            "required": [
                              "id",
                              "status_code"
                            ],
                            "additionalProperties": false,
                            "description": "Result for one config. A failure here does not fail the batch."
                          },
                          "description": "One entry per requested item, in request order."
                        }
                      },
                      "required": [
                        "results"
                      ],
                      "additionalProperties": false,
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/copy-trade/configs/{id}/orders": {
      "get": {
        "operationId": "listCopyTradeConfigOrders",
        "tags": [
          "Copy Trade Configs"
        ],
        "summary": "List orders placed by a Copy Trading config",
        "description": "Orders for one Copy Trading config, oldest-updated first (a status change re-surfaces an order). No status is excluded by default — pass `status` to filter.\n\nRequires the `copytrade:read` scope.",
        "x-apm-scopes": [
          "copytrade:read"
        ],
        "x-apm-nav-label": "List orders",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "description": "Config id returned by create or list."
            },
            "required": true,
            "description": "Config id returned by create or list.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "pending",
                "broadcast",
                "confirmed",
                "failed",
                "expired"
              ],
              "description": "Opt-in filter — omit to get every status."
            },
            "required": false,
            "description": "Opt-in filter — omit to get every status.",
            "name": "status",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "buy",
                "sell"
              ],
              "description": "buy or sell. Omit for both."
            },
            "required": false,
            "description": "buy or sell. Omit for both.",
            "name": "side",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "description": "RFC 3339 UTC, inclusive. Must not be after until."
            },
            "required": false,
            "description": "RFC 3339 UTC, inclusive. Must not be after until.",
            "name": "since",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "description": "RFC 3339 UTC, inclusive. Must not be before since."
            },
            "required": false,
            "description": "RFC 3339 UTC, inclusive. Must not be before since.",
            "name": "until",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "description": "Page size. Default 20, maximum 100."
            },
            "required": false,
            "description": "Page size. Default 20, maximum 100.",
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "description": "Opaque keyset cursor from a previous response's meta.next_cursor."
            },
            "required": false,
            "description": "Opaque keyset cursor from a previous response's meta.next_cursor.",
            "name": "cursor",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "order_id": {
                            "type": "string",
                            "description": "Order id."
                          },
                          "config_id": {
                            "type": "string",
                            "description": "Config that placed this order."
                          },
                          "config_version": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "Config version that placed the order. Null — the current engines do not record it."
                          },
                          "chain": {
                            "type": "string",
                            "description": "Chain the order ran on."
                          },
                          "wallet_id": {
                            "type": "string",
                            "description": "Custodial wallet that sent the order."
                          },
                          "side": {
                            "type": "string",
                            "description": "buy or sell."
                          },
                          "trigger": {
                            "type": "string",
                            "description": "Why the order was placed: copy_buy, copy_sell, snipe, take_profit, stop_loss, migration.sell, or another engine order type passed through as-is."
                          },
                          "token_address": {
                            "type": "string",
                            "description": "Token the order traded."
                          },
                          "token_symbol": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Token symbol. Null — the current engines do not fill it on this endpoint."
                          },
                          "amount_in": {
                            "type": "string",
                            "description": "Amount spent, as a decimal string. The settlement currency on a buy, the token itself on a sell."
                          },
                          "amount_in_unit": {
                            "type": "string",
                            "description": "Unit of amount_in: on a buy, the settlement currency symbol (the chain native symbol, or a quote token such as USDC; its address when the symbol is unknown); TOKEN on a sell."
                          },
                          "amount_out": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Amount received, as a decimal string. Null until the fill is known."
                          },
                          "amount_out_unit": {
                            "type": "string",
                            "description": "Unit of amount_out: TOKEN on a buy; on a sell, the settlement currency symbol, as in amount_in_unit."
                          },
                          "platform_fee": {
                            "type": "string",
                            "description": "Platform fee for this order, as a decimal string in fee_unit."
                          },
                          "network_fee": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Network fee. Null — the current engines do not record it."
                          },
                          "fee_unit": {
                            "type": "string",
                            "description": "Unit of platform_fee and network_fee. The chain native symbol."
                          },
                          "tx_hash": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Chain transaction hash once the order was broadcast. Null before that."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "broadcast",
                              "confirmed",
                              "failed",
                              "expired"
                            ],
                            "description": "Public status folded from the engine status: pending, broadcast, confirmed, failed, or expired. failed also includes pre-trade skips; inspect failure_stage and reason_code before computing execution statistics."
                          },
                          "error_code": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Coarse failure marker kept for existing callers. execution_failed when the engine stored an error message, otherwise null. reason_code is the specific one."
                          },
                          "failure_stage": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "pre_trade",
                              "execution"
                            ],
                            "description": "Status-derived stage: reject maps to pre_trade; failed/error map to execution. This is not proof of broadcast or confirmation. A market-cap guard may fail during execution; inspect reason_code and tx_hash separately. A timeout has null stage. Its outcome is unknown unless reason_code is anti_mev_not_landed, which confirms the order did not fill."
                          },
                          "reason_code": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Specific reason, such as sell_amount_zero (no sellable task position; excluded from copy-sell success-rate attempts), fomo_route_unsupported, buy_fee_too_high, buy_fee_unknown, first_buy_blocked, first_buy_history_unavailable (a Price-protection first-buy-only copy skipped because the target's recent on-chain buys could not be confirmed yet), already_bought, buy_amount_below_min, token_blacklisted, quick_sell_banned, market_cap_too_small, buy_dynamic_cap_reached, buy_tier_no_match, buy_tier_market_cap_unknown, prior_buyers_unavailable (Price protection skipped this buy because listed wallet history was incomplete), or strategy_leaf_rejected (including a prior-buyer blacklist match). For a sniper buy, creator_sold means the creator sold and the filter required no sale. creator_not_sold means the filter required a sale and none occurred. creator_sale_unknown means the sale history could not be confirmed. delayed_snipe_expired means the executor canceled an unsigned delayed snipe more than 60 seconds after its scheduled buy time to avoid buying long after launch. contract_not_recipient means the followed address is a contract and the bought tokens were transferred to another wallet, not to that contract; follow the wallet that received them. On Solana, anti_mev_not_landed means the Anti-MEV order did not fill: slippage may have been exceeded, or the auction was lost. The public status is expired for task timeouts and failed for pending buys or sells that end with this reason. Uses the same normalizer as account history, including failed/timeout records and legacy market-cap text. Unknown raw chain text is null; producer codes and stable snake-case codes are preserved as opaque values. A reason alone does not prove a harmless skip."
                          },
                          "buy_tier": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "minimum": 0,
                            "description": "Zero-based index of the selected buy tier, when recorded."
                          },
                          "buy_tier_market_cap_usd": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^-?\\d+(\\.\\d+)?$",
                            "description": "Market cap used to select the buy tier, as a USD decimal string, when recorded."
                          },
                          "trailing_fire": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "description": "One-based trigger number across all tiers of this buy’s repeating trailing ladder, when recorded."
                          },
                          "price_strategy": {
                            "type": "string",
                            "description": "Price strategy used for this order, when the engine recorded one. Absent otherwise."
                          },
                          "price_reference_source": {
                            "type": "string",
                            "description": "Where the price reference came from, when recorded. Absent otherwise."
                          },
                          "price_min_amount_out": {
                            "type": "string",
                            "description": "Minimum amount the order was willing to receive, in the smallest units of the output token. This is the limit, not the fill. Absent when not recorded."
                          },
                          "flash_sell_status": {
                            "type": "string",
                            "description": "Timed-sell bookkeeping for this order, when the engine recorded it. Absent otherwise."
                          },
                          "flash_sell_error": {
                            "type": "string",
                            "description": "Why timed-sell bookkeeping failed, when the engine recorded an error. Absent otherwise."
                          },
                          "leader_tx_hash": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Leader transaction this order was copying. Null for exits that were not a direct copy of one leader transaction, and before it is known."
                          },
                          "created_via": {
                            "type": "string",
                            "description": "web or api, matching the config that placed the order."
                          },
                          "created_at": {
                            "type": "string",
                            "description": "When the order was created, RFC 3339 UTC."
                          },
                          "updated_at": {
                            "type": "string",
                            "description": "When the order last changed, RFC 3339 UTC. Listing is oldest-updated first, so a status change moves the order later in the stream."
                          }
                        },
                        "required": [
                          "order_id",
                          "config_id",
                          "config_version",
                          "chain",
                          "wallet_id",
                          "side",
                          "trigger",
                          "token_address",
                          "token_symbol",
                          "amount_in",
                          "amount_in_unit",
                          "amount_out",
                          "amount_out_unit",
                          "platform_fee",
                          "network_fee",
                          "fee_unit",
                          "tx_hash",
                          "status",
                          "error_code",
                          "failure_stage",
                          "reason_code",
                          "leader_tx_hash",
                          "created_via",
                          "created_at",
                          "updated_at"
                        ]
                      },
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "next_cursor": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Opaque keyset cursor for the next page. Null on the last page."
                        }
                      },
                      "required": [
                        "request_id",
                        "next_cursor"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sniper/configs": {
      "get": {
        "operationId": "listSniperConfigs",
        "tags": [
          "Sniper Configs"
        ],
        "summary": "List Sniper configs",
        "description": "Paginated list of the caller's Sniper configs. run_state.reason: Known buy-pause reasons: account, loss_streak, creator_limit, leader_token_limit, follow_count, buy_fail_streak, funding_low. Buys pause while sells and exits continue. For run-bound pauses, reopen to start a new run: follow, loss and creator counts reset; leader distinct-token counts persist, so raise the limit or disable that filter before reopening. Known stop reasons: low_balance, inactivity, loss_streak, creator_limit. Null means no recorded reason or user stop; unknown reasons are preserved.\n\nRequires the `sniper:read` scope.",
        "x-apm-scopes": [
          "sniper:read"
        ],
        "x-apm-nav-label": "List",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "active",
                "paused",
                "deleted"
              ],
              "description": "Filter by the requested status. Omit to list configs that are not soft-deleted. deleted returns only soft-deleted configs."
            },
            "required": false,
            "description": "Filter by the requested status. Omit to list configs that are not soft-deleted. deleted returns only soft-deleted configs.",
            "name": "status",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "bsc",
                "robinhood",
                "solana",
                "arc"
              ],
              "description": "Filter by chain: bsc, robinhood, solana or arc."
            },
            "required": false,
            "description": "Filter by chain: bsc, robinhood, solana or arc.",
            "name": "chain",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "syncing",
                "synced",
                "failed"
              ],
              "description": "Filter by engine.sync_state."
            },
            "required": false,
            "description": "Filter by engine.sync_state.",
            "name": "sync_state",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 24,
              "description": "Filter to configs carrying this caller-defined label."
            },
            "required": false,
            "description": "Filter to configs carrying this caller-defined label.",
            "name": "label",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "description": "Page size. Default 20, maximum 100."
            },
            "required": false,
            "description": "Page size. Default 20, maximum 100.",
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "Opaque keyset cursor from the previous response meta.next_cursor. Changing any filter invalidates it."
            },
            "required": false,
            "description": "Opaque keyset cursor from the previous response meta.next_cursor. Changing any filter invalidates it.",
            "name": "cursor",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SniperConfigResource"
                      },
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "next_cursor": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Opaque keyset cursor for the next page. Null on the last page."
                        }
                      },
                      "required": [
                        "request_id",
                        "next_cursor"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createSniperConfig",
        "tags": [
          "Sniper Configs"
        ],
        "summary": "Create a Sniper config",
        "description": "Created paused (status=paused). Call the resume operation to start it.\n\nRequires the `sniper:write` scope.",
        "x-apm-scopes": [
          "sniper:write"
        ],
        "x-apm-nav-label": "Create",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "Client-generated key. Replaying the same key with the same body returns the original 201 response."
            },
            "required": true,
            "name": "Idempotency-Key",
            "in": "header"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SniperConfigInput"
              },
              "example": {
                "chain": "bsc",
                "wallet_id": "0x8f2a1c9bde34567890abcdef1234567890abcdef",
                "name": "four.meme new listings",
                "slippage_pct": "25",
                "gas": {
                  "priority_fee": "0.000000008",
                  "anti_mev": true
                },
                "target": {
                  "mode": "launchpad",
                  "launchpads": [
                    "four-meme"
                  ],
                  "market_cap": {
                    "enabled": true,
                    "min_usd": "10000",
                    "max_usd": "100000"
                  },
                  "skip_same_name_relaunch": true,
                  "require_plain_name": true
                },
                "buy": {
                  "amount": "0.05"
                },
                "trigger": {
                  "max_hits_per_creator": {
                    "enabled": true,
                    "limit": 3,
                    "window_sec": 86400
                  }
                },
                "exit": {
                  "take_profit": [
                    {
                      "gain_pct": "200",
                      "sell_pct": "75",
                      "expires_in_sec": 86400
                    }
                  ],
                  "stop_loss": {
                    "enabled": true,
                    "loss_pct": "30",
                    "sell_pct": "100",
                    "expires_in_sec": 86400
                  },
                  "migration_sell": {
                    "enabled": true,
                    "sell_pct": "100"
                  }
                },
                "advanced": {
                  "trx_retry": 2
                },
                "buy_schedule": {
                  "enabled": true,
                  "timezone": "Asia/Shanghai",
                  "start_minute": 1260,
                  "end_minute": 120
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SniperConfigResource"
                        },
                        {
                          "description": "Response payload."
                        }
                      ]
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "persistence": {
                          "type": "string",
                          "enum": [
                            "committed"
                          ],
                          "description": "The write has been committed to storage."
                        }
                      },
                      "required": [
                        "request_id",
                        "persistence"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "high_fee"
                                ],
                                "description": "A native fee exceeds the warning threshold."
                              },
                              "path": {
                                "type": "string",
                                "description": "Field of this resource that sets the fee: a dot path such as `gas.high_tip.landing_fee` or `buy.tiers.0.gas`, or a TaskSpec JSON Pointer for Strategy Tasks. When `sell` is omitted the sell side inherits `gas`, so a buy and a sell warning can share one path."
                              },
                              "side": {
                                "type": "string",
                                "enum": [
                                  "buy",
                                  "sell"
                                ],
                                "description": "Trading side that pays the fee."
                              },
                              "item": {
                                "type": "string",
                                "enum": [
                                  "priority_fee",
                                  "landing_fee",
                                  "total",
                                  "ratio_min",
                                  "ratio_max"
                                ],
                                "description": "Fee component, automatic total, or ratio budget bound."
                              },
                              "amount": {
                                "type": "string",
                                "description": "Fee in native tokens, as a decimal string."
                              },
                              "threshold": {
                                "type": "string",
                                "description": "Warning threshold in the same unit."
                              },
                              "unit": {
                                "type": "string",
                                "enum": [
                                  "SOL",
                                  "BNB"
                                ],
                                "description": "Native token for both amount and threshold."
                              }
                            },
                            "required": [
                              "code",
                              "path",
                              "side",
                              "item",
                              "amount",
                              "threshold",
                              "unit"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "high_fee_ratio"
                                ],
                                "description": "The automatic buy fee ratio exceeds the warning threshold."
                              },
                              "path": {
                                "type": "string",
                                "description": "Field of this resource that sets the fee: a dot path such as `gas.high_tip.landing_fee` or `buy.tiers.0.gas`, or a TaskSpec JSON Pointer for Strategy Tasks. When `sell` is omitted the sell side inherits `gas`, so a buy and a sell warning can share one path."
                              },
                              "bps": {
                                "type": "number",
                                "description": "Buy fee ratio in basis points."
                              },
                              "threshold_bps": {
                                "type": "number",
                                "description": "Warning threshold in basis points."
                              }
                            },
                            "required": [
                              "code",
                              "path",
                              "bps",
                              "threshold_bps"
                            ]
                          }
                        ]
                      },
                      "description": "Advisory fees from the saved configuration. The write succeeded. No confirmation or retry is needed. Empty when no threshold is exceeded."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "configuration_quota_exceeded / idempotency_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sniper/configs/{id}": {
      "get": {
        "operationId": "getSniperConfig",
        "tags": [
          "Sniper Configs"
        ],
        "summary": "Get a Sniper config",
        "description": "Fetch a single Sniper config by id. Archived configs remain readable and allow labels-only PATCH; all configuration writes return 409 task_read_only. run_state.reason: Known buy-pause reasons: account, loss_streak, creator_limit, leader_token_limit, follow_count, buy_fail_streak, funding_low. Buys pause while sells and exits continue. For run-bound pauses, reopen to start a new run: follow, loss and creator counts reset; leader distinct-token counts persist, so raise the limit or disable that filter before reopening. Known stop reasons: low_balance, inactivity, loss_streak, creator_limit. Null means no recorded reason or user stop; unknown reasons are preserved.\n\nRequires the `sniper:read` scope.",
        "x-apm-scopes": [
          "sniper:read"
        ],
        "x-apm-nav-label": "Retrieve",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "description": "Config id returned by create or list."
            },
            "required": true,
            "description": "Config id returned by create or list.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "effective"
              ],
              "description": "Pass effective to add sources to the response. Omit for the resource alone. sources.default is always config."
            },
            "required": false,
            "description": "Pass effective to add sources to the response. Omit for the resource alone. sources.default is always config.",
            "name": "view",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SniperConfigDetail"
                        },
                        {
                          "description": "Response payload."
                        }
                      ]
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateSniperConfig",
        "tags": [
          "Sniper Configs"
        ],
        "summary": "Patch a Sniper config",
        "description": "Body is `application/merge-patch+json` (RFC 7396). Omitted keys are untouched, nested objects merge, arrays replace, `null` restores the default — except the fields this resource marks immutable, and the exit sub-objects that must be turned off with `{enabled:false}` instead of `null`.\n\nRequires the `sniper:write` scope.",
        "x-apm-scopes": [
          "sniper:write"
        ],
        "x-apm-nav-label": "Update",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "description": "Config id returned by create or list."
            },
            "required": true,
            "description": "Config id returned by create or list.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "ETag of the version you last read. 428 when missing, 412 when it has moved on.",
              "example": "\"3\""
            },
            "required": true,
            "name": "If-Match",
            "in": "header"
          }
        ],
        "requestBody": {
          "content": {
            "application/merge-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/SniperConfigPatch"
              },
              "example": {
                "target": {
                  "market_cap": {
                    "enabled": true,
                    "max_usd": "150000"
                  }
                },
                "slippage_pct": "30",
                "trigger": {
                  "max_hits_per_creator": {
                    "window_sec": 43200
                  },
                  "max_consecutive_losses": {
                    "enabled": true,
                    "limit": 2
                  }
                },
                "exit": {
                  "migration_sell": {
                    "sell_pct": "50"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SniperConfigResource"
                        },
                        {
                          "description": "Response payload."
                        }
                      ]
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "persistence": {
                          "type": "string",
                          "enum": [
                            "committed"
                          ],
                          "description": "The write has been committed to storage."
                        }
                      },
                      "required": [
                        "request_id",
                        "persistence"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "high_fee"
                                ],
                                "description": "A native fee exceeds the warning threshold."
                              },
                              "path": {
                                "type": "string",
                                "description": "Field of this resource that sets the fee: a dot path such as `gas.high_tip.landing_fee` or `buy.tiers.0.gas`, or a TaskSpec JSON Pointer for Strategy Tasks. When `sell` is omitted the sell side inherits `gas`, so a buy and a sell warning can share one path."
                              },
                              "side": {
                                "type": "string",
                                "enum": [
                                  "buy",
                                  "sell"
                                ],
                                "description": "Trading side that pays the fee."
                              },
                              "item": {
                                "type": "string",
                                "enum": [
                                  "priority_fee",
                                  "landing_fee",
                                  "total",
                                  "ratio_min",
                                  "ratio_max"
                                ],
                                "description": "Fee component, automatic total, or ratio budget bound."
                              },
                              "amount": {
                                "type": "string",
                                "description": "Fee in native tokens, as a decimal string."
                              },
                              "threshold": {
                                "type": "string",
                                "description": "Warning threshold in the same unit."
                              },
                              "unit": {
                                "type": "string",
                                "enum": [
                                  "SOL",
                                  "BNB"
                                ],
                                "description": "Native token for both amount and threshold."
                              }
                            },
                            "required": [
                              "code",
                              "path",
                              "side",
                              "item",
                              "amount",
                              "threshold",
                              "unit"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "high_fee_ratio"
                                ],
                                "description": "The automatic buy fee ratio exceeds the warning threshold."
                              },
                              "path": {
                                "type": "string",
                                "description": "Field of this resource that sets the fee: a dot path such as `gas.high_tip.landing_fee` or `buy.tiers.0.gas`, or a TaskSpec JSON Pointer for Strategy Tasks. When `sell` is omitted the sell side inherits `gas`, so a buy and a sell warning can share one path."
                              },
                              "bps": {
                                "type": "number",
                                "description": "Buy fee ratio in basis points."
                              },
                              "threshold_bps": {
                                "type": "number",
                                "description": "Warning threshold in basis points."
                              }
                            },
                            "required": [
                              "code",
                              "path",
                              "bps",
                              "threshold_bps"
                            ]
                          }
                        ]
                      },
                      "description": "Advisory fees from the saved configuration. The write succeeded. No confirmation or retry is needed. Empty when no threshold is exceeded."
                    }
                  },
                  "required": [
                    "data",
                    "meta",
                    "warnings"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "task_read_only (archived or read_only config) / invalid_state (deleted) / not_paused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required (missing If-Match)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteSniperConfig",
        "tags": [
          "Sniper Configs"
        ],
        "summary": "Delete a Sniper config",
        "description": "Soft delete: stops new activity, the config remains readable with status=deleted. Existing positions stay open unless close_position=true.\n\nRequires the `sniper:delete` scope.",
        "x-apm-scopes": [
          "sniper:delete"
        ],
        "x-apm-nav-label": "Delete",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "description": "Config id returned by create or list."
            },
            "required": true,
            "description": "Config id returned by create or list.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "default": "false",
              "description": "On pause and delete, true also closes positions this config opened. Default false, and the value is stored even when omitted. Deleting without closing keeps the config's open exit orders: they stay listed under /v1/orders, and a key with orders:cancel can cancel them. Resume rejects the query. On a batch, true is per item for batch-pause; any true item makes batch-resume reject the whole request."
            },
            "required": false,
            "description": "On pause and delete, true also closes positions this config opened. Default false, and the value is stored even when omitted. Deleting without closing keeps the config's open exit orders: they stay listed under /v1/orders, and a key with orders:cancel can cancel them. Resume rejects the query. On a batch, true is per item for batch-pause; any true item makes batch-resume reject the whole request.",
            "name": "close_position",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "ETag of the version you last read. 428 when missing, 412 when it has moved on.",
              "example": "\"3\""
            },
            "required": true,
            "name": "If-Match",
            "in": "header"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SniperConfigResource"
                        },
                        {
                          "description": "Response payload."
                        }
                      ]
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "task_read_only (archived config) / invalid_state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required (missing If-Match)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sniper/configs/{id}/pause": {
      "post": {
        "operationId": "pauseSniperConfig",
        "tags": [
          "Sniper Configs"
        ],
        "summary": "Pause a Sniper config",
        "description": "Stops new activity (status=paused). Existing positions stay open unless close_position=true. Resume does not accept that query.\n\nRequires the `sniper:write` scope.",
        "x-apm-scopes": [
          "sniper:write"
        ],
        "x-apm-nav-label": "Pause",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "description": "Config id returned by create or list."
            },
            "required": true,
            "description": "Config id returned by create or list.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "default": "false",
              "description": "On pause and delete, true also closes positions this config opened. Default false, and the value is stored even when omitted. Deleting without closing keeps the config's open exit orders: they stay listed under /v1/orders, and a key with orders:cancel can cancel them. Resume rejects the query. On a batch, true is per item for batch-pause; any true item makes batch-resume reject the whole request."
            },
            "required": false,
            "description": "On pause and delete, true also closes positions this config opened. Default false, and the value is stored even when omitted. Deleting without closing keeps the config's open exit orders: they stay listed under /v1/orders, and a key with orders:cancel can cancel them. Resume rejects the query. On a batch, true is per item for batch-pause; any true item makes batch-resume reject the whole request.",
            "name": "close_position",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "ETag of the version you last read. 428 when missing, 412 when it has moved on.",
              "example": "\"3\""
            },
            "required": true,
            "name": "If-Match",
            "in": "header"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SniperConfigResource"
                        },
                        {
                          "description": "Response payload."
                        }
                      ]
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "task_read_only (archived config) / invalid_state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required (missing If-Match)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sniper/configs/{id}/resume": {
      "post": {
        "operationId": "resumeSniperConfig",
        "tags": [
          "Sniper Configs"
        ],
        "summary": "Resume a Sniper config",
        "description": "Starts (or restarts) a paused config (status=active).\n\nRequires the `sniper:write` scope.",
        "x-apm-scopes": [
          "sniper:write"
        ],
        "x-apm-nav-label": "Resume",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "description": "Config id returned by create or list."
            },
            "required": true,
            "description": "Config id returned by create or list.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "ETag of the version you last read. 428 when missing, 412 when it has moved on.",
              "example": "\"3\""
            },
            "required": true,
            "name": "If-Match",
            "in": "header"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SniperConfigResource"
                        },
                        {
                          "description": "Response payload."
                        }
                      ]
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "task_read_only (archived config) / invalid_state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required (missing If-Match)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sniper/configs/batch-pause": {
      "post": {
        "operationId": "batchPauseSniperConfigs",
        "tags": [
          "Sniper Configs"
        ],
        "summary": "Pause multiple Sniper configs",
        "description": "Per-item If-Match (in the request body, not a header). One failing item does not fail the batch — see the per-item status_code/code in the response. Archived configs return 409 task_read_only; deleted configs keep 409 invalid_state.\n\nRequires the `sniper:write` scope.",
        "x-apm-scopes": [
          "sniper:write"
        ],
        "x-apm-nav-label": "Batch pause",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "description": "Config id to pause or resume."
                        },
                        "if_match": {
                          "type": "string",
                          "minLength": 1,
                          "description": "Quoted ETag of the version you last read, for example \"3\". Checked per item, not as a request header."
                        },
                        "close_position": {
                          "type": "boolean",
                          "default": false,
                          "description": "batch-pause: also close positions this config opened. batch-resume: true on any item rejects the whole request. Default false."
                        }
                      },
                      "required": [
                        "id",
                        "if_match"
                      ],
                      "additionalProperties": false,
                      "description": "One config in a batch pause or resume."
                    },
                    "minItems": 1,
                    "maxItems": 100,
                    "description": "1 to 100 configs. One failing item does not fail the rest."
                  }
                },
                "required": [
                  "items"
                ],
                "additionalProperties": false,
                "description": "Batch pause or resume."
              },
              "example": {
                "items": [
                  {
                    "id": "snp_9c31af02",
                    "if_match": "\"5\""
                  },
                  {
                    "id": "snp_4d81be77",
                    "if_match": "\"2\""
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK (see per-item results)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "results": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Config id this result is for."
                              },
                              "status_code": {
                                "type": "number",
                                "description": "HTTP status for this item: 200 when it changed or was already in the requested state, or an error status."
                              },
                              "code": {
                                "type": "string",
                                "description": "Error code when this item failed. Absent on success."
                              },
                              "version": {
                                "type": "number",
                                "description": "New optimistic-concurrency version. Present on success."
                              },
                              "sync_state": {
                                "type": "string",
                                "enum": [
                                  "syncing",
                                  "synced",
                                  "failed"
                                ],
                                "description": "Engine sync state after the change. Present on success."
                              }
                            },
                            "required": [
                              "id",
                              "status_code"
                            ],
                            "additionalProperties": false,
                            "description": "Result for one config. A failure here does not fail the batch."
                          },
                          "description": "One entry per requested item, in request order."
                        }
                      },
                      "required": [
                        "results"
                      ],
                      "additionalProperties": false,
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sniper/configs/batch-resume": {
      "post": {
        "operationId": "batchResumeSniperConfigs",
        "tags": [
          "Sniper Configs"
        ],
        "summary": "Resume multiple Sniper configs",
        "description": "Per-item If-Match (in the request body, not a header). One failing item does not fail the batch — see the per-item status_code/code in the response. Archived configs return 409 task_read_only; deleted configs keep 409 invalid_state.\n\nRequires the `sniper:write` scope.",
        "x-apm-scopes": [
          "sniper:write"
        ],
        "x-apm-nav-label": "Batch resume",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "description": "Config id to pause or resume."
                        },
                        "if_match": {
                          "type": "string",
                          "minLength": 1,
                          "description": "Quoted ETag of the version you last read, for example \"3\". Checked per item, not as a request header."
                        },
                        "close_position": {
                          "type": "boolean",
                          "default": false,
                          "description": "batch-pause: also close positions this config opened. batch-resume: true on any item rejects the whole request. Default false."
                        }
                      },
                      "required": [
                        "id",
                        "if_match"
                      ],
                      "additionalProperties": false,
                      "description": "One config in a batch pause or resume."
                    },
                    "minItems": 1,
                    "maxItems": 100,
                    "description": "1 to 100 configs. One failing item does not fail the rest."
                  }
                },
                "required": [
                  "items"
                ],
                "additionalProperties": false,
                "description": "Batch pause or resume."
              },
              "example": {
                "items": [
                  {
                    "id": "snp_9c31af02",
                    "if_match": "\"5\""
                  },
                  {
                    "id": "snp_4d81be77",
                    "if_match": "\"2\""
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK (see per-item results)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "results": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Config id this result is for."
                              },
                              "status_code": {
                                "type": "number",
                                "description": "HTTP status for this item: 200 when it changed or was already in the requested state, or an error status."
                              },
                              "code": {
                                "type": "string",
                                "description": "Error code when this item failed. Absent on success."
                              },
                              "version": {
                                "type": "number",
                                "description": "New optimistic-concurrency version. Present on success."
                              },
                              "sync_state": {
                                "type": "string",
                                "enum": [
                                  "syncing",
                                  "synced",
                                  "failed"
                                ],
                                "description": "Engine sync state after the change. Present on success."
                              }
                            },
                            "required": [
                              "id",
                              "status_code"
                            ],
                            "additionalProperties": false,
                            "description": "Result for one config. A failure here does not fail the batch."
                          },
                          "description": "One entry per requested item, in request order."
                        }
                      },
                      "required": [
                        "results"
                      ],
                      "additionalProperties": false,
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sniper/configs/{id}/orders": {
      "get": {
        "operationId": "listSniperConfigOrders",
        "tags": [
          "Sniper Configs"
        ],
        "summary": "List orders placed by a Sniper config",
        "description": "Orders for one Sniper config, oldest-updated first (a status change re-surfaces an order). No status is excluded by default — pass `status` to filter.\n\nRequires the `sniper:read` scope.",
        "x-apm-scopes": [
          "sniper:read"
        ],
        "x-apm-nav-label": "List orders",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "description": "Config id returned by create or list."
            },
            "required": true,
            "description": "Config id returned by create or list.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "pending",
                "broadcast",
                "confirmed",
                "failed",
                "expired"
              ],
              "description": "Opt-in filter — omit to get every status."
            },
            "required": false,
            "description": "Opt-in filter — omit to get every status.",
            "name": "status",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "buy",
                "sell"
              ],
              "description": "buy or sell. Omit for both."
            },
            "required": false,
            "description": "buy or sell. Omit for both.",
            "name": "side",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "description": "RFC 3339 UTC, inclusive. Must not be after until."
            },
            "required": false,
            "description": "RFC 3339 UTC, inclusive. Must not be after until.",
            "name": "since",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "description": "RFC 3339 UTC, inclusive. Must not be before since."
            },
            "required": false,
            "description": "RFC 3339 UTC, inclusive. Must not be before since.",
            "name": "until",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "description": "Page size. Default 20, maximum 100."
            },
            "required": false,
            "description": "Page size. Default 20, maximum 100.",
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "description": "Opaque keyset cursor from a previous response's meta.next_cursor."
            },
            "required": false,
            "description": "Opaque keyset cursor from a previous response's meta.next_cursor.",
            "name": "cursor",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "order_id": {
                            "type": "string",
                            "description": "Order id."
                          },
                          "config_id": {
                            "type": "string",
                            "description": "Config that placed this order."
                          },
                          "config_version": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "Config version that placed the order. Null — the current engines do not record it."
                          },
                          "chain": {
                            "type": "string",
                            "description": "Chain the order ran on."
                          },
                          "wallet_id": {
                            "type": "string",
                            "description": "Custodial wallet that sent the order."
                          },
                          "side": {
                            "type": "string",
                            "description": "buy or sell."
                          },
                          "trigger": {
                            "type": "string",
                            "description": "Why the order was placed: copy_buy, copy_sell, snipe, take_profit, stop_loss, migration.sell, or another engine order type passed through as-is."
                          },
                          "token_address": {
                            "type": "string",
                            "description": "Token the order traded."
                          },
                          "token_symbol": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Token symbol. Null — the current engines do not fill it on this endpoint."
                          },
                          "amount_in": {
                            "type": "string",
                            "description": "Amount spent, as a decimal string. The settlement currency on a buy, the token itself on a sell."
                          },
                          "amount_in_unit": {
                            "type": "string",
                            "description": "Unit of amount_in: on a buy, the settlement currency symbol (the chain native symbol, or a quote token such as USDC; its address when the symbol is unknown); TOKEN on a sell."
                          },
                          "amount_out": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Amount received, as a decimal string. Null until the fill is known."
                          },
                          "amount_out_unit": {
                            "type": "string",
                            "description": "Unit of amount_out: TOKEN on a buy; on a sell, the settlement currency symbol, as in amount_in_unit."
                          },
                          "platform_fee": {
                            "type": "string",
                            "description": "Platform fee for this order, as a decimal string in fee_unit."
                          },
                          "network_fee": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Network fee. Null — the current engines do not record it."
                          },
                          "fee_unit": {
                            "type": "string",
                            "description": "Unit of platform_fee and network_fee. The chain native symbol."
                          },
                          "tx_hash": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Chain transaction hash once the order was broadcast. Null before that."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "broadcast",
                              "confirmed",
                              "failed",
                              "expired"
                            ],
                            "description": "Public status folded from the engine status: pending, broadcast, confirmed, failed, or expired. failed also includes pre-trade skips; inspect failure_stage and reason_code before computing execution statistics."
                          },
                          "error_code": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Coarse failure marker kept for existing callers. execution_failed when the engine stored an error message, otherwise null. reason_code is the specific one."
                          },
                          "failure_stage": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "pre_trade",
                              "execution"
                            ],
                            "description": "Status-derived stage: reject maps to pre_trade; failed/error map to execution. This is not proof of broadcast or confirmation. A market-cap guard may fail during execution; inspect reason_code and tx_hash separately. A timeout has null stage. Its outcome is unknown unless reason_code is anti_mev_not_landed, which confirms the order did not fill."
                          },
                          "reason_code": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Specific reason, such as sell_amount_zero (no sellable task position; excluded from copy-sell success-rate attempts), fomo_route_unsupported, buy_fee_too_high, buy_fee_unknown, first_buy_blocked, first_buy_history_unavailable (a Price-protection first-buy-only copy skipped because the target's recent on-chain buys could not be confirmed yet), already_bought, buy_amount_below_min, token_blacklisted, quick_sell_banned, market_cap_too_small, buy_dynamic_cap_reached, buy_tier_no_match, buy_tier_market_cap_unknown, prior_buyers_unavailable (Price protection skipped this buy because listed wallet history was incomplete), or strategy_leaf_rejected (including a prior-buyer blacklist match). For a sniper buy, creator_sold means the creator sold and the filter required no sale. creator_not_sold means the filter required a sale and none occurred. creator_sale_unknown means the sale history could not be confirmed. delayed_snipe_expired means the executor canceled an unsigned delayed snipe more than 60 seconds after its scheduled buy time to avoid buying long after launch. contract_not_recipient means the followed address is a contract and the bought tokens were transferred to another wallet, not to that contract; follow the wallet that received them. On Solana, anti_mev_not_landed means the Anti-MEV order did not fill: slippage may have been exceeded, or the auction was lost. The public status is expired for task timeouts and failed for pending buys or sells that end with this reason. Uses the same normalizer as account history, including failed/timeout records and legacy market-cap text. Unknown raw chain text is null; producer codes and stable snake-case codes are preserved as opaque values. A reason alone does not prove a harmless skip."
                          },
                          "buy_tier": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "minimum": 0,
                            "description": "Zero-based index of the selected buy tier, when recorded."
                          },
                          "buy_tier_market_cap_usd": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^-?\\d+(\\.\\d+)?$",
                            "description": "Market cap used to select the buy tier, as a USD decimal string, when recorded."
                          },
                          "trailing_fire": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "description": "One-based trigger number across all tiers of this buy’s repeating trailing ladder, when recorded."
                          },
                          "price_strategy": {
                            "type": "string",
                            "description": "Price strategy used for this order, when the engine recorded one. Absent otherwise."
                          },
                          "price_reference_source": {
                            "type": "string",
                            "description": "Where the price reference came from, when recorded. Absent otherwise."
                          },
                          "price_min_amount_out": {
                            "type": "string",
                            "description": "Minimum amount the order was willing to receive, in the smallest units of the output token. This is the limit, not the fill. Absent when not recorded."
                          },
                          "flash_sell_status": {
                            "type": "string",
                            "description": "Timed-sell bookkeeping for this order, when the engine recorded it. Absent otherwise."
                          },
                          "flash_sell_error": {
                            "type": "string",
                            "description": "Why timed-sell bookkeeping failed, when the engine recorded an error. Absent otherwise."
                          },
                          "leader_tx_hash": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Leader transaction this order was copying. Null for exits that were not a direct copy of one leader transaction, and before it is known."
                          },
                          "created_via": {
                            "type": "string",
                            "description": "web or api, matching the config that placed the order."
                          },
                          "created_at": {
                            "type": "string",
                            "description": "When the order was created, RFC 3339 UTC."
                          },
                          "updated_at": {
                            "type": "string",
                            "description": "When the order last changed, RFC 3339 UTC. Listing is oldest-updated first, so a status change moves the order later in the stream."
                          }
                        },
                        "required": [
                          "order_id",
                          "config_id",
                          "config_version",
                          "chain",
                          "wallet_id",
                          "side",
                          "trigger",
                          "token_address",
                          "token_symbol",
                          "amount_in",
                          "amount_in_unit",
                          "amount_out",
                          "amount_out_unit",
                          "platform_fee",
                          "network_fee",
                          "fee_unit",
                          "tx_hash",
                          "status",
                          "error_code",
                          "failure_stage",
                          "reason_code",
                          "leader_tx_hash",
                          "created_via",
                          "created_at",
                          "updated_at"
                        ]
                      },
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "next_cursor": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Opaque keyset cursor for the next page. Null on the last page."
                        }
                      },
                      "required": [
                        "request_id",
                        "next_cursor"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inbox": {
      "get": {
        "operationId": "listInbox",
        "tags": [
          "Inbox"
        ],
        "summary": "List your inbox",
        "description": "Requires inbox:read. Operates only on the authenticated account. Read state is shared across devices. Read-all is bounded by the supplied sequence watermark.",
        "x-apm-scopes": [
          "inbox:read"
        ],
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "description": "Exclusive sequence cursor from a previous nextCursor; returns older messages."
            },
            "required": false,
            "description": "Exclusive sequence cursor from a previous nextCursor; returns older messages.",
            "name": "cursor",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 30,
              "description": "Maximum messages per page, 1–100. Defaults to 30."
            },
            "required": false,
            "description": "Maximum messages per page, 1–100. Defaults to 30.",
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "marketing",
                "announcement"
              ],
              "description": "Optional message category filter."
            },
            "required": false,
            "description": "Optional message category filter.",
            "name": "category",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "description": "Use true for unread messages or false for read messages; omit for both."
            },
            "required": false,
            "description": "Use true for unread messages or false for read messages; omit for both.",
            "name": "unread",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Stable identifier of this message in the authenticated account inbox."
                              },
                              "campaignId": {
                                "type": "string",
                                "description": "Identifier of the campaign that created this message."
                              },
                              "sequence": {
                                "type": "number",
                                "description": "Increasing message sequence within this account; used for pagination and read-all watermarks."
                              },
                              "title": {
                                "type": "string",
                                "description": "Rendered message title in the selected language."
                              },
                              "body": {
                                "type": "string",
                                "description": "Plain-text message body; never execute it as HTML."
                              },
                              "links": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "label": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100,
                                      "description": "User-visible label for the attached link."
                                    },
                                    "url": {
                                      "type": "string",
                                      "maxLength": 2000,
                                      "format": "uri",
                                      "description": "HTTPS link URL without embedded credentials, restricted to configured allowed origins when a campaign is created."
                                    }
                                  },
                                  "required": [
                                    "label",
                                    "url"
                                  ],
                                  "additionalProperties": false
                                },
                                "description": "Explicit labeled HTTPS links attached to the message."
                              },
                              "media": {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "photo",
                                      "video"
                                    ],
                                    "description": "Media presentation kind: photo or video."
                                  },
                                  "url": {
                                    "type": "string",
                                    "maxLength": 2000,
                                    "format": "uri",
                                    "description": "HTTPS link URL without embedded credentials, restricted to configured allowed origins when a campaign is created."
                                  }
                                },
                                "required": [
                                  "kind",
                                  "url"
                                ],
                                "additionalProperties": false,
                                "description": "Optional photo or video attached to the message."
                              },
                              "category": {
                                "type": "string",
                                "description": "Display category, currently marketing or announcement."
                              },
                              "createdAt": {
                                "type": "string",
                                "description": "UTC ISO 8601 timestamp when the message was added to this inbox."
                              },
                              "readAt": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "UTC ISO 8601 timestamp when first marked read, or null while unread. Shared across devices."
                              }
                            },
                            "required": [
                              "id",
                              "campaignId",
                              "sequence",
                              "title",
                              "body",
                              "links",
                              "category",
                              "createdAt",
                              "readAt"
                            ]
                          },
                          "description": "Matching messages ordered by descending account sequence."
                        },
                        "nextCursor": {
                          "type": "number",
                          "description": "Exclusive sequence cursor for the next page of older messages; absent when no further page exists."
                        },
                        "watermark": {
                          "type": "number",
                          "description": "Newest account message sequence observed for this page; zero for an empty inbox. Safe to pass to read-all."
                        }
                      },
                      "required": [
                        "items",
                        "watermark"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inbox/message": {
      "get": {
        "operationId": "getInboxMessage",
        "tags": [
          "Inbox"
        ],
        "summary": "Read one inbox message",
        "description": "Requires inbox:read. Operates only on the authenticated account. Read state is shared across devices. Read-all is bounded by the supplied sequence watermark.",
        "x-apm-scopes": [
          "inbox:read"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 250,
              "description": "Message identifier returned by this account inbox. Other accounts messages are not accessible."
            },
            "required": true,
            "description": "Message identifier returned by this account inbox. Other accounts messages are not accessible.",
            "name": "id",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Stable identifier of this message in the authenticated account inbox."
                        },
                        "campaignId": {
                          "type": "string",
                          "description": "Identifier of the campaign that created this message."
                        },
                        "sequence": {
                          "type": "number",
                          "description": "Increasing message sequence within this account; used for pagination and read-all watermarks."
                        },
                        "title": {
                          "type": "string",
                          "description": "Rendered message title in the selected language."
                        },
                        "body": {
                          "type": "string",
                          "description": "Plain-text message body; never execute it as HTML."
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "label": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "description": "User-visible label for the attached link."
                              },
                              "url": {
                                "type": "string",
                                "maxLength": 2000,
                                "format": "uri",
                                "description": "HTTPS link URL without embedded credentials, restricted to configured allowed origins when a campaign is created."
                              }
                            },
                            "required": [
                              "label",
                              "url"
                            ],
                            "additionalProperties": false
                          },
                          "description": "Explicit labeled HTTPS links attached to the message."
                        },
                        "media": {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "photo",
                                "video"
                              ],
                              "description": "Media presentation kind: photo or video."
                            },
                            "url": {
                              "type": "string",
                              "maxLength": 2000,
                              "format": "uri",
                              "description": "HTTPS link URL without embedded credentials, restricted to configured allowed origins when a campaign is created."
                            }
                          },
                          "required": [
                            "kind",
                            "url"
                          ],
                          "additionalProperties": false,
                          "description": "Optional photo or video attached to the message."
                        },
                        "category": {
                          "type": "string",
                          "description": "Display category, currently marketing or announcement."
                        },
                        "createdAt": {
                          "type": "string",
                          "description": "UTC ISO 8601 timestamp when the message was added to this inbox."
                        },
                        "readAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "UTC ISO 8601 timestamp when first marked read, or null while unread. Shared across devices."
                        }
                      },
                      "required": [
                        "id",
                        "campaignId",
                        "sequence",
                        "title",
                        "body",
                        "links",
                        "category",
                        "createdAt",
                        "readAt"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inbox/unread-count": {
      "get": {
        "operationId": "getInboxUnreadCount",
        "tags": [
          "Inbox"
        ],
        "summary": "Count unread messages",
        "description": "Requires inbox:read. Operates only on the authenticated account. Read state is shared across devices. Read-all is bounded by the supplied sequence watermark.",
        "x-apm-scopes": [
          "inbox:read"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "number",
                          "description": "Number of unread messages through the returned watermark."
                        },
                        "watermark": {
                          "type": "number",
                          "description": "Newest account message sequence covered by this count; zero for an empty inbox."
                        },
                        "revision": {
                          "type": "number",
                          "description": "Durable account inbox revision, changed by new messages, read state or channel preferences. Use it as an invalidation hint."
                        }
                      },
                      "required": [
                        "count",
                        "watermark",
                        "revision"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inbox/read": {
      "post": {
        "operationId": "markInboxRead",
        "tags": [
          "Inbox"
        ],
        "summary": "Mark a message read",
        "description": "Requires inbox:write. Operates only on the authenticated account. Read state is shared across devices. Read-all is bounded by the supplied sequence watermark.",
        "x-apm-scopes": [
          "inbox:write"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 250,
                    "description": "Message identifier returned by this account inbox. Other accounts messages are not accessible."
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "updated": {
                          "type": "number",
                          "description": "Number of messages changed from unread to read by this operation; repeated writes may return zero."
                        }
                      },
                      "required": [
                        "updated"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inbox/read-all": {
      "post": {
        "operationId": "markAllInboxRead",
        "tags": [
          "Inbox"
        ],
        "summary": "Mark messages read through a watermark",
        "description": "Requires inbox:write. Operates only on the authenticated account. Read state is shared across devices. Read-all is bounded by the supplied sequence watermark.",
        "x-apm-scopes": [
          "inbox:write"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "throughSequence": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Mark messages read through this inclusive sequence watermark from list or unread-count. Later messages remain unread."
                  }
                },
                "required": [
                  "throughSequence"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "updated": {
                          "type": "number",
                          "description": "Number of messages changed from unread to read by this operation; repeated writes may return zero."
                        }
                      },
                      "required": [
                        "updated"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inbox/preferences": {
      "get": {
        "operationId": "getInboxPreferences",
        "tags": [
          "Inbox"
        ],
        "summary": "Get marketing channel preferences",
        "description": "Requires inbox:read. Operates only on the authenticated account. Read state is shared across devices. Read-all is bounded by the supplied sequence watermark.",
        "x-apm-scopes": [
          "inbox:read"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "telegram": {
                          "type": "boolean",
                          "default": true,
                          "description": "Allow operational Telegram messages. Defaults to true; does not change trading or security notification settings."
                        },
                        "email": {
                          "type": "boolean",
                          "default": false,
                          "description": "Allow operational email messages. Defaults to false; set false to opt out without changing security emails."
                        },
                        "inbox": {
                          "type": "boolean",
                          "default": true,
                          "description": "Allow operational messages in the persistent account inbox. Defaults to true."
                        }
                      },
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateInboxPreferences",
        "tags": [
          "Inbox"
        ],
        "summary": "Update marketing channel preferences",
        "description": "Requires inbox:write. Operates only on the authenticated account. Read state is shared across devices. Read-all is bounded by the supplied sequence watermark.",
        "x-apm-scopes": [
          "inbox:write"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "telegram": {
                    "type": "boolean",
                    "default": true,
                    "description": "Allow operational Telegram messages. Defaults to true; does not change trading or security notification settings."
                  },
                  "email": {
                    "type": "boolean",
                    "default": false,
                    "description": "Allow operational email messages. Defaults to false; set false to opt out without changing security emails."
                  },
                  "inbox": {
                    "type": "boolean",
                    "default": true,
                    "description": "Allow operational messages in the persistent account inbox. Defaults to true."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "telegram": {
                          "type": "boolean",
                          "default": true,
                          "description": "Allow operational Telegram messages. Defaults to true; does not change trading or security notification settings."
                        },
                        "email": {
                          "type": "boolean",
                          "default": false,
                          "description": "Allow operational email messages. Defaults to false; set false to opt out without changing security emails."
                        },
                        "inbox": {
                          "type": "boolean",
                          "default": true,
                          "description": "Allow operational messages in the persistent account inbox. Defaults to true."
                        }
                      },
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/strategy-tasks/account-buy-pause": {
      "get": {
        "operationId": "getStrategyAccountBuyPause",
        "tags": [
          "Strategy Tasks"
        ],
        "summary": "Retrieve account buy pause state",
        "description": "Read whether all buying is paused for the caller. Applies to all chains and all strategy task types, including wallet copy, FOMO, sniper and social tasks. Defaults to paused=false.\n\nRequires the copytrade:read scope.",
        "x-apm-scopes": [
          "copytrade:read"
        ],
        "x-apm-nav-label": "Retrieve account buy pause state",
        "responses": {
          "200": {
            "description": "Current account buy pause state",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "paused": {
                          "type": "boolean",
                          "description": "Whether all buying is paused for this account on all chains. Individual task enabled states are unchanged; sells and exits continue."
                        },
                        "reason": {
                          "type": "string",
                          "enum": [
                            "buy_fail_streak"
                          ],
                          "description": "Automatic pause cause when consecutive broadcast buy failures triggered the account pause."
                        },
                        "pausedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Account buy pause time in RFC 3339 UTC, or null when buying is not paused."
                        }
                      },
                      "required": [
                        "paused",
                        "pausedAt"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "setStrategyAccountBuyPause",
        "tags": [
          "Strategy Tasks"
        ],
        "summary": "Pause or resume all buying",
        "description": "Pause all buying for the caller on all chains with paused=true. This pauses new buys without changing individual task enabled states; sells and exits continue. Setting paused=false allows enabled tasks to buy again and can immediately resume real-money trading; run-bound buy pauses (loss_streak, creator_limit, leader_token_limit, follow_count, buy_fail_streak) remain. Uses the same authorization as task resume. No If-Match or Idempotency-Key is required. The response confirms saved control state, not executor acknowledgement.\n\nRequires the copytrade:write scope.",
        "x-apm-scopes": [
          "copytrade:write"
        ],
        "x-apm-nav-label": "Pause or resume all buying",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "paused": {
                    "type": "boolean",
                    "description": "true pauses all buying for all strategy tasks; false allows enabled tasks to buy again. Resuming can immediately resume real-money trading, with the same authorization as task resume."
                  }
                },
                "required": [
                  "paused"
                ],
                "additionalProperties": false
              },
              "example": {
                "paused": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Current account buy pause state",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "paused": {
                          "type": "boolean",
                          "description": "Whether all buying is paused for this account on all chains. Individual task enabled states are unchanged; sells and exits continue."
                        },
                        "reason": {
                          "type": "string",
                          "enum": [
                            "buy_fail_streak"
                          ],
                          "description": "Automatic pause cause when consecutive broadcast buy failures triggered the account pause."
                        },
                        "pausedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Account buy pause time in RFC 3339 UTC, or null when buying is not paused."
                        }
                      },
                      "required": [
                        "paused",
                        "pausedAt"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/strategy-tasks/account-fail-guard": {
      "get": {
        "operationId": "getStrategyAccountFailGuard",
        "tags": [
          "Strategy Tasks"
        ],
        "summary": "Read consecutive buy failure protection",
        "description": "Account-wide across Solana, BSC and Robinhood. Defaults to disabled, six consecutive failures in 30 minutes.\n\nRequires the copytrade:read scope.",
        "x-apm-scopes": [
          "copytrade:read"
        ],
        "x-apm-nav-label": "Read consecutive buy failure protection",
        "responses": {
          "200": {
            "description": "Account protection settings",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "description": "Whether consecutive broadcast buy failures pause buying. Slippage failures count. Defaults to off."
                        },
                        "count": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 100,
                          "description": "Consecutive failed broadcast buys required to pause buying (1 to 100)."
                        },
                        "within_sec": {
                          "type": "integer",
                          "minimum": 60,
                          "maximum": 86400,
                          "description": "Rolling window in seconds, from 60 to 86400 in whole minutes."
                        }
                      },
                      "required": [
                        "enabled",
                        "count",
                        "within_sec"
                      ],
                      "additionalProperties": false,
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "setStrategyAccountFailGuard",
        "tags": [
          "Strategy Tasks"
        ],
        "summary": "Set consecutive buy failure protection",
        "description": "Broadcast slippage failures and unlanded broadcast buys count. A fill breaks the streak. At the threshold all new buys pause until manually resumed; sells continue.\n\nRequires the copytrade:write scope.",
        "x-apm-scopes": [
          "copytrade:write"
        ],
        "x-apm-nav-label": "Set consecutive buy failure protection",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Whether consecutive broadcast buy failures pause buying. Slippage failures count. Defaults to off."
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100,
                    "description": "Consecutive failed broadcast buys required to pause buying (1 to 100)."
                  },
                  "within_sec": {
                    "type": "integer",
                    "minimum": 60,
                    "maximum": 86400,
                    "description": "Rolling window in seconds, from 60 to 86400 in whole minutes."
                  }
                },
                "required": [
                  "enabled",
                  "count",
                  "within_sec"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Account protection settings",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "description": "Whether consecutive broadcast buy failures pause buying. Slippage failures count. Defaults to off."
                        },
                        "count": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 100,
                          "description": "Consecutive failed broadcast buys required to pause buying (1 to 100)."
                        },
                        "within_sec": {
                          "type": "integer",
                          "minimum": 60,
                          "maximum": 86400,
                          "description": "Rolling window in seconds, from 60 to 86400 in whole minutes."
                        }
                      },
                      "required": [
                        "enabled",
                        "count",
                        "within_sec"
                      ],
                      "additionalProperties": false,
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/strategy-tasks/venue-exclusions": {
      "get": {
        "operationId": "listStrategyTaskVenueExclusions",
        "tags": [
          "Strategy Tasks"
        ],
        "summary": "List strategy task venue exclusions",
        "description": "Summarize the last 24 hours of buys rejected by venue filters on owned tasks. Venues already selected in the current task configuration are omitted. Results are ordered by distinct token count.\n\nRequires the copytrade:read scope.",
        "x-apm-scopes": [
          "copytrade:read"
        ],
        "x-apm-nav-label": "List strategy task venue exclusions",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^(?:stk_[0-9A-Za-z]{26}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",
              "description": "Only include rejections for this owned strategy task."
            },
            "required": false,
            "description": "Only include rejections for this owned strategy task.",
            "name": "taskId",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Venue exclusions",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "since": {
                          "type": "string",
                          "format": "date-time",
                          "description": "Start of the 24-hour reporting window."
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "taskId": {
                                "type": "string",
                                "pattern": "^(?:stk_[0-9A-Za-z]{26}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",
                                "description": "Owned strategy task whose buys were rejected."
                              },
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "launchpad",
                                  "dex"
                                ],
                                "description": "launchpad: a snipe launchpad list; dex: an entry DEX filter."
                              },
                              "venue": {
                                "type": "string",
                                "description": "Executor launchpad or DEX identifier."
                              },
                              "tokens": {
                                "type": "integer",
                                "minimum": 0,
                                "description": "Number of distinct tokens rejected for this venue."
                              },
                              "rejects": {
                                "type": "integer",
                                "minimum": 0,
                                "description": "Number of rejected buys for this venue."
                              },
                              "lastAt": {
                                "type": "string",
                                "format": "date-time",
                                "description": "Timestamp of the latest rejection."
                              }
                            },
                            "required": [
                              "taskId",
                              "kind",
                              "venue",
                              "tokens",
                              "rejects",
                              "lastAt"
                            ]
                          },
                          "description": "One row per task and venue, ordered by distinct token count."
                        }
                      },
                      "required": [
                        "since",
                        "items"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error / unsupported_chain_feature / wallet_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "not_paused / invalid_state / idempotency_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/strategy-tasks/{id}/allow-venue": {
      "post": {
        "operationId": "allowStrategyTaskVenue",
        "tags": [
          "Strategy Tasks"
        ],
        "summary": "Allow a venue for a strategy task",
        "description": "Add a venue from the exclusions listing to the matching entry filters. Running tasks need not be paused: once the update reaches the executor, the task can buy on that venue. Supply the current task version as expectedVersion. A stale version returns version_conflict. If nothing needs to be added, the current task is returned.\n\nRequires the copytrade:write scope.",
        "x-apm-scopes": [
          "copytrade:write"
        ],
        "x-apm-nav-label": "Allow a venue for a strategy task",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Strategy task ID."
            },
            "required": true,
            "description": "Strategy task ID.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "Current strategy task version."
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "launchpad",
                      "dex"
                    ],
                    "description": "Which entry filter to update."
                  },
                  "venue": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "description": "Venue identifier returned by the venue-exclusions listing."
                  }
                },
                "required": [
                  "expectedVersion",
                  "kind",
                  "venue"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Committed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "labels": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "default": [],
                          "description": "The caller's task labels. Empty if none are set."
                        },
                        "task_id": {
                          "type": "string",
                          "description": "Strategy task ID."
                        },
                        "name": {
                          "type": "string",
                          "description": "Task display name."
                        },
                        "chain": {
                          "type": "string",
                          "description": "Execution chain."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "paused",
                            "deleted"
                          ],
                          "description": "Requested task state; engine reports synchronization separately. deleted appears only in the DELETE response."
                        },
                        "version": {
                          "type": "number",
                          "description": "Current version, also returned as the ETag."
                        },
                        "spec": {
                          "type": "object",
                          "additionalProperties": {},
                          "description": "Stored apm.task/2 specification, including the server-assigned id."
                        },
                        "engine": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "applied_version": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Last acknowledged version, or null before the first acknowledgement."
                            },
                            "sync_state": {
                              "type": "string",
                              "description": "Engine synchronization state: syncing, synced or failed."
                            },
                            "error_code": {
                              "type": "string",
                              "description": "Engine rejection code, when present."
                            },
                            "warning_code": {
                              "type": "string",
                              "description": "The config has taken effect. prior_buyers_unavailable means listed wallet history is still loading. prior_buyers_fast_unavailable means updates for some listed wallets are delayed. The task may miss purchases those wallets make just before the leader buys. This warning does not reject buys. prior_buyers_over_limit means the account exceeds the wallet limit on this chain. Purchases by wallets beyond the limit are not checked. prior_buyers_history_truncated means a listed wallet bought more than 5,000 distinct tokens inside the window. Only its most recent 5,000 are checked. The task keeps running."
                            },
                            "updated_at": {
                              "type": "string",
                              "description": "Engine state update time in RFC 3339 UTC."
                            }
                          },
                          "required": [
                            "applied_version",
                            "sync_state",
                            "updated_at"
                          ],
                          "description": "Engine synchronization state, or null when absent."
                        },
                        "run_state": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "type": "string",
                              "enum": [
                                "running",
                                "buy_paused",
                                "stopped"
                              ],
                              "description": "Effective runtime state: running, buy_paused or stopped."
                            },
                            "reason": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Known buy-pause reasons: account, loss_streak, creator_limit, leader_token_limit, follow_count, buy_fail_streak, funding_low. Buys pause while sells and exits continue. For run-bound pauses, reopen to start a new run: follow, loss and creator counts reset; leader distinct-token counts persist, so raise the limit or disable that filter before reopening. Known stop reasons: low_balance, inactivity, loss_streak, creator_limit. Null means no recorded reason or user stop; unknown reasons are preserved."
                            }
                          },
                          "required": [
                            "state",
                            "reason"
                          ],
                          "description": "Effective task runtime state."
                        },
                        "buy_paused": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "rule_id": {
                              "type": "string",
                              "description": "Rule that paused buying."
                            },
                            "observed": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "number"
                              },
                              "description": "Observed values that triggered the pause."
                            },
                            "at": {
                              "type": "string",
                              "description": "Buy pause time in RFC 3339 UTC."
                            }
                          },
                          "required": [
                            "rule_id",
                            "observed",
                            "at"
                          ],
                          "description": "Buy pause for this run, or null."
                        },
                        "funding_low_since": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Start of the low-funding interval in RFC 3339 UTC, or null."
                        },
                        "deactivation_close_position": {
                          "type": "boolean",
                          "description": "Whether the latest pause or delete requested closing positions."
                        },
                        "created_at": {
                          "type": "string",
                          "description": "Creation time in RFC 3339 UTC."
                        },
                        "updated_at": {
                          "type": "string",
                          "description": "Last update time in RFC 3339 UTC."
                        }
                      },
                      "required": [
                        "task_id",
                        "name",
                        "chain",
                        "status",
                        "version",
                        "spec",
                        "engine",
                        "run_state",
                        "buy_paused",
                        "funding_low_since",
                        "deactivation_close_position",
                        "created_at",
                        "updated_at"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "persistence": {
                          "type": "string",
                          "enum": [
                            "committed"
                          ],
                          "description": "The write has been committed to storage."
                        }
                      },
                      "required": [
                        "request_id",
                        "persistence"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error / unsupported_chain_feature / wallet_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "not_paused / invalid_state / idempotency_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/strategy-tasks": {
      "get": {
        "operationId": "listStrategyTasks",
        "tags": [
          "Strategy Tasks"
        ],
        "summary": "List strategy tasks",
        "description": "List owned, non-deleted apm.task/2 tasks with cursor pagination. run_state.reason: Known buy-pause reasons: account, loss_streak, creator_limit, leader_token_limit, follow_count, buy_fail_streak, funding_low. Buys pause while sells and exits continue. For run-bound pauses, reopen to start a new run: follow, loss and creator counts reset; leader distinct-token counts persist, so raise the limit or disable that filter before reopening. Known stop reasons: low_balance, inactivity, loss_streak, creator_limit. Null means no recorded reason or user stop; unknown reasons are preserved.\n\nRequires the copytrade:read scope.",
        "x-apm-scopes": [
          "copytrade:read"
        ],
        "x-apm-nav-label": "List strategy tasks",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 24,
              "description": "Filter to configs carrying this caller-defined label."
            },
            "required": false,
            "description": "Filter to configs carrying this caller-defined label.",
            "name": "label",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50,
              "description": "Maximum tasks per page, from 1 to 100."
            },
            "required": false,
            "description": "Maximum tasks per page, from 1 to 100.",
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Opaque next_cursor from the previous page."
            },
            "required": false,
            "description": "Opaque next_cursor from the previous page.",
            "name": "cursor",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "labels": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "default": [],
                            "description": "The caller's task labels. Empty if none are set."
                          },
                          "task_id": {
                            "type": "string",
                            "description": "Strategy task ID."
                          },
                          "name": {
                            "type": "string",
                            "description": "Task display name."
                          },
                          "chain": {
                            "type": "string",
                            "description": "Execution chain."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "paused",
                              "deleted"
                            ],
                            "description": "Requested task state; engine reports synchronization separately. deleted appears only in the DELETE response."
                          },
                          "version": {
                            "type": "number",
                            "description": "Current version, also returned as the ETag."
                          },
                          "spec": {
                            "type": "object",
                            "additionalProperties": {},
                            "description": "Stored apm.task/2 specification, including the server-assigned id."
                          },
                          "engine": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "applied_version": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Last acknowledged version, or null before the first acknowledgement."
                              },
                              "sync_state": {
                                "type": "string",
                                "description": "Engine synchronization state: syncing, synced or failed."
                              },
                              "error_code": {
                                "type": "string",
                                "description": "Engine rejection code, when present."
                              },
                              "warning_code": {
                                "type": "string",
                                "description": "The config has taken effect. prior_buyers_unavailable means listed wallet history is still loading. prior_buyers_fast_unavailable means updates for some listed wallets are delayed. The task may miss purchases those wallets make just before the leader buys. This warning does not reject buys. prior_buyers_over_limit means the account exceeds the wallet limit on this chain. Purchases by wallets beyond the limit are not checked. prior_buyers_history_truncated means a listed wallet bought more than 5,000 distinct tokens inside the window. Only its most recent 5,000 are checked. The task keeps running."
                              },
                              "updated_at": {
                                "type": "string",
                                "description": "Engine state update time in RFC 3339 UTC."
                              }
                            },
                            "required": [
                              "applied_version",
                              "sync_state",
                              "updated_at"
                            ],
                            "description": "Engine synchronization state, or null when absent."
                          },
                          "run_state": {
                            "type": "object",
                            "properties": {
                              "state": {
                                "type": "string",
                                "enum": [
                                  "running",
                                  "buy_paused",
                                  "stopped"
                                ],
                                "description": "Effective runtime state: running, buy_paused or stopped."
                              },
                              "reason": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Known buy-pause reasons: account, loss_streak, creator_limit, leader_token_limit, follow_count, buy_fail_streak, funding_low. Buys pause while sells and exits continue. For run-bound pauses, reopen to start a new run: follow, loss and creator counts reset; leader distinct-token counts persist, so raise the limit or disable that filter before reopening. Known stop reasons: low_balance, inactivity, loss_streak, creator_limit. Null means no recorded reason or user stop; unknown reasons are preserved."
                              }
                            },
                            "required": [
                              "state",
                              "reason"
                            ],
                            "description": "Effective task runtime state."
                          },
                          "buy_paused": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "rule_id": {
                                "type": "string",
                                "description": "Rule that paused buying."
                              },
                              "observed": {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "number"
                                },
                                "description": "Observed values that triggered the pause."
                              },
                              "at": {
                                "type": "string",
                                "description": "Buy pause time in RFC 3339 UTC."
                              }
                            },
                            "required": [
                              "rule_id",
                              "observed",
                              "at"
                            ],
                            "description": "Buy pause for this run, or null."
                          },
                          "funding_low_since": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Start of the low-funding interval in RFC 3339 UTC, or null."
                          },
                          "deactivation_close_position": {
                            "type": "boolean",
                            "description": "Whether the latest pause or delete requested closing positions."
                          },
                          "created_at": {
                            "type": "string",
                            "description": "Creation time in RFC 3339 UTC."
                          },
                          "updated_at": {
                            "type": "string",
                            "description": "Last update time in RFC 3339 UTC."
                          }
                        },
                        "required": [
                          "task_id",
                          "name",
                          "chain",
                          "status",
                          "version",
                          "spec",
                          "engine",
                          "run_state",
                          "buy_paused",
                          "funding_low_since",
                          "deactivation_close_position",
                          "created_at",
                          "updated_at"
                        ]
                      },
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "next_cursor": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Cursor for the next page, or null when there are no more results."
                        }
                      },
                      "required": [
                        "request_id",
                        "next_cursor"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error / unsupported_chain_feature / wallet_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "not_paused / invalid_state / idempotency_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createStrategyTask",
        "tags": [
          "Strategy Tasks"
        ],
        "summary": "Create a paused strategy task",
        "description": "Create with spec.enabled=false; enabled=true is rejected. Call resume to start trading.\n\nFor a repeating trailing ladder, set repeat: true and do.sell.amount to bps_of_remaining on each trailing exit rule. Give each tier a distinct activation gain and omit stages and goto.\n\nCallout entries (social_mention) accept five token condition leaves besides the social signal leaves and me.holding: token.market_cap_usd (gte / lte / between, decimal USD string), token.buy_tax_bps and token.sell_tax_bps (lte, integer bps 0-10000; 10000 means no cap), token.age_sec (gte / lte / between, seconds) and token.address (in / nin, 1-200 token addresses; nin is a blacklist). Market cap and both fee caps bound the buy order and must be direct children of the root \"all\" on every chain, otherwise presend_leaf_not_top_level; age and address are judged when the post arrives and may be nested. A limit-order entry cannot carry token.market_cap_usd (unsupported_leaf). Without token.buy_tax_bps the default 2500 bps buy fee cap applies. On BSC and Robinhood the on-chain market cap ceiling allows about 30% above the maximum. A token with no known launch time fails a token.age_sec condition. X and Pump.fun limit buys accept signal_price with an integer offset_bps from -9900 to 100000 excluding zero, or a fixed price_usd. Limit expiry is 60-604800 seconds from placement. Both sources accept integer do.buy.delay_ms from 0 to 86400000; omitted or 0 means no delay, and values above the ceiling return unsupported_delay. Signal-time conditions are evaluated on arrival. When the delay elapses, routing and pre-send checks run before sending a market buy or placing a limit. A delayed signal_price limit uses the mark captured at signal time when available. Otherwise, and for an immediate limit, it uses the mark when the buy route is selected, falling back to the route quote. If no price is available, the signal is skipped with signal_price_unknown. Both social sources accept token.dex (in / nin with DEX identity strings) and, on Solana, token.quote_class (in with a list of classes) as direct children of the root all. The main pool on the selected buy route, the pool that directly trades the token, determines these conditions before a market buy is sent or a limit is placed; conversion hops before it, such as through USDC, do not count. Solana social buys can set exec.buy.fee.slippage_sol to a decimal string of at least 0.1 SOL with at most nine decimals. The route-based floor replaces percentage buy slippage, including when a limit triggers. Wallet-copy buy entries accept signal.block_gap (lte or lt, nonnegative blocks, Solana slots). It uses the pre-send estimate; an unknown local head rejects with signal_block_gap_unknown.\n\nPump.fun callout entries use one social_mention source {platform: \"pump_fun\", source_id: \"home_new\"} (the pump.fun new-callout feed) and cannot mix with other sources. They run on solana, bsc and robinhood, live mode only (mode \"paper\" returns unsupported_action), with market and limit buys. Every entry must reach a non-empty \"only follow these callers\" list through the root all: signal.author in [...], 1-200 items; otherwise validation_error with details[].code pump_callers_required. List items are {\"handle\": \"<username, wallet address, user ID, or pump.fun profile link>\"} or {\"user_id\": \"<lowercase UUID>\", \"handle\": \"...\"}. On save the server normalizes each handle-only item (extracting the segment from a pump.fun/profile/... link, trimming, dropping leading @), looks it up on pump.fun and stores its user ID and current username (any EVM address resolves to a pump.fun account with an auto-generated username); the executor matches user IDs only, so a later rename does not change who is followed. An unknown handle returns details[].code pump_caller_not_found and a failed lookup pump_caller_lookup_failed (retry later); both list the handles in details[].reason and nothing is saved. There is no separate caller lookup endpoint: a create or update is the lookup. Pump.fun-only caller conditions: signal.author nin (exclude callers), caller.cost_basis_usd (gte / lte / between, USD the caller spent on the token), caller.followers (gte), caller.callouts (gte / lte / between, total callouts), caller.verified (is true), caller.has_x (is true), caller.holding_usd (gte / lte / between, the caller's position in USD when looked up, may be 0), and signal.caller_rank (is / lte / gte / between with within_sec 60-604800: the caller's rank among distinct callers of this token in the window; is 1 means the first caller). signal.first_call and the token conditions above also apply; signal.text does not. Caller conditions other than caller.cost_basis_usd wait about 0.1 s for the caller profile; callouts whose caller cannot be found do not pass them. Signal records carry signal_source, signal_author (handle at the time, display only), signal_author_id, signal_token and signal_posted_at_ms when the signal recorded them.\n\nForward wallet_trade buys accept token.prior_buyers nin with 1–200 wallet addresses and required within_sec of 60–43200 seconds in whole minutes. Reverse buys return unsupported_leaf. Each list checks purchases already seen at the time of this leader buy, including add-ons. For each listed wallet, the task looks back over the window you set or the last 5,000 distinct tokens it bought, whichever comes first. When a listed wallet and the leader buy almost at the same time, the task may occasionally copy the leader’s buy because it has not yet seen the listed wallet’s purchase or cannot tell which came first. To sell after a listed earlier purchase is confirmed, include pos.late_prior_buyer is true in a position rule with a sell action. This automatic exit is sent at maximum slippage and uses the task's sell settings for fees, tip and gas. Every token.prior_buyers condition must be required by the buy (only all on its path). The native API adds no rule. Across all running and paused tasks on the same chain, an account may list up to 5000 distinct wallets. Exceeding this limit returns 400 prior_buyers_wallet_limit with total and limit.\n\nRequires the copytrade:write scope.",
        "x-apm-scopes": [
          "copytrade:write"
        ],
        "x-apm-nav-label": "Create a paused strategy task",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "8-128 character key for this create intent. Reuse the same key and body when retrying."
            },
            "required": true,
            "description": "8-128 character key for this create intent. Reuse the same key and body when retrying.",
            "name": "Idempotency-Key",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StrategyTaskCreate"
              },
              "example": {
                "spec": {
                  "schema": "apm.task/2",
                  "name": "X signal with token filters",
                  "chain": "bsc",
                  "mode": "live",
                  "enabled": false,
                  "wallets": [
                    {
                      "wallet_id": "0x1111111111111111111111111111111111111111",
                      "address": "0x1111111111111111111111111111111111111111"
                    }
                  ],
                  "strategies": [
                    {
                      "id": "s1",
                      "entries": [
                        {
                          "id": "buy",
                          "on": [
                            {
                              "kind": "social_mention",
                              "sources": [
                                {
                                  "platform": "x",
                                  "source_id": "alphacaller"
                                }
                              ]
                            }
                          ],
                          "when": {
                            "id": "c0",
                            "all": [
                              {
                                "id": "c1",
                                "f": "signal.ca_count",
                                "op": "is",
                                "v": 1
                              },
                              {
                                "id": "c2",
                                "f": "signal.age_sec",
                                "op": "lte",
                                "v": 30
                              },
                              {
                                "id": "c3",
                                "f": "token.market_cap_usd",
                                "op": "lte",
                                "v": "500000"
                              },
                              {
                                "id": "c4",
                                "f": "token.buy_tax_bps",
                                "op": "lte",
                                "v": 1000
                              },
                              {
                                "id": "c5",
                                "f": "token.sell_tax_bps",
                                "op": "lte",
                                "v": 1000
                              },
                              {
                                "id": "c6",
                                "f": "token.age_sec",
                                "op": "lte",
                                "v": 86400
                              },
                              {
                                "id": "c7",
                                "f": "token.address",
                                "op": "nin",
                                "v": [
                                  "0x2222222222222222222222222222222222222222"
                                ]
                              }
                            ]
                          },
                          "do": {
                            "buy": {
                              "sizing": {
                                "mode": "fixed",
                                "amount": "0.05"
                              },
                              "order": {
                                "type": "market"
                              }
                            }
                          }
                        }
                      ]
                    }
                  ],
                  "exec": {
                    "buy": {
                      "fee": {
                        "slippage_bps": 1500
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Committed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "labels": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "default": [],
                          "description": "The caller's task labels. Empty if none are set."
                        },
                        "task_id": {
                          "type": "string",
                          "description": "Strategy task ID."
                        },
                        "name": {
                          "type": "string",
                          "description": "Task display name."
                        },
                        "chain": {
                          "type": "string",
                          "description": "Execution chain."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "paused",
                            "deleted"
                          ],
                          "description": "Requested task state; engine reports synchronization separately. deleted appears only in the DELETE response."
                        },
                        "version": {
                          "type": "number",
                          "description": "Current version, also returned as the ETag."
                        },
                        "spec": {
                          "type": "object",
                          "additionalProperties": {},
                          "description": "Stored apm.task/2 specification, including the server-assigned id."
                        },
                        "engine": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "applied_version": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Last acknowledged version, or null before the first acknowledgement."
                            },
                            "sync_state": {
                              "type": "string",
                              "description": "Engine synchronization state: syncing, synced or failed."
                            },
                            "error_code": {
                              "type": "string",
                              "description": "Engine rejection code, when present."
                            },
                            "warning_code": {
                              "type": "string",
                              "description": "The config has taken effect. prior_buyers_unavailable means listed wallet history is still loading. prior_buyers_fast_unavailable means updates for some listed wallets are delayed. The task may miss purchases those wallets make just before the leader buys. This warning does not reject buys. prior_buyers_over_limit means the account exceeds the wallet limit on this chain. Purchases by wallets beyond the limit are not checked. prior_buyers_history_truncated means a listed wallet bought more than 5,000 distinct tokens inside the window. Only its most recent 5,000 are checked. The task keeps running."
                            },
                            "updated_at": {
                              "type": "string",
                              "description": "Engine state update time in RFC 3339 UTC."
                            }
                          },
                          "required": [
                            "applied_version",
                            "sync_state",
                            "updated_at"
                          ],
                          "description": "Engine synchronization state, or null when absent."
                        },
                        "run_state": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "type": "string",
                              "enum": [
                                "running",
                                "buy_paused",
                                "stopped"
                              ],
                              "description": "Effective runtime state: running, buy_paused or stopped."
                            },
                            "reason": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Known buy-pause reasons: account, loss_streak, creator_limit, leader_token_limit, follow_count, buy_fail_streak, funding_low. Buys pause while sells and exits continue. For run-bound pauses, reopen to start a new run: follow, loss and creator counts reset; leader distinct-token counts persist, so raise the limit or disable that filter before reopening. Known stop reasons: low_balance, inactivity, loss_streak, creator_limit. Null means no recorded reason or user stop; unknown reasons are preserved."
                            }
                          },
                          "required": [
                            "state",
                            "reason"
                          ],
                          "description": "Effective task runtime state."
                        },
                        "buy_paused": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "rule_id": {
                              "type": "string",
                              "description": "Rule that paused buying."
                            },
                            "observed": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "number"
                              },
                              "description": "Observed values that triggered the pause."
                            },
                            "at": {
                              "type": "string",
                              "description": "Buy pause time in RFC 3339 UTC."
                            }
                          },
                          "required": [
                            "rule_id",
                            "observed",
                            "at"
                          ],
                          "description": "Buy pause for this run, or null."
                        },
                        "funding_low_since": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Start of the low-funding interval in RFC 3339 UTC, or null."
                        },
                        "deactivation_close_position": {
                          "type": "boolean",
                          "description": "Whether the latest pause or delete requested closing positions."
                        },
                        "created_at": {
                          "type": "string",
                          "description": "Creation time in RFC 3339 UTC."
                        },
                        "updated_at": {
                          "type": "string",
                          "description": "Last update time in RFC 3339 UTC."
                        }
                      },
                      "required": [
                        "task_id",
                        "name",
                        "chain",
                        "status",
                        "version",
                        "spec",
                        "engine",
                        "run_state",
                        "buy_paused",
                        "funding_low_since",
                        "deactivation_close_position",
                        "created_at",
                        "updated_at"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "persistence": {
                          "type": "string",
                          "enum": [
                            "committed"
                          ],
                          "description": "The write has been committed to storage."
                        }
                      },
                      "required": [
                        "request_id",
                        "persistence"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "high_fee"
                                ],
                                "description": "A native fee exceeds the warning threshold."
                              },
                              "path": {
                                "type": "string",
                                "description": "Field of this resource that sets the fee: a dot path such as `gas.high_tip.landing_fee` or `buy.tiers.0.gas`, or a TaskSpec JSON Pointer for Strategy Tasks. When `sell` is omitted the sell side inherits `gas`, so a buy and a sell warning can share one path."
                              },
                              "side": {
                                "type": "string",
                                "enum": [
                                  "buy",
                                  "sell"
                                ],
                                "description": "Trading side that pays the fee."
                              },
                              "item": {
                                "type": "string",
                                "enum": [
                                  "priority_fee",
                                  "landing_fee",
                                  "total",
                                  "ratio_min",
                                  "ratio_max"
                                ],
                                "description": "Fee component, automatic total, or ratio budget bound."
                              },
                              "amount": {
                                "type": "string",
                                "description": "Fee in native tokens, as a decimal string."
                              },
                              "threshold": {
                                "type": "string",
                                "description": "Warning threshold in the same unit."
                              },
                              "unit": {
                                "type": "string",
                                "enum": [
                                  "SOL",
                                  "BNB"
                                ],
                                "description": "Native token for both amount and threshold."
                              }
                            },
                            "required": [
                              "code",
                              "path",
                              "side",
                              "item",
                              "amount",
                              "threshold",
                              "unit"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "high_fee_ratio"
                                ],
                                "description": "The automatic buy fee ratio exceeds the warning threshold."
                              },
                              "path": {
                                "type": "string",
                                "description": "Field of this resource that sets the fee: a dot path such as `gas.high_tip.landing_fee` or `buy.tiers.0.gas`, or a TaskSpec JSON Pointer for Strategy Tasks. When `sell` is omitted the sell side inherits `gas`, so a buy and a sell warning can share one path."
                              },
                              "bps": {
                                "type": "number",
                                "description": "Buy fee ratio in basis points."
                              },
                              "threshold_bps": {
                                "type": "number",
                                "description": "Warning threshold in basis points."
                              }
                            },
                            "required": [
                              "code",
                              "path",
                              "bps",
                              "threshold_bps"
                            ]
                          }
                        ]
                      },
                      "description": "Advisory fees from the saved configuration. The write succeeded. No confirmation or retry is needed. Empty when no threshold is exceeded."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error / unsupported_chain_feature / wallet_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "not_paused / invalid_state / idempotency_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/strategy-tasks/{id}": {
      "get": {
        "operationId": "getStrategyTask",
        "tags": [
          "Strategy Tasks"
        ],
        "summary": "Retrieve a strategy task",
        "description": "Read an owned task and its ETag. Missing, foreign and deleted tasks return not_found. run_state.reason: Known buy-pause reasons: account, loss_streak, creator_limit, leader_token_limit, follow_count, buy_fail_streak, funding_low. Buys pause while sells and exits continue. For run-bound pauses, reopen to start a new run: follow, loss and creator counts reset; leader distinct-token counts persist, so raise the limit or disable that filter before reopening. Known stop reasons: low_balance, inactivity, loss_streak, creator_limit. Null means no recorded reason or user stop; unknown reasons are preserved.\n\nRequires the copytrade:read scope.",
        "x-apm-scopes": [
          "copytrade:read"
        ],
        "x-apm-nav-label": "Retrieve a strategy task",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Strategy task ID."
            },
            "required": true,
            "description": "Strategy task ID.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "labels": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "default": [],
                          "description": "The caller's task labels. Empty if none are set."
                        },
                        "task_id": {
                          "type": "string",
                          "description": "Strategy task ID."
                        },
                        "name": {
                          "type": "string",
                          "description": "Task display name."
                        },
                        "chain": {
                          "type": "string",
                          "description": "Execution chain."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "paused",
                            "deleted"
                          ],
                          "description": "Requested task state; engine reports synchronization separately. deleted appears only in the DELETE response."
                        },
                        "version": {
                          "type": "number",
                          "description": "Current version, also returned as the ETag."
                        },
                        "spec": {
                          "type": "object",
                          "additionalProperties": {},
                          "description": "Stored apm.task/2 specification, including the server-assigned id."
                        },
                        "engine": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "applied_version": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Last acknowledged version, or null before the first acknowledgement."
                            },
                            "sync_state": {
                              "type": "string",
                              "description": "Engine synchronization state: syncing, synced or failed."
                            },
                            "error_code": {
                              "type": "string",
                              "description": "Engine rejection code, when present."
                            },
                            "warning_code": {
                              "type": "string",
                              "description": "The config has taken effect. prior_buyers_unavailable means listed wallet history is still loading. prior_buyers_fast_unavailable means updates for some listed wallets are delayed. The task may miss purchases those wallets make just before the leader buys. This warning does not reject buys. prior_buyers_over_limit means the account exceeds the wallet limit on this chain. Purchases by wallets beyond the limit are not checked. prior_buyers_history_truncated means a listed wallet bought more than 5,000 distinct tokens inside the window. Only its most recent 5,000 are checked. The task keeps running."
                            },
                            "updated_at": {
                              "type": "string",
                              "description": "Engine state update time in RFC 3339 UTC."
                            }
                          },
                          "required": [
                            "applied_version",
                            "sync_state",
                            "updated_at"
                          ],
                          "description": "Engine synchronization state, or null when absent."
                        },
                        "run_state": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "type": "string",
                              "enum": [
                                "running",
                                "buy_paused",
                                "stopped"
                              ],
                              "description": "Effective runtime state: running, buy_paused or stopped."
                            },
                            "reason": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Known buy-pause reasons: account, loss_streak, creator_limit, leader_token_limit, follow_count, buy_fail_streak, funding_low. Buys pause while sells and exits continue. For run-bound pauses, reopen to start a new run: follow, loss and creator counts reset; leader distinct-token counts persist, so raise the limit or disable that filter before reopening. Known stop reasons: low_balance, inactivity, loss_streak, creator_limit. Null means no recorded reason or user stop; unknown reasons are preserved."
                            }
                          },
                          "required": [
                            "state",
                            "reason"
                          ],
                          "description": "Effective task runtime state."
                        },
                        "buy_paused": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "rule_id": {
                              "type": "string",
                              "description": "Rule that paused buying."
                            },
                            "observed": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "number"
                              },
                              "description": "Observed values that triggered the pause."
                            },
                            "at": {
                              "type": "string",
                              "description": "Buy pause time in RFC 3339 UTC."
                            }
                          },
                          "required": [
                            "rule_id",
                            "observed",
                            "at"
                          ],
                          "description": "Buy pause for this run, or null."
                        },
                        "funding_low_since": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Start of the low-funding interval in RFC 3339 UTC, or null."
                        },
                        "deactivation_close_position": {
                          "type": "boolean",
                          "description": "Whether the latest pause or delete requested closing positions."
                        },
                        "created_at": {
                          "type": "string",
                          "description": "Creation time in RFC 3339 UTC."
                        },
                        "updated_at": {
                          "type": "string",
                          "description": "Last update time in RFC 3339 UTC."
                        }
                      },
                      "required": [
                        "task_id",
                        "name",
                        "chain",
                        "status",
                        "version",
                        "spec",
                        "engine",
                        "run_state",
                        "buy_paused",
                        "funding_low_since",
                        "deactivation_close_position",
                        "created_at",
                        "updated_at"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error / unsupported_chain_feature / wallet_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "not_paused / invalid_state / idempotency_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateStrategyTask",
        "tags": [
          "Strategy Tasks"
        ],
        "summary": "Update a strategy task",
        "description": "Merge the body into the stored spec without id, then validate the result. Arrays replace wholesale. Top-level labels replace the task labels. Labels-only patches keep the version and engine state. Name edits are also allowed while active; other edits require a paused, synced task.\n\nFor a repeating trailing ladder, set repeat: true and do.sell.amount to bps_of_remaining on each trailing exit rule. Give each tier a distinct activation gain and omit stages and goto.\n\nCallout entries (social_mention) accept five token condition leaves besides the social signal leaves and me.holding: token.market_cap_usd (gte / lte / between, decimal USD string), token.buy_tax_bps and token.sell_tax_bps (lte, integer bps 0-10000; 10000 means no cap), token.age_sec (gte / lte / between, seconds) and token.address (in / nin, 1-200 token addresses; nin is a blacklist). Market cap and both fee caps bound the buy order and must be direct children of the root \"all\" on every chain, otherwise presend_leaf_not_top_level; age and address are judged when the post arrives and may be nested. A limit-order entry cannot carry token.market_cap_usd (unsupported_leaf). Without token.buy_tax_bps the default 2500 bps buy fee cap applies. On BSC and Robinhood the on-chain market cap ceiling allows about 30% above the maximum. A token with no known launch time fails a token.age_sec condition. X and Pump.fun limit buys accept signal_price with an integer offset_bps from -9900 to 100000 excluding zero, or a fixed price_usd. Limit expiry is 60-604800 seconds from placement. Both sources accept integer do.buy.delay_ms from 0 to 86400000; omitted or 0 means no delay, and values above the ceiling return unsupported_delay. Signal-time conditions are evaluated on arrival. When the delay elapses, routing and pre-send checks run before sending a market buy or placing a limit. A delayed signal_price limit uses the mark captured at signal time when available. Otherwise, and for an immediate limit, it uses the mark when the buy route is selected, falling back to the route quote. If no price is available, the signal is skipped with signal_price_unknown. Both social sources accept token.dex (in / nin with DEX identity strings) and, on Solana, token.quote_class (in with a list of classes) as direct children of the root all. The main pool on the selected buy route, the pool that directly trades the token, determines these conditions before a market buy is sent or a limit is placed; conversion hops before it, such as through USDC, do not count. Solana social buys can set exec.buy.fee.slippage_sol to a decimal string of at least 0.1 SOL with at most nine decimals. The route-based floor replaces percentage buy slippage, including when a limit triggers. Wallet-copy buy entries accept signal.block_gap (lte or lt, nonnegative blocks, Solana slots). It uses the pre-send estimate; an unknown local head rejects with signal_block_gap_unknown.\n\nPump.fun callout entries use one social_mention source {platform: \"pump_fun\", source_id: \"home_new\"} (the pump.fun new-callout feed) and cannot mix with other sources. They run on solana, bsc and robinhood, live mode only (mode \"paper\" returns unsupported_action), with market and limit buys. Every entry must reach a non-empty \"only follow these callers\" list through the root all: signal.author in [...], 1-200 items; otherwise validation_error with details[].code pump_callers_required. List items are {\"handle\": \"<username, wallet address, user ID, or pump.fun profile link>\"} or {\"user_id\": \"<lowercase UUID>\", \"handle\": \"...\"}. On save the server normalizes each handle-only item (extracting the segment from a pump.fun/profile/... link, trimming, dropping leading @), looks it up on pump.fun and stores its user ID and current username (any EVM address resolves to a pump.fun account with an auto-generated username); the executor matches user IDs only, so a later rename does not change who is followed. An unknown handle returns details[].code pump_caller_not_found and a failed lookup pump_caller_lookup_failed (retry later); both list the handles in details[].reason and nothing is saved. There is no separate caller lookup endpoint: a create or update is the lookup. Pump.fun-only caller conditions: signal.author nin (exclude callers), caller.cost_basis_usd (gte / lte / between, USD the caller spent on the token), caller.followers (gte), caller.callouts (gte / lte / between, total callouts), caller.verified (is true), caller.has_x (is true), caller.holding_usd (gte / lte / between, the caller's position in USD when looked up, may be 0), and signal.caller_rank (is / lte / gte / between with within_sec 60-604800: the caller's rank among distinct callers of this token in the window; is 1 means the first caller). signal.first_call and the token conditions above also apply; signal.text does not. Caller conditions other than caller.cost_basis_usd wait about 0.1 s for the caller profile; callouts whose caller cannot be found do not pass them. Signal records carry signal_source, signal_author (handle at the time, display only), signal_author_id, signal_token and signal_posted_at_ms when the signal recorded them.\n\nForward wallet_trade buys accept token.prior_buyers nin with 1–200 wallet addresses and required within_sec of 60–43200 seconds in whole minutes. Reverse buys return unsupported_leaf. Each list checks purchases already seen at the time of this leader buy, including add-ons. For each listed wallet, the task looks back over the window you set or the last 5,000 distinct tokens it bought, whichever comes first. When a listed wallet and the leader buy almost at the same time, the task may occasionally copy the leader’s buy because it has not yet seen the listed wallet’s purchase or cannot tell which came first. To sell after a listed earlier purchase is confirmed, include pos.late_prior_buyer is true in a position rule with a sell action. This automatic exit is sent at maximum slippage and uses the task's sell settings for fees, tip and gas. Every token.prior_buyers condition must be required by the buy (only all on its path). The native API adds no rule. Across all running and paused tasks on the same chain, an account may list up to 5000 distinct wallets. Exceeding this limit returns 400 prior_buyers_wallet_limit with total and limit.\n\nRequires the copytrade:write scope.",
        "x-apm-scopes": [
          "copytrade:write"
        ],
        "x-apm-nav-label": "Update a strategy task",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Strategy task ID."
            },
            "required": true,
            "description": "Strategy task ID.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "Current ETag from a prior read or write; required for optimistic concurrency."
            },
            "required": true,
            "description": "Current ETag from a prior read or write; required for optimistic concurrency.",
            "name": "If-Match",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/merge-patch+json": {
              "schema": {
                "type": "object",
                "properties": {
                  "labels": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 24
                    },
                    "maxItems": 10,
                    "description": "Caller-defined task labels. Up to 10 labels of 1–24 characters. Whitespace is trimmed and duplicates are removed."
                  }
                },
                "additionalProperties": {},
                "description": "Send labels alone to replace task labels while running. Other fields merge into the stored spec without id. Arrays replace wholesale; null removes a spec field."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Committed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "labels": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "default": [],
                          "description": "The caller's task labels. Empty if none are set."
                        },
                        "task_id": {
                          "type": "string",
                          "description": "Strategy task ID."
                        },
                        "name": {
                          "type": "string",
                          "description": "Task display name."
                        },
                        "chain": {
                          "type": "string",
                          "description": "Execution chain."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "paused",
                            "deleted"
                          ],
                          "description": "Requested task state; engine reports synchronization separately. deleted appears only in the DELETE response."
                        },
                        "version": {
                          "type": "number",
                          "description": "Current version, also returned as the ETag."
                        },
                        "spec": {
                          "type": "object",
                          "additionalProperties": {},
                          "description": "Stored apm.task/2 specification, including the server-assigned id."
                        },
                        "engine": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "applied_version": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Last acknowledged version, or null before the first acknowledgement."
                            },
                            "sync_state": {
                              "type": "string",
                              "description": "Engine synchronization state: syncing, synced or failed."
                            },
                            "error_code": {
                              "type": "string",
                              "description": "Engine rejection code, when present."
                            },
                            "warning_code": {
                              "type": "string",
                              "description": "The config has taken effect. prior_buyers_unavailable means listed wallet history is still loading. prior_buyers_fast_unavailable means updates for some listed wallets are delayed. The task may miss purchases those wallets make just before the leader buys. This warning does not reject buys. prior_buyers_over_limit means the account exceeds the wallet limit on this chain. Purchases by wallets beyond the limit are not checked. prior_buyers_history_truncated means a listed wallet bought more than 5,000 distinct tokens inside the window. Only its most recent 5,000 are checked. The task keeps running."
                            },
                            "updated_at": {
                              "type": "string",
                              "description": "Engine state update time in RFC 3339 UTC."
                            }
                          },
                          "required": [
                            "applied_version",
                            "sync_state",
                            "updated_at"
                          ],
                          "description": "Engine synchronization state, or null when absent."
                        },
                        "run_state": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "type": "string",
                              "enum": [
                                "running",
                                "buy_paused",
                                "stopped"
                              ],
                              "description": "Effective runtime state: running, buy_paused or stopped."
                            },
                            "reason": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Known buy-pause reasons: account, loss_streak, creator_limit, leader_token_limit, follow_count, buy_fail_streak, funding_low. Buys pause while sells and exits continue. For run-bound pauses, reopen to start a new run: follow, loss and creator counts reset; leader distinct-token counts persist, so raise the limit or disable that filter before reopening. Known stop reasons: low_balance, inactivity, loss_streak, creator_limit. Null means no recorded reason or user stop; unknown reasons are preserved."
                            }
                          },
                          "required": [
                            "state",
                            "reason"
                          ],
                          "description": "Effective task runtime state."
                        },
                        "buy_paused": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "rule_id": {
                              "type": "string",
                              "description": "Rule that paused buying."
                            },
                            "observed": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "number"
                              },
                              "description": "Observed values that triggered the pause."
                            },
                            "at": {
                              "type": "string",
                              "description": "Buy pause time in RFC 3339 UTC."
                            }
                          },
                          "required": [
                            "rule_id",
                            "observed",
                            "at"
                          ],
                          "description": "Buy pause for this run, or null."
                        },
                        "funding_low_since": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Start of the low-funding interval in RFC 3339 UTC, or null."
                        },
                        "deactivation_close_position": {
                          "type": "boolean",
                          "description": "Whether the latest pause or delete requested closing positions."
                        },
                        "created_at": {
                          "type": "string",
                          "description": "Creation time in RFC 3339 UTC."
                        },
                        "updated_at": {
                          "type": "string",
                          "description": "Last update time in RFC 3339 UTC."
                        }
                      },
                      "required": [
                        "task_id",
                        "name",
                        "chain",
                        "status",
                        "version",
                        "spec",
                        "engine",
                        "run_state",
                        "buy_paused",
                        "funding_low_since",
                        "deactivation_close_position",
                        "created_at",
                        "updated_at"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "persistence": {
                          "type": "string",
                          "enum": [
                            "committed"
                          ],
                          "description": "The write has been committed to storage."
                        }
                      },
                      "required": [
                        "request_id",
                        "persistence"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "high_fee"
                                ],
                                "description": "A native fee exceeds the warning threshold."
                              },
                              "path": {
                                "type": "string",
                                "description": "Field of this resource that sets the fee: a dot path such as `gas.high_tip.landing_fee` or `buy.tiers.0.gas`, or a TaskSpec JSON Pointer for Strategy Tasks. When `sell` is omitted the sell side inherits `gas`, so a buy and a sell warning can share one path."
                              },
                              "side": {
                                "type": "string",
                                "enum": [
                                  "buy",
                                  "sell"
                                ],
                                "description": "Trading side that pays the fee."
                              },
                              "item": {
                                "type": "string",
                                "enum": [
                                  "priority_fee",
                                  "landing_fee",
                                  "total",
                                  "ratio_min",
                                  "ratio_max"
                                ],
                                "description": "Fee component, automatic total, or ratio budget bound."
                              },
                              "amount": {
                                "type": "string",
                                "description": "Fee in native tokens, as a decimal string."
                              },
                              "threshold": {
                                "type": "string",
                                "description": "Warning threshold in the same unit."
                              },
                              "unit": {
                                "type": "string",
                                "enum": [
                                  "SOL",
                                  "BNB"
                                ],
                                "description": "Native token for both amount and threshold."
                              }
                            },
                            "required": [
                              "code",
                              "path",
                              "side",
                              "item",
                              "amount",
                              "threshold",
                              "unit"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "high_fee_ratio"
                                ],
                                "description": "The automatic buy fee ratio exceeds the warning threshold."
                              },
                              "path": {
                                "type": "string",
                                "description": "Field of this resource that sets the fee: a dot path such as `gas.high_tip.landing_fee` or `buy.tiers.0.gas`, or a TaskSpec JSON Pointer for Strategy Tasks. When `sell` is omitted the sell side inherits `gas`, so a buy and a sell warning can share one path."
                              },
                              "bps": {
                                "type": "number",
                                "description": "Buy fee ratio in basis points."
                              },
                              "threshold_bps": {
                                "type": "number",
                                "description": "Warning threshold in basis points."
                              }
                            },
                            "required": [
                              "code",
                              "path",
                              "bps",
                              "threshold_bps"
                            ]
                          }
                        ]
                      },
                      "description": "Advisory fees from the saved configuration. The write succeeded. No confirmation or retry is needed. Empty when no threshold is exceeded."
                    }
                  },
                  "required": [
                    "data",
                    "meta",
                    "warnings"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error / unsupported_chain_feature / wallet_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "not_paused / invalid_state / idempotency_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteStrategyTask",
        "tags": [
          "Strategy Tasks"
        ],
        "summary": "Delete a strategy task",
        "description": "Soft-delete an owned task. close_position defaults to false and is always written. Repeating deletion with the current ETag returns the same resource.\n\nRequires the copytrade:delete scope.",
        "x-apm-scopes": [
          "copytrade:delete"
        ],
        "x-apm-nav-label": "Delete a strategy task",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Strategy task ID."
            },
            "required": true,
            "description": "Strategy task ID.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "default": "false",
              "description": "On pause or delete, true also closes positions opened by this task. Default false; written on state transitions even when omitted. Deleting without closing preserves open exit orders, which remain available through /v1/orders. Resume does not accept this query."
            },
            "required": false,
            "description": "On pause or delete, true also closes positions opened by this task. Default false; written on state transitions even when omitted. Deleting without closing preserves open exit orders, which remain available through /v1/orders. Resume does not accept this query.",
            "name": "close_position",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "Current ETag from a prior read or write; required for optimistic concurrency."
            },
            "required": true,
            "description": "Current ETag from a prior read or write; required for optimistic concurrency.",
            "name": "If-Match",
            "in": "header"
          }
        ],
        "responses": {
          "200": {
            "description": "Committed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "labels": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "default": [],
                          "description": "The caller's task labels. Empty if none are set."
                        },
                        "task_id": {
                          "type": "string",
                          "description": "Strategy task ID."
                        },
                        "name": {
                          "type": "string",
                          "description": "Task display name."
                        },
                        "chain": {
                          "type": "string",
                          "description": "Execution chain."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "paused",
                            "deleted"
                          ],
                          "description": "Requested task state; engine reports synchronization separately. deleted appears only in the DELETE response."
                        },
                        "version": {
                          "type": "number",
                          "description": "Current version, also returned as the ETag."
                        },
                        "spec": {
                          "type": "object",
                          "additionalProperties": {},
                          "description": "Stored apm.task/2 specification, including the server-assigned id."
                        },
                        "engine": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "applied_version": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Last acknowledged version, or null before the first acknowledgement."
                            },
                            "sync_state": {
                              "type": "string",
                              "description": "Engine synchronization state: syncing, synced or failed."
                            },
                            "error_code": {
                              "type": "string",
                              "description": "Engine rejection code, when present."
                            },
                            "warning_code": {
                              "type": "string",
                              "description": "The config has taken effect. prior_buyers_unavailable means listed wallet history is still loading. prior_buyers_fast_unavailable means updates for some listed wallets are delayed. The task may miss purchases those wallets make just before the leader buys. This warning does not reject buys. prior_buyers_over_limit means the account exceeds the wallet limit on this chain. Purchases by wallets beyond the limit are not checked. prior_buyers_history_truncated means a listed wallet bought more than 5,000 distinct tokens inside the window. Only its most recent 5,000 are checked. The task keeps running."
                            },
                            "updated_at": {
                              "type": "string",
                              "description": "Engine state update time in RFC 3339 UTC."
                            }
                          },
                          "required": [
                            "applied_version",
                            "sync_state",
                            "updated_at"
                          ],
                          "description": "Engine synchronization state, or null when absent."
                        },
                        "run_state": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "type": "string",
                              "enum": [
                                "running",
                                "buy_paused",
                                "stopped"
                              ],
                              "description": "Effective runtime state: running, buy_paused or stopped."
                            },
                            "reason": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Known buy-pause reasons: account, loss_streak, creator_limit, leader_token_limit, follow_count, buy_fail_streak, funding_low. Buys pause while sells and exits continue. For run-bound pauses, reopen to start a new run: follow, loss and creator counts reset; leader distinct-token counts persist, so raise the limit or disable that filter before reopening. Known stop reasons: low_balance, inactivity, loss_streak, creator_limit. Null means no recorded reason or user stop; unknown reasons are preserved."
                            }
                          },
                          "required": [
                            "state",
                            "reason"
                          ],
                          "description": "Effective task runtime state."
                        },
                        "buy_paused": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "rule_id": {
                              "type": "string",
                              "description": "Rule that paused buying."
                            },
                            "observed": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "number"
                              },
                              "description": "Observed values that triggered the pause."
                            },
                            "at": {
                              "type": "string",
                              "description": "Buy pause time in RFC 3339 UTC."
                            }
                          },
                          "required": [
                            "rule_id",
                            "observed",
                            "at"
                          ],
                          "description": "Buy pause for this run, or null."
                        },
                        "funding_low_since": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Start of the low-funding interval in RFC 3339 UTC, or null."
                        },
                        "deactivation_close_position": {
                          "type": "boolean",
                          "description": "Whether the latest pause or delete requested closing positions."
                        },
                        "created_at": {
                          "type": "string",
                          "description": "Creation time in RFC 3339 UTC."
                        },
                        "updated_at": {
                          "type": "string",
                          "description": "Last update time in RFC 3339 UTC."
                        }
                      },
                      "required": [
                        "task_id",
                        "name",
                        "chain",
                        "status",
                        "version",
                        "spec",
                        "engine",
                        "run_state",
                        "buy_paused",
                        "funding_low_since",
                        "deactivation_close_position",
                        "created_at",
                        "updated_at"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "persistence": {
                          "type": "string",
                          "enum": [
                            "committed"
                          ],
                          "description": "The write has been committed to storage."
                        }
                      },
                      "required": [
                        "request_id",
                        "persistence"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error / unsupported_chain_feature / wallet_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "not_paused / invalid_state / idempotency_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/strategy-tasks/{id}/pause": {
      "post": {
        "operationId": "pauseStrategyTask",
        "tags": [
          "Strategy Tasks"
        ],
        "summary": "Pause a strategy task",
        "description": "Pause trading. close_position defaults to false and is always written on transition. An already-paused task returns unchanged.\n\nRequires the copytrade:write scope.",
        "x-apm-scopes": [
          "copytrade:write"
        ],
        "x-apm-nav-label": "Pause a strategy task",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Strategy task ID."
            },
            "required": true,
            "description": "Strategy task ID.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "default": "false",
              "description": "On pause or delete, true also closes positions opened by this task. Default false; written on state transitions even when omitted. Deleting without closing preserves open exit orders, which remain available through /v1/orders. Resume does not accept this query."
            },
            "required": false,
            "description": "On pause or delete, true also closes positions opened by this task. Default false; written on state transitions even when omitted. Deleting without closing preserves open exit orders, which remain available through /v1/orders. Resume does not accept this query.",
            "name": "close_position",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "Current ETag from a prior read or write; required for optimistic concurrency."
            },
            "required": true,
            "description": "Current ETag from a prior read or write; required for optimistic concurrency.",
            "name": "If-Match",
            "in": "header"
          }
        ],
        "responses": {
          "200": {
            "description": "Committed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "labels": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "default": [],
                          "description": "The caller's task labels. Empty if none are set."
                        },
                        "task_id": {
                          "type": "string",
                          "description": "Strategy task ID."
                        },
                        "name": {
                          "type": "string",
                          "description": "Task display name."
                        },
                        "chain": {
                          "type": "string",
                          "description": "Execution chain."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "paused",
                            "deleted"
                          ],
                          "description": "Requested task state; engine reports synchronization separately. deleted appears only in the DELETE response."
                        },
                        "version": {
                          "type": "number",
                          "description": "Current version, also returned as the ETag."
                        },
                        "spec": {
                          "type": "object",
                          "additionalProperties": {},
                          "description": "Stored apm.task/2 specification, including the server-assigned id."
                        },
                        "engine": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "applied_version": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Last acknowledged version, or null before the first acknowledgement."
                            },
                            "sync_state": {
                              "type": "string",
                              "description": "Engine synchronization state: syncing, synced or failed."
                            },
                            "error_code": {
                              "type": "string",
                              "description": "Engine rejection code, when present."
                            },
                            "warning_code": {
                              "type": "string",
                              "description": "The config has taken effect. prior_buyers_unavailable means listed wallet history is still loading. prior_buyers_fast_unavailable means updates for some listed wallets are delayed. The task may miss purchases those wallets make just before the leader buys. This warning does not reject buys. prior_buyers_over_limit means the account exceeds the wallet limit on this chain. Purchases by wallets beyond the limit are not checked. prior_buyers_history_truncated means a listed wallet bought more than 5,000 distinct tokens inside the window. Only its most recent 5,000 are checked. The task keeps running."
                            },
                            "updated_at": {
                              "type": "string",
                              "description": "Engine state update time in RFC 3339 UTC."
                            }
                          },
                          "required": [
                            "applied_version",
                            "sync_state",
                            "updated_at"
                          ],
                          "description": "Engine synchronization state, or null when absent."
                        },
                        "run_state": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "type": "string",
                              "enum": [
                                "running",
                                "buy_paused",
                                "stopped"
                              ],
                              "description": "Effective runtime state: running, buy_paused or stopped."
                            },
                            "reason": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Known buy-pause reasons: account, loss_streak, creator_limit, leader_token_limit, follow_count, buy_fail_streak, funding_low. Buys pause while sells and exits continue. For run-bound pauses, reopen to start a new run: follow, loss and creator counts reset; leader distinct-token counts persist, so raise the limit or disable that filter before reopening. Known stop reasons: low_balance, inactivity, loss_streak, creator_limit. Null means no recorded reason or user stop; unknown reasons are preserved."
                            }
                          },
                          "required": [
                            "state",
                            "reason"
                          ],
                          "description": "Effective task runtime state."
                        },
                        "buy_paused": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "rule_id": {
                              "type": "string",
                              "description": "Rule that paused buying."
                            },
                            "observed": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "number"
                              },
                              "description": "Observed values that triggered the pause."
                            },
                            "at": {
                              "type": "string",
                              "description": "Buy pause time in RFC 3339 UTC."
                            }
                          },
                          "required": [
                            "rule_id",
                            "observed",
                            "at"
                          ],
                          "description": "Buy pause for this run, or null."
                        },
                        "funding_low_since": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Start of the low-funding interval in RFC 3339 UTC, or null."
                        },
                        "deactivation_close_position": {
                          "type": "boolean",
                          "description": "Whether the latest pause or delete requested closing positions."
                        },
                        "created_at": {
                          "type": "string",
                          "description": "Creation time in RFC 3339 UTC."
                        },
                        "updated_at": {
                          "type": "string",
                          "description": "Last update time in RFC 3339 UTC."
                        }
                      },
                      "required": [
                        "task_id",
                        "name",
                        "chain",
                        "status",
                        "version",
                        "spec",
                        "engine",
                        "run_state",
                        "buy_paused",
                        "funding_low_since",
                        "deactivation_close_position",
                        "created_at",
                        "updated_at"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "persistence": {
                          "type": "string",
                          "enum": [
                            "committed"
                          ],
                          "description": "The write has been committed to storage."
                        }
                      },
                      "required": [
                        "request_id",
                        "persistence"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error / unsupported_chain_feature / wallet_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "not_paused / invalid_state / idempotency_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/strategy-tasks/{id}/resume": {
      "post": {
        "operationId": "resumeStrategyTask",
        "tags": [
          "Strategy Tasks"
        ],
        "summary": "Resume a strategy task",
        "description": "Enable trading after domain validation. An active buy-paused task starts a new run and clears its run-bound pause; loss and creator counts reset, but leader distinct-token counts persist. Raise that cap or disable the filter before reopening. An active task without a run-bound pause returns unchanged.\n\nRequires the copytrade:write scope.",
        "x-apm-scopes": [
          "copytrade:write"
        ],
        "x-apm-nav-label": "Resume a strategy task",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Strategy task ID."
            },
            "required": true,
            "description": "Strategy task ID.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "Current ETag from a prior read or write; required for optimistic concurrency."
            },
            "required": true,
            "description": "Current ETag from a prior read or write; required for optimistic concurrency.",
            "name": "If-Match",
            "in": "header"
          }
        ],
        "responses": {
          "200": {
            "description": "Committed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "labels": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "default": [],
                          "description": "The caller's task labels. Empty if none are set."
                        },
                        "task_id": {
                          "type": "string",
                          "description": "Strategy task ID."
                        },
                        "name": {
                          "type": "string",
                          "description": "Task display name."
                        },
                        "chain": {
                          "type": "string",
                          "description": "Execution chain."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "paused",
                            "deleted"
                          ],
                          "description": "Requested task state; engine reports synchronization separately. deleted appears only in the DELETE response."
                        },
                        "version": {
                          "type": "number",
                          "description": "Current version, also returned as the ETag."
                        },
                        "spec": {
                          "type": "object",
                          "additionalProperties": {},
                          "description": "Stored apm.task/2 specification, including the server-assigned id."
                        },
                        "engine": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "applied_version": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Last acknowledged version, or null before the first acknowledgement."
                            },
                            "sync_state": {
                              "type": "string",
                              "description": "Engine synchronization state: syncing, synced or failed."
                            },
                            "error_code": {
                              "type": "string",
                              "description": "Engine rejection code, when present."
                            },
                            "warning_code": {
                              "type": "string",
                              "description": "The config has taken effect. prior_buyers_unavailable means listed wallet history is still loading. prior_buyers_fast_unavailable means updates for some listed wallets are delayed. The task may miss purchases those wallets make just before the leader buys. This warning does not reject buys. prior_buyers_over_limit means the account exceeds the wallet limit on this chain. Purchases by wallets beyond the limit are not checked. prior_buyers_history_truncated means a listed wallet bought more than 5,000 distinct tokens inside the window. Only its most recent 5,000 are checked. The task keeps running."
                            },
                            "updated_at": {
                              "type": "string",
                              "description": "Engine state update time in RFC 3339 UTC."
                            }
                          },
                          "required": [
                            "applied_version",
                            "sync_state",
                            "updated_at"
                          ],
                          "description": "Engine synchronization state, or null when absent."
                        },
                        "run_state": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "type": "string",
                              "enum": [
                                "running",
                                "buy_paused",
                                "stopped"
                              ],
                              "description": "Effective runtime state: running, buy_paused or stopped."
                            },
                            "reason": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Known buy-pause reasons: account, loss_streak, creator_limit, leader_token_limit, follow_count, buy_fail_streak, funding_low. Buys pause while sells and exits continue. For run-bound pauses, reopen to start a new run: follow, loss and creator counts reset; leader distinct-token counts persist, so raise the limit or disable that filter before reopening. Known stop reasons: low_balance, inactivity, loss_streak, creator_limit. Null means no recorded reason or user stop; unknown reasons are preserved."
                            }
                          },
                          "required": [
                            "state",
                            "reason"
                          ],
                          "description": "Effective task runtime state."
                        },
                        "buy_paused": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "rule_id": {
                              "type": "string",
                              "description": "Rule that paused buying."
                            },
                            "observed": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "number"
                              },
                              "description": "Observed values that triggered the pause."
                            },
                            "at": {
                              "type": "string",
                              "description": "Buy pause time in RFC 3339 UTC."
                            }
                          },
                          "required": [
                            "rule_id",
                            "observed",
                            "at"
                          ],
                          "description": "Buy pause for this run, or null."
                        },
                        "funding_low_since": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Start of the low-funding interval in RFC 3339 UTC, or null."
                        },
                        "deactivation_close_position": {
                          "type": "boolean",
                          "description": "Whether the latest pause or delete requested closing positions."
                        },
                        "created_at": {
                          "type": "string",
                          "description": "Creation time in RFC 3339 UTC."
                        },
                        "updated_at": {
                          "type": "string",
                          "description": "Last update time in RFC 3339 UTC."
                        }
                      },
                      "required": [
                        "task_id",
                        "name",
                        "chain",
                        "status",
                        "version",
                        "spec",
                        "engine",
                        "run_state",
                        "buy_paused",
                        "funding_low_since",
                        "deactivation_close_position",
                        "created_at",
                        "updated_at"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "persistence": {
                          "type": "string",
                          "enum": [
                            "committed"
                          ],
                          "description": "The write has been committed to storage."
                        }
                      },
                      "required": [
                        "request_id",
                        "persistence"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error / unsupported_chain_feature / wallet_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "not_paused / invalid_state / idempotency_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/strategy-tasks/{id}/signal-records": {
      "get": {
        "operationId": "listStrategyTaskSignalRecords",
        "tags": [
          "Strategy Tasks"
        ],
        "summary": "List strategy signal records",
        "description": "Read owned task signal decisions. Counts cover all task records and are returned only on the first page. Cursors bind this account, task and outcome/reason filters. When the signal recorded them, items include signal_source, signal_author, signal_author_id, signal_token and signal_posted_at_ms.\n\nRequires the copytrade:read scope.",
        "x-apm-scopes": [
          "copytrade:read"
        ],
        "x-apm-nav-label": "List strategy signal records",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Strategy task ID."
            },
            "required": true,
            "description": "Strategy task ID.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ordered",
                "rejected",
                "skipped",
                "paper"
              ],
              "description": "Filter by decision outcome."
            },
            "required": false,
            "description": "Filter by decision outcome.",
            "name": "outcome",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "description": "Exact rejection or skip reason."
            },
            "required": false,
            "description": "Exact rejection or skip reason.",
            "name": "reason",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Opaque next_cursor from the previous page for this task and filter."
            },
            "required": false,
            "description": "Opaque next_cursor from the previous page for this task and filter.",
            "name": "cursor",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50,
              "description": "Maximum signal records per page, from 1 to 100."
            },
            "required": false,
            "description": "Maximum signal records per page, from 1 to 100.",
            "name": "limit",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Signal record ID."
                              },
                              "created_at": {
                                "type": "number",
                                "description": "Record creation time as Unix milliseconds."
                              },
                              "wallet": {
                                "type": "string",
                                "description": "Execution wallet address."
                              },
                              "order_id": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Order ID when placed, otherwise null."
                              },
                              "follow_success": {
                                "type": "boolean",
                                "description": "Whether the signal record reports a successful follow."
                              },
                              "reason": {
                                "type": "string",
                                "description": "Rejection or skip reason, when recorded."
                              },
                              "leader_tx": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "wallet": {
                                    "type": "string",
                                    "description": "Leader wallet that made the transaction."
                                  },
                                  "tx_hash": {
                                    "type": "string",
                                    "description": "Leader on-chain transaction hash or signature."
                                  }
                                },
                                "required": [
                                  "wallet",
                                  "tx_hash"
                                ],
                                "description": "Leader transaction that produced this signal, or null when the record has none."
                              },
                              "decision": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "version": {
                                    "type": "number",
                                    "description": "Task version evaluated."
                                  },
                                  "spec_hash": {
                                    "type": "string",
                                    "description": "Hash of the evaluated task specification."
                                  },
                                  "mode": {
                                    "type": "string",
                                    "description": "Execution mode: live or paper."
                                  },
                                  "signal_id": {
                                    "type": "string",
                                    "description": "Signal ID."
                                  },
                                  "signal_source": {
                                    "type": "string",
                                    "description": "Source that emitted the signal, when recorded."
                                  },
                                  "signal_author": {
                                    "type": "string",
                                    "description": "Caller username at signal time, when known. Display only; matching uses signal_author_id."
                                  },
                                  "signal_author_id": {
                                    "type": "string",
                                    "description": "Stable caller id, when known. For Pump.fun this is the user id that signal.author lists match."
                                  },
                                  "signal_token": {
                                    "type": "string",
                                    "description": "Chain-specific token address supplied by the signal, when known."
                                  },
                                  "signal_posted_at_ms": {
                                    "type": "number",
                                    "description": "Signal creation time as Unix milliseconds, when known."
                                  },
                                  "rule_id": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Evaluated entry rule, or null for older records."
                                  },
                                  "outcome": {
                                    "type": "string",
                                    "description": "Decision outcome: ordered, rejected, skipped or paper."
                                  },
                                  "decided_by": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Condition that determined the outcome, or null."
                                  },
                                  "cond": {
                                    "description": "Condition tree snapshot, or null when unconditional."
                                  },
                                  "nodes": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "description": "Condition node ID."
                                        },
                                        "result": {
                                          "type": "string",
                                          "description": "Evaluation result: true, false, unknown or skipped."
                                        },
                                        "observed": {
                                          "description": "Observed JSON value for the condition."
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "result"
                                      ]
                                    },
                                    "description": "Evaluated condition nodes."
                                  },
                                  "proposed_order": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "description": "Proposed order type: market or limit."
                                      },
                                      "amount_native": {
                                        "type": "string",
                                        "description": "Proposed amount in native token units."
                                      },
                                      "limit_price_usd": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "Proposed limit price in USD, or null."
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "amount_native",
                                      "limit_price_usd"
                                    ],
                                    "description": "Proposed paper order, or null."
                                  }
                                },
                                "required": [
                                  "version",
                                  "spec_hash",
                                  "mode",
                                  "signal_id",
                                  "rule_id",
                                  "outcome",
                                  "decided_by",
                                  "nodes",
                                  "proposed_order"
                                ],
                                "description": "Structured decision, or null when diagnostics are unavailable."
                              }
                            },
                            "required": [
                              "id",
                              "created_at",
                              "wallet",
                              "order_id",
                              "follow_success",
                              "reason",
                              "leader_tx",
                              "decision"
                            ]
                          },
                          "description": "Signal records in this page."
                        },
                        "counts": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "ordered": {
                              "type": "number",
                              "description": "Total ordered signals."
                            },
                            "rejected": {
                              "type": "number",
                              "description": "Total rejected signals."
                            },
                            "skipped": {
                              "type": "number",
                              "description": "Total skipped signals."
                            },
                            "paper": {
                              "type": "number",
                              "description": "Total paper signals."
                            }
                          },
                          "required": [
                            "ordered",
                            "rejected",
                            "skipped",
                            "paper"
                          ],
                          "description": "Counts across all task signals, independent of filters; null after the first page."
                        },
                        "next_cursor": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Cursor for the next page, or null when there are no more results."
                        }
                      },
                      "required": [
                        "items",
                        "counts",
                        "next_cursor"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error / unsupported_chain_feature / wallet_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "not_paused / invalid_state / idempotency_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/wallet-rankings": {
      "get": {
        "operationId": "getWalletRankings",
        "tags": [
          "Wallet Rankings"
        ],
        "summary": "Read a daily wallet ranking",
        "description": "Each chain and ranking type has one version per day. Returns all rows (up to 100) without pagination. Reads are cached for five minutes. USD amounts are decimal strings, ratios are fractions and unavailable metrics are null. Use the rankings for display and individual wallet selection only. A ranking must never be used as an automatic copy-trading list. Requires the copytrade:read scope.",
        "x-apm-scopes": [
          "copytrade:read"
        ],
        "x-apm-nav-label": "Read wallet rankings",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "solana",
                "bsc",
                "robinhood"
              ],
              "description": "Chain on which the wallets are ranked."
            },
            "required": true,
            "description": "Chain on which the wallets are ranked.",
            "name": "chain",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "hot",
                "rising",
                "stable_profit",
                "long_hold"
              ],
              "description": "Daily ranking to read: hot, rising, stable_profit or long_hold. Every ranking uses the 30 days through data_day and only includes wallets that traded in the last 3 days, traded on at least 7 days, have positive realized PnL, traded at most 1,000 tokens and did not trade a token they created. Of the tokens a wallet bought, at most 20% may have its first buy within 2 blocks of the token's first trade (5 blocks on Robinhood), at most 50% within 60 seconds, and at most 50% may be sold, by at least half the amount bought, within 60 seconds of the first buy. hot lists profitable wallets followed by confirmed copy-trading wallets, ranked by the number of those wallets, then by their median return, then by address. At least 3 of them must have measurable returns and their median return must be above -30%. hot returns an empty list on bsc and robinhood until confirmed copy-trading wallets are observed there."
            },
            "required": true,
            "description": "Daily ranking to read: hot, rising, stable_profit or long_hold. Every ranking uses the 30 days through data_day and only includes wallets that traded in the last 3 days, traded on at least 7 days, have positive realized PnL, traded at most 1,000 tokens and did not trade a token they created. Of the tokens a wallet bought, at most 20% may have its first buy within 2 blocks of the token's first trade (5 blocks on Robinhood), at most 50% within 60 seconds, and at most 50% may be sold, by at least half the amount bought, within 60 seconds of the first buy. hot lists profitable wallets followed by confirmed copy-trading wallets, ranked by the number of those wallets, then by their median return, then by address. At least 3 of them must have measurable returns and their median return must be above -30%. hot returns an empty list on bsc and robinhood until confirmed copy-trading wallets are observed there.",
            "name": "type",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Published ranking, or version null with empty items if never published.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "chain": {
                          "type": "string",
                          "enum": [
                            "solana",
                            "bsc",
                            "robinhood"
                          ],
                          "description": "Chain on which the wallets are ranked."
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "hot",
                            "rising",
                            "stable_profit",
                            "long_hold"
                          ],
                          "description": "Daily ranking to read: hot, rising, stable_profit or long_hold. Every ranking uses the 30 days through data_day and only includes wallets that traded in the last 3 days, traded on at least 7 days, have positive realized PnL, traded at most 1,000 tokens and did not trade a token they created. Of the tokens a wallet bought, at most 20% may have its first buy within 2 blocks of the token's first trade (5 blocks on Robinhood), at most 50% within 60 seconds, and at most 50% may be sold, by at least half the amount bought, within 60 seconds of the first buy. hot lists profitable wallets followed by confirmed copy-trading wallets, ranked by the number of those wallets, then by their median return, then by address. At least 3 of them must have measurable returns and their median return must be above -30%. hot returns an empty list on bsc and robinhood until confirmed copy-trading wallets are observed there."
                        },
                        "version": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Daily version. Null with empty items means this ranking has never been published on this chain."
                        },
                        "data_day": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Last UTC data day included in the daily ranking, or null before publication."
                        },
                        "as_of": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "UTC cutoff time of the daily ranking, or null before publication."
                        },
                        "metrics_as_of": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "UTC cutoff time for the refreshed metrics, or null if unavailable."
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "rank": {
                                "type": "integer",
                                "description": "Position in the published ranking, starting at 1."
                              },
                              "address": {
                                "type": "string",
                                "description": "Wallet address on the selected chain."
                              },
                              "reason_tags": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Ignore unknown tags as new values may be added. multi_followed means at least 5 wallets that copy-trade often have followed this wallet over the last 30 days. new_wallet identifies a newly observed wallet on the rising ranking only."
                              },
                              "followers": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Number of distinct wallets that followed this wallet over the last 30 days, or null if unavailable. A confirmed copy-trading wallet counts while it follows up to 20 wallets; other followers count while they follow up to 5. On hot, only confirmed copy-trading wallets are counted and this is the primary sort key."
                              },
                              "follower_ret_median": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Median 30-day return of confirmed copy-trading wallets with measurable returns on the tokens they followed, as a fraction. Orders hot wallets with the same follower count. Only available on hot."
                              },
                              "follower_profitable_share": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Fraction of confirmed copy-trading wallets with measurable returns that made a profit on the tokens they followed. Only available on hot."
                              },
                              "realized_pnl_usd": {
                                "type": "string",
                                "pattern": "^-?\\d+(\\.\\d+)?$",
                                "description": "Realized profit or loss over 30 days, in USD as a decimal string."
                              },
                              "win_rate": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Fraction of closed token positions with positive realized profit, or null if unavailable."
                              },
                              "pnl_usd_7d": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^-?\\d+(\\.\\d+)?$",
                                "description": "Seven-day profit or loss including unrealized PnL, in USD as a decimal string, or null."
                              },
                              "pnl_usd_30d": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^-?\\d+(\\.\\d+)?$",
                                "description": "30-day profit or loss including unrealized PnL, in USD as a decimal string, or null."
                              },
                              "pnl_ratio_7d": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Seven-day profit or loss divided by buy cost, or null."
                              },
                              "pnl_ratio_30d": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "30-day profit or loss divided by buy cost, or null."
                              },
                              "trades": {
                                "type": "integer",
                                "description": "Number of trades over 30 days."
                              },
                              "tokens_traded": {
                                "type": "integer",
                                "description": "Number of distinct tokens traded over 30 days."
                              },
                              "trades_per_day": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Average buys per day over the covered part of the last 30 days, or null."
                              },
                              "avg_buy_usd": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^-?\\d+(\\.\\d+)?$",
                                "description": "Average buy size over 30 days, in USD as a decimal string, or null."
                              },
                              "median_hold_minutes": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Estimated median holding time in minutes, or null."
                              },
                              "sample_size": {
                                "type": "integer",
                                "description": "Number of confirmed copy-trading wallets with measurable returns for hot, or closed token positions for other rankings."
                              },
                              "suggested_fee": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^-?\\d+(\\.\\d+)?$",
                                "description": "Suggested buy fee for copy-trading this wallet, priority fee plus landing fee, in SOL as a decimal string. A hint only; tasks accept any fee. Null when there is no suggestion; always null on bsc and robinhood."
                              }
                            },
                            "required": [
                              "rank",
                              "address",
                              "reason_tags",
                              "followers",
                              "follower_ret_median",
                              "follower_profitable_share",
                              "realized_pnl_usd",
                              "win_rate",
                              "pnl_usd_7d",
                              "pnl_usd_30d",
                              "pnl_ratio_7d",
                              "pnl_ratio_30d",
                              "trades",
                              "tokens_traded",
                              "trades_per_day",
                              "avg_buy_usd",
                              "median_hold_minutes",
                              "sample_size",
                              "suggested_fee"
                            ]
                          },
                          "description": "All ranked wallets in rank order, up to 100 rows in one response without pagination."
                        }
                      },
                      "required": [
                        "chain",
                        "type",
                        "version",
                        "data_day",
                        "as_of",
                        "metrics_as_of",
                        "items"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "wallet_rankings_unavailable: no cached result is available and the ranking could not be read.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/wallet-rankings/merged": {
      "get": {
        "operationId": "getMergedWalletRanking",
        "tags": [
          "Wallet Rankings"
        ],
        "summary": "Read the merged wallet ranking",
        "description": "One ranking per chain: every wallet on the day's hot, rising, stable_profit and long_hold rankings, listed once and tagged with the rankings it is on, ordered by realized PnL over the last 48 hours. Returns all rows without pagination. Reads are cached for five minutes. USD amounts are decimal strings, ratios are fractions and unavailable metrics are null. Use the ranking for display and individual wallet selection only. A ranking must never be used as an automatic copy-trading list. Requires the copytrade:read scope.",
        "x-apm-scopes": [
          "copytrade:read"
        ],
        "x-apm-nav-label": "Read merged ranking",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "solana",
                "bsc",
                "robinhood"
              ],
              "description": "Chain on which the wallets are ranked."
            },
            "required": true,
            "description": "Chain on which the wallets are ranked.",
            "name": "chain",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Merged ranking, or data_day null with empty items if no daily ranking has been published on this chain.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "chain": {
                          "type": "string",
                          "enum": [
                            "solana",
                            "bsc",
                            "robinhood"
                          ],
                          "description": "Chain on which the wallets are ranked."
                        },
                        "data_day": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Latest UTC data day among the merged daily rankings, or null when none has been published on this chain."
                        },
                        "as_of": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Latest UTC cutoff time among the merged daily rankings, or null before publication."
                        },
                        "metrics_as_of": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Latest UTC cutoff time for the refreshed metrics, or null if unavailable."
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "rank": {
                                "type": "integer",
                                "description": "Position in the merged ranking, starting at 1."
                              },
                              "address": {
                                "type": "string",
                                "description": "Wallet address on the selected chain."
                              },
                              "reason_tags": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Union of the wallet's reason tags across its rankings. Ignore unknown tags as new values may be added. multi_followed means at least 5 wallets that copy-trade often have followed this wallet over the last 30 days. new_wallet means the wallet is on rising as a newly observed wallet."
                              },
                              "followers": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Number of distinct wallets that followed this wallet over the last 30 days, or null if unavailable. For a wallet on hot, only confirmed copy-trading wallets are counted, matching follower_ret_median and follower_profitable_share."
                              },
                              "follower_ret_median": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Median 30-day return of confirmed copy-trading wallets with measurable returns on the tokens they followed, as a fraction. Only available for wallets on hot."
                              },
                              "follower_profitable_share": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Fraction of confirmed copy-trading wallets with measurable returns that made a profit on the tokens they followed. Only available for wallets on hot."
                              },
                              "realized_pnl_usd": {
                                "type": "string",
                                "pattern": "^-?\\d+(\\.\\d+)?$",
                                "description": "Realized profit or loss over 30 days, in USD as a decimal string."
                              },
                              "win_rate": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Fraction of closed token positions with positive realized profit, or null if unavailable."
                              },
                              "pnl_usd_7d": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^-?\\d+(\\.\\d+)?$",
                                "description": "Seven-day profit or loss including unrealized PnL, in USD as a decimal string, or null."
                              },
                              "pnl_usd_30d": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^-?\\d+(\\.\\d+)?$",
                                "description": "30-day profit or loss including unrealized PnL, in USD as a decimal string, or null."
                              },
                              "pnl_ratio_7d": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Seven-day profit or loss divided by buy cost, or null."
                              },
                              "pnl_ratio_30d": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "30-day profit or loss divided by buy cost, or null."
                              },
                              "trades": {
                                "type": "integer",
                                "description": "Number of trades over 30 days."
                              },
                              "tokens_traded": {
                                "type": "integer",
                                "description": "Number of distinct tokens traded over 30 days."
                              },
                              "trades_per_day": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Average buys per day over the covered part of the last 30 days, or null."
                              },
                              "avg_buy_usd": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^-?\\d+(\\.\\d+)?$",
                                "description": "Average buy size over 30 days, in USD as a decimal string, or null."
                              },
                              "median_hold_minutes": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Estimated median holding time in minutes, or null."
                              },
                              "sample_size": {
                                "type": "integer",
                                "description": "Number of closed token positions; for a wallet only on hot, the number of confirmed copy-trading wallets with measurable returns."
                              },
                              "suggested_fee": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^-?\\d+(\\.\\d+)?$",
                                "description": "Suggested buy fee for copy-trading this wallet, priority fee plus landing fee, in SOL as a decimal string. A hint only; tasks accept any fee. Null when there is no suggestion; always null on bsc and robinhood."
                              },
                              "types": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "hot",
                                    "rising",
                                    "stable_profit",
                                    "long_hold"
                                  ]
                                },
                                "minItems": 1,
                                "description": "Daily rankings this wallet is on: hot, rising, stable_profit or long_hold, in that order. A wallet on several rankings appears once with every type. Ignore unknown values as new ones may be added."
                              },
                              "pnl_usd_48h": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^-?\\d+(\\.\\d+)?$",
                                "description": "Realized profit or loss over data_day and the day before (UTC), in USD as a decimal string. The merged ranking is ordered by it. Null when the wallet had no trades or transfers on those two days, and for wallets from a daily version published before this metric existed. \"0.00\" means activity without realized profit or loss."
                              }
                            },
                            "required": [
                              "rank",
                              "address",
                              "reason_tags",
                              "followers",
                              "follower_ret_median",
                              "follower_profitable_share",
                              "realized_pnl_usd",
                              "win_rate",
                              "pnl_usd_7d",
                              "pnl_usd_30d",
                              "pnl_ratio_7d",
                              "pnl_ratio_30d",
                              "trades",
                              "tokens_traded",
                              "trades_per_day",
                              "avg_buy_usd",
                              "median_hold_minutes",
                              "sample_size",
                              "suggested_fee",
                              "types",
                              "pnl_usd_48h"
                            ]
                          },
                          "description": "Every wallet on today's hot, rising, stable_profit and long_hold rankings once, ordered by pnl_usd_48h from high to low, then by address; wallets without pnl_usd_48h come last. Filter by types to keep the same order for one ranking. Up to 400 rows without pagination."
                        }
                      },
                      "required": [
                        "chain",
                        "data_day",
                        "as_of",
                        "metrics_as_of",
                        "items"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "wallet_rankings_unavailable: no cached result is available and a daily ranking could not be read.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auto-sell-tasks": {
      "get": {
        "operationId": "listAutoSellTasks",
        "tags": [
          "Auto Sell Tasks"
        ],
        "summary": "List auto sell tasks",
        "description": "List all owned auto sell items, optionally filtered by chain. Current wallet coverage is resolved by the domain, including default-item exclusions and specific-item precedence. This bounded configuration list is not paginated.\n\nRequires the copytrade:read scope.",
        "x-apm-scopes": [
          "copytrade:read"
        ],
        "x-apm-nav-label": "List auto sell tasks",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "solana",
                "bsc",
                "robinhood"
              ],
              "description": "Only return items on this chain. Omit to list all chains."
            },
            "required": false,
            "description": "Only return items on this chain. Omit to list all chains.",
            "name": "chain",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Auto sell item ID."
                          },
                          "chain": {
                            "type": "string",
                            "description": "Chain of the item."
                          },
                          "name": {
                            "type": "string",
                            "description": "Auto sell task name."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "paused",
                              "deleted"
                            ],
                            "description": "Requested item state. deleted appears only in the DELETE response."
                          },
                          "version": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "Version shared by all items on this chain; also returned as the ETag when present."
                          },
                          "sync_state": {
                            "type": "string",
                            "description": "Chain-level synchronization: off (no enabled items), syncing, active (acknowledged), or publish_failed (saved; awaiting retry)."
                          },
                          "covers_new_wallets": {
                            "type": "boolean",
                            "description": "Whether this is the chain default covering future wallets."
                          },
                          "wallets": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Stored exclusions for a default item, otherwise selected wallet addresses."
                          },
                          "covered_wallets": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Currently covered active wallet addresses, resolved from the domain wallet ownership projection. Specific items take precedence over the default."
                          },
                          "rule": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "description": "Whether new qualifying buys receive protection orders."
                              },
                              "min_sell_usd": {
                                "type": "string",
                                "description": "Minimum automatic sell amount in USD for buys protected by this rule."
                              },
                              "retain_bps": {
                                "type": "number",
                                "description": "Retained share in basis points, frozen for each buy covered by this rule."
                              },
                              "scope": {
                                "type": "string",
                                "description": "Buy coverage: apm_manual or wallet_all; neither includes task buys."
                              },
                              "exits": {
                                "type": "object",
                                "additionalProperties": {},
                                "description": "Stored price/time, dev sell and migration sell exits in the shared executor snake_case format, without input range validation. Event exits retain the rule in force when each buy happened; migration sell requires a launch-curve buy and dev sell cannot be cancelled per order."
                              },
                              "sell": {
                                "type": "object",
                                "properties": {
                                  "slippage_pct": {
                                    "type": "string",
                                    "description": "Stored sell-side max slippage. \"1\" = 1%."
                                  },
                                  "gas": {
                                    "type": "object",
                                    "properties": {
                                      "priority_fee": {
                                        "type": "string",
                                        "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
                                      },
                                      "landing_fee": {
                                        "type": "string",
                                        "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
                                      },
                                      "auto_gas": {
                                        "type": "boolean",
                                        "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
                                      },
                                      "high_tip": {
                                        "type": "object",
                                        "properties": {
                                          "enabled": {
                                            "type": "boolean",
                                            "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                                          },
                                          "priority_fee": {
                                            "type": "string",
                                            "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                                          },
                                          "landing_fee": {
                                            "type": "string",
                                            "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                                          }
                                        },
                                        "additionalProperties": false,
                                        "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
                                      },
                                      "anti_mev": {
                                        "type": "boolean",
                                        "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
                                      }
                                    },
                                    "additionalProperties": false,
                                    "description": "Stored sell-side gas settings."
                                  }
                                },
                                "required": [
                                  "slippage_pct",
                                  "gas"
                                ],
                                "description": "Stored sell trade parameters for this item."
                              }
                            },
                            "required": [
                              "enabled",
                              "scope",
                              "exits",
                              "sell"
                            ],
                            "description": "Rule for future buys; existing protection orders are unchanged by edits, pause or deletion."
                          },
                          "created_at": {
                            "type": "string",
                            "description": "Creation time in RFC 3339 UTC."
                          },
                          "updated_at": {
                            "type": "string",
                            "description": "Last item update time in RFC 3339 UTC."
                          }
                        },
                        "required": [
                          "id",
                          "chain",
                          "name",
                          "status",
                          "version",
                          "sync_state",
                          "covers_new_wallets",
                          "wallets",
                          "covered_wallets",
                          "rule",
                          "created_at",
                          "updated_at"
                        ]
                      },
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error / missing_idempotency_key / unsupported_chain_feature",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "version_conflict / auto_sell_wallet_conflict / auto_sell_default_conflict / not_paused / idempotency_conflict / idempotency_in_progress",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict (malformed If-Match)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createAutoSellTask",
        "tags": [
          "Auto Sell Tasks"
        ],
        "summary": "Create a paused auto sell task",
        "description": "Create an item with rule.enabled false (the default); true is rejected. Resume to protect future buys. An explicitly selected wallet belongs to at most one item per chain; move_wallets authorizes an atomic move. Wallets selected from the default item leave it immediately, so they have no auto sell protection for new buys until this item is resumed. Optional rule.sell overrides chain defaults with public slippage_pct and gas settings; unsupported gas features return unsupported_chain_feature. For a repeating trailing ladder, set repeat: true and do.sell.amount to bps_of_remaining on each trailing exit rule. Give each tier a distinct activation gain and omit stages and goto.\n\nRequires the copytrade:write scope.",
        "x-apm-scopes": [
          "copytrade:write"
        ],
        "x-apm-nav-label": "Create a paused auto sell task",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "8–128 character key for this create intent. Reuse the same key and original body for retries within 24 hours."
            },
            "required": true,
            "description": "8–128 character key for this create intent. Reuse the same key and original body for retries within 24 hours.",
            "name": "Idempotency-Key",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutoSellTaskCreate"
              },
              "example": {
                "chain": "bsc",
                "name": "Manual buy protection",
                "covers_new_wallets": true,
                "wallets": [],
                "rule": {
                  "enabled": false,
                  "scope": "apm_manual",
                  "exits": {
                    "tpsl_configs": [
                      {
                        "price_percentage": -2000,
                        "amount_percentage": 10000,
                        "expiration": 0
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Committed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Auto sell item ID."
                        },
                        "chain": {
                          "type": "string",
                          "description": "Chain of the item."
                        },
                        "name": {
                          "type": "string",
                          "description": "Auto sell task name."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "paused",
                            "deleted"
                          ],
                          "description": "Requested item state. deleted appears only in the DELETE response."
                        },
                        "version": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Version shared by all items on this chain; also returned as the ETag when present."
                        },
                        "sync_state": {
                          "type": "string",
                          "description": "Chain-level synchronization: off (no enabled items), syncing, active (acknowledged), or publish_failed (saved; awaiting retry)."
                        },
                        "covers_new_wallets": {
                          "type": "boolean",
                          "description": "Whether this is the chain default covering future wallets."
                        },
                        "wallets": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Stored exclusions for a default item, otherwise selected wallet addresses."
                        },
                        "covered_wallets": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Currently covered active wallet addresses, resolved from the domain wallet ownership projection. Specific items take precedence over the default."
                        },
                        "rule": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "description": "Whether new qualifying buys receive protection orders."
                            },
                            "min_sell_usd": {
                              "type": "string",
                              "description": "Minimum automatic sell amount in USD for buys protected by this rule."
                            },
                            "retain_bps": {
                              "type": "number",
                              "description": "Retained share in basis points, frozen for each buy covered by this rule."
                            },
                            "scope": {
                              "type": "string",
                              "description": "Buy coverage: apm_manual or wallet_all; neither includes task buys."
                            },
                            "exits": {
                              "type": "object",
                              "additionalProperties": {},
                              "description": "Stored price/time, dev sell and migration sell exits in the shared executor snake_case format, without input range validation. Event exits retain the rule in force when each buy happened; migration sell requires a launch-curve buy and dev sell cannot be cancelled per order."
                            },
                            "sell": {
                              "type": "object",
                              "properties": {
                                "slippage_pct": {
                                  "type": "string",
                                  "description": "Stored sell-side max slippage. \"1\" = 1%."
                                },
                                "gas": {
                                  "type": "object",
                                  "properties": {
                                    "priority_fee": {
                                      "type": "string",
                                      "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
                                    },
                                    "landing_fee": {
                                      "type": "string",
                                      "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
                                    },
                                    "auto_gas": {
                                      "type": "boolean",
                                      "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
                                    },
                                    "high_tip": {
                                      "type": "object",
                                      "properties": {
                                        "enabled": {
                                          "type": "boolean",
                                          "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                                        },
                                        "priority_fee": {
                                          "type": "string",
                                          "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                                        },
                                        "landing_fee": {
                                          "type": "string",
                                          "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                                        }
                                      },
                                      "additionalProperties": false,
                                      "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
                                    },
                                    "anti_mev": {
                                      "type": "boolean",
                                      "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
                                    }
                                  },
                                  "additionalProperties": false,
                                  "description": "Stored sell-side gas settings."
                                }
                              },
                              "required": [
                                "slippage_pct",
                                "gas"
                              ],
                              "description": "Stored sell trade parameters for this item."
                            }
                          },
                          "required": [
                            "enabled",
                            "scope",
                            "exits",
                            "sell"
                          ],
                          "description": "Rule for future buys; existing protection orders are unchanged by edits, pause or deletion."
                        },
                        "created_at": {
                          "type": "string",
                          "description": "Creation time in RFC 3339 UTC."
                        },
                        "updated_at": {
                          "type": "string",
                          "description": "Last item update time in RFC 3339 UTC."
                        }
                      },
                      "required": [
                        "id",
                        "chain",
                        "name",
                        "status",
                        "version",
                        "sync_state",
                        "covers_new_wallets",
                        "wallets",
                        "covered_wallets",
                        "rule",
                        "created_at",
                        "updated_at"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "persistence": {
                          "type": "string",
                          "enum": [
                            "committed"
                          ],
                          "description": "The write has been committed to storage."
                        }
                      },
                      "required": [
                        "request_id",
                        "persistence"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "high_fee"
                                ],
                                "description": "A native fee exceeds the warning threshold."
                              },
                              "path": {
                                "type": "string",
                                "description": "Field of this resource that sets the fee: a dot path such as `gas.high_tip.landing_fee` or `buy.tiers.0.gas`, or a TaskSpec JSON Pointer for Strategy Tasks. When `sell` is omitted the sell side inherits `gas`, so a buy and a sell warning can share one path."
                              },
                              "side": {
                                "type": "string",
                                "enum": [
                                  "buy",
                                  "sell"
                                ],
                                "description": "Trading side that pays the fee."
                              },
                              "item": {
                                "type": "string",
                                "enum": [
                                  "priority_fee",
                                  "landing_fee",
                                  "total",
                                  "ratio_min",
                                  "ratio_max"
                                ],
                                "description": "Fee component, automatic total, or ratio budget bound."
                              },
                              "amount": {
                                "type": "string",
                                "description": "Fee in native tokens, as a decimal string."
                              },
                              "threshold": {
                                "type": "string",
                                "description": "Warning threshold in the same unit."
                              },
                              "unit": {
                                "type": "string",
                                "enum": [
                                  "SOL",
                                  "BNB"
                                ],
                                "description": "Native token for both amount and threshold."
                              }
                            },
                            "required": [
                              "code",
                              "path",
                              "side",
                              "item",
                              "amount",
                              "threshold",
                              "unit"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "high_fee_ratio"
                                ],
                                "description": "The automatic buy fee ratio exceeds the warning threshold."
                              },
                              "path": {
                                "type": "string",
                                "description": "Field of this resource that sets the fee: a dot path such as `gas.high_tip.landing_fee` or `buy.tiers.0.gas`, or a TaskSpec JSON Pointer for Strategy Tasks. When `sell` is omitted the sell side inherits `gas`, so a buy and a sell warning can share one path."
                              },
                              "bps": {
                                "type": "number",
                                "description": "Buy fee ratio in basis points."
                              },
                              "threshold_bps": {
                                "type": "number",
                                "description": "Warning threshold in basis points."
                              }
                            },
                            "required": [
                              "code",
                              "path",
                              "bps",
                              "threshold_bps"
                            ]
                          }
                        ]
                      },
                      "description": "Advisory fees from the saved configuration. The write succeeded. No confirmation or retry is needed. Empty when no threshold is exceeded."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error / missing_idempotency_key / unsupported_chain_feature",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "version_conflict / auto_sell_wallet_conflict / auto_sell_default_conflict / not_paused / idempotency_conflict / idempotency_in_progress",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict (malformed If-Match)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auto-sell-tasks/{id}": {
      "get": {
        "operationId": "getAutoSellTask",
        "tags": [
          "Auto Sell Tasks"
        ],
        "summary": "Retrieve an auto sell task",
        "description": "Find the globally unique item ID across chains within the authenticated account. Missing and foreign items return not_found.\n\nRequires the copytrade:read scope.",
        "x-apm-scopes": [
          "copytrade:read"
        ],
        "x-apm-nav-label": "Retrieve an auto sell task",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "Globally unique auto sell item ID."
            },
            "required": true,
            "description": "Globally unique auto sell item ID.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Auto sell item ID."
                        },
                        "chain": {
                          "type": "string",
                          "description": "Chain of the item."
                        },
                        "name": {
                          "type": "string",
                          "description": "Auto sell task name."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "paused",
                            "deleted"
                          ],
                          "description": "Requested item state. deleted appears only in the DELETE response."
                        },
                        "version": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Version shared by all items on this chain; also returned as the ETag when present."
                        },
                        "sync_state": {
                          "type": "string",
                          "description": "Chain-level synchronization: off (no enabled items), syncing, active (acknowledged), or publish_failed (saved; awaiting retry)."
                        },
                        "covers_new_wallets": {
                          "type": "boolean",
                          "description": "Whether this is the chain default covering future wallets."
                        },
                        "wallets": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Stored exclusions for a default item, otherwise selected wallet addresses."
                        },
                        "covered_wallets": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Currently covered active wallet addresses, resolved from the domain wallet ownership projection. Specific items take precedence over the default."
                        },
                        "rule": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "description": "Whether new qualifying buys receive protection orders."
                            },
                            "min_sell_usd": {
                              "type": "string",
                              "description": "Minimum automatic sell amount in USD for buys protected by this rule."
                            },
                            "retain_bps": {
                              "type": "number",
                              "description": "Retained share in basis points, frozen for each buy covered by this rule."
                            },
                            "scope": {
                              "type": "string",
                              "description": "Buy coverage: apm_manual or wallet_all; neither includes task buys."
                            },
                            "exits": {
                              "type": "object",
                              "additionalProperties": {},
                              "description": "Stored price/time, dev sell and migration sell exits in the shared executor snake_case format, without input range validation. Event exits retain the rule in force when each buy happened; migration sell requires a launch-curve buy and dev sell cannot be cancelled per order."
                            },
                            "sell": {
                              "type": "object",
                              "properties": {
                                "slippage_pct": {
                                  "type": "string",
                                  "description": "Stored sell-side max slippage. \"1\" = 1%."
                                },
                                "gas": {
                                  "type": "object",
                                  "properties": {
                                    "priority_fee": {
                                      "type": "string",
                                      "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
                                    },
                                    "landing_fee": {
                                      "type": "string",
                                      "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
                                    },
                                    "auto_gas": {
                                      "type": "boolean",
                                      "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
                                    },
                                    "high_tip": {
                                      "type": "object",
                                      "properties": {
                                        "enabled": {
                                          "type": "boolean",
                                          "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                                        },
                                        "priority_fee": {
                                          "type": "string",
                                          "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                                        },
                                        "landing_fee": {
                                          "type": "string",
                                          "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                                        }
                                      },
                                      "additionalProperties": false,
                                      "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
                                    },
                                    "anti_mev": {
                                      "type": "boolean",
                                      "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
                                    }
                                  },
                                  "additionalProperties": false,
                                  "description": "Stored sell-side gas settings."
                                }
                              },
                              "required": [
                                "slippage_pct",
                                "gas"
                              ],
                              "description": "Stored sell trade parameters for this item."
                            }
                          },
                          "required": [
                            "enabled",
                            "scope",
                            "exits",
                            "sell"
                          ],
                          "description": "Rule for future buys; existing protection orders are unchanged by edits, pause or deletion."
                        },
                        "created_at": {
                          "type": "string",
                          "description": "Creation time in RFC 3339 UTC."
                        },
                        "updated_at": {
                          "type": "string",
                          "description": "Last item update time in RFC 3339 UTC."
                        }
                      },
                      "required": [
                        "id",
                        "chain",
                        "name",
                        "status",
                        "version",
                        "sync_state",
                        "covers_new_wallets",
                        "wallets",
                        "covered_wallets",
                        "rule",
                        "created_at",
                        "updated_at"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error / missing_idempotency_key / unsupported_chain_feature",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "version_conflict / auto_sell_wallet_conflict / auto_sell_default_conflict / not_paused / idempotency_conflict / idempotency_in_progress",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict (malformed If-Match)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateAutoSellTask",
        "tags": [
          "Auto Sell Tasks"
        ],
        "summary": "Update an auto sell task",
        "description": "Merge into the current item, then validate and update the full item through the domain. rule.sell sub-fields merge into the stored public sell parameters; omitting or removing rule.sell keeps the stored parameters. Name-only changes work while enabled. Other changes require a paused item and chain sync_state off or active. The domain performs chain-level CAS; concurrent conflicts return 409 version_conflict. Changes affect future buys only. For a repeating trailing ladder, set repeat: true and do.sell.amount to bps_of_remaining on each trailing exit rule. Give each tier a distinct activation gain and omit stages and goto.\n\nRequires the copytrade:write scope.",
        "x-apm-scopes": [
          "copytrade:write"
        ],
        "x-apm-nav-label": "Update an auto sell task",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "Globally unique auto sell item ID."
            },
            "required": true,
            "description": "Globally unique auto sell item ID.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "Current quoted chain version from ETag. All items on the chain share this version; re-read after a conflict."
            },
            "required": true,
            "description": "Current quoted chain version from ETag. All items on the chain share this version; re-read after a conflict.",
            "name": "If-Match",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/merge-patch+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {},
                "description": "JSON Merge Patch of name, covers_new_wallets, wallets and rule.scope/exits/sell/min_sell_usd/retain_bps. Set rule.min_sell_usd to null to restore the default for future buys, or rule.retain_bps to null to turn retention off for future buys. Sell sub-fields merge into the stored public sell parameters; omitted sell keeps the stored parameters. Arrays replace wholesale; null removes a field. move_wallets is a per-request intent, default false. id, chain, version, timestamps and rule.enabled cannot be patched."
              },
              "example": {
                "name": "Updated protection"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Committed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Auto sell item ID."
                        },
                        "chain": {
                          "type": "string",
                          "description": "Chain of the item."
                        },
                        "name": {
                          "type": "string",
                          "description": "Auto sell task name."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "paused",
                            "deleted"
                          ],
                          "description": "Requested item state. deleted appears only in the DELETE response."
                        },
                        "version": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Version shared by all items on this chain; also returned as the ETag when present."
                        },
                        "sync_state": {
                          "type": "string",
                          "description": "Chain-level synchronization: off (no enabled items), syncing, active (acknowledged), or publish_failed (saved; awaiting retry)."
                        },
                        "covers_new_wallets": {
                          "type": "boolean",
                          "description": "Whether this is the chain default covering future wallets."
                        },
                        "wallets": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Stored exclusions for a default item, otherwise selected wallet addresses."
                        },
                        "covered_wallets": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Currently covered active wallet addresses, resolved from the domain wallet ownership projection. Specific items take precedence over the default."
                        },
                        "rule": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "description": "Whether new qualifying buys receive protection orders."
                            },
                            "min_sell_usd": {
                              "type": "string",
                              "description": "Minimum automatic sell amount in USD for buys protected by this rule."
                            },
                            "retain_bps": {
                              "type": "number",
                              "description": "Retained share in basis points, frozen for each buy covered by this rule."
                            },
                            "scope": {
                              "type": "string",
                              "description": "Buy coverage: apm_manual or wallet_all; neither includes task buys."
                            },
                            "exits": {
                              "type": "object",
                              "additionalProperties": {},
                              "description": "Stored price/time, dev sell and migration sell exits in the shared executor snake_case format, without input range validation. Event exits retain the rule in force when each buy happened; migration sell requires a launch-curve buy and dev sell cannot be cancelled per order."
                            },
                            "sell": {
                              "type": "object",
                              "properties": {
                                "slippage_pct": {
                                  "type": "string",
                                  "description": "Stored sell-side max slippage. \"1\" = 1%."
                                },
                                "gas": {
                                  "type": "object",
                                  "properties": {
                                    "priority_fee": {
                                      "type": "string",
                                      "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
                                    },
                                    "landing_fee": {
                                      "type": "string",
                                      "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
                                    },
                                    "auto_gas": {
                                      "type": "boolean",
                                      "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
                                    },
                                    "high_tip": {
                                      "type": "object",
                                      "properties": {
                                        "enabled": {
                                          "type": "boolean",
                                          "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                                        },
                                        "priority_fee": {
                                          "type": "string",
                                          "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                                        },
                                        "landing_fee": {
                                          "type": "string",
                                          "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                                        }
                                      },
                                      "additionalProperties": false,
                                      "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
                                    },
                                    "anti_mev": {
                                      "type": "boolean",
                                      "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
                                    }
                                  },
                                  "additionalProperties": false,
                                  "description": "Stored sell-side gas settings."
                                }
                              },
                              "required": [
                                "slippage_pct",
                                "gas"
                              ],
                              "description": "Stored sell trade parameters for this item."
                            }
                          },
                          "required": [
                            "enabled",
                            "scope",
                            "exits",
                            "sell"
                          ],
                          "description": "Rule for future buys; existing protection orders are unchanged by edits, pause or deletion."
                        },
                        "created_at": {
                          "type": "string",
                          "description": "Creation time in RFC 3339 UTC."
                        },
                        "updated_at": {
                          "type": "string",
                          "description": "Last item update time in RFC 3339 UTC."
                        }
                      },
                      "required": [
                        "id",
                        "chain",
                        "name",
                        "status",
                        "version",
                        "sync_state",
                        "covers_new_wallets",
                        "wallets",
                        "covered_wallets",
                        "rule",
                        "created_at",
                        "updated_at"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "persistence": {
                          "type": "string",
                          "enum": [
                            "committed"
                          ],
                          "description": "The write has been committed to storage."
                        }
                      },
                      "required": [
                        "request_id",
                        "persistence"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "high_fee"
                                ],
                                "description": "A native fee exceeds the warning threshold."
                              },
                              "path": {
                                "type": "string",
                                "description": "Field of this resource that sets the fee: a dot path such as `gas.high_tip.landing_fee` or `buy.tiers.0.gas`, or a TaskSpec JSON Pointer for Strategy Tasks. When `sell` is omitted the sell side inherits `gas`, so a buy and a sell warning can share one path."
                              },
                              "side": {
                                "type": "string",
                                "enum": [
                                  "buy",
                                  "sell"
                                ],
                                "description": "Trading side that pays the fee."
                              },
                              "item": {
                                "type": "string",
                                "enum": [
                                  "priority_fee",
                                  "landing_fee",
                                  "total",
                                  "ratio_min",
                                  "ratio_max"
                                ],
                                "description": "Fee component, automatic total, or ratio budget bound."
                              },
                              "amount": {
                                "type": "string",
                                "description": "Fee in native tokens, as a decimal string."
                              },
                              "threshold": {
                                "type": "string",
                                "description": "Warning threshold in the same unit."
                              },
                              "unit": {
                                "type": "string",
                                "enum": [
                                  "SOL",
                                  "BNB"
                                ],
                                "description": "Native token for both amount and threshold."
                              }
                            },
                            "required": [
                              "code",
                              "path",
                              "side",
                              "item",
                              "amount",
                              "threshold",
                              "unit"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "high_fee_ratio"
                                ],
                                "description": "The automatic buy fee ratio exceeds the warning threshold."
                              },
                              "path": {
                                "type": "string",
                                "description": "Field of this resource that sets the fee: a dot path such as `gas.high_tip.landing_fee` or `buy.tiers.0.gas`, or a TaskSpec JSON Pointer for Strategy Tasks. When `sell` is omitted the sell side inherits `gas`, so a buy and a sell warning can share one path."
                              },
                              "bps": {
                                "type": "number",
                                "description": "Buy fee ratio in basis points."
                              },
                              "threshold_bps": {
                                "type": "number",
                                "description": "Warning threshold in basis points."
                              }
                            },
                            "required": [
                              "code",
                              "path",
                              "bps",
                              "threshold_bps"
                            ]
                          }
                        ]
                      },
                      "description": "Advisory fees from the saved configuration. The write succeeded. No confirmation or retry is needed. Empty when no threshold is exceeded."
                    }
                  },
                  "required": [
                    "data",
                    "meta",
                    "warnings"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error / missing_idempotency_key / unsupported_chain_feature",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "version_conflict / auto_sell_wallet_conflict / auto_sell_default_conflict / not_paused / idempotency_conflict / idempotency_in_progress",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict (malformed If-Match)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteAutoSellTask",
        "tags": [
          "Auto Sell Tasks"
        ],
        "summary": "Delete an auto sell task",
        "description": "Remove the item. Existing protection orders remain. Released wallets fall back to the chain default, when present. The response identifies the removed item; subsequent reads or deletes return not_found. No close_position option.\n\nRequires the copytrade:write scope.",
        "x-apm-scopes": [
          "copytrade:write"
        ],
        "x-apm-nav-label": "Delete an auto sell task",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "Globally unique auto sell item ID."
            },
            "required": true,
            "description": "Globally unique auto sell item ID.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "Current quoted chain version from ETag. All items on the chain share this version; re-read after a conflict."
            },
            "required": true,
            "description": "Current quoted chain version from ETag. All items on the chain share this version; re-read after a conflict.",
            "name": "If-Match",
            "in": "header"
          }
        ],
        "responses": {
          "200": {
            "description": "Committed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Auto sell item ID."
                        },
                        "chain": {
                          "type": "string",
                          "description": "Chain of the item."
                        },
                        "name": {
                          "type": "string",
                          "description": "Auto sell task name."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "paused",
                            "deleted"
                          ],
                          "description": "Requested item state. deleted appears only in the DELETE response."
                        },
                        "version": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Version shared by all items on this chain; also returned as the ETag when present."
                        },
                        "sync_state": {
                          "type": "string",
                          "description": "Chain-level synchronization: off (no enabled items), syncing, active (acknowledged), or publish_failed (saved; awaiting retry)."
                        },
                        "covers_new_wallets": {
                          "type": "boolean",
                          "description": "Whether this is the chain default covering future wallets."
                        },
                        "wallets": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Stored exclusions for a default item, otherwise selected wallet addresses."
                        },
                        "covered_wallets": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Currently covered active wallet addresses, resolved from the domain wallet ownership projection. Specific items take precedence over the default."
                        },
                        "rule": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "description": "Whether new qualifying buys receive protection orders."
                            },
                            "min_sell_usd": {
                              "type": "string",
                              "description": "Minimum automatic sell amount in USD for buys protected by this rule."
                            },
                            "retain_bps": {
                              "type": "number",
                              "description": "Retained share in basis points, frozen for each buy covered by this rule."
                            },
                            "scope": {
                              "type": "string",
                              "description": "Buy coverage: apm_manual or wallet_all; neither includes task buys."
                            },
                            "exits": {
                              "type": "object",
                              "additionalProperties": {},
                              "description": "Stored price/time, dev sell and migration sell exits in the shared executor snake_case format, without input range validation. Event exits retain the rule in force when each buy happened; migration sell requires a launch-curve buy and dev sell cannot be cancelled per order."
                            },
                            "sell": {
                              "type": "object",
                              "properties": {
                                "slippage_pct": {
                                  "type": "string",
                                  "description": "Stored sell-side max slippage. \"1\" = 1%."
                                },
                                "gas": {
                                  "type": "object",
                                  "properties": {
                                    "priority_fee": {
                                      "type": "string",
                                      "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
                                    },
                                    "landing_fee": {
                                      "type": "string",
                                      "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
                                    },
                                    "auto_gas": {
                                      "type": "boolean",
                                      "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
                                    },
                                    "high_tip": {
                                      "type": "object",
                                      "properties": {
                                        "enabled": {
                                          "type": "boolean",
                                          "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                                        },
                                        "priority_fee": {
                                          "type": "string",
                                          "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                                        },
                                        "landing_fee": {
                                          "type": "string",
                                          "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                                        }
                                      },
                                      "additionalProperties": false,
                                      "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
                                    },
                                    "anti_mev": {
                                      "type": "boolean",
                                      "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
                                    }
                                  },
                                  "additionalProperties": false,
                                  "description": "Stored sell-side gas settings."
                                }
                              },
                              "required": [
                                "slippage_pct",
                                "gas"
                              ],
                              "description": "Stored sell trade parameters for this item."
                            }
                          },
                          "required": [
                            "enabled",
                            "scope",
                            "exits",
                            "sell"
                          ],
                          "description": "Rule for future buys; existing protection orders are unchanged by edits, pause or deletion."
                        },
                        "created_at": {
                          "type": "string",
                          "description": "Creation time in RFC 3339 UTC."
                        },
                        "updated_at": {
                          "type": "string",
                          "description": "Last item update time in RFC 3339 UTC."
                        }
                      },
                      "required": [
                        "id",
                        "chain",
                        "name",
                        "status",
                        "version",
                        "sync_state",
                        "covers_new_wallets",
                        "wallets",
                        "covered_wallets",
                        "rule",
                        "created_at",
                        "updated_at"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "persistence": {
                          "type": "string",
                          "enum": [
                            "committed"
                          ],
                          "description": "The change is committed to storage; sync_state reports executor synchronization separately."
                        }
                      },
                      "required": [
                        "request_id",
                        "persistence"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error / missing_idempotency_key / unsupported_chain_feature",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "version_conflict / auto_sell_wallet_conflict / auto_sell_default_conflict / not_paused / idempotency_conflict / idempotency_in_progress",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict (malformed If-Match)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auto-sell-tasks/{id}/pause": {
      "post": {
        "operationId": "pauseAutoSellTask",
        "tags": [
          "Auto Sell Tasks"
        ],
        "summary": "Pause an auto sell task",
        "description": "Disable protection for future buys. Existing orders remain. Already-paused items return unchanged without a new domain write or version increment.\n\nRequires the copytrade:write scope.",
        "x-apm-scopes": [
          "copytrade:write"
        ],
        "x-apm-nav-label": "Pause an auto sell task",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "Globally unique auto sell item ID."
            },
            "required": true,
            "description": "Globally unique auto sell item ID.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "Current quoted chain version from ETag. All items on the chain share this version; re-read after a conflict."
            },
            "required": true,
            "description": "Current quoted chain version from ETag. All items on the chain share this version; re-read after a conflict.",
            "name": "If-Match",
            "in": "header"
          }
        ],
        "responses": {
          "200": {
            "description": "Committed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Auto sell item ID."
                        },
                        "chain": {
                          "type": "string",
                          "description": "Chain of the item."
                        },
                        "name": {
                          "type": "string",
                          "description": "Auto sell task name."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "paused",
                            "deleted"
                          ],
                          "description": "Requested item state. deleted appears only in the DELETE response."
                        },
                        "version": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Version shared by all items on this chain; also returned as the ETag when present."
                        },
                        "sync_state": {
                          "type": "string",
                          "description": "Chain-level synchronization: off (no enabled items), syncing, active (acknowledged), or publish_failed (saved; awaiting retry)."
                        },
                        "covers_new_wallets": {
                          "type": "boolean",
                          "description": "Whether this is the chain default covering future wallets."
                        },
                        "wallets": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Stored exclusions for a default item, otherwise selected wallet addresses."
                        },
                        "covered_wallets": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Currently covered active wallet addresses, resolved from the domain wallet ownership projection. Specific items take precedence over the default."
                        },
                        "rule": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "description": "Whether new qualifying buys receive protection orders."
                            },
                            "min_sell_usd": {
                              "type": "string",
                              "description": "Minimum automatic sell amount in USD for buys protected by this rule."
                            },
                            "retain_bps": {
                              "type": "number",
                              "description": "Retained share in basis points, frozen for each buy covered by this rule."
                            },
                            "scope": {
                              "type": "string",
                              "description": "Buy coverage: apm_manual or wallet_all; neither includes task buys."
                            },
                            "exits": {
                              "type": "object",
                              "additionalProperties": {},
                              "description": "Stored price/time, dev sell and migration sell exits in the shared executor snake_case format, without input range validation. Event exits retain the rule in force when each buy happened; migration sell requires a launch-curve buy and dev sell cannot be cancelled per order."
                            },
                            "sell": {
                              "type": "object",
                              "properties": {
                                "slippage_pct": {
                                  "type": "string",
                                  "description": "Stored sell-side max slippage. \"1\" = 1%."
                                },
                                "gas": {
                                  "type": "object",
                                  "properties": {
                                    "priority_fee": {
                                      "type": "string",
                                      "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
                                    },
                                    "landing_fee": {
                                      "type": "string",
                                      "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
                                    },
                                    "auto_gas": {
                                      "type": "boolean",
                                      "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
                                    },
                                    "high_tip": {
                                      "type": "object",
                                      "properties": {
                                        "enabled": {
                                          "type": "boolean",
                                          "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                                        },
                                        "priority_fee": {
                                          "type": "string",
                                          "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                                        },
                                        "landing_fee": {
                                          "type": "string",
                                          "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                                        }
                                      },
                                      "additionalProperties": false,
                                      "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
                                    },
                                    "anti_mev": {
                                      "type": "boolean",
                                      "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
                                    }
                                  },
                                  "additionalProperties": false,
                                  "description": "Stored sell-side gas settings."
                                }
                              },
                              "required": [
                                "slippage_pct",
                                "gas"
                              ],
                              "description": "Stored sell trade parameters for this item."
                            }
                          },
                          "required": [
                            "enabled",
                            "scope",
                            "exits",
                            "sell"
                          ],
                          "description": "Rule for future buys; existing protection orders are unchanged by edits, pause or deletion."
                        },
                        "created_at": {
                          "type": "string",
                          "description": "Creation time in RFC 3339 UTC."
                        },
                        "updated_at": {
                          "type": "string",
                          "description": "Last item update time in RFC 3339 UTC."
                        }
                      },
                      "required": [
                        "id",
                        "chain",
                        "name",
                        "status",
                        "version",
                        "sync_state",
                        "covers_new_wallets",
                        "wallets",
                        "covered_wallets",
                        "rule",
                        "created_at",
                        "updated_at"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "persistence": {
                          "type": "string",
                          "enum": [
                            "committed"
                          ],
                          "description": "The change is committed to storage; sync_state reports executor synchronization separately."
                        }
                      },
                      "required": [
                        "request_id",
                        "persistence"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error / missing_idempotency_key / unsupported_chain_feature",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "version_conflict / auto_sell_wallet_conflict / auto_sell_default_conflict / not_paused / idempotency_conflict / idempotency_in_progress",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict (malformed If-Match)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auto-sell-tasks/{id}/resume": {
      "post": {
        "operationId": "resumeAutoSellTask",
        "tags": [
          "Auto Sell Tasks"
        ],
        "summary": "Resume an auto sell task",
        "description": "Enable protection for future qualifying buys after domain validation of exits and chain execution support. Already-enabled items return unchanged; inspect sync_state for executor synchronization.\n\nRequires the copytrade:write scope.",
        "x-apm-scopes": [
          "copytrade:write"
        ],
        "x-apm-nav-label": "Resume an auto sell task",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "Globally unique auto sell item ID."
            },
            "required": true,
            "description": "Globally unique auto sell item ID.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "Current quoted chain version from ETag. All items on the chain share this version; re-read after a conflict."
            },
            "required": true,
            "description": "Current quoted chain version from ETag. All items on the chain share this version; re-read after a conflict.",
            "name": "If-Match",
            "in": "header"
          }
        ],
        "responses": {
          "200": {
            "description": "Committed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Auto sell item ID."
                        },
                        "chain": {
                          "type": "string",
                          "description": "Chain of the item."
                        },
                        "name": {
                          "type": "string",
                          "description": "Auto sell task name."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "paused",
                            "deleted"
                          ],
                          "description": "Requested item state. deleted appears only in the DELETE response."
                        },
                        "version": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Version shared by all items on this chain; also returned as the ETag when present."
                        },
                        "sync_state": {
                          "type": "string",
                          "description": "Chain-level synchronization: off (no enabled items), syncing, active (acknowledged), or publish_failed (saved; awaiting retry)."
                        },
                        "covers_new_wallets": {
                          "type": "boolean",
                          "description": "Whether this is the chain default covering future wallets."
                        },
                        "wallets": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Stored exclusions for a default item, otherwise selected wallet addresses."
                        },
                        "covered_wallets": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Currently covered active wallet addresses, resolved from the domain wallet ownership projection. Specific items take precedence over the default."
                        },
                        "rule": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "description": "Whether new qualifying buys receive protection orders."
                            },
                            "min_sell_usd": {
                              "type": "string",
                              "description": "Minimum automatic sell amount in USD for buys protected by this rule."
                            },
                            "retain_bps": {
                              "type": "number",
                              "description": "Retained share in basis points, frozen for each buy covered by this rule."
                            },
                            "scope": {
                              "type": "string",
                              "description": "Buy coverage: apm_manual or wallet_all; neither includes task buys."
                            },
                            "exits": {
                              "type": "object",
                              "additionalProperties": {},
                              "description": "Stored price/time, dev sell and migration sell exits in the shared executor snake_case format, without input range validation. Event exits retain the rule in force when each buy happened; migration sell requires a launch-curve buy and dev sell cannot be cancelled per order."
                            },
                            "sell": {
                              "type": "object",
                              "properties": {
                                "slippage_pct": {
                                  "type": "string",
                                  "description": "Stored sell-side max slippage. \"1\" = 1%."
                                },
                                "gas": {
                                  "type": "object",
                                  "properties": {
                                    "priority_fee": {
                                      "type": "string",
                                      "description": "Priority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route."
                                    },
                                    "landing_fee": {
                                      "type": "string",
                                      "description": "Landing tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers."
                                    },
                                    "auto_gas": {
                                      "type": "boolean",
                                      "description": "Automatic gas estimation. Arc defaults to true; set false to use priority_fee."
                                    },
                                    "high_tip": {
                                      "type": "object",
                                      "properties": {
                                        "enabled": {
                                          "type": "boolean",
                                          "description": "Enable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto."
                                        },
                                        "priority_fee": {
                                          "type": "string",
                                          "description": "Priority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted."
                                        },
                                        "landing_fee": {
                                          "type": "string",
                                          "description": "Landing tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers."
                                        }
                                      },
                                      "additionalProperties": false,
                                      "description": "Alternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc."
                                    },
                                    "anti_mev": {
                                      "type": "boolean",
                                      "description": "Send the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV."
                                    }
                                  },
                                  "additionalProperties": false,
                                  "description": "Stored sell-side gas settings."
                                }
                              },
                              "required": [
                                "slippage_pct",
                                "gas"
                              ],
                              "description": "Stored sell trade parameters for this item."
                            }
                          },
                          "required": [
                            "enabled",
                            "scope",
                            "exits",
                            "sell"
                          ],
                          "description": "Rule for future buys; existing protection orders are unchanged by edits, pause or deletion."
                        },
                        "created_at": {
                          "type": "string",
                          "description": "Creation time in RFC 3339 UTC."
                        },
                        "updated_at": {
                          "type": "string",
                          "description": "Last item update time in RFC 3339 UTC."
                        }
                      },
                      "required": [
                        "id",
                        "chain",
                        "name",
                        "status",
                        "version",
                        "sync_state",
                        "covers_new_wallets",
                        "wallets",
                        "covered_wallets",
                        "rule",
                        "created_at",
                        "updated_at"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "persistence": {
                          "type": "string",
                          "enum": [
                            "committed"
                          ],
                          "description": "The change is committed to storage; sync_state reports executor synchronization separately."
                        }
                      },
                      "required": [
                        "request_id",
                        "persistence"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error / missing_idempotency_key / unsupported_chain_feature",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "version_conflict / auto_sell_wallet_conflict / auto_sell_default_conflict / not_paused / idempotency_conflict / idempotency_in_progress",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict (malformed If-Match)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auto-sell-tasks/{id}/protection-orders": {
      "get": {
        "operationId": "listAutoSellTaskProtectionOrders",
        "tags": [
          "Auto Sell Tasks"
        ],
        "summary": "List auto sell protection orders",
        "description": "Read buy-protection groups for the item’s currently covered wallets, including history that now belongs to these wallets. External buys have no APM buy order ID. Cursors bind the account, item, wallet coverage and filters. Existing orders survive configuration edits and pause; empty wallet coverage yields an empty page.\n\nRequires the copytrade:read scope.",
        "x-apm-scopes": [
          "copytrade:read"
        ],
        "x-apm-nav-label": "List auto sell protection orders",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "Globally unique auto sell item ID."
            },
            "required": true,
            "description": "Globally unique auto sell item ID.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "description": "Only return protection groups for this token address."
            },
            "required": false,
            "description": "Only return protection groups for this token address.",
            "name": "token",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "open",
                "all"
              ],
              "default": "open",
              "description": "open returns only live exit rows; all also includes completed, cancelled and failed exits."
            },
            "required": false,
            "description": "open returns only live exit rows; all also includes completed, cancelled and failed exits.",
            "name": "status",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20,
              "description": "Maximum protection groups per page, from 1 to 50."
            },
            "required": false,
            "description": "Maximum protection groups per page, from 1 to 50.",
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Opaque next_cursor for this account, item and filter."
            },
            "required": false,
            "description": "Opaque next_cursor for this account, item and filter.",
            "name": "cursor",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "protection_id": {
                            "type": "string",
                            "description": "Protected buy ID, grouping its exit orders."
                          },
                          "chain": {
                            "type": "string",
                            "description": "Execution chain."
                          },
                          "wallet": {
                            "type": "string",
                            "description": "Covered wallet address."
                          },
                          "token": {
                            "type": "string",
                            "description": "Protected token address."
                          },
                          "buy_tx_hash": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Protected buy transaction, or null when unavailable."
                          },
                          "buy_order_id": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "APM buy order ID, or null for external buys."
                          },
                          "created_at": {
                            "type": "number",
                            "description": "Protection time as Unix milliseconds; groups are returned newest first."
                          },
                          "exits": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "order_id": {
                                  "type": "string",
                                  "description": "Exit order ID."
                                },
                                "source": {
                                  "type": "string",
                                  "description": "order or segmented-parent. Segmented parents can only be cancelled as a whole."
                                },
                                "order_type": {
                                  "type": "string",
                                  "description": "Stored order type; trailing-stop for trailing ladder parents, empty for segmented take-profit parents."
                                },
                                "status": {
                                  "type": "string",
                                  "description": "Stored order status."
                                },
                                "error_msg": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Recorded completion or failure reason, or null."
                                },
                                "trigger_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Recorded trigger type, or null."
                                },
                                "amount_bps": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Recorded sell fraction in basis points. Repeating trailing sells use the ladder remainder; ordinary price exits use the initial buy. Null when absent."
                                },
                                "expires_at": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Expiration as Unix milliseconds, or null for no expiration."
                                },
                                "price": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "direction": {
                                      "type": "string",
                                      "description": "above or below."
                                    },
                                    "price_usd": {
                                      "type": "string",
                                      "description": "Trigger price in USD."
                                    }
                                  },
                                  "required": [
                                    "direction",
                                    "price_usd"
                                  ],
                                  "description": "Fixed-price trigger, or null."
                                },
                                "trailing": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "threshold_bps": {
                                      "type": "number",
                                      "description": "Activation threshold in basis points."
                                    },
                                    "stop_bps": {
                                      "type": "number",
                                      "description": "Trailing distance in basis points."
                                    },
                                    "activated": {
                                      "type": "boolean",
                                      "description": "Whether activation has occurred."
                                    },
                                    "activation_price_usd": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "Activation price in USD, or null."
                                    },
                                    "highest_price_usd": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "Highest observed price in USD, or null."
                                    },
                                    "lock_bps": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "description": "Break-even locked gain in basis points, or null."
                                    },
                                    "fixed_stop_price_usd": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "Break-even fixed stop price in USD, or null."
                                    }
                                  },
                                  "required": [
                                    "threshold_bps",
                                    "stop_bps",
                                    "activated",
                                    "activation_price_usd",
                                    "highest_price_usd",
                                    "lock_bps",
                                    "fixed_stop_price_usd"
                                  ],
                                  "description": "Trailing or break-even trigger, or null."
                                },
                                "execute_at": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Flash-sell execution time as Unix milliseconds, or null."
                                },
                                "segmented": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "segments": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "price_percentage": {
                                            "type": "number",
                                            "description": "Segment price change in basis points."
                                          },
                                          "amount_percentage": {
                                            "type": "number",
                                            "description": "Segment sell fraction in basis points."
                                          },
                                          "expiration": {
                                            "type": "number",
                                            "description": "Segment lifetime in milliseconds."
                                          },
                                          "timeout_sell_enabled": {
                                            "type": "boolean",
                                            "description": "Whether to sell when this segment expires."
                                          },
                                          "timeout_amount_percentage": {
                                            "type": "number",
                                            "description": "Timeout sell fraction in basis points."
                                          }
                                        },
                                        "required": [
                                          "price_percentage",
                                          "amount_percentage",
                                          "expiration",
                                          "timeout_sell_enabled",
                                          "timeout_amount_percentage"
                                        ]
                                      },
                                      "description": "Stored segment definitions."
                                    },
                                    "current_segment": {
                                      "type": "number",
                                      "description": "Current segment index."
                                    },
                                    "total_amount": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "Recorded total token amount, or null."
                                    },
                                    "remaining_amount": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "Recorded remaining token amount, or null."
                                    }
                                  },
                                  "required": [
                                    "segments",
                                    "current_segment",
                                    "total_amount",
                                    "remaining_amount"
                                  ],
                                  "description": "Segmented take-profit parent, or null."
                                },
                                "conditions": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "f": {
                                        "type": "string",
                                        "description": "Condition field from the strategy catalog."
                                      },
                                      "op": {
                                        "type": "string",
                                        "description": "Comparison operator."
                                      },
                                      "v": {
                                        "type": "number",
                                        "description": "Comparison value in the field unit."
                                      }
                                    },
                                    "required": [
                                      "f",
                                      "op",
                                      "v"
                                    ]
                                  },
                                  "description": "Stored exit-condition leaves, or null."
                                },
                                "trailing_fire": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "description": "One-based trigger number across all tiers of this buy’s repeating trailing ladder, when recorded."
                                },
                                "exit_ref": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "JSON pointer into the frozen exits definition, or null."
                                },
                                "exit_rule_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Stable rule ID, or null."
                                },
                                "exit_stage_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Stage ID, or null for the initial stage."
                                },
                                "exit_goto": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Next stage after execution, or null."
                                },
                                "parent_order_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Parent order ID, or null."
                                },
                                "tx_hash": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Exit transaction hash or signature, or null."
                                },
                                "created_at": {
                                  "type": "number",
                                  "description": "Creation time as Unix milliseconds."
                                },
                                "updated_at": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Last update as Unix milliseconds, or null."
                                },
                                "cancellable": {
                                  "type": "boolean",
                                  "description": "Whether the domain currently allows user cancellation; this resource itself only reads orders."
                                },
                                "sold_token": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Sold token quantity in display units, or null when unavailable."
                                },
                                "received_quote": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Received quote-currency quantity in display units, or null."
                                },
                                "received_usd": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Received value in USD, or null when amount or price is unavailable."
                                }
                              },
                              "required": [
                                "order_id",
                                "source",
                                "order_type",
                                "status",
                                "error_msg",
                                "trigger_type",
                                "amount_bps",
                                "expires_at",
                                "price",
                                "trailing",
                                "execute_at",
                                "segmented",
                                "conditions",
                                "exit_ref",
                                "exit_rule_id",
                                "exit_stage_id",
                                "exit_goto",
                                "parent_order_id",
                                "tx_hash",
                                "created_at",
                                "updated_at",
                                "cancellable",
                                "sold_token",
                                "received_quote",
                                "received_usd"
                              ]
                            },
                            "description": "Protection exit rows for this buy."
                          }
                        },
                        "required": [
                          "protection_id",
                          "chain",
                          "wallet",
                          "token",
                          "buy_tx_hash",
                          "buy_order_id",
                          "created_at",
                          "exits"
                        ]
                      },
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "next_cursor": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Cursor for the next page, or null when exhausted."
                        }
                      },
                      "required": [
                        "request_id",
                        "next_cursor"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error / missing_idempotency_key / unsupported_chain_feature",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "version_conflict / auto_sell_wallet_conflict / auto_sell_default_conflict / not_paused / idempotency_conflict / idempotency_in_progress",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "412": {
            "description": "version_conflict (malformed If-Match)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "428": {
            "description": "precondition_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/wallets/{wallet}/auto-balance": {
      "get": {
        "operationId": "getWalletAutoBalance",
        "tags": [
          "Wallet Auto-balance"
        ],
        "summary": "Read Solana wallet auto-balance settings",
        "description": "Requires the copytrade:read scope.",
        "x-apm-scopes": [
          "copytrade:read"
        ],
        "x-apm-nav-label": "Read Solana wallet auto-balance settings",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 32,
              "maxLength": 44,
              "description": "Solana wallet address owned by the caller."
            },
            "required": true,
            "description": "Solana wallet address owned by the caller.",
            "name": "wallet",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "rule": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "description": "Whether auto-balance is enabled for this wallet. Defaults to false."
                            },
                            "mode": {
                              "type": "string",
                              "enum": [
                                "fixed",
                                "ratio"
                              ],
                              "description": "Fixed balances or target USDC share. Defaults to fixed."
                            },
                            "sol_floor": {
                              "type": "string",
                              "description": "SOL reserve floor, in lamports. Defaults to 100000000."
                            },
                            "sol_min": {
                              "type": "string",
                              "description": "SOL refill threshold, in lamports. Defaults to 100000000."
                            },
                            "sol_refill": {
                              "type": "string",
                              "description": "SOL refill target, in lamports. Defaults to 200000000."
                            },
                            "usdc_target": {
                              "type": "string",
                              "description": "Fixed USDC balance target, in millionths of a USDC. Defaults to 0."
                            },
                            "usdc_ratio_bps": {
                              "type": "integer",
                              "description": "Target USDC share in basis points. Defaults to 3000."
                            },
                            "band_bps": {
                              "type": "integer",
                              "description": "Allowed deviation from the target share in basis points. Defaults to 1000."
                            },
                            "max_loss_bps": {
                              "type": "integer",
                              "description": "Maximum loss against the reference price in basis points, including pool fees. Defaults to 100."
                            }
                          },
                          "required": [
                            "enabled",
                            "mode",
                            "sol_floor",
                            "sol_min",
                            "sol_refill",
                            "usdc_target",
                            "usdc_ratio_bps",
                            "band_bps",
                            "max_loss_bps"
                          ],
                          "description": "Current auto-balance settings for this wallet; defaults when never set."
                        },
                        "version": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Settings version; null when never saved."
                        },
                        "sync": {
                          "type": "string",
                          "enum": [
                            "off",
                            "syncing",
                            "active",
                            "publish_failed"
                          ],
                          "description": "Whether the executor has applied the current version."
                        },
                        "has_live_task": {
                          "type": "boolean",
                          "description": "Whether an enabled live Solana strategy task uses this wallet; auto-balance only runs when true."
                        },
                        "sol_to_usdc": {
                          "type": "string",
                          "enum": [
                            "off",
                            "syncing",
                            "not_effective",
                            "effective"
                          ],
                          "description": "SOL to USDC swaps only take effect when a live task on this wallet has USDC trading on."
                        }
                      },
                      "required": [
                        "rule",
                        "version",
                        "sync",
                        "has_live_task",
                        "sol_to_usdc"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid settings or cursor",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Wallet not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Settings changed concurrently",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "patchWalletAutoBalance",
        "tags": [
          "Wallet Auto-balance"
        ],
        "summary": "Update Solana wallet auto-balance settings",
        "description": "Updates only supplied fields. Enabling can initiate real-money swaps. Amounts use atomic decimal strings and ratios use basis points. Re-read after a conflict or an unknown result.\n\nRequires the copytrade:write scope.",
        "x-apm-scopes": [
          "copytrade:write"
        ],
        "x-apm-nav-label": "Update Solana wallet auto-balance settings",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 32,
              "maxLength": 44,
              "description": "Solana wallet address owned by the caller."
            },
            "required": true,
            "description": "Solana wallet address owned by the caller.",
            "name": "wallet",
            "in": "path"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Whether auto-balance is enabled for this wallet. Defaults to false."
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "fixed",
                      "ratio"
                    ],
                    "description": "Fixed balances or target USDC share. Defaults to fixed."
                  },
                  "sol_floor": {
                    "type": "string",
                    "pattern": "^\\d{1,20}$",
                    "description": "SOL reserve floor, in lamports. Defaults to 100000000."
                  },
                  "sol_min": {
                    "type": "string",
                    "pattern": "^\\d{1,20}$",
                    "description": "SOL refill threshold, in lamports. Defaults to 100000000."
                  },
                  "sol_refill": {
                    "type": "string",
                    "pattern": "^\\d{1,20}$",
                    "description": "SOL refill target, in lamports. Defaults to 200000000."
                  },
                  "usdc_target": {
                    "type": "string",
                    "pattern": "^\\d{1,20}$",
                    "description": "Fixed USDC balance target, in millionths of a USDC. Defaults to 0."
                  },
                  "usdc_ratio_bps": {
                    "type": "integer",
                    "minimum": 100,
                    "maximum": 9000,
                    "description": "Target USDC share in basis points. Defaults to 3000."
                  },
                  "band_bps": {
                    "type": "integer",
                    "minimum": 100,
                    "maximum": 5000,
                    "description": "Allowed deviation from the target share in basis points. Defaults to 1000."
                  },
                  "max_loss_bps": {
                    "type": "integer",
                    "minimum": 50,
                    "maximum": 300,
                    "description": "Maximum loss against the reference price in basis points, including pool fees. Defaults to 100."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "rule": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "description": "Whether auto-balance is enabled for this wallet. Defaults to false."
                            },
                            "mode": {
                              "type": "string",
                              "enum": [
                                "fixed",
                                "ratio"
                              ],
                              "description": "Fixed balances or target USDC share. Defaults to fixed."
                            },
                            "sol_floor": {
                              "type": "string",
                              "description": "SOL reserve floor, in lamports. Defaults to 100000000."
                            },
                            "sol_min": {
                              "type": "string",
                              "description": "SOL refill threshold, in lamports. Defaults to 100000000."
                            },
                            "sol_refill": {
                              "type": "string",
                              "description": "SOL refill target, in lamports. Defaults to 200000000."
                            },
                            "usdc_target": {
                              "type": "string",
                              "description": "Fixed USDC balance target, in millionths of a USDC. Defaults to 0."
                            },
                            "usdc_ratio_bps": {
                              "type": "integer",
                              "description": "Target USDC share in basis points. Defaults to 3000."
                            },
                            "band_bps": {
                              "type": "integer",
                              "description": "Allowed deviation from the target share in basis points. Defaults to 1000."
                            },
                            "max_loss_bps": {
                              "type": "integer",
                              "description": "Maximum loss against the reference price in basis points, including pool fees. Defaults to 100."
                            }
                          },
                          "required": [
                            "enabled",
                            "mode",
                            "sol_floor",
                            "sol_min",
                            "sol_refill",
                            "usdc_target",
                            "usdc_ratio_bps",
                            "band_bps",
                            "max_loss_bps"
                          ],
                          "description": "Current auto-balance settings for this wallet; defaults when never set."
                        },
                        "version": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Settings version; null when never saved."
                        },
                        "sync": {
                          "type": "string",
                          "enum": [
                            "off",
                            "syncing",
                            "active",
                            "publish_failed"
                          ],
                          "description": "Whether the executor has applied the current version."
                        },
                        "has_live_task": {
                          "type": "boolean",
                          "description": "Whether an enabled live Solana strategy task uses this wallet; auto-balance only runs when true."
                        },
                        "sol_to_usdc": {
                          "type": "string",
                          "enum": [
                            "off",
                            "syncing",
                            "not_effective",
                            "effective"
                          ],
                          "description": "SOL to USDC swaps only take effect when a live task on this wallet has USDC trading on."
                        }
                      },
                      "required": [
                        "rule",
                        "version",
                        "sync",
                        "has_live_task",
                        "sol_to_usdc"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid settings or cursor",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Wallet not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Settings changed concurrently",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/wallets/{wallet}/auto-balance/history": {
      "get": {
        "operationId": "listWalletAutoBalanceHistory",
        "tags": [
          "Wallet Auto-balance"
        ],
        "summary": "List Solana wallet auto-balance history",
        "description": "Returns up to 20 executor results, newest first. Pass next_cursor as before to fetch the next page.\n\nRequires the copytrade:read scope.",
        "x-apm-scopes": [
          "copytrade:read"
        ],
        "x-apm-nav-label": "List Solana wallet auto-balance history",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 32,
              "maxLength": 44,
              "description": "Solana wallet address owned by the caller."
            },
            "required": true,
            "description": "Solana wallet address owned by the caller.",
            "name": "wallet",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "description": "Cursor from next_cursor of the previous page."
            },
            "required": false,
            "description": "Cursor from next_cursor of the previous page.",
            "name": "before",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "entries": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Executor result reference ID."
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "success",
                                  "failed"
                                ],
                                "description": "On-chain result of the swap."
                              },
                              "from": {
                                "type": "string",
                                "enum": [
                                  "SOL",
                                  "USDC",
                                  "WSOL"
                                ],
                                "description": "Asset spent."
                              },
                              "to": {
                                "type": "string",
                                "enum": [
                                  "SOL",
                                  "USDC"
                                ],
                                "description": "Asset received."
                              },
                              "input": {
                                "type": "string",
                                "description": "Actual input amount in atomic units."
                              },
                              "output": {
                                "type": "string",
                                "description": "Actual output amount in atomic units."
                              },
                              "networkFee": {
                                "type": "string",
                                "description": "Network fee paid, in lamports."
                              },
                              "signature": {
                                "type": "string",
                                "description": "Transaction signature."
                              },
                              "recordedAt": {
                                "type": "string",
                                "description": "ISO time the result was recorded."
                              }
                            },
                            "required": [
                              "id",
                              "status",
                              "from",
                              "to",
                              "recordedAt"
                            ]
                          },
                          "description": "Swap results, newest first."
                        },
                        "next_cursor": {
                          "type": "string",
                          "description": "Pass as before to fetch the next page."
                        }
                      },
                      "required": [
                        "entries"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid settings or cursor",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Wallet not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Settings changed concurrently",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/copy-trade/configs/{id}/trades": {
      "get": {
        "operationId": "listCopyTradeConfigTrades",
        "tags": [
          "Copy Trade Configs"
        ],
        "summary": "Settled trades of a Copy Trading config, with realized PnL",
        "description": "Newest-oldest is not guaranteed within a page like the orders cursor — this is page/limit paging over a different list: it contains terminal strategy records (including failures and unknown timeouts), available realized PnL per sell, and sells made from the wallet outside the platform (source=external). Platform rows share order_id with the orders sub-resource. failure_stage and reason_code share the orders/account-history normalization. filtered includes balance/route rejections and failed market-cap guards; it does not establish a harmless pre-trade skip. success includes external sells and is not task execution success. meta.analytics_available=false means the upstream answered with prices/PnL degraded; a 503 unavailable means it could not answer at all, which is never reported as an empty page.\n\nRequires the `copytrade:read` scope.",
        "x-apm-scopes": [
          "copytrade:read"
        ],
        "x-apm-nav-label": "List trades",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Config id returned by create or list."
            },
            "required": true,
            "description": "Config id returned by create or list.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "success",
                "failed",
                "filtered"
              ],
              "description": "Default: available filled/failed/timeout strategy records and attributed external sells; reject rows require filtered. success includes filled strategy trades and attributed external sells, not just orders executed by this task. failed includes failed/timeout records outside the filtered bucket; timeout is an unknown outcome. filtered includes every reject (even balance or route blockers) and historical failed copy-buy market-cap guard records, which may carry a transaction hash. It does not mean harmless skips or no gas spent. These buckets must not be used as an execution success-rate denominator."
            },
            "required": false,
            "description": "Default: available filled/failed/timeout strategy records and attributed external sells; reject rows require filtered. success includes filled strategy trades and attributed external sells, not just orders executed by this task. failed includes failed/timeout records outside the filtered bucket; timeout is an unknown outcome. filtered includes every reject (even balance or route blockers) and historical failed copy-buy market-cap guard records, which may carry a transaction hash. It does not mean harmless skips or no gas spent. These buckets must not be used as an execution success-rate denominator.",
            "name": "outcome",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "description": "RFC 3339 UTC lower bound on the trade time, not on updated_at."
            },
            "required": false,
            "description": "RFC 3339 UTC lower bound on the trade time, not on updated_at.",
            "name": "since",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 1,
              "description": "1-based page number. Default 1, maximum 1000."
            },
            "required": false,
            "description": "1-based page number. Default 1, maximum 1000.",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "description": "Page size. Default 20, maximum 100."
            },
            "required": false,
            "description": "Page size. Default 20, maximum 100.",
            "name": "limit",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "order_id": {
                            "type": "string",
                            "description": "Platform trades share this id with the orders sub-resource. External sells use a synthetic id of the form ext_<event id>, stable for that attributed sell."
                          },
                          "config_id": {
                            "type": "string",
                            "description": "Config this trade is attributed to."
                          },
                          "source": {
                            "type": "string",
                            "enum": [
                              "strategy",
                              "external"
                            ],
                            "description": "strategy: the platform placed this trade. external: the share of a sell allocated to this config by FIFO, either a sale made from the wallet outside the platform or a sell by another config that overflowed into the holdings of this config."
                          },
                          "chain": {
                            "type": "string",
                            "description": "Chain of the config this trade belongs to."
                          },
                          "wallet_id": {
                            "type": "string",
                            "description": "Custodial wallet that traded."
                          },
                          "side": {
                            "type": "string",
                            "description": "buy or sell."
                          },
                          "trigger": {
                            "type": "string",
                            "description": "Same vocabulary as the orders sub-resource trigger: copy_buy, copy_sell, snipe, take_profit, stop_loss, or another engine order type."
                          },
                          "token_address": {
                            "type": "string",
                            "description": "Token that traded."
                          },
                          "token_symbol": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Token symbol when known. Null otherwise."
                          },
                          "status": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Platform trades only: filled, failed, timeout or reject. Null on an external sell."
                          },
                          "failure_stage": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "pre_trade",
                              "execution"
                            ],
                            "description": "Status-derived stage: reject maps to pre_trade; failed/error map to execution. This is not proof of broadcast or confirmation. A market-cap guard may fail during execution; inspect reason_code and tx_hash separately. A timeout has null stage. Its outcome is unknown unless reason_code is anti_mev_not_landed, which confirms the order did not fill."
                          },
                          "reason_code": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Specific reason, such as sell_amount_zero (no sellable task position; excluded from copy-sell success-rate attempts), fomo_route_unsupported, buy_fee_too_high, buy_fee_unknown, first_buy_blocked, first_buy_history_unavailable (a Price-protection first-buy-only copy skipped because the target's recent on-chain buys could not be confirmed yet), already_bought, buy_amount_below_min, token_blacklisted, quick_sell_banned, market_cap_too_small, buy_dynamic_cap_reached, buy_tier_no_match, buy_tier_market_cap_unknown, prior_buyers_unavailable (Price protection skipped this buy because listed wallet history was incomplete), or strategy_leaf_rejected (including a prior-buyer blacklist match). For a sniper buy, creator_sold means the creator sold and the filter required no sale. creator_not_sold means the filter required a sale and none occurred. creator_sale_unknown means the sale history could not be confirmed. delayed_snipe_expired means the executor canceled an unsigned delayed snipe more than 60 seconds after its scheduled buy time to avoid buying long after launch. contract_not_recipient means the followed address is a contract and the bought tokens were transferred to another wallet, not to that contract; follow the wallet that received them. On Solana, anti_mev_not_landed means the Anti-MEV order did not fill: slippage may have been exceeded, or the auction was lost. The public status is expired for task timeouts and failed for pending buys or sells that end with this reason. Uses the same normalizer as account history, including failed/timeout records and legacy market-cap text. Unknown raw chain text is null; producer codes and stable snake-case codes are preserved as opaque values. A reason alone does not prove a harmless skip."
                          },
                          "amount_in": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Amount spent, as a decimal string. Null when unknown."
                          },
                          "amount_out": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Amount received, as a decimal string. Null when unknown."
                          },
                          "price_usd": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Trade price in USD, as a decimal string. Null when the price could not be resolved (see price_stale)."
                          },
                          "value_usd": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "Trade value in USD. Null when the price could not be resolved."
                          },
                          "market_cap": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "Token market cap in USD at the trade. Null when unknown."
                          },
                          "price_stale": {
                            "type": "boolean",
                            "description": "The trade price could not be resolved, so USD figures are absent."
                          },
                          "realized_pnl_usd": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "Realized result of this sell: (trade price - this config's average cost for the token) x amount sold. Null on a buy, and on a sell whose trade price or average cost is unknown — never 0 to mean unknown."
                          },
                          "realized_pnl_pct": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "realized_pnl_usd as a percent of cost. Null in the same cases as realized_pnl_usd — never 0 to mean unknown."
                          },
                          "task_remaining": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "External sells only: the token amount attributed to this config. Null on platform trades."
                          },
                          "tx_hash": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Chain transaction hash. Null when it is not known."
                          },
                          "leader_tx_hash": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Leader transaction this trade was copying. Null when there is not one."
                          },
                          "block_time": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Chain execution time. Null when unknown."
                          },
                          "created_at": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "When the trade record was created. Null when the upstream did not send it."
                          },
                          "updated_at": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "When the trade record last changed. Null when the upstream did not send it."
                          }
                        },
                        "required": [
                          "order_id",
                          "config_id",
                          "source",
                          "chain",
                          "wallet_id",
                          "side",
                          "trigger",
                          "token_address",
                          "token_symbol",
                          "status",
                          "failure_stage",
                          "reason_code",
                          "amount_in",
                          "amount_out",
                          "price_usd",
                          "value_usd",
                          "market_cap",
                          "price_stale",
                          "realized_pnl_usd",
                          "realized_pnl_pct",
                          "task_remaining",
                          "tx_hash",
                          "leader_tx_hash",
                          "block_time",
                          "created_at",
                          "updated_at"
                        ]
                      },
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "page": {
                          "type": "number",
                          "description": "1-based page number that was returned."
                        },
                        "total_pages": {
                          "type": "number",
                          "description": "How many pages the current filters match."
                        },
                        "total_records": {
                          "type": "number",
                          "description": "How many trades the current filters match."
                        },
                        "has_more": {
                          "type": "boolean",
                          "description": "True when a later page exists."
                        },
                        "analytics_available": {
                          "type": "boolean",
                          "description": "False when the upstream answered but prices or PnL were degraded. A total outage is 503, never an empty page."
                        }
                      },
                      "required": [
                        "request_id",
                        "page",
                        "total_pages",
                        "total_records",
                        "has_more",
                        "analytics_available"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "unavailable (the trade analytics service could not answer)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sniper/configs/{id}/trades": {
      "get": {
        "operationId": "listSniperConfigTrades",
        "tags": [
          "Sniper Configs"
        ],
        "summary": "Settled trades of a Sniper config, with realized PnL",
        "description": "Newest-oldest is not guaranteed within a page like the orders cursor — this is page/limit paging over a different list: it contains terminal strategy records (including failures and unknown timeouts), available realized PnL per sell, and sells made from the wallet outside the platform (source=external). Platform rows share order_id with the orders sub-resource. failure_stage and reason_code share the orders/account-history normalization. filtered includes balance/route rejections and failed market-cap guards; it does not establish a harmless pre-trade skip. success includes external sells and is not task execution success. meta.analytics_available=false means the upstream answered with prices/PnL degraded; a 503 unavailable means it could not answer at all, which is never reported as an empty page.\n\nRequires the `sniper:read` scope.",
        "x-apm-scopes": [
          "sniper:read"
        ],
        "x-apm-nav-label": "List trades",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Config id returned by create or list."
            },
            "required": true,
            "description": "Config id returned by create or list.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "success",
                "failed",
                "filtered"
              ],
              "description": "Default: available filled/failed/timeout strategy records and attributed external sells; reject rows require filtered. success includes filled strategy trades and attributed external sells, not just orders executed by this task. failed includes failed/timeout records outside the filtered bucket; timeout is an unknown outcome. filtered includes every reject (even balance or route blockers) and historical failed copy-buy market-cap guard records, which may carry a transaction hash. It does not mean harmless skips or no gas spent. These buckets must not be used as an execution success-rate denominator."
            },
            "required": false,
            "description": "Default: available filled/failed/timeout strategy records and attributed external sells; reject rows require filtered. success includes filled strategy trades and attributed external sells, not just orders executed by this task. failed includes failed/timeout records outside the filtered bucket; timeout is an unknown outcome. filtered includes every reject (even balance or route blockers) and historical failed copy-buy market-cap guard records, which may carry a transaction hash. It does not mean harmless skips or no gas spent. These buckets must not be used as an execution success-rate denominator.",
            "name": "outcome",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "description": "RFC 3339 UTC lower bound on the trade time, not on updated_at."
            },
            "required": false,
            "description": "RFC 3339 UTC lower bound on the trade time, not on updated_at.",
            "name": "since",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 1,
              "description": "1-based page number. Default 1, maximum 1000."
            },
            "required": false,
            "description": "1-based page number. Default 1, maximum 1000.",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "description": "Page size. Default 20, maximum 100."
            },
            "required": false,
            "description": "Page size. Default 20, maximum 100.",
            "name": "limit",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "order_id": {
                            "type": "string",
                            "description": "Platform trades share this id with the orders sub-resource. External sells use a synthetic id of the form ext_<event id>, stable for that attributed sell."
                          },
                          "config_id": {
                            "type": "string",
                            "description": "Config this trade is attributed to."
                          },
                          "source": {
                            "type": "string",
                            "enum": [
                              "strategy",
                              "external"
                            ],
                            "description": "strategy: the platform placed this trade. external: the share of a sell allocated to this config by FIFO, either a sale made from the wallet outside the platform or a sell by another config that overflowed into the holdings of this config."
                          },
                          "chain": {
                            "type": "string",
                            "description": "Chain of the config this trade belongs to."
                          },
                          "wallet_id": {
                            "type": "string",
                            "description": "Custodial wallet that traded."
                          },
                          "side": {
                            "type": "string",
                            "description": "buy or sell."
                          },
                          "trigger": {
                            "type": "string",
                            "description": "Same vocabulary as the orders sub-resource trigger: copy_buy, copy_sell, snipe, take_profit, stop_loss, or another engine order type."
                          },
                          "token_address": {
                            "type": "string",
                            "description": "Token that traded."
                          },
                          "token_symbol": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Token symbol when known. Null otherwise."
                          },
                          "status": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Platform trades only: filled, failed, timeout or reject. Null on an external sell."
                          },
                          "failure_stage": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "pre_trade",
                              "execution"
                            ],
                            "description": "Status-derived stage: reject maps to pre_trade; failed/error map to execution. This is not proof of broadcast or confirmation. A market-cap guard may fail during execution; inspect reason_code and tx_hash separately. A timeout has null stage. Its outcome is unknown unless reason_code is anti_mev_not_landed, which confirms the order did not fill."
                          },
                          "reason_code": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Specific reason, such as sell_amount_zero (no sellable task position; excluded from copy-sell success-rate attempts), fomo_route_unsupported, buy_fee_too_high, buy_fee_unknown, first_buy_blocked, first_buy_history_unavailable (a Price-protection first-buy-only copy skipped because the target's recent on-chain buys could not be confirmed yet), already_bought, buy_amount_below_min, token_blacklisted, quick_sell_banned, market_cap_too_small, buy_dynamic_cap_reached, buy_tier_no_match, buy_tier_market_cap_unknown, prior_buyers_unavailable (Price protection skipped this buy because listed wallet history was incomplete), or strategy_leaf_rejected (including a prior-buyer blacklist match). For a sniper buy, creator_sold means the creator sold and the filter required no sale. creator_not_sold means the filter required a sale and none occurred. creator_sale_unknown means the sale history could not be confirmed. delayed_snipe_expired means the executor canceled an unsigned delayed snipe more than 60 seconds after its scheduled buy time to avoid buying long after launch. contract_not_recipient means the followed address is a contract and the bought tokens were transferred to another wallet, not to that contract; follow the wallet that received them. On Solana, anti_mev_not_landed means the Anti-MEV order did not fill: slippage may have been exceeded, or the auction was lost. The public status is expired for task timeouts and failed for pending buys or sells that end with this reason. Uses the same normalizer as account history, including failed/timeout records and legacy market-cap text. Unknown raw chain text is null; producer codes and stable snake-case codes are preserved as opaque values. A reason alone does not prove a harmless skip."
                          },
                          "amount_in": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Amount spent, as a decimal string. Null when unknown."
                          },
                          "amount_out": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Amount received, as a decimal string. Null when unknown."
                          },
                          "price_usd": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Trade price in USD, as a decimal string. Null when the price could not be resolved (see price_stale)."
                          },
                          "value_usd": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "Trade value in USD. Null when the price could not be resolved."
                          },
                          "market_cap": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "Token market cap in USD at the trade. Null when unknown."
                          },
                          "price_stale": {
                            "type": "boolean",
                            "description": "The trade price could not be resolved, so USD figures are absent."
                          },
                          "realized_pnl_usd": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "Realized result of this sell: (trade price - this config's average cost for the token) x amount sold. Null on a buy, and on a sell whose trade price or average cost is unknown — never 0 to mean unknown."
                          },
                          "realized_pnl_pct": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "realized_pnl_usd as a percent of cost. Null in the same cases as realized_pnl_usd — never 0 to mean unknown."
                          },
                          "task_remaining": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "External sells only: the token amount attributed to this config. Null on platform trades."
                          },
                          "tx_hash": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Chain transaction hash. Null when it is not known."
                          },
                          "leader_tx_hash": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Leader transaction this trade was copying. Null when there is not one."
                          },
                          "block_time": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Chain execution time. Null when unknown."
                          },
                          "created_at": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "When the trade record was created. Null when the upstream did not send it."
                          },
                          "updated_at": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "When the trade record last changed. Null when the upstream did not send it."
                          }
                        },
                        "required": [
                          "order_id",
                          "config_id",
                          "source",
                          "chain",
                          "wallet_id",
                          "side",
                          "trigger",
                          "token_address",
                          "token_symbol",
                          "status",
                          "failure_stage",
                          "reason_code",
                          "amount_in",
                          "amount_out",
                          "price_usd",
                          "value_usd",
                          "market_cap",
                          "price_stale",
                          "realized_pnl_usd",
                          "realized_pnl_pct",
                          "task_remaining",
                          "tx_hash",
                          "leader_tx_hash",
                          "block_time",
                          "created_at",
                          "updated_at"
                        ]
                      },
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "page": {
                          "type": "number",
                          "description": "1-based page number that was returned."
                        },
                        "total_pages": {
                          "type": "number",
                          "description": "How many pages the current filters match."
                        },
                        "total_records": {
                          "type": "number",
                          "description": "How many trades the current filters match."
                        },
                        "has_more": {
                          "type": "boolean",
                          "description": "True when a later page exists."
                        },
                        "analytics_available": {
                          "type": "boolean",
                          "description": "False when the upstream answered but prices or PnL were degraded. A total outage is 503, never an empty page."
                        }
                      },
                      "required": [
                        "request_id",
                        "page",
                        "total_pages",
                        "total_records",
                        "has_more",
                        "analytics_available"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "unavailable (the trade analytics service could not answer)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/block-xray": {
      "get": {
        "operationId": "getBlockXray",
        "tags": [
          "X-Ray"
        ],
        "summary": "Inspect transactions around a successful trade",
        "description": "Read the same X-Ray fields as Web. Requires any existing read scope. Limited to 12 requests per user per minute across API keys and MCP connections. Solana, BSC and Robinhood lookups cover 7 days. Fees are native smallest-unit decimal strings. Missing indexed facts are omitted. BSC tip and inferred bundle data come from block traces when available. Failed attempts never contribute to success counts; unknown-direction failures remain visible in same_token_action. This query never modifies task fees.",
        "x-apm-scopes": [
          "copytrade:read",
          "sniper:read",
          "portfolio:read",
          "orders:read"
        ],
        "x-apm-nav-label": "Read X-Ray",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ],
              "description": "Chain: sol or solana, bsc, robinhood, arc."
            },
            "required": false,
            "description": "Chain: sol or solana, bsc, robinhood, arc.",
            "name": "chain",
            "in": "query"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ],
              "description": "Successful transaction signature or hash to inspect."
            },
            "required": false,
            "description": "Successful transaction signature or hash to inspect.",
            "name": "tx",
            "in": "query"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ],
              "description": "Integer 0 through 8, default 0. Supply once."
            },
            "required": false,
            "description": "Integer 0 through 8, default 0. Supply once.",
            "name": "before_blocks",
            "in": "query"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ],
              "description": "Integer 0 through 8, default 0. Supply once."
            },
            "required": false,
            "description": "Integer 0 through 8, default 0. Supply once.",
            "name": "after_blocks",
            "in": "query"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ],
              "description": "all (default), same_token, same_action, or same_token_action. Supply once."
            },
            "required": false,
            "description": "all (default), same_token, same_action, or same_token_action. Supply once.",
            "name": "scope",
            "in": "query"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ],
              "description": "true or false, default false. Supply once. Token scopes retain failed attempts with matching or unknown direction; other scopes and legacy Arc omit failures."
            },
            "required": false,
            "description": "true or false, default false. Supply once. Token scopes retain failed attempts with matching or unknown direction; other scopes and legacy Arc omit failures.",
            "name": "include_failed",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "chain": {
                          "type": "string",
                          "description": "ClickHouse chain code: sol, bsc, robinhood or arc."
                        },
                        "slot": {
                          "type": "number",
                          "description": "Target block height or Solana slot."
                        },
                        "target": {
                          "type": "object",
                          "properties": {
                            "tx_hash": {
                              "type": "string",
                              "description": "Queried transaction hash or signature."
                            },
                            "tx_index": {
                              "type": "number",
                              "description": "Target transaction position."
                            },
                            "block_height": {
                              "type": "number",
                              "description": "Target block height or slot."
                            },
                            "token_address": {
                              "type": "string",
                              "description": "Target token address."
                            },
                            "action": {
                              "type": "string",
                              "enum": [
                                "buy",
                                "sell",
                                "unknown"
                              ],
                              "description": "Target direction."
                            }
                          },
                          "required": [
                            "tx_hash",
                            "tx_index",
                            "block_height",
                            "token_address",
                            "action"
                          ],
                          "description": "Queried successful transaction."
                        },
                        "window": {
                          "type": "object",
                          "properties": {
                            "before_blocks": {
                              "type": "number",
                              "description": "Number of preceding blocks requested."
                            },
                            "after_blocks": {
                              "type": "number",
                              "description": "Number of following blocks requested."
                            },
                            "from_block": {
                              "type": "number",
                              "description": "Inclusive first block."
                            },
                            "to_block": {
                              "type": "number",
                              "description": "Inclusive last block."
                            },
                            "scope": {
                              "type": "string",
                              "enum": [
                                "all",
                                "same_token",
                                "same_action",
                                "same_token_action"
                              ],
                              "description": "Success-row matching scope; failed rows require a token scope."
                            }
                          },
                          "required": [
                            "before_blocks",
                            "after_blocks",
                            "from_block",
                            "to_block",
                            "scope"
                          ],
                          "description": "Requested inclusive block window and scope."
                        },
                        "summary": {
                          "type": "object",
                          "properties": {
                            "ahead_wallet_count": {
                              "type": "number",
                              "description": "Distinct successful wallets ahead of the target in the full window."
                            },
                            "behind_wallet_count": {
                              "type": "number",
                              "description": "Distinct successful wallets behind the target in the full window."
                            },
                            "total_wallet_count": {
                              "type": "number",
                              "description": "Distinct successful wallets in the full window."
                            },
                            "ahead_tx_count": {
                              "type": "number",
                              "description": "Successful transactions ahead of the target in the full window."
                            },
                            "behind_tx_count": {
                              "type": "number",
                              "description": "Successful transactions behind the target in the full window."
                            },
                            "total_tx_count": {
                              "type": "number",
                              "description": "Successful transactions in the full window."
                            },
                            "complete": {
                              "type": "boolean",
                              "description": "Whether full-window success counts are complete."
                            }
                          },
                          "required": [
                            "ahead_wallet_count",
                            "behind_wallet_count",
                            "total_wallet_count",
                            "ahead_tx_count",
                            "behind_tx_count",
                            "total_tx_count",
                            "complete"
                          ],
                          "description": "Full-window counts of successful transactions only."
                        },
                        "truncated": {
                          "type": "boolean",
                          "description": "Whether successful rows exceed the 1500-row cap."
                        },
                        "total": {
                          "type": "number",
                          "description": "Number of returned successful rows, excluding failed attempts."
                        },
                        "swaps": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "block_height": {
                                "type": "number",
                                "description": "Block height or Solana slot."
                              },
                              "block_delta": {
                                "type": "number",
                                "description": "Signed block offset from the target."
                              },
                              "tx_index": {
                                "type": "number",
                                "description": "Transaction position in the block."
                              },
                              "swap_index": {
                                "type": "number",
                                "description": "Swap position within the transaction; zero for failures."
                              },
                              "swap_count": {
                                "type": "number",
                                "description": "Swap count metadata; zero for failures."
                              },
                              "timestamp": {
                                "type": "number",
                                "description": "Block time in Unix milliseconds."
                              },
                              "tx_hash": {
                                "type": "string",
                                "description": "Transaction hash or signature."
                              },
                              "wallet": {
                                "type": "string",
                                "description": "Trader or failed transaction signer."
                              },
                              "token": {
                                "type": "string",
                                "description": "Token address."
                              },
                              "dex": {
                                "type": "string",
                                "description": "DEX label when available."
                              },
                              "action": {
                                "type": "string",
                                "enum": [
                                  "buy",
                                  "sell",
                                  "unknown"
                                ],
                                "description": "Buy, sell or unknown direction."
                              },
                              "pool_address": {
                                "type": "string",
                                "description": "Pool address when available."
                              },
                              "base_amount": {
                                "type": "number",
                                "description": "Absolute token amount; zero for failures."
                              },
                              "quote_amount": {
                                "type": "number",
                                "description": "Absolute quote amount; zero for failures."
                              },
                              "quote_token": {
                                "type": "string",
                                "description": "Quote token address."
                              },
                              "quote_token_symbol": {
                                "type": "string",
                                "description": "Quote symbol; empty when unavailable."
                              },
                              "price": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Quote amount per token; null for failures or zero token amount."
                              },
                              "mcap_at_trade": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Market capitalization in USD at execution, or null when unavailable."
                              },
                              "is_target": {
                                "type": "boolean",
                                "description": "Whether this is the queried transaction; does not imply ownership."
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "success",
                                  "failed"
                                ],
                                "description": "Successful swap or failed attempt; absent on the legacy Arc path."
                              },
                              "error_code": {
                                "type": "string",
                                "description": "Chain or indexer error code for failures."
                              },
                              "fee": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "Actual transaction fee in native smallest units: Solana lamports or EVM wei."
                              },
                              "priority_fee": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "Solana priority fee in lamports."
                              },
                              "compute_unit_price": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "Solana price in micro-lamports per compute unit."
                              },
                              "compute_units": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "Actual Solana compute units or EVM gas used."
                              },
                              "compute_unit_limit": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "Solana compute unit limit."
                              },
                              "gas_price": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "EVM effective gas price in wei."
                              },
                              "tip": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "Successful Solana transaction tip in lamports, or BSC tip paid by this transaction to the block builder in wei, directly or within a contract."
                              },
                              "builder": {
                                "type": "string",
                                "enum": [
                                  "48club",
                                  "blockrazor",
                                  "other"
                                ],
                                "description": "BSC block builder identified by the first transaction marker."
                              },
                              "bundle_tip": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "Tip paid by other transactions in the inferred BSC bundle, in wei."
                              },
                              "bundle_tip_tx": {
                                "type": "string",
                                "description": "Hash of the first other transaction paying a tip in the inferred BSC bundle."
                              },
                              "bundle_tx_count": {
                                "type": "number",
                                "description": "Number of consecutive same-sender transactions with successive nonces in the inferred BSC bundle, when greater than one."
                              },
                              "bid": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "BSC wei bid for the inferred bundle: all tips plus 90% of summed gas fees (rounded down) for 48club or all gas fees for BlockRazor. Omitted for other builders."
                              },
                              "tip_forward": {
                                "type": "string",
                                "enum": [
                                  "none",
                                  "direct",
                                  "forwarded",
                                  "unseen"
                                ],
                                "description": "Token-scoped successful Solana rows: none (no tip), direct (paid straight to the block-producer tip account), forwarded (an adjacent forward to the producer was found) or unseen (tipped, forward not observed in the block). Omitted otherwise, and for tipped rows before forward capture began (2026-11-11 04:06 UTC), whose delivery status is unknown."
                              },
                              "delivered_tip": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "Tip received by the block producer in lamports; omitted for unseen or unknown status."
                              },
                              "offered_tip": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "Failed Solana transaction tip offer in lamports, rolled back and not paid."
                              },
                              "platform": {
                                "type": "string",
                                "description": "Recognized submitting platform."
                              }
                            },
                            "required": [
                              "block_height",
                              "block_delta",
                              "tx_index",
                              "swap_index",
                              "swap_count",
                              "timestamp",
                              "tx_hash",
                              "wallet",
                              "token",
                              "action",
                              "base_amount",
                              "quote_amount",
                              "quote_token",
                              "quote_token_symbol",
                              "price",
                              "mcap_at_trade",
                              "is_target"
                            ]
                          },
                          "description": "Successes and optional failures ordered by block height and transaction position."
                        },
                        "failed_truncated": {
                          "type": "boolean",
                          "description": "Failures exceed their independent 300-row cap; only present when failures are queried."
                        },
                        "tips_unavailable": {
                          "type": "boolean",
                          "description": "Trace data is unavailable for at least one BSC block in the requested window."
                        },
                        "mine": {
                          "type": "object",
                          "properties": {
                            "task_id": {
                              "type": "string",
                              "description": "Owning legacy or strategy task ID; omitted for manual orders."
                            },
                            "task_name": {
                              "type": "string",
                              "description": "Owned task name when still available."
                            },
                            "leader_address": {
                              "type": "string",
                              "description": "Leader wallet copied by this caller-owned order; omitted when absent or empty."
                            },
                            "fee_subsidy": {
                              "type": "string",
                              "pattern": "^\\d+$",
                              "description": "Platform subsidy on this caller-owned order in native smallest units."
                            }
                          },
                          "description": "Private order metadata only when the queried transaction belongs to the authenticated caller."
                        }
                      },
                      "required": [
                        "chain",
                        "slot",
                        "target",
                        "window",
                        "summary",
                        "truncated",
                        "total",
                        "swaps"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "validation_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/cell-token": {
      "post": {
        "operationId": "issueCellToken",
        "tags": [
          "Account"
        ],
        "summary": "Exchange an API Key for a restricted Cell token",
        "description": "API Keys only; MCP OAuth is not accepted. Requires orders:read. Returns only orders:read/buy/sell/cancel granted by the parent Key. Each token binds one enabled chain and Cell, lasts at most 60 seconds and cannot outlive the Key. Revocation, rotation or narrowing prevents new grants; existing tokens expire within 60 seconds. Already accepted orders remain active. Cache tokens in memory and refresh before expiry. Cell enforces the signed IP allowlist. Direct status and SSE read all orders belonging to this account on that Cell; cancellation may affect existing account orders.",
        "x-apm-scopes": [
          "orders:read"
        ],
        "x-apm-nav-label": "Get Cell token",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "chain": {
                    "type": "string",
                    "enum": [
                      "solana",
                      "bsc",
                      "robinhood"
                    ],
                    "description": "Chain whose enabled Cell will receive the token. Each chain requires a separate token."
                  }
                },
                "required": [
                  "chain"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Restricted token; Cache-Control: no-store.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "token": {
                          "type": "string",
                          "description": "Short-lived restricted bearer JWT. Send to the returned gateway in Authorization, never a URL."
                        },
                        "expires_at": {
                          "type": "string",
                          "format": "date-time",
                          "description": "UTC expiration, at most 60 seconds after issue and no later than the API Key expiry. Refresh before expiry."
                        },
                        "cell_id": {
                          "type": "string",
                          "pattern": "^[a-z0-9-]{1,32}$",
                          "description": "The single Cell audience bound into this token."
                        },
                        "gateway_url": {
                          "type": "string",
                          "format": "uri",
                          "description": "Configured HTTPS gateway for direct order operations."
                        },
                        "scopes": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "orders:read",
                              "orders:buy",
                              "orders:sell",
                              "orders:cancel"
                            ]
                          },
                          "description": "Order grants inherited from the API Key. Read and cancel apply to all owned account orders on this Cell."
                        }
                      },
                      "required": [
                        "token",
                        "expires_at",
                        "cell_id",
                        "gateway_url",
                        "scopes"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/balances": {
      "get": {
        "operationId": "listBalances",
        "tags": [
          "Portfolio"
        ],
        "summary": "Wallet balances on one chain",
        "description": "Requires `portfolio:read`. Every owned wallet of the selected chain appears, including wallets with no balance row. Native balance null/available=false means no source row, an unavailable EVM RPC result, or an ambiguous legacy zero default on a chain without RPC fallback. A reported native zero is an observed EVM zero; a real Solana zero is indistinguishable from a missing row and is conservatively reported unknown. Token balance null/available=false means no token was requested or the indexed row was absent; the full server also projects an absent token row as zero, so a real zero cannot be confirmed by this source. Values reflect the server numeric projection, not lossless on-chain integer units. Keyset pages are not a frozen snapshot.",
        "x-apm-scopes": [
          "portfolio:read"
        ],
        "x-apm-nav-label": "List balances",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "bsc",
                "solana",
                "hyperevm",
                "xlayer",
                "monad",
                "robinhood",
                "arc"
              ],
              "description": "Chain whose owned wallets and holdings are queried."
            },
            "required": true,
            "description": "Chain whose owned wallets and holdings are queried.",
            "name": "chain",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256,
              "description": "Optional token contract or mint address to include its balance."
            },
            "required": false,
            "description": "Optional token contract or mint address to include its balance.",
            "name": "token",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "description": "Maximum rows returned in this keyset page."
            },
            "required": false,
            "description": "Maximum rows returned in this keyset page.",
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "maxLength": 4096,
              "description": "Opaque signed cursor from a preceding page; bound to the user and filters."
            },
            "required": false,
            "description": "Opaque signed cursor from a preceding page; bound to the user and filters.",
            "name": "cursor",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "wallet_id": {
                            "type": "string",
                            "description": "Owned wallet address on the selected chain."
                          },
                          "name": {
                            "type": "string",
                            "description": "User-visible wallet name."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "available",
                              "unavailable"
                            ],
                            "description": "Wallet availability in the account directory."
                          },
                          "native_balance": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "Native-chain balance in displayed units; null when the source cannot confirm it."
                          },
                          "native_balance_available": {
                            "type": "boolean",
                            "description": "Whether native_balance is confirmed by the source rather than a missing-row or legacy zero default."
                          },
                          "token_balance": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "Requested token balance in displayed units; null when no token was requested or its row is absent."
                          },
                          "token_balance_available": {
                            "type": "boolean",
                            "description": "Whether token_balance is confirmed by an indexed token row."
                          }
                        },
                        "required": [
                          "wallet_id",
                          "name",
                          "status",
                          "native_balance",
                          "native_balance_available",
                          "token_balance",
                          "token_balance_available"
                        ]
                      },
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "next_cursor": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Signed keyset cursor. Null when this page is complete."
                        },
                        "source_timestamp": {
                          "type": "null",
                          "description": "The upstream source does not expose a snapshot timestamp."
                        },
                        "retrieved_at": {
                          "type": "string",
                          "format": "date-time",
                          "description": "Gateway retrieval time, not a chain snapshot time."
                        }
                      },
                      "required": [
                        "request_id",
                        "next_cursor",
                        "source_timestamp",
                        "retrieved_at"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "Upstream business service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/positions": {
      "get": {
        "operationId": "listPositions",
        "tags": [
          "Portfolio"
        ],
        "summary": "Aggregated holdings and PnL across owned wallets",
        "description": "Requires `portfolio:read`. Every requested wallet must belong to the authenticated user; mixed owned/foreign requests fail rather than silently dropping a wallet. Native balance null/available=false means no native row was provided. Price-dependent USD/PnL fields are null when unavailable; zero is a measured zero. Totals describe the complete requested wallet set while positions contains one keyset page. Pages are not a frozen snapshot.",
        "x-apm-scopes": [
          "portfolio:read"
        ],
        "x-apm-nav-label": "List positions",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "bsc",
                "solana",
                "hyperevm",
                "xlayer",
                "monad",
                "robinhood",
                "arc"
              ],
              "description": "Chain whose owned wallets and holdings are queried."
            },
            "required": true,
            "description": "Chain whose owned wallets and holdings are queried.",
            "name": "chain",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096,
              "description": "One to fifty comma-separated wallet addresses, all owned by the authenticated user."
            },
            "required": true,
            "description": "One to fifty comma-separated wallet addresses, all owned by the authenticated user.",
            "name": "wallets",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "description": "Maximum rows returned in this keyset page."
            },
            "required": false,
            "description": "Maximum rows returned in this keyset page.",
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "maxLength": 4096,
              "description": "Opaque signed cursor from a preceding page; bound to the user and filters."
            },
            "required": false,
            "description": "Opaque signed cursor from a preceding page; bound to the user and filters.",
            "name": "cursor",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "native_balance": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Combined native balance of the requested wallets, or null when the source cannot confirm it."
                        },
                        "native_balance_available": {
                          "type": "boolean",
                          "description": "Whether the combined native balance is confirmed by source data."
                        },
                        "native_position": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "token": {
                              "type": "string",
                              "description": "Native asset identifier."
                            },
                            "symbol": {
                              "type": "string",
                              "description": "Native asset ticker."
                            },
                            "amount": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Native asset amount, or null when unavailable."
                            },
                            "value_usd": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Native asset USD value, or null without a usable price."
                            },
                            "value_native": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Native asset value in native units, or null when unavailable."
                            }
                          },
                          "required": [
                            "token",
                            "symbol",
                            "amount",
                            "value_usd",
                            "value_native"
                          ],
                          "description": "Aggregated native asset position, or null when no position is available."
                        },
                        "total_unrealized_pnl_usd": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Combined unrealized USD PnL, or null when unknown."
                        },
                        "total_wallet_value_usd": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Combined wallet USD value, or null when prices are unavailable."
                        },
                        "total_positions_value_usd": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Combined token-position USD value, or null when prices are unavailable."
                        },
                        "positions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "token": {
                                "type": "string",
                                "description": "Token contract or mint address."
                              },
                              "symbol": {
                                "type": "string",
                                "description": "Token ticker shown by the source."
                              },
                              "name": {
                                "type": "string",
                                "description": "Token name shown by the source."
                              },
                              "icon": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Token icon URL, or null when unavailable."
                              },
                              "amount": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Combined token amount across the requested wallets; null when unavailable."
                              },
                              "value_usd": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Current USD value; null when a usable price is unavailable."
                              },
                              "value_native": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Current value in chain-native units; null when unavailable."
                              },
                              "price_stale": {
                                "type": "boolean",
                                "description": "Whether the source marks the price as stale."
                              },
                              "market_cap_usd": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Token market capitalization in USD, or null when unavailable."
                              },
                              "remaining_cost_basis_usd": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Remaining USD cost basis, or null when unavailable."
                              },
                              "realized_pnl_usd": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Realized USD profit or loss, or null when unavailable."
                              },
                              "unrealized_pnl_usd": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Unrealized USD profit or loss, or null when price or basis is unavailable."
                              },
                              "buy_count": {
                                "type": "number",
                                "description": "Number of recorded buys for this holding."
                              },
                              "sell_count": {
                                "type": "number",
                                "description": "Number of recorded sells for this holding."
                              },
                              "wallet_count": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Number of requested wallets holding this token, or null when unavailable."
                              }
                            },
                            "required": [
                              "token",
                              "symbol",
                              "name",
                              "icon",
                              "amount",
                              "value_usd",
                              "value_native",
                              "price_stale",
                              "market_cap_usd",
                              "remaining_cost_basis_usd",
                              "realized_pnl_usd",
                              "unrealized_pnl_usd",
                              "buy_count",
                              "sell_count",
                              "wallet_count"
                            ]
                          },
                          "description": "One keyset page of aggregated token positions."
                        }
                      },
                      "required": [
                        "native_balance",
                        "native_balance_available",
                        "native_position",
                        "total_unrealized_pnl_usd",
                        "total_wallet_value_usd",
                        "total_positions_value_usd",
                        "positions"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "next_cursor": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Signed keyset cursor. Null when this page is complete."
                        },
                        "source_timestamp": {
                          "type": "null",
                          "description": "The upstream source does not expose a snapshot timestamp."
                        },
                        "retrieved_at": {
                          "type": "string",
                          "format": "date-time",
                          "description": "Gateway retrieval time, not a chain snapshot time."
                        }
                      },
                      "required": [
                        "request_id",
                        "next_cursor",
                        "source_timestamp",
                        "retrieved_at"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "Upstream business service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/copy-trade/configs/{id}/positions": {
      "get": {
        "operationId": "listCopyTradeTaskPositions",
        "tags": [
          "Copy Trade Configs"
        ],
        "summary": "Current token positions held by a Copy Trade task",
        "description": "Cross-wallet positions grouped by token for all wallets in this task. Amounts and remaining cost basis come from task analytics; nullable USD value and PnL mean unknown, not zero. price_stale flags an outdated valuation. retrieved_at is gateway receipt time; the underlying snapshot time is unavailable (data_as_of=null). Requires the `copytrade:read` scope. Deleted tasks remain readable for history.",
        "x-apm-scopes": [
          "copytrade:read"
        ],
        "x-apm-nav-label": "Task positions",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Task config id returned by create or list."
            },
            "required": true,
            "description": "Task config id returned by create or list.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "task_id": {
                          "type": "string",
                          "description": "Task config id whose analytics are shown."
                        },
                        "chain": {
                          "type": "string",
                          "description": "Chain on which the task runs."
                        },
                        "retrieved_at": {
                          "type": "string",
                          "format": "date-time",
                          "description": "When the gateway received the analytics result. This is not the underlying trade or price snapshot time."
                        },
                        "data_as_of": {
                          "type": "null",
                          "description": "Underlying analytics snapshot time is unavailable."
                        },
                        "source": {
                          "type": "string",
                          "enum": [
                            "task-data/positions"
                          ],
                          "description": "Analytics endpoint that supplied these holdings."
                        },
                        "positions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "token_address": {
                                "type": "string",
                                "description": "Token contract or mint address."
                              },
                              "symbol": {
                                "type": "string",
                                "description": "Token ticker shown by task analytics."
                              },
                              "wallet_count": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "minimum": 0,
                                "description": "Number of task wallets holding this token; null when unavailable."
                              },
                              "amount": {
                                "type": "number",
                                "description": "Current token amount across the task wallets."
                              },
                              "value_usd": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Current USD value; null if a usable price is unavailable."
                              },
                              "remaining_cost_basis_usd": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Remaining USD cost basis from task analytics; null when not provided."
                              },
                              "unrealized_pnl_usd": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Unrealized USD PnL; null when price or cost basis is unavailable."
                              },
                              "realized_pnl_usd": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Realized USD PnL; null when not provided."
                              },
                              "total_pnl_usd": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Combined USD PnL, when calculable."
                              },
                              "pnl_usd_percent": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Total USD PnL percentage (1 means 1%), when calculable."
                              },
                              "price_stale": {
                                "type": "boolean",
                                "description": "True when the valuation uses a stale price."
                              }
                            },
                            "required": [
                              "token_address",
                              "symbol",
                              "wallet_count",
                              "amount",
                              "value_usd",
                              "remaining_cost_basis_usd",
                              "unrealized_pnl_usd",
                              "realized_pnl_usd",
                              "total_pnl_usd",
                              "pnl_usd_percent",
                              "price_stale"
                            ]
                          },
                          "description": "Token holdings aggregated across the task wallets."
                        }
                      },
                      "required": [
                        "task_id",
                        "chain",
                        "retrieved_at",
                        "data_as_of",
                        "source",
                        "positions"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found (missing, foreign-owned or wrong task kind)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "unavailable (analytics could not provide a trustworthy answer)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/copy-trade/configs/{id}/performance": {
      "get": {
        "operationId": "getCopyTradeTaskPerformance",
        "tags": [
          "Copy Trade Configs"
        ],
        "summary": "Task-wide trading and PnL summary for a Copy Trade task",
        "description": "Task-wide bought, sold, holdings, PnL, position counts and gas fees from analytics. Holdings value and PnL are null when any held token lacks a usable price; gas remains separately reported. Do not add native amounts across chains. copy_sell_success_rate is a lifetime [0,1] order-record ratio, excluding zero-amount and explicit policy reject skips, and automatic exits; copy_sell_counts explains its denominator. Null means no eligible sample. PnL percentages instead use percentage points (1 = 1%). Gas covers recorded filled strategy trades only; an empty-sample fee average and zero-investment return are null. A wallet is required internally to query the summary, but only task-wide fields are exposed; no partial wallet balance is labeled complete. retrieved_at is gateway receipt time; data_as_of=null because the source does not report a snapshot timestamp. Requires the `copytrade:read` scope. Deleted tasks remain readable for history.",
        "x-apm-scopes": [
          "copytrade:read"
        ],
        "x-apm-nav-label": "Task performance",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Task config id returned by create or list."
            },
            "required": true,
            "description": "Task config id returned by create or list.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "task_id": {
                          "type": "string",
                          "description": "Task config id whose analytics are shown."
                        },
                        "chain": {
                          "type": "string",
                          "description": "Chain on which the task runs."
                        },
                        "retrieved_at": {
                          "type": "string",
                          "format": "date-time",
                          "description": "When the gateway received the analytics result. This is not the underlying trade or price snapshot time."
                        },
                        "data_as_of": {
                          "type": "null",
                          "description": "Underlying analytics snapshot time is unavailable."
                        },
                        "source": {
                          "type": "string",
                          "enum": [
                            "task-data/summary"
                          ],
                          "description": "Analytics endpoint that supplied this task summary."
                        },
                        "total_bought_usd": {
                          "type": "number",
                          "description": "Total recorded USD value bought by this task."
                        },
                        "total_sold_usd": {
                          "type": "number",
                          "description": "Total recorded USD value sold by this task."
                        },
                        "total_hold_usd": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Current holdings USD value; null when any held token lacks a usable price."
                        },
                        "total_pnl_usd": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Task analytics total PnL; null when any held token lacks price. Gas is reported separately."
                        },
                        "total_pnl_percentage": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Task PnL / total_bought_usd × 100 (1 means 1%). Null when any held token lacks price or total_bought_usd is zero; a zero-investment return is undefined."
                        },
                        "copy_sell_success_rate": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Lifetime order-record ratio in [0,1], not a percentage: filled / (filled + failed + timeout + reject) from copy-sell orders on this task and chain. Zero-amount sell skips and explicit configured-policy reject skips are excluded; balance, route, lookup and unknown rejections remain. Automatic exits and pending orders are excluded. Null when no eligible records exist. This is not overall exit success, profitability or a deduplicated leader-signal rate."
                        },
                        "copy_sell_counts": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "filled": {
                              "type": "integer",
                              "minimum": 0,
                              "description": "Successful copy-sell order records."
                            },
                            "failed": {
                              "type": "integer",
                              "minimum": 0,
                              "description": "Failed copy-sell order records."
                            },
                            "timeout": {
                              "type": "integer",
                              "minimum": 0,
                              "description": "Timed-out copy-sell order records; outcome may be unknown."
                            },
                            "reject": {
                              "type": "integer",
                              "minimum": 0,
                              "description": "Other rejected copy-sell records; zero-amount skips excluded."
                            },
                            "skipped_policy": {
                              "type": "integer",
                              "minimum": 0,
                              "description": "Explicit configured-policy reject skips, excluded from the denominator. Absent on older analytics; balance, route, lookup and unknown errors are not policy skips."
                            },
                            "skipped_no_position": {
                              "type": "integer",
                              "minimum": 0,
                              "description": "Zero-amount sell skips, including no tracked position, already exited and calculated zero amount. Excluded from the denominator."
                            }
                          },
                          "required": [
                            "filled",
                            "failed",
                            "timeout",
                            "reject",
                            "skipped_no_position"
                          ],
                          "description": "Counts used by copy_sell_success_rate, including excluded zero-amount skips. Null when the analytics version does not supply the breakdown."
                        },
                        "filled_trade_count": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "minimum": 0,
                          "description": "Recorded filled strategy trades, buys and sells, used for the gas-fee average. Null when not supplied by analytics."
                        },
                        "active_position_count": {
                          "type": "number",
                          "description": "Number of currently active token positions."
                        },
                        "total_position_count": {
                          "type": "number",
                          "description": "Number of token-summary rows for this task and chain, including closed holdings. This is not an order count or a count of repeated position openings."
                        },
                        "price_stale_tokens": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Token addresses whose prices are stale or unavailable."
                        },
                        "total_gas_fee_usd": {
                          "type": "number",
                          "description": "Recorded gas fees of filled strategy trades in USD; excludes failed-transaction gas and is not a complete wallet fee ledger. Reported separately from PnL."
                        },
                        "avg_fee_per_trade_usd": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Recorded gas USD divided by filled_trade_count, including buys and sells. Null with no filled trades or when the count is unavailable. Failed-transaction gas is not included."
                        }
                      },
                      "required": [
                        "task_id",
                        "chain",
                        "retrieved_at",
                        "data_as_of",
                        "source",
                        "total_bought_usd",
                        "total_sold_usd",
                        "total_hold_usd",
                        "total_pnl_usd",
                        "total_pnl_percentage",
                        "copy_sell_success_rate",
                        "copy_sell_counts",
                        "filled_trade_count",
                        "active_position_count",
                        "total_position_count",
                        "price_stale_tokens",
                        "total_gas_fee_usd",
                        "avg_fee_per_trade_usd"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found (missing, foreign-owned or wrong task kind)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "unavailable (analytics could not provide a trustworthy answer)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sniper/configs/{id}/positions": {
      "get": {
        "operationId": "listSniperTaskPositions",
        "tags": [
          "Sniper Configs"
        ],
        "summary": "Current token positions held by a Sniper task",
        "description": "Cross-wallet positions grouped by token for all wallets in this task. Amounts and remaining cost basis come from task analytics; nullable USD value and PnL mean unknown, not zero. price_stale flags an outdated valuation. retrieved_at is gateway receipt time; the underlying snapshot time is unavailable (data_as_of=null). Requires the `sniper:read` scope. Deleted tasks remain readable for history.",
        "x-apm-scopes": [
          "sniper:read"
        ],
        "x-apm-nav-label": "Task positions",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Task config id returned by create or list."
            },
            "required": true,
            "description": "Task config id returned by create or list.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "task_id": {
                          "type": "string",
                          "description": "Task config id whose analytics are shown."
                        },
                        "chain": {
                          "type": "string",
                          "description": "Chain on which the task runs."
                        },
                        "retrieved_at": {
                          "type": "string",
                          "format": "date-time",
                          "description": "When the gateway received the analytics result. This is not the underlying trade or price snapshot time."
                        },
                        "data_as_of": {
                          "type": "null",
                          "description": "Underlying analytics snapshot time is unavailable."
                        },
                        "source": {
                          "type": "string",
                          "enum": [
                            "task-data/positions"
                          ],
                          "description": "Analytics endpoint that supplied these holdings."
                        },
                        "positions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "token_address": {
                                "type": "string",
                                "description": "Token contract or mint address."
                              },
                              "symbol": {
                                "type": "string",
                                "description": "Token ticker shown by task analytics."
                              },
                              "wallet_count": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "minimum": 0,
                                "description": "Number of task wallets holding this token; null when unavailable."
                              },
                              "amount": {
                                "type": "number",
                                "description": "Current token amount across the task wallets."
                              },
                              "value_usd": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Current USD value; null if a usable price is unavailable."
                              },
                              "remaining_cost_basis_usd": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Remaining USD cost basis from task analytics; null when not provided."
                              },
                              "unrealized_pnl_usd": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Unrealized USD PnL; null when price or cost basis is unavailable."
                              },
                              "realized_pnl_usd": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Realized USD PnL; null when not provided."
                              },
                              "total_pnl_usd": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Combined USD PnL, when calculable."
                              },
                              "pnl_usd_percent": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Total USD PnL percentage (1 means 1%), when calculable."
                              },
                              "price_stale": {
                                "type": "boolean",
                                "description": "True when the valuation uses a stale price."
                              }
                            },
                            "required": [
                              "token_address",
                              "symbol",
                              "wallet_count",
                              "amount",
                              "value_usd",
                              "remaining_cost_basis_usd",
                              "unrealized_pnl_usd",
                              "realized_pnl_usd",
                              "total_pnl_usd",
                              "pnl_usd_percent",
                              "price_stale"
                            ]
                          },
                          "description": "Token holdings aggregated across the task wallets."
                        }
                      },
                      "required": [
                        "task_id",
                        "chain",
                        "retrieved_at",
                        "data_as_of",
                        "source",
                        "positions"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found (missing, foreign-owned or wrong task kind)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "unavailable (analytics could not provide a trustworthy answer)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sniper/configs/{id}/performance": {
      "get": {
        "operationId": "getSniperTaskPerformance",
        "tags": [
          "Sniper Configs"
        ],
        "summary": "Task-wide trading and PnL summary for a Sniper task",
        "description": "Task-wide bought, sold, holdings, PnL, position counts and gas fees from analytics. Holdings value and PnL are null when any held token lacks a usable price; gas remains separately reported. Do not add native amounts across chains. copy_sell_success_rate is a lifetime [0,1] order-record ratio, excluding zero-amount and explicit policy reject skips, and automatic exits; copy_sell_counts explains its denominator. Null means no eligible sample. PnL percentages instead use percentage points (1 = 1%). Gas covers recorded filled strategy trades only; an empty-sample fee average and zero-investment return are null. A wallet is required internally to query the summary, but only task-wide fields are exposed; no partial wallet balance is labeled complete. retrieved_at is gateway receipt time; data_as_of=null because the source does not report a snapshot timestamp. Requires the `sniper:read` scope. Deleted tasks remain readable for history.",
        "x-apm-scopes": [
          "sniper:read"
        ],
        "x-apm-nav-label": "Task performance",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Task config id returned by create or list."
            },
            "required": true,
            "description": "Task config id returned by create or list.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "task_id": {
                          "type": "string",
                          "description": "Task config id whose analytics are shown."
                        },
                        "chain": {
                          "type": "string",
                          "description": "Chain on which the task runs."
                        },
                        "retrieved_at": {
                          "type": "string",
                          "format": "date-time",
                          "description": "When the gateway received the analytics result. This is not the underlying trade or price snapshot time."
                        },
                        "data_as_of": {
                          "type": "null",
                          "description": "Underlying analytics snapshot time is unavailable."
                        },
                        "source": {
                          "type": "string",
                          "enum": [
                            "task-data/summary"
                          ],
                          "description": "Analytics endpoint that supplied this task summary."
                        },
                        "total_bought_usd": {
                          "type": "number",
                          "description": "Total recorded USD value bought by this task."
                        },
                        "total_sold_usd": {
                          "type": "number",
                          "description": "Total recorded USD value sold by this task."
                        },
                        "total_hold_usd": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Current holdings USD value; null when any held token lacks a usable price."
                        },
                        "total_pnl_usd": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Task analytics total PnL; null when any held token lacks price. Gas is reported separately."
                        },
                        "total_pnl_percentage": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Task PnL / total_bought_usd × 100 (1 means 1%). Null when any held token lacks price or total_bought_usd is zero; a zero-investment return is undefined."
                        },
                        "copy_sell_success_rate": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Lifetime order-record ratio in [0,1], not a percentage: filled / (filled + failed + timeout + reject) from copy-sell orders on this task and chain. Zero-amount sell skips and explicit configured-policy reject skips are excluded; balance, route, lookup and unknown rejections remain. Automatic exits and pending orders are excluded. Null when no eligible records exist. This is not overall exit success, profitability or a deduplicated leader-signal rate."
                        },
                        "copy_sell_counts": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "filled": {
                              "type": "integer",
                              "minimum": 0,
                              "description": "Successful copy-sell order records."
                            },
                            "failed": {
                              "type": "integer",
                              "minimum": 0,
                              "description": "Failed copy-sell order records."
                            },
                            "timeout": {
                              "type": "integer",
                              "minimum": 0,
                              "description": "Timed-out copy-sell order records; outcome may be unknown."
                            },
                            "reject": {
                              "type": "integer",
                              "minimum": 0,
                              "description": "Other rejected copy-sell records; zero-amount skips excluded."
                            },
                            "skipped_policy": {
                              "type": "integer",
                              "minimum": 0,
                              "description": "Explicit configured-policy reject skips, excluded from the denominator. Absent on older analytics; balance, route, lookup and unknown errors are not policy skips."
                            },
                            "skipped_no_position": {
                              "type": "integer",
                              "minimum": 0,
                              "description": "Zero-amount sell skips, including no tracked position, already exited and calculated zero amount. Excluded from the denominator."
                            }
                          },
                          "required": [
                            "filled",
                            "failed",
                            "timeout",
                            "reject",
                            "skipped_no_position"
                          ],
                          "description": "Counts used by copy_sell_success_rate, including excluded zero-amount skips. Null when the analytics version does not supply the breakdown."
                        },
                        "filled_trade_count": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "minimum": 0,
                          "description": "Recorded filled strategy trades, buys and sells, used for the gas-fee average. Null when not supplied by analytics."
                        },
                        "active_position_count": {
                          "type": "number",
                          "description": "Number of currently active token positions."
                        },
                        "total_position_count": {
                          "type": "number",
                          "description": "Number of token-summary rows for this task and chain, including closed holdings. This is not an order count or a count of repeated position openings."
                        },
                        "price_stale_tokens": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Token addresses whose prices are stale or unavailable."
                        },
                        "total_gas_fee_usd": {
                          "type": "number",
                          "description": "Recorded gas fees of filled strategy trades in USD; excludes failed-transaction gas and is not a complete wallet fee ledger. Reported separately from PnL."
                        },
                        "avg_fee_per_trade_usd": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Recorded gas USD divided by filled_trade_count, including buys and sells. Null with no filled trades or when the count is unavailable. Failed-transaction gas is not included."
                        }
                      },
                      "required": [
                        "task_id",
                        "chain",
                        "retrieved_at",
                        "data_as_of",
                        "source",
                        "total_bought_usd",
                        "total_sold_usd",
                        "total_hold_usd",
                        "total_pnl_usd",
                        "total_pnl_percentage",
                        "copy_sell_success_rate",
                        "copy_sell_counts",
                        "filled_trade_count",
                        "active_position_count",
                        "total_position_count",
                        "price_stale_tokens",
                        "total_gas_fee_usd",
                        "avg_fee_per_trade_usd"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found (missing, foreign-owned or wrong task kind)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "unavailable (analytics could not provide a trustworthy answer)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders": {
      "get": {
        "operationId": "listAccountOrders",
        "tags": [
          "Orders"
        ],
        "x-apm-scopes": [
          "orders:read"
        ],
        "summary": "List my account orders",
        "description": "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`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "maxLength": 3699,
              "description": "Optional comma-separated order IDs, up to one hundred UUIDs."
            },
            "required": false,
            "description": "Optional comma-separated order IDs, up to one hundred UUIDs.",
            "name": "orderIds",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1024,
              "description": "Cursor from the previous account order page."
            },
            "required": false,
            "description": "Cursor from the previous account order page.",
            "name": "cursor",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "description": "Maximum account orders returned in one page."
            },
            "required": false,
            "description": "Maximum account orders returned in one page.",
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "boolean",
              "default": true,
              "description": "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."
            },
            "required": false,
            "description": "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.",
            "name": "includeReject",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "buy",
                "sell"
              ],
              "description": "Filter by buy or sell direction."
            },
            "required": false,
            "description": "Filter by buy or sell direction.",
            "name": "side",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "copy",
                "take_profit",
                "stop_loss",
                "trailing_stop",
                "timed",
                "auto",
                "manual",
                "external",
                "stop"
              ],
              "description": "Filter by order type."
            },
            "required": false,
            "description": "Filter by order type.",
            "name": "type",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "solana",
                "bsc",
                "base",
                "robinhood",
                "arc"
              ],
              "description": "Filter to one supported account-order chain."
            },
            "required": false,
            "description": "Filter to one supported account-order chain.",
            "name": "chain",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "description": "Filter by token address or mint."
            },
            "required": false,
            "description": "Filter by token address or mint.",
            "name": "token",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "description": "Filter by owned wallet address."
            },
            "required": false,
            "description": "Filter by owned wallet address.",
            "name": "wallet",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "orders": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "buy_tier": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "minimum": 0,
                                "description": "Zero-based index of the selected buy tier, when recorded."
                              },
                              "buy_tier_market_cap_usd": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^-?\\d+(\\.\\d+)?$",
                                "description": "Market cap used to select the buy tier, as a USD decimal string, when recorded."
                              },
                              "trailing_fire": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "description": "One-based trigger number across all tiers of this buy’s repeating trailing ladder, when recorded."
                              },
                              "order_id": {
                                "type": "string",
                                "description": "Account order ID."
                              },
                              "chain": {
                                "type": "string",
                                "enum": [
                                  "solana",
                                  "bsc",
                                  "base",
                                  "robinhood",
                                  "arc"
                                ],
                                "description": "Chain on which the order was recorded."
                              },
                              "task_id": {
                                "type": "string",
                                "description": "Related copy-trade or sniper task ID, when present."
                              },
                              "strategy_task_id": {
                                "type": "string",
                                "description": "Related strategy task ID (source \"strategy\"), when present."
                              },
                              "order_type": {
                                "type": "string",
                                "description": "Display order type, such as copy, market, stop, or task_close (task-close liquidation)."
                              },
                              "stop_type": {
                                "type": "string",
                                "description": "Stop-order subtype when this is a stop order."
                              },
                              "wallet": {
                                "type": "string",
                                "description": "Wallet address used by the order."
                              },
                              "side": {
                                "type": "string",
                                "enum": [
                                  "buy",
                                  "sell",
                                  ""
                                ],
                                "description": "Buy, sell, or empty for a rejected copy order with no executed direction."
                              },
                              "status": {
                                "type": "string",
                                "description": "Recorded order lifecycle status."
                              },
                              "reasonCode": {
                                "type": "string",
                                "description": "Stable machine-readable rejection or failure reason code."
                              },
                              "errorMsg": {
                                "type": "string",
                                "description": "Normalized human-readable order error message."
                              },
                              "error_code": {
                                "type": "string",
                                "description": "Source error code, when recorded."
                              },
                              "price_strategy": {
                                "type": "string",
                                "description": "Execution price strategy used for this order."
                              },
                              "price_reference_source": {
                                "type": "string",
                                "description": "Source used for the execution reference price."
                              },
                              "price_min_amount_out": {
                                "type": "string",
                                "description": "Minimum output amount used by the price strategy."
                              },
                              "flash_sell_status": {
                                "type": "string",
                                "description": "Flash-sell lifecycle status when applicable."
                              },
                              "flash_sell_error": {
                                "type": "string",
                                "description": "Flash-sell failure reason when applicable."
                              },
                              "token": {
                                "type": "object",
                                "properties": {
                                  "address": {
                                    "type": "string",
                                    "description": "Token contract or mint address."
                                  },
                                  "symbol": {
                                    "type": "string",
                                    "description": "Token ticker when known."
                                  },
                                  "icon": {
                                    "type": "string",
                                    "description": "Token icon URL when known."
                                  }
                                },
                                "required": [
                                  "address"
                                ],
                                "description": "Token involved in the order."
                              },
                              "tx_hash": {
                                "type": "string",
                                "description": "Resulting on-chain transaction hash, when available."
                              },
                              "explorerUrl": {
                                "type": "string",
                                "description": "Explorer URL for the resulting transaction."
                              },
                              "amountToken": {
                                "type": "number",
                                "description": "Recorded token quantity in display units."
                              },
                              "amountNative": {
                                "type": "number",
                                "description": "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."
                              },
                              "amountUsd": {
                                "type": "number",
                                "description": "Settlement side in USD, priced with the USD price of the settlement currency recorded on the order."
                              },
                              "filledPriceUsd": {
                                "type": "number",
                                "description": "Execution price per token in USD."
                              },
                              "filledMc": {
                                "type": "number",
                                "description": "Market capitalization at execution when recorded."
                              },
                              "leader_tx_hash": {
                                "type": "string",
                                "description": "Leader transaction hash followed by this task order."
                              },
                              "source": {
                                "type": "string",
                                "description": "Original order source, such as web, API, extension, or bot."
                              },
                              "expiration": {
                                "type": "number",
                                "description": "Stop-order expiry time in Unix milliseconds."
                              },
                              "trigger_price_usd": {
                                "type": "number",
                                "description": "Stop-order trigger price in USD."
                              },
                              "triggered": {
                                "type": "boolean",
                                "description": "Whether the stop-order trigger has fired."
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time",
                                "description": "Order creation time in ISO 8601 format."
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time",
                                "description": "Last order update time in ISO 8601 format."
                              }
                            },
                            "required": [
                              "order_id",
                              "chain",
                              "order_type",
                              "wallet",
                              "side",
                              "status",
                              "token",
                              "createdAt",
                              "updatedAt"
                            ]
                          },
                          "description": "Account orders in this cursor page."
                        },
                        "page": {
                          "type": "object",
                          "properties": {
                            "nextCursor": {
                              "type": "string",
                              "description": "Cursor for the next page, omitted at the end."
                            },
                            "hasMore": {
                              "type": "boolean",
                              "description": "Whether another page is available."
                            }
                          },
                          "required": [
                            "hasMore"
                          ],
                          "description": "Cursor pagination state for account orders."
                        }
                      },
                      "required": [
                        "orders",
                        "page"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/open/{chain}": {
      "get": {
        "operationId": "listAccountOpenOrders",
        "tags": [
          "Orders"
        ],
        "x-apm-scopes": [
          "orders:read"
        ],
        "summary": "List my open orders on a chain",
        "description": "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`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 32,
              "description": "Chain whose open manual orders are queried."
            },
            "required": true,
            "description": "Chain whose open manual orders are queried.",
            "name": "chain",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "description": "Optional token address or mint to filter open orders."
            },
            "required": false,
            "description": "Optional token address or mint to filter open orders.",
            "name": "token",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 1,
              "description": "One-based page number in the current owner-filtered open-order snapshot."
            },
            "required": false,
            "description": "One-based page number in the current owner-filtered open-order snapshot.",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "description": "Maximum open orders per page."
            },
            "required": false,
            "description": "Maximum open orders per page.",
            "name": "limit",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "buy_tier": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "minimum": 0,
                            "description": "Zero-based index of the selected buy tier, when recorded."
                          },
                          "buy_tier_market_cap_usd": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^-?\\d+(\\.\\d+)?$",
                            "description": "Market cap used to select the buy tier, as a USD decimal string, when recorded."
                          },
                          "orderId": {
                            "type": "string",
                            "minLength": 1,
                            "description": "Open order ID."
                          },
                          "task_id": {
                            "type": "string",
                            "description": "Task ID for an exit order whose task is no longer live for this user."
                          },
                          "task_deleted": {
                            "type": "boolean",
                            "enum": [
                              true
                            ],
                            "description": "Present when the task is deleted or its document no longer exists."
                          },
                          "chain": {
                            "type": "string",
                            "minLength": 1,
                            "description": "Chain on which the open order is placed."
                          },
                          "venue": {
                            "type": "string",
                            "enum": [
                              "oms",
                              "cell"
                            ],
                            "description": "Execution venue: Go OMS or Cell."
                          },
                          "side": {
                            "type": "string",
                            "enum": [
                              "buy",
                              "sell"
                            ],
                            "description": "Whether the order buys or sells."
                          },
                          "wallet": {
                            "type": "object",
                            "properties": {
                              "address": {
                                "type": "string",
                                "minLength": 1,
                                "description": "Owned wallet address."
                              },
                              "name": {
                                "type": "string",
                                "description": "User-visible wallet name, or empty when unavailable."
                              }
                            },
                            "required": [
                              "address",
                              "name"
                            ],
                            "description": "Wallet that owns this open order."
                          },
                          "token": {
                            "type": "object",
                            "properties": {
                              "address": {
                                "type": "string",
                                "minLength": 1,
                                "description": "Token contract or mint address."
                              },
                              "symbol": {
                                "type": "string",
                                "description": "Token ticker, or empty when unavailable."
                              },
                              "name": {
                                "type": "string",
                                "description": "Token name, or empty when unavailable."
                              },
                              "icon": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Token icon URL, or null when unavailable."
                              }
                            },
                            "required": [
                              "address",
                              "symbol",
                              "name",
                              "icon"
                            ],
                            "description": "Token traded by this open order."
                          },
                          "trigger": {
                            "type": "object",
                            "properties": {
                              "direction": {
                                "type": "string",
                                "enum": [
                                  "above",
                                  "below"
                                ],
                                "description": "Whether the trigger fires above or below its price."
                              },
                              "priceUsd": {
                                "type": "string",
                                "minLength": 1,
                                "description": "Trigger price in USD as a decimal string."
                              },
                              "marketCapUsd": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "minLength": 1,
                                "description": "Equivalent trigger market capitalization in USD, or null when unavailable."
                              }
                            },
                            "required": [
                              "direction",
                              "priceUsd",
                              "marketCapUsd"
                            ],
                            "description": "Price condition that activates this open order."
                          },
                          "amount": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "unit": {
                                    "type": "string",
                                    "enum": [
                                      "native"
                                    ],
                                    "description": "Amount is denominated in native or quote-asset units."
                                  },
                                  "value": {
                                    "type": "string",
                                    "minLength": 1,
                                    "description": "Decimal native or quote-asset amount."
                                  }
                                },
                                "required": [
                                  "unit",
                                  "value"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "unit": {
                                    "type": "string",
                                    "enum": [
                                      "token"
                                    ],
                                    "description": "Amount is denominated in token units."
                                  },
                                  "value": {
                                    "type": "string",
                                    "minLength": 1,
                                    "description": "Decimal token amount."
                                  }
                                },
                                "required": [
                                  "unit",
                                  "value"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "unit": {
                                    "type": "string",
                                    "enum": [
                                      "percent"
                                    ],
                                    "description": "Amount is a percentage of the holding."
                                  },
                                  "value": {
                                    "type": "string",
                                    "minLength": 1,
                                    "description": "Decimal percentage from zero to one hundred."
                                  }
                                },
                                "required": [
                                  "unit",
                                  "value"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "unit": {
                                    "type": "string",
                                    "enum": [
                                      "unknown"
                                    ],
                                    "description": "Order source did not provide a usable amount."
                                  }
                                },
                                "required": [
                                  "unit"
                                ]
                              }
                            ],
                            "description": "Order quantity together with its explicit unit."
                          },
                          "expiresAt": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "Order expiration in Unix milliseconds, or null if it does not expire."
                          },
                          "createdAt": {
                            "type": "integer",
                            "description": "Order creation time in Unix milliseconds."
                          },
                          "source": {
                            "type": "string",
                            "description": "Original order source, or empty when absent."
                          }
                        },
                        "required": [
                          "orderId",
                          "chain",
                          "venue",
                          "side",
                          "wallet",
                          "token",
                          "trigger",
                          "amount",
                          "expiresAt",
                          "createdAt",
                          "source"
                        ]
                      },
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        },
                        "page": {
                          "type": "number",
                          "description": "One-based page number returned."
                        },
                        "total_pages": {
                          "type": "number",
                          "description": "Number of pages in the current owner-filtered snapshot."
                        },
                        "total_records": {
                          "type": "number",
                          "description": "Number of matching owner-visible open orders."
                        },
                        "has_more": {
                          "type": "boolean",
                          "description": "Whether a later page is available."
                        }
                      },
                      "required": [
                        "request_id",
                        "page",
                        "total_pages",
                        "total_records",
                        "has_more"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/by-request/{request_id}": {
      "get": {
        "operationId": "getAccountOrdersByRequestId",
        "tags": [
          "Orders"
        ],
        "x-apm-scopes": [
          "orders:read"
        ],
        "summary": "Look up my order IDs by request ID",
        "description": "An empty orderIds array means no owner-visible result is recorded. It does not prove the request exists, was queued, or is pending. Another user’s request has the same empty response. Requires `orders:read`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "description": "Original order-submission request ID."
            },
            "required": true,
            "description": "Original order-submission request ID.",
            "name": "request_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "orderIds": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Owner-visible order IDs recorded for this request; empty does not prove pending status."
                        },
                        "errors": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          },
                          "description": "Client-safe error codes keyed by order ID, when available."
                        }
                      },
                      "required": [
                        "orderIds"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{order_id}": {
      "get": {
        "operationId": "getAccountOrder",
        "tags": [
          "Orders"
        ],
        "x-apm-scopes": [
          "orders:read"
        ],
        "summary": "Get one of my account orders",
        "description": "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`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "description": "Owner-visible account order ID."
            },
            "required": true,
            "description": "Owner-visible account order ID.",
            "name": "order_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "buy_tier": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "minimum": 0,
                          "description": "Zero-based index of the selected buy tier, when recorded."
                        },
                        "buy_tier_market_cap_usd": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Market cap used to select the buy tier, as a USD decimal string, when recorded."
                        },
                        "trailing_fire": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "description": "One-based trigger number across all tiers of this buy’s repeating trailing ladder, when recorded."
                        },
                        "order_id": {
                          "type": "string",
                          "description": "Account order ID."
                        },
                        "chain": {
                          "type": "string",
                          "enum": [
                            "solana",
                            "bsc",
                            "base",
                            "robinhood",
                            "arc"
                          ],
                          "description": "Chain on which the order was recorded."
                        },
                        "task_id": {
                          "type": "string",
                          "description": "Related copy-trade or sniper task ID, when present."
                        },
                        "strategy_task_id": {
                          "type": "string",
                          "description": "Related strategy task ID (source \"strategy\"), when present."
                        },
                        "order_type": {
                          "type": "string",
                          "description": "Display order type, such as copy, market, stop, or task_close (task-close liquidation)."
                        },
                        "stop_type": {
                          "type": "string",
                          "description": "Stop-order subtype when this is a stop order."
                        },
                        "wallet": {
                          "type": "string",
                          "description": "Wallet address used by the order."
                        },
                        "side": {
                          "type": "string",
                          "enum": [
                            "buy",
                            "sell",
                            ""
                          ],
                          "description": "Buy, sell, or empty for a rejected copy order with no executed direction."
                        },
                        "status": {
                          "type": "string",
                          "description": "Recorded order lifecycle status."
                        },
                        "reasonCode": {
                          "type": "string",
                          "description": "Stable machine-readable rejection or failure reason code."
                        },
                        "errorMsg": {
                          "type": "string",
                          "description": "Normalized human-readable order error message."
                        },
                        "error_code": {
                          "type": "string",
                          "description": "Source error code, when recorded."
                        },
                        "price_strategy": {
                          "type": "string",
                          "description": "Execution price strategy used for this order."
                        },
                        "price_reference_source": {
                          "type": "string",
                          "description": "Source used for the execution reference price."
                        },
                        "price_min_amount_out": {
                          "type": "string",
                          "description": "Minimum output amount used by the price strategy."
                        },
                        "flash_sell_status": {
                          "type": "string",
                          "description": "Flash-sell lifecycle status when applicable."
                        },
                        "flash_sell_error": {
                          "type": "string",
                          "description": "Flash-sell failure reason when applicable."
                        },
                        "token": {
                          "type": "object",
                          "properties": {
                            "address": {
                              "type": "string",
                              "description": "Token contract or mint address."
                            },
                            "symbol": {
                              "type": "string",
                              "description": "Token ticker when known."
                            },
                            "icon": {
                              "type": "string",
                              "description": "Token icon URL when known."
                            }
                          },
                          "required": [
                            "address"
                          ],
                          "description": "Token involved in the order."
                        },
                        "tx_hash": {
                          "type": "string",
                          "description": "Resulting on-chain transaction hash, when available."
                        },
                        "explorerUrl": {
                          "type": "string",
                          "description": "Explorer URL for the resulting transaction."
                        },
                        "amountToken": {
                          "type": "number",
                          "description": "Recorded token quantity in display units."
                        },
                        "amountNative": {
                          "type": "number",
                          "description": "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."
                        },
                        "amountUsd": {
                          "type": "number",
                          "description": "Settlement side in USD, priced with the USD price of the settlement currency recorded on the order."
                        },
                        "filledPriceUsd": {
                          "type": "number",
                          "description": "Execution price per token in USD."
                        },
                        "filledMc": {
                          "type": "number",
                          "description": "Market capitalization at execution when recorded."
                        },
                        "leader_tx_hash": {
                          "type": "string",
                          "description": "Leader transaction hash followed by this task order."
                        },
                        "source": {
                          "type": "string",
                          "description": "Original order source, such as web, API, extension, or bot."
                        },
                        "expiration": {
                          "type": "number",
                          "description": "Stop-order expiry time in Unix milliseconds."
                        },
                        "trigger_price_usd": {
                          "type": "number",
                          "description": "Stop-order trigger price in USD."
                        },
                        "triggered": {
                          "type": "boolean",
                          "description": "Whether the stop-order trigger has fired."
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "Order creation time in ISO 8601 format."
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "Last order update time in ISO 8601 format."
                        }
                      },
                      "required": [
                        "order_id",
                        "chain",
                        "order_type",
                        "wallet",
                        "side",
                        "status",
                        "token",
                        "createdAt",
                        "updatedAt"
                      ],
                      "description": "Response payload."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": "string",
                          "description": "Id of this request. Also sent as the X-Request-Id response header."
                        }
                      },
                      "required": [
                        "request_id"
                      ],
                      "description": "Request id, plus paging fields when this operation is a list."
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized (missing/invalid/revoked/expired Bearer token)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "insufficient_scope / ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (Retry-After response header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "500": {
            "description": "internal_error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        }
      }
    }
  },
  "webhooks": {},
  "x-apm-chain-capabilities": {
    "version": 1,
    "chains": [
      {
        "id": "robinhood",
        "name": "Robinhood",
        "addressFormat": "evm",
        "executionRoute": "cell"
      },
      {
        "id": "bsc",
        "name": "BSC",
        "addressFormat": "evm",
        "executionRoute": "cell"
      },
      {
        "id": "solana",
        "name": "Solana",
        "addressFormat": "solana_base58",
        "executionRoute": "cell"
      }
    ],
    "common": {
      "copyTradeAndSniperLifecycle": true,
      "walletDirectory": true,
      "ordersAndTradesRead": true,
      "blockXray": {
        "path": "/v1/block-xray",
        "requestsPerUserPerMinute": 12,
        "note": {
          "en": "Solana, BSC and Robinhood return fees and optional token-scoped failures. BSC also returns builder tips and inferred bundle bids when traces are available. Arc retains legacy success rows. Missing indexed fields are omitted.",
          "zh-CN": "Solana、BSC、Robinhood 返回费用与可选的同币失败行。BSC 在链上 trace 可用时也返回出块方小费和推断的 bundle 出价。Arc 保留旧成交读面。尚无索引数据的字段省略。",
          "ru": "Solana, BSC и Robinhood возвращают комиссии и необязательные неудачные попытки по токену. Если доступны трассировки BSC, ответ также содержит чаевые сборщика и ставки предполагаемых пакетов. Arc сохраняет прежние успешные сделки. Отсутствующие индексированные поля опускаются."
        }
      },
      "chainFilteredList": true
    },
    "manualTrading": {
      "releaseStatus": "production",
      "availability": "requires_enabled_cell_route",
      "note": {
        "en": "Direct manual trading is enabled in production on Solana, BSC and Robinhood through their own Cell. Exchange an API Key for a chain-specific token, then use the returned gateway URL. Availability and permissions are checked at token issuance.",
        "zh-CN": "Solana、BSC、Robinhood 已通过各自的 Cell 在生产开放直连手动交易。使用 API Key 换取单链 token，再调用返回的网关 URL；换票时检查可用性与权限。",
        "ru": "Прямая ручная торговля доступна в production в Solana, BSC и Robinhood через их Cell. Обменяйте API Key на токен выбранной сети и используйте возвращённый URL шлюза. Доступность и разрешения проверяются при выдаче токена."
      },
      "chains": [
        "solana",
        "bsc",
        "robinhood"
      ],
      "exchange": {
        "method": "POST",
        "path": "/v1/cell-token",
        "authentication": "api_key",
        "requiredScope": "orders:read"
      },
      "operationEndpoint": "returned_gateway_url",
      "operations": [
        {
          "id": "market_buy",
          "method": "POST",
          "path": "/v1/orders/place",
          "kind": "market",
          "side": "buy",
          "requiredScope": "orders:buy"
        },
        {
          "id": "market_sell",
          "method": "POST",
          "path": "/v1/orders/place",
          "kind": "market",
          "side": "sell",
          "requiredScope": "orders:sell"
        },
        {
          "id": "limit_buy",
          "method": "POST",
          "path": "/v1/orders/place",
          "kind": "limit",
          "side": "buy",
          "requiredScope": "orders:buy"
        },
        {
          "id": "limit_sell",
          "method": "POST",
          "path": "/v1/orders/place",
          "kind": "limit",
          "side": "sell",
          "requiredScope": "orders:sell"
        },
        {
          "id": "cancel",
          "method": "POST",
          "path": "/v1/orders/{order_id}/cancel",
          "requiredScope": "orders:cancel"
        },
        {
          "id": "status",
          "method": "GET",
          "path": "/v1/orders/{order_id}/status",
          "requiredScope": "orders:read"
        },
        {
          "id": "sse",
          "method": "GET",
          "path": "/v1/orders/stream",
          "requiredScope": "orders:read"
        }
      ]
    },
    "features": [
      {
        "id": "task_buy_pause_reasons",
        "label": {
          "en": "Task buying pause",
          "zh-CN": "任务停买",
          "ru": "Пауза покупок задачи"
        },
        "field": "run_state.reason",
        "chains": {
          "robinhood": {
            "status": "supported",
            "note": {
              "en": "Buys pause with loss_streak, creator_limit, follow_count, buy_fail_streak or leader_token_limit; sells and exits continue. Reopening resets follow/loss/creator counts, but leader counts persist: raise that cap or disable its filter before reopening. A rolling creator window skips capped creators without pausing buys.",
              "zh-CN": "连续买单失败、跟随次数达标、连亏、创建者狙满、跟单对象代币数用尽分别停买，卖出与出场照常。重新打开重置跟随、连亏和创建者次数；跟单对象计数保留，须先调高上限或关闭过滤。设了创建者时间窗口只跳过达到上限的创建者。",
              "ru": "Покупки приостанавливаются по loss_streak, creator_limit, follow_count, buy_fail_streak или leader_token_limit; продажи продолжаются. Повторное включение обнуляет число копирований, убытки и снайпинг создателей, но сохраняет токены лидеров: увеличьте лимит или отключите фильтр. С окном пропускаются только создатели, достигшие лимита."
            }
          },
          "bsc": {
            "status": "supported",
            "note": {
              "en": "Buys pause with loss_streak, creator_limit, follow_count, buy_fail_streak or leader_token_limit; sells and exits continue. Reopening resets follow/loss/creator counts, but leader counts persist: raise that cap or disable its filter before reopening. A rolling creator window skips capped creators without pausing buys.",
              "zh-CN": "连续买单失败、跟随次数达标、连亏、创建者狙满、跟单对象代币数用尽分别停买，卖出与出场照常。重新打开重置跟随、连亏和创建者次数；跟单对象计数保留，须先调高上限或关闭过滤。设了创建者时间窗口只跳过达到上限的创建者。",
              "ru": "Покупки приостанавливаются по loss_streak, creator_limit, follow_count, buy_fail_streak или leader_token_limit; продажи продолжаются. Повторное включение обнуляет число копирований, убытки и снайпинг создателей, но сохраняет токены лидеров: увеличьте лимит или отключите фильтр. С окном пропускаются только создатели, достигшие лимита."
            }
          },
          "solana": {
            "status": "supported",
            "note": {
              "en": "Buys pause with loss_streak, creator_limit, follow_count, buy_fail_streak or leader_token_limit; sells and exits continue. Reopening resets follow/loss/creator counts, but leader counts persist: raise that cap or disable its filter before reopening. A rolling creator window skips capped creators without pausing buys.",
              "zh-CN": "连续买单失败、跟随次数达标、连亏、创建者狙满、跟单对象代币数用尽分别停买，卖出与出场照常。重新打开重置跟随、连亏和创建者次数；跟单对象计数保留，须先调高上限或关闭过滤。设了创建者时间窗口只跳过达到上限的创建者。",
              "ru": "Покупки приостанавливаются по loss_streak, creator_limit, follow_count, buy_fail_streak или leader_token_limit; продажи продолжаются. Повторное включение обнуляет число копирований, убытки и снайпинг создателей, но сохраняет токены лидеров: увеличьте лимит или отключите фильтр. С окном пропускаются только создатели, достигшие лимита."
            }
          }
        }
      },
      {
        "id": "wallet_auto_balance",
        "label": {
          "en": "Wallet auto-balance",
          "zh-CN": "钱包自动平衡",
          "ru": "Автобалансировка кошелька"
        },
        "field": "/v1/wallets/{wallet}/auto-balance",
        "chains": {
          "robinhood": {
            "status": "unavailable"
          },
          "bsc": {
            "status": "unavailable"
          },
          "solana": {
            "status": "conditional",
            "note": {
              "en": "Per wallet and off by default. Requires an enabled live strategy. SOL to USDC also requires USDC trading on an enabled live strategy for the wallet.",
              "zh-CN": "每个钱包单独设置，默认关闭。需要启用实盘策略。SOL 换 USDC 还要求该钱包有启用中且打开 USDC 交易的实盘策略。",
              "ru": "Настройка отдельная для каждого кошелька и выключена по умолчанию. Нужна активная реальная стратегия. Для обмена SOL на USDC она должна использовать торговлю в USDC."
            }
          }
        }
      },
      {
        "id": "wallet_rankings",
        "label": {
          "en": "Wallet rankings",
          "zh-CN": "钱包榜单",
          "ru": "Рейтинги кошельков"
        },
        "field": "/v1/wallet-rankings",
        "chains": {
          "robinhood": {
            "status": "supported",
            "note": {
              "en": "Hot is paused and returns an empty list until confirmed copy-trading wallets are observed on this chain. Rising, steady profit and long hold are published daily, and the merged ranking includes their wallets.",
              "zh-CN": "热门榜暂停，在这条链上观察到确认的跟单钱包之前返回空名单。新秀、稳定盈利、长持每天照常发布，合并榜包含这三个榜的钱包。",
              "ru": "Рейтинг популярных кошельков приостановлен и возвращает пустой список, пока в этой сети не появятся подтверждённые копирующие кошельки. Рейтинги «На подъёме», «Стабильная прибыль» и «Долгое удержание» публикуются ежедневно, их кошельки входят в объединённый рейтинг."
            }
          },
          "bsc": {
            "status": "supported",
            "note": {
              "en": "Hot is paused and returns an empty list until confirmed copy-trading wallets are observed on this chain. Rising, steady profit and long hold are published daily, and the merged ranking includes their wallets.",
              "zh-CN": "热门榜暂停，在这条链上观察到确认的跟单钱包之前返回空名单。新秀、稳定盈利、长持每天照常发布，合并榜包含这三个榜的钱包。",
              "ru": "Рейтинг популярных кошельков приостановлен и возвращает пустой список, пока в этой сети не появятся подтверждённые копирующие кошельки. Рейтинги «На подъёме», «Стабильная прибыль» и «Долгое удержание» публикуются ежедневно, их кошельки входят в объединённый рейтинг."
            }
          },
          "solana": {
            "status": "supported"
          }
        }
      },
      {
        "id": "user_inbox",
        "label": {
          "en": "User inbox",
          "zh-CN": "用户站内信",
          "ru": "Входящие пользователя"
        },
        "field": "/v1/inbox",
        "chains": {
          "robinhood": {
            "status": "supported",
            "note": {
              "en": "Account inbox REST and MCP. Explicit inbox:read/write scopes; read status is shared across devices and read-all stops at a sequence watermark.",
              "zh-CN": "账户站内信 REST 与 MCP。显式 inbox:read/write 权限；已读跨端同步，全部已读以序列水位为界。",
              "ru": "Входящие аккаунта через REST и MCP. Отдельные разрешения inbox:read/write; статус чтения синхронизируется между устройствами, массовое чтение ограничено порядковым номером."
            }
          },
          "bsc": {
            "status": "supported",
            "note": {
              "en": "Account inbox REST and MCP. Explicit inbox:read/write scopes; read status is shared across devices and read-all stops at a sequence watermark.",
              "zh-CN": "账户站内信 REST 与 MCP。显式 inbox:read/write 权限；已读跨端同步，全部已读以序列水位为界。",
              "ru": "Входящие аккаунта через REST и MCP. Отдельные разрешения inbox:read/write; статус чтения синхронизируется между устройствами, массовое чтение ограничено порядковым номером."
            }
          },
          "solana": {
            "status": "supported",
            "note": {
              "en": "Account inbox REST and MCP. Explicit inbox:read/write scopes; read status is shared across devices and read-all stops at a sequence watermark.",
              "zh-CN": "账户站内信 REST 与 MCP。显式 inbox:read/write 权限；已读跨端同步，全部已读以序列水位为界。",
              "ru": "Входящие аккаунта через REST и MCP. Отдельные разрешения inbox:read/write; статус чтения синхронизируется между устройствами, массовое чтение ограничено порядковым номером."
            }
          }
        }
      },
      {
        "id": "account_buy_pause",
        "label": {
          "en": "Pause all buying",
          "zh-CN": "暂停全部买入",
          "ru": "Приостановить все покупки"
        },
        "field": "/v1/strategy-tasks/account-buy-pause",
        "chains": {
          "robinhood": {
            "status": "supported",
            "note": {
              "en": "Account-wide REST and MCP switch, applicable to all chains and strategy task types. Pauses new buys only; sells and exits continue, and individual task enabled states stay unchanged.",
              "zh-CN": "账户级 REST 与 MCP 开关，全链、全部策略任务适用。只暂停新买入；卖出与出场照常，单个任务的启停状态不变。",
              "ru": "Переключатель REST и MCP для аккаунта действует во всех сетях и для всех типов стратегических задач. Приостанавливает только новые покупки; продажи и выходы продолжаются, состояние включения отдельных задач не меняется."
            }
          },
          "bsc": {
            "status": "supported",
            "note": {
              "en": "Account-wide REST and MCP switch, applicable to all chains and strategy task types. Pauses new buys only; sells and exits continue, and individual task enabled states stay unchanged.",
              "zh-CN": "账户级 REST 与 MCP 开关，全链、全部策略任务适用。只暂停新买入；卖出与出场照常，单个任务的启停状态不变。",
              "ru": "Переключатель REST и MCP для аккаунта действует во всех сетях и для всех типов стратегических задач. Приостанавливает только новые покупки; продажи и выходы продолжаются, состояние включения отдельных задач не меняется."
            }
          },
          "solana": {
            "status": "supported",
            "note": {
              "en": "Account-wide REST and MCP switch, applicable to all chains and strategy task types. Pauses new buys only; sells and exits continue, and individual task enabled states stay unchanged.",
              "zh-CN": "账户级 REST 与 MCP 开关，全链、全部策略任务适用。只暂停新买入；卖出与出场照常，单个任务的启停状态不变。",
              "ru": "Переключатель REST и MCP для аккаунта действует во всех сетях и для всех типов стратегических задач. Приостанавливает только новые покупки; продажи и выходы продолжаются, состояние включения отдельных задач не меняется."
            }
          }
        }
      },
      {
        "id": "task_labels",
        "label": {
          "en": "Task labels",
          "zh-CN": "任务标签",
          "ru": "Метки задач"
        },
        "field": "labels",
        "chains": {
          "robinhood": {
            "status": "supported"
          },
          "bsc": {
            "status": "supported"
          },
          "solana": {
            "status": "supported"
          }
        }
      },
      {
        "id": "strategy_task_venue_exclusions",
        "label": {
          "en": "Task venue exclusions",
          "zh-CN": "任务未勾选场所",
          "ru": "Исключённые площадки задачи"
        },
        "field": "/v1/strategy-tasks/venue-exclusions",
        "chains": {
          "robinhood": {
            "status": "supported",
            "note": {
              "en": "List the last 24 hours of venue-filtered buys and allow a venue with the current task version via REST or MCP.",
              "zh-CN": "通过 REST 或 MCP 查看过去 24 小时因场所过滤被拒的买入，并凭当前任务版本勾选场所。",
              "ru": "REST и MCP показывают покупки, отклонённые фильтром площадок за последние 24 часа, и позволяют добавить площадку по текущей версии задачи."
            }
          },
          "bsc": {
            "status": "supported",
            "note": {
              "en": "List the last 24 hours of venue-filtered buys and allow a venue with the current task version via REST or MCP.",
              "zh-CN": "通过 REST 或 MCP 查看过去 24 小时因场所过滤被拒的买入，并凭当前任务版本勾选场所。",
              "ru": "REST и MCP показывают покупки, отклонённые фильтром площадок за последние 24 часа, и позволяют добавить площадку по текущей версии задачи."
            }
          },
          "solana": {
            "status": "supported",
            "note": {
              "en": "List the last 24 hours of venue-filtered buys and allow a venue with the current task version via REST or MCP.",
              "zh-CN": "通过 REST 或 MCP 查看过去 24 小时因场所过滤被拒的买入，并凭当前任务版本勾选场所。",
              "ru": "REST и MCP показывают покупки, отклонённые фильтром площадок за последние 24 часа, и позволяют добавить площадку по текущей версии задачи."
            }
          }
        }
      },
      {
        "id": "strategy_tasks",
        "label": {
          "en": "Strategy tasks",
          "zh-CN": "策略任务",
          "ru": "Стратегические задачи"
        },
        "field": "/v1/strategy-tasks",
        "chains": {
          "robinhood": {
            "status": "supported",
            "note": {
              "en": "Public REST and MCP for apm.task/2 tasks; no Lab flag required. Repeated trailing tiers sell a share of the remaining position. Created paused; resume checks execution support and wallet ownership. X and Pump.fun signal limits accept the call-time price with an offset or a fixed USD price.",
              "zh-CN": "公开 REST 与 MCP 管理 apm.task/2 任务，无需 Lab 开关。阶梯回撤每次卖出剩余仓位的一部分。创建时暂停；启用校验执行能力与钱包归属。X 与 Pump.fun 喊单限价支持相对喊单时价格的偏移或固定美元价。",
              "ru": "Публичные REST и MCP для задач apm.task/2 без флага Lab. Повторные продажи при откате рассчитываются от остатка позиции. Создание в паузе; возобновление проверяет поддержку исполнения и владельца кошелька. Лимитные покупки по сигналам X и Pump.fun используют цену сигнала со смещением или фиксированную цену в USD."
            }
          },
          "bsc": {
            "status": "supported",
            "note": {
              "en": "Public REST and MCP for apm.task/2 tasks; no Lab flag required. Repeated trailing tiers sell a share of the remaining position. Created paused; resume checks execution support and wallet ownership. X and Pump.fun signal limits accept the call-time price with an offset or a fixed USD price.",
              "zh-CN": "公开 REST 与 MCP 管理 apm.task/2 任务，无需 Lab 开关。阶梯回撤每次卖出剩余仓位的一部分。创建时暂停；启用校验执行能力与钱包归属。X 与 Pump.fun 喊单限价支持相对喊单时价格的偏移或固定美元价。",
              "ru": "Публичные REST и MCP для задач apm.task/2 без флага Lab. Повторные продажи при откате рассчитываются от остатка позиции. Создание в паузе; возобновление проверяет поддержку исполнения и владельца кошелька. Лимитные покупки по сигналам X и Pump.fun используют цену сигнала со смещением или фиксированную цену в USD."
            }
          },
          "solana": {
            "status": "supported",
            "note": {
              "en": "Public REST and MCP for apm.task/2 tasks; no Lab flag required. Repeated trailing tiers sell a share of the remaining position. Created paused; resume checks execution support and wallet ownership. X and Pump.fun signal limits accept the call-time price with an offset or a fixed USD price.",
              "zh-CN": "公开 REST 与 MCP 管理 apm.task/2 任务，无需 Lab 开关。阶梯回撤每次卖出剩余仓位的一部分。创建时暂停；启用校验执行能力与钱包归属。X 与 Pump.fun 喊单限价支持相对喊单时价格的偏移或固定美元价。",
              "ru": "Публичные REST и MCP для задач apm.task/2 без флага Lab. Повторные продажи при откате рассчитываются от остатка позиции. Создание в паузе; возобновление проверяет поддержку исполнения и владельца кошелька. Лимитные покупки по сигналам X и Pump.fun используют цену сигнала со смещением или фиксированную цену в USD."
            }
          }
        }
      },
      {
        "id": "exit_amount_basis",
        "label": {
          "en": "Sell by bought or remaining amount",
          "zh-CN": "按买入数量或当前剩余卖出",
          "ru": "Продажа от купленного количества или остатка"
        },
        "field": "exits.rules[].do.sell.amount / exits.segmented_take_profit_basis",
        "chains": {
          "robinhood": {
            "status": "supported"
          },
          "bsc": {
            "status": "supported"
          },
          "solana": {
            "status": "supported"
          }
        }
      },
      {
        "id": "buy_fail_streak",
        "label": {
          "en": "Consecutive buy failure protection",
          "zh-CN": "连续失败保护",
          "ru": "Защита от серии неудачных покупок"
        },
        "field": "task.buy_fail_streak",
        "chains": {
          "robinhood": {
            "status": "supported"
          },
          "bsc": {
            "status": "supported"
          },
          "solana": {
            "status": "supported"
          }
        }
      },
      {
        "id": "stop_after_follows",
        "label": {
          "en": "Pause after successful follows",
          "zh-CN": "成功跟随后停买",
          "ru": "Пауза после успешных копирований"
        },
        "field": "buy_filter.stop_after_follows",
        "appliesTo": "copy_trade",
        "chains": {
          "robinhood": {
            "status": "supported"
          },
          "bsc": {
            "status": "supported"
          },
          "solana": {
            "status": "supported"
          }
        }
      },
      {
        "id": "copy_buy_dynamic",
        "label": {
          "en": "Dynamic copy buy amount",
          "zh-CN": "跟单动态金额",
          "ru": "Динамическая сумма покупки"
        },
        "field": "buy.max_per_trade",
        "chains": {
          "robinhood": {
            "status": "supported"
          },
          "bsc": {
            "status": "supported"
          },
          "solana": {
            "status": "supported"
          }
        }
      },
      {
        "id": "copy_buy_tiers",
        "label": {
          "en": "Tiered copy buys",
          "zh-CN": "分档跟买",
          "ru": "Уровни копирования покупок"
        },
        "field": "buy.tiers",
        "chains": {
          "robinhood": {
            "status": "supported",
            "note": {
              "en": "Forward wallet copy buys use the first of up to 10 tiers matching the leader buy fill market cap. Each tier sets its own size, slippage and fees. The legacy config API supports market buys; use a strategy task for limit buys.",
              "zh-CN": "正向钱包跟买按领单买入成交市值匹配，最多 10 档，第一档命中即采用，各档独立设置金额、滑点和费用。旧配置接口支持市价买入，限价买入使用策略任务接口。",
              "ru": "Для прямого копирования покупок выбирается первый из максимум 10 уровней по капитализации на момент исполнения покупки лидера. У каждого уровня свой размер, проскальзывание и комиссии. В прежнем API доступны рыночные покупки, лимитные задаются через задачи стратегий."
            }
          },
          "bsc": {
            "status": "supported",
            "note": {
              "en": "Forward wallet copy buys use the first of up to 10 tiers matching the leader buy fill market cap. Each tier sets its own size, slippage and fees. The legacy config API supports market buys; use a strategy task for limit buys.",
              "zh-CN": "正向钱包跟买按领单买入成交市值匹配，最多 10 档，第一档命中即采用，各档独立设置金额、滑点和费用。旧配置接口支持市价买入，限价买入使用策略任务接口。",
              "ru": "Для прямого копирования покупок выбирается первый из максимум 10 уровней по капитализации на момент исполнения покупки лидера. У каждого уровня свой размер, проскальзывание и комиссии. В прежнем API доступны рыночные покупки, лимитные задаются через задачи стратегий."
            }
          },
          "solana": {
            "status": "supported",
            "note": {
              "en": "Forward wallet copy buys use the first of up to 10 tiers matching the leader buy fill market cap. Each tier sets its own size, slippage and fees. The legacy config API supports market buys; use a strategy task for limit buys.",
              "zh-CN": "正向钱包跟买按领单买入成交市值匹配，最多 10 档，第一档命中即采用，各档独立设置金额、滑点和费用。旧配置接口支持市价买入，限价买入使用策略任务接口。",
              "ru": "Для прямого копирования покупок выбирается первый из максимум 10 уровней по капитализации на момент исполнения покупки лидера. У каждого уровня свой размер, проскальзывание и комиссии. В прежнем API доступны рыночные покупки, лимитные задаются через задачи стратегий."
            }
          }
        }
      },
      {
        "id": "signal_token_filters",
        "label": {
          "en": "Callout token filters",
          "zh-CN": "喊单代币过滤",
          "ru": "Фильтры токена для сигналов"
        },
        "field": "spec.strategies[].entries[].when",
        "chains": {
          "robinhood": {
            "status": "supported",
            "note": {
              "en": "social_mention entries accept token.market_cap_usd, token.buy_tax_bps, token.sell_tax_bps, token.age_sec and token.address. Market cap and fee caps must be direct children of the root all; a limit entry cannot carry market cap. Age and address are judged when the post arrives; a token with no known launch time fails an age condition. Both social sources can filter token.dex at the root all by the main pool on the selected route. Market cap is checked before sending with the order's route quote and again on-chain, where the ceiling allows about 30% above the maximum.",
              "zh-CN": "social_mention 入场可用 token.market_cap_usd、token.buy_tax_bps、token.sell_tax_bps、token.age_sec、token.address。市值与费率上限须为根 all 的直接子条件；限价入场不能带市值。年龄与地址在帖子到达时判定，查不到上线时间的代币不满足年龄条件。两种喊单来源都可在根 all 下按所选路线主池过滤 token.dex。市值在发单前按本单路由报价判定，链上合约再检查一次，合约上限比所填上限宽约 30%。",
              "ru": "Входы social_mention принимают token.market_cap_usd, token.buy_tax_bps, token.sell_tax_bps, token.age_sec и token.address. Капитализация и лимиты комиссий должны быть прямыми потомками корневого all; лимитный вход не может содержать капитализацию. Возраст и адрес проверяются при получении публикации; токен с неизвестным временем запуска не проходит условие возраста. Оба источника сигналов поддерживают token.dex в корневом all по основному пулу маршрута. Капитализация проверяется перед отправкой по котировке маршрута ордера и ещё раз в контракте, где потолок допускает примерно на 30% выше максимума."
            }
          },
          "bsc": {
            "status": "supported",
            "note": {
              "en": "social_mention entries accept token.market_cap_usd, token.buy_tax_bps, token.sell_tax_bps, token.age_sec and token.address. Market cap and fee caps must be direct children of the root all; a limit entry cannot carry market cap. Age and address are judged when the post arrives; a token with no known launch time fails an age condition. Both social sources can filter token.dex at the root all by the main pool on the selected route. Market cap is checked before sending with the order's route quote and again on-chain, where the ceiling allows about 30% above the maximum.",
              "zh-CN": "social_mention 入场可用 token.market_cap_usd、token.buy_tax_bps、token.sell_tax_bps、token.age_sec、token.address。市值与费率上限须为根 all 的直接子条件；限价入场不能带市值。年龄与地址在帖子到达时判定，查不到上线时间的代币不满足年龄条件。两种喊单来源都可在根 all 下按所选路线主池过滤 token.dex。市值在发单前按本单路由报价判定，链上合约再检查一次，合约上限比所填上限宽约 30%。",
              "ru": "Входы social_mention принимают token.market_cap_usd, token.buy_tax_bps, token.sell_tax_bps, token.age_sec и token.address. Капитализация и лимиты комиссий должны быть прямыми потомками корневого all; лимитный вход не может содержать капитализацию. Возраст и адрес проверяются при получении публикации; токен с неизвестным временем запуска не проходит условие возраста. Оба источника сигналов поддерживают token.dex в корневом all по основному пулу маршрута. Капитализация проверяется перед отправкой по котировке маршрута ордера и ещё раз в контракте, где потолок допускает примерно на 30% выше максимума."
            }
          },
          "solana": {
            "status": "supported",
            "note": {
              "en": "social_mention entries accept token.market_cap_usd, token.buy_tax_bps, token.sell_tax_bps, token.age_sec and token.address. Market cap and fee caps must be direct children of the root all; a limit entry cannot carry market cap. Age and address are judged when the post arrives; a token with no known launch time fails an age condition. Both social sources can filter token.dex at the root all by the main pool on the selected route. Market cap is checked before sending with the order's route quote. The root all can also filter token.quote_class on the selected main pool, the pool that directly trades the token; conversion hops before it, such as through USDC, do not count.",
              "zh-CN": "social_mention 入场可用 token.market_cap_usd、token.buy_tax_bps、token.sell_tax_bps、token.age_sec、token.address。市值与费率上限须为根 all 的直接子条件；限价入场不能带市值。年龄与地址在帖子到达时判定，查不到上线时间的代币不满足年龄条件。两种喊单来源都可在根 all 下按所选路线主池过滤 token.dex。市值在发单前按本单路由报价判定。根 all 还可按主池计价币类别过滤 token.quote_class，主池即直接买到该币的池子，途中经 USDC 等中转不算。",
              "ru": "Входы social_mention принимают token.market_cap_usd, token.buy_tax_bps, token.sell_tax_bps, token.age_sec и token.address. Капитализация и лимиты комиссий должны быть прямыми потомками корневого all; лимитный вход не может содержать капитализацию. Возраст и адрес проверяются при получении публикации; токен с неизвестным временем запуска не проходит условие возраста. Оба источника сигналов поддерживают token.dex в корневом all по основному пулу маршрута. Капитализация проверяется перед отправкой по котировке маршрута ордера. Корневой all также поддерживает token.quote_class по основному пулу, где покупается сам токен; промежуточные обмены, например через USDC, не учитываются."
            }
          }
        }
      },
      {
        "id": "pump_callout",
        "label": {
          "en": "Pump.fun callouts",
          "zh-CN": "Pump.fun 喊单",
          "ru": "Сигналы Pump.fun"
        },
        "field": "spec.strategies[].entries[].on",
        "chains": {
          "robinhood": {
            "status": "supported",
            "note": {
              "en": "One social_mention source {platform:\"pump_fun\", source_id:\"home_new\"}. Live market and limit buys, with optional buy delay. Each entry needs signal.author in with 1–200 callers (username, wallet address, user ID, or pump.fun profile link); saving resolves each to a user ID. There is no separate lookup route.",
              "zh-CN": "只用一个 social_mention 来源 {platform:\"pump_fun\", source_id:\"home_new\"}。仅实盘，支持市价和限价买入，可设买入延迟。每个入场都要有 signal.author in，1–200 个喊单人（支持用户名、钱包地址、用户 ID 或 pump.fun 主页链接）；保存时解析为 user ID。没有单独的查询接口。",
              "ru": "Один источник social_mention {platform:\"pump_fun\", source_id:\"home_new\"}. Рыночные и лимитные покупки в реальном режиме с необязательной задержкой. Каждому входу нужен signal.author in с 1–200 авторами (имя, адрес кошелька, user ID или ссылка на профиль pump.fun); при сохранении они преобразуются в user ID. Отдельного запроса нет."
            }
          },
          "bsc": {
            "status": "supported",
            "note": {
              "en": "One social_mention source {platform:\"pump_fun\", source_id:\"home_new\"}. Live market and limit buys, with optional buy delay. Each entry needs signal.author in with 1–200 callers (username, wallet address, user ID, or pump.fun profile link); saving resolves each to a user ID. There is no separate lookup route.",
              "zh-CN": "只用一个 social_mention 来源 {platform:\"pump_fun\", source_id:\"home_new\"}。仅实盘，支持市价和限价买入，可设买入延迟。每个入场都要有 signal.author in，1–200 个喊单人（支持用户名、钱包地址、用户 ID 或 pump.fun 主页链接）；保存时解析为 user ID。没有单独的查询接口。",
              "ru": "Один источник social_mention {platform:\"pump_fun\", source_id:\"home_new\"}. Рыночные и лимитные покупки в реальном режиме с необязательной задержкой. Каждому входу нужен signal.author in с 1–200 авторами (имя, адрес кошелька, user ID или ссылка на профиль pump.fun); при сохранении они преобразуются в user ID. Отдельного запроса нет."
            }
          },
          "solana": {
            "status": "supported",
            "note": {
              "en": "One social_mention source {platform:\"pump_fun\", source_id:\"home_new\"}. Live market and limit buys, with optional buy delay. Each entry needs signal.author in with 1–200 callers (username, wallet address, user ID, or pump.fun profile link); saving resolves each to a user ID. There is no separate lookup route.",
              "zh-CN": "只用一个 social_mention 来源 {platform:\"pump_fun\", source_id:\"home_new\"}。仅实盘，支持市价和限价买入，可设买入延迟。每个入场都要有 signal.author in，1–200 个喊单人（支持用户名、钱包地址、用户 ID 或 pump.fun 主页链接）；保存时解析为 user ID。没有单独的查询接口。",
              "ru": "Один источник social_mention {platform:\"pump_fun\", source_id:\"home_new\"}. Рыночные и лимитные покупки в реальном режиме с необязательной задержкой. Каждому входу нужен signal.author in с 1–200 авторами (имя, адрес кошелька, user ID или ссылка на профиль pump.fun); при сохранении они преобразуются в user ID. Отдельного запроса нет."
            }
          }
        }
      },
      {
        "id": "buy_sol_slippage",
        "label": {
          "en": "SOL slippage",
          "zh-CN": "SOL 滑点",
          "ru": "Проскальзывание в SOL"
        },
        "field": "buy_slippage_sol",
        "chains": {
          "bsc": {
            "status": "unavailable"
          },
          "robinhood": {
            "status": "unavailable"
          },
          "solana": {
            "status": "supported",
            "note": {
              "en": "Copy and sniper buys. Minimum 0.1 SOL, up to 9 decimals. Replaces percentage buy slippage; PATCH null restores percentage mode. X and Pump.fun buys use spec.exec.buy.fee.slippage_sol.",
              "zh-CN": "跟单与狙击买入。最低 0.1 SOL，最多 9 位小数；与买入百分比滑点二选一，PATCH null 切回百分比。X 与 Pump.fun 喊单买入使用 spec.exec.buy.fee.slippage_sol。",
              "ru": "Покупки копирования и снайпинга. Минимум 0,1 SOL, до 9 знаков. Заменяет процентное проскальзывание покупки; PATCH null возвращает процентный режим. Покупки по сигналам X и Pump.fun используют spec.exec.buy.fee.slippage_sol."
            }
          }
        }
      },
      {
        "id": "dev_sell",
        "label": {
          "en": "Dev Sell",
          "zh-CN": "Dev 卖出",
          "ru": "Продажа разработчика"
        },
        "field": "exit.dev_sell.enabled",
        "chains": {
          "bsc": {
            "status": "conditional",
            "note": {
              "en": "Requires a known token creator.",
              "zh-CN": "需要已知的代币创建者。",
              "ru": "Требуется известный создатель токена."
            }
          },
          "robinhood": {
            "status": "conditional",
            "note": {
              "en": "Requires a known token creator.",
              "zh-CN": "需要已知的代币创建者。",
              "ru": "Требуется известный создатель токена."
            }
          },
          "solana": {
            "status": "conditional",
            "note": {
              "en": "Requires a known token creator.",
              "zh-CN": "需要已知的代币创建者。",
              "ru": "Требуется известный создатель токена."
            }
          }
        }
      },
      {
        "id": "max_block_gap",
        "label": {
          "en": "Maximum block gap",
          "zh-CN": "最大区块间隔",
          "ru": "Максимальный разрыв в блоках"
        },
        "field": "max_block_gap",
        "appliesTo": "copy_trade",
        "chains": {
          "bsc": {
            "status": "supported"
          },
          "robinhood": {
            "status": "supported"
          },
          "solana": {
            "status": "supported"
          }
        }
      },
      {
        "id": "timed_sell",
        "label": {
          "en": "Flash Sell",
          "zh-CN": "闪电卖出",
          "ru": "Мгновенная продажа"
        },
        "field": "exit.timed_sell.enabled / exit.timed_sell.same_block_delay_ms / exit.timed_sell.next_block_delay_ms",
        "chains": {
          "bsc": {
            "status": "supported"
          },
          "robinhood": {
            "status": "supported"
          },
          "solana": {
            "status": "supported"
          }
        }
      },
      {
        "id": "anti_wick",
        "label": {
          "en": "Anti-wick",
          "zh-CN": "防插针",
          "ru": "Защита от шпилек"
        },
        "field": "exit.anti_wick / exits.anti_wick",
        "chains": {
          "solana": {
            "status": "supported",
            "note": {
              "en": "Off by default: ordinary take profit, stop loss and the strategy's limit buys trigger when a qualifying trade touches the trigger price, then fill at market, so the fill can differ from the trigger price. On: they trigger only if the price still meets the condition at the end of the slot. Segmented take profit, trailing and break-even stops and exit rules always trigger on the end-of-slot price.",
              "zh-CN": "默认关闭：普通止盈、止损及本策略的限价买单，在一笔合格的成交触及触发价时触发，按市价成交，成交价可能与触发价不同。开启后，slot 结束时价格仍满足条件才触发。分段止盈、移动止损、保本止损和出场规则始终按 slot 结束时的价格触发。",
              "ru": "По умолчанию выключено: обычный тейк-профит, стоп-лосс и лимитные покупки стратегии срабатывают, как только подходящая сделка коснётся цены срабатывания, и исполняются по рынку, поэтому цена исполнения может отличаться. Если включено, срабатывание происходит, только если цена всё ещё соответствует условию в конце слота. Поэтапный тейк-профит, трейлинг и безубыточный стоп и правила выхода всегда срабатывают по цене в конце слота."
            }
          },
          "bsc": {
            "status": "stored_only",
            "note": {
              "en": "Accepted and saved; has no effect on this chain.",
              "zh-CN": "可保存，在该链上无效果。",
              "ru": "Принимается и сохраняется; в этой сети не действует."
            }
          },
          "robinhood": {
            "status": "stored_only",
            "note": {
              "en": "Accepted and saved; has no effect on this chain.",
              "zh-CN": "可保存，在该链上无效果。",
              "ru": "Принимается и сохраняется; в этой сети не действует."
            }
          }
        }
      },
      {
        "id": "auto_sell",
        "label": {
          "en": "Auto Sell",
          "zh-CN": "自动卖出",
          "ru": "Автоматическая продажа"
        },
        "field": "/v1/auto-sell-tasks",
        "chains": {
          "bsc": {
            "status": "supported",
            "note": {
              "en": "Per-item REST and MCP; created paused. Each item has editable sell slippage and gas settings, with chain defaults and restrictions. Price/time exits (including repeating trailing ladders), dev sell and migration sell exits protect future manual or wallet buys, excluding task buys. Event exits keep each buy's original rule; migration sell requires a launch-curve buy and dev sell cannot be cancelled per order. Resume validates execution support; edits and pause preserve existing orders.",
              "zh-CN": "REST 与 MCP 按项管理，创建时暂停。每项可修改卖出滑点与 gas，沿用链默认值与限制。价格/时间（含阶梯回撤）、开发者卖出与迁移卖出保护之后的手动或钱包买入，不含任务单。事件出场按买入时规则冻结；迁移卖出仅适用于发行曲线上的买入，开发者卖出不能逐单撤销；启用时校验执行能力，修改与暂停保留已有保护单。",
              "ru": "REST и MCP управляют отдельными правилами; создание в паузе. Для каждого правила можно менять проскальзывание продажи и газ с учётом значений по умолчанию и ограничений сети. Выходы по цене/времени (включая повторные продажи при откате), продаже создателя и миграции защищают будущие ручные покупки или покупки кошелька, кроме покупок задач. Выходы по событиям сохраняют правило на момент покупки; продажа при миграции действует только для покупок на кривой запуска, а слежение за продажей создателя нельзя отменить как отдельный ордер. Возобновление проверяет поддержку исполнения; изменения и пауза сохраняют существующие ордера."
            }
          },
          "robinhood": {
            "status": "supported",
            "note": {
              "en": "Per-item REST and MCP; created paused. Each item has editable sell slippage and gas settings, with chain defaults and restrictions. Price/time exits (including repeating trailing ladders), dev sell and migration sell exits protect future manual or wallet buys, excluding task buys. Event exits keep each buy's original rule; migration sell requires a launch-curve buy and dev sell cannot be cancelled per order. Resume validates execution support; edits and pause preserve existing orders.",
              "zh-CN": "REST 与 MCP 按项管理，创建时暂停。每项可修改卖出滑点与 gas，沿用链默认值与限制。价格/时间（含阶梯回撤）、开发者卖出与迁移卖出保护之后的手动或钱包买入，不含任务单。事件出场按买入时规则冻结；迁移卖出仅适用于发行曲线上的买入，开发者卖出不能逐单撤销；启用时校验执行能力，修改与暂停保留已有保护单。",
              "ru": "REST и MCP управляют отдельными правилами; создание в паузе. Для каждого правила можно менять проскальзывание продажи и газ с учётом значений по умолчанию и ограничений сети. Выходы по цене/времени (включая повторные продажи при откате), продаже создателя и миграции защищают будущие ручные покупки или покупки кошелька, кроме покупок задач. Выходы по событиям сохраняют правило на момент покупки; продажа при миграции действует только для покупок на кривой запуска, а слежение за продажей создателя нельзя отменить как отдельный ордер. Возобновление проверяет поддержку исполнения; изменения и пауза сохраняют существующие ордера."
            }
          },
          "solana": {
            "status": "supported",
            "note": {
              "en": "Per-item REST and MCP; created paused. Each item has editable sell slippage and gas settings, with chain defaults and restrictions. Price/time exits (including repeating trailing ladders), dev sell and migration sell exits protect future manual or wallet buys, excluding task buys. Event exits keep each buy's original rule; migration sell requires a launch-curve buy and dev sell cannot be cancelled per order. Resume validates execution support; edits and pause preserve existing orders.",
              "zh-CN": "REST 与 MCP 按项管理，创建时暂停。每项可修改卖出滑点与 gas，沿用链默认值与限制。价格/时间（含阶梯回撤）、开发者卖出与迁移卖出保护之后的手动或钱包买入，不含任务单。事件出场按买入时规则冻结；迁移卖出仅适用于发行曲线上的买入，开发者卖出不能逐单撤销；启用时校验执行能力，修改与暂停保留已有保护单。",
              "ru": "REST и MCP управляют отдельными правилами; создание в паузе. Для каждого правила можно менять проскальзывание продажи и газ с учётом значений по умолчанию и ограничений сети. Выходы по цене/времени (включая повторные продажи при откате), продаже создателя и миграции защищают будущие ручные покупки или покупки кошелька, кроме покупок задач. Выходы по событиям сохраняют правило на момент покупки; продажа при миграции действует только для покупок на кривой запуска, а слежение за продажей создателя нельзя отменить как отдельный ордер. Возобновление проверяет поддержку исполнения; изменения и пауза сохраняют существующие ордера."
            }
          }
        }
      },
      {
        "id": "managed_sell",
        "label": {
          "en": "Managed Sell (Web)",
          "zh-CN": "托管卖出（Web）",
          "ru": "Управляемая продажа (Web)"
        },
        "field": "task_type: managed_sell",
        "appliesTo": "web",
        "chains": {
          "bsc": {
            "status": "unavailable",
            "note": {
              "en": "Managed-sell tasks are retired: creation is rejected; configuration writes to archived tasks, including pause and delete, return task_read_only; labels-only PATCH remains available. Use /v1/auto-sell-tasks for per-item Auto Sell on supported chains.",
              "zh-CN": "托管卖出任务已退役：创建被拒绝；归档任务的配置写入（含停用、删除）返回 task_read_only，仍可单独修改标签。自动卖出在支持链上使用 /v1/auto-sell-tasks 按项管理。",
              "ru": "Задачи managed-sell отключены: создание запрещено; изменения конфигурации архивных задач, включая паузу и удаление, возвращают task_read_only; PATCH только меток по-прежнему доступен. Для Auto Sell в поддерживаемых сетях используйте /v1/auto-sell-tasks."
            }
          },
          "robinhood": {
            "status": "unavailable",
            "note": {
              "en": "Managed-sell tasks are retired: creation is rejected; configuration writes to archived tasks, including pause and delete, return task_read_only; labels-only PATCH remains available. Use /v1/auto-sell-tasks for per-item Auto Sell on supported chains.",
              "zh-CN": "托管卖出任务已退役：创建被拒绝；归档任务的配置写入（含停用、删除）返回 task_read_only，仍可单独修改标签。自动卖出在支持链上使用 /v1/auto-sell-tasks 按项管理。",
              "ru": "Задачи managed-sell отключены: создание запрещено; изменения конфигурации архивных задач, включая паузу и удаление, возвращают task_read_only; PATCH только меток по-прежнему доступен. Для Auto Sell в поддерживаемых сетях используйте /v1/auto-sell-tasks."
            }
          },
          "solana": {
            "status": "unavailable",
            "note": {
              "en": "Managed-sell tasks are retired: creation is rejected; configuration writes to archived tasks, including pause and delete, return task_read_only; labels-only PATCH remains available. Use /v1/auto-sell-tasks for per-item Auto Sell on supported chains.",
              "zh-CN": "托管卖出任务已退役：创建被拒绝；归档任务的配置写入（含停用、删除）返回 task_read_only，仍可单独修改标签。自动卖出在支持链上使用 /v1/auto-sell-tasks 按项管理。",
              "ru": "Задачи managed-sell отключены: создание запрещено; изменения конфигурации архивных задач, включая паузу и удаление, возвращают task_read_only; PATCH только меток по-прежнему доступен. Для Auto Sell в поддерживаемых сетях используйте /v1/auto-sell-tasks."
            }
          }
        }
      },
      {
        "id": "dex_filter",
        "label": {
          "en": "DEX Filter",
          "zh-CN": "DEX 过滤",
          "ru": "Фильтр DEX"
        },
        "field": "buy_filter.dex.allowed",
        "appliesTo": "copy_trade",
        "chains": {
          "bsc": {
            "status": "supported"
          },
          "robinhood": {
            "status": "supported"
          },
          "solana": {
            "status": "supported",
            "note": {
              "en": "12 execution venues plus Pump modes. Matches the venue where the leader bought the token; Pump alone excludes Pump AMM buys after graduation. Buys only; held tokens can still be sold after graduation.",
              "zh-CN": "12 个成交场所及 Pump 模式。按买入成交场所判断：只勾 Pump 时，币毕业后在 Pump AMM 的买入不跟；DEX 过滤只管买入，已持有的币毕业后照常卖出。",
              "ru": "12 площадок исполнения и режимы Pump. Учитывается площадка покупки лидера: выбор только Pump исключает покупки на Pump AMM после миграции. Фильтр действует только на покупки; уже купленные токены можно продавать после миграции."
            }
          }
        }
      },
      {
        "id": "buy_count_include_failed",
        "label": {
          "en": "Count failed buys",
          "zh-CN": "失败跟买也计数",
          "ru": "Учитывать неудачные покупки"
        },
        "field": "buy_filter.per_token_buy_limit.count_failed",
        "appliesTo": "copy_trade",
        "chains": {
          "bsc": {
            "status": "supported"
          },
          "robinhood": {
            "status": "supported"
          },
          "solana": {
            "status": "supported"
          }
        }
      },
      {
        "id": "token_age",
        "label": {
          "en": "Token age filter",
          "zh-CN": "币龄过滤",
          "ru": "Фильтр возраста токена"
        },
        "field": "buy_filter.token_age",
        "chains": {
          "bsc": {
            "status": "supported"
          },
          "robinhood": {
            "status": "supported"
          },
          "solana": {
            "status": "conditional",
            "note": {
              "en": "Age counts from the token's launchpad creation only. A token with no launch record counts as older than any limit: it passes min_sec and fails max_sec.",
              "zh-CN": "年龄只从代币在发射台创建起算。没有发射记录的代币视为比任何界限都老：满足 min_sec，不满足 max_sec。",
              "ru": "Возраст отсчитывается только от создания токена на лаунчпаде. Токен без записи о запуске считается старше любого предела: проходит min_sec и не проходит max_sec."
            }
          }
        }
      },
      {
        "id": "buy_fee_filter",
        "label": {
          "en": "Maximum buy fee",
          "zh-CN": "最高买入费率",
          "ru": "Максимальная комиссия покупки"
        },
        "field": "buy_fee_filter_enabled / buy_fee_max_bps",
        "chains": {
          "bsc": {
            "status": "supported",
            "note": {
              "en": "Enabled by default at 25% (2500 bps); an absent enabled flag uses a valid stored limit, otherwise 2500 bps. Explicit false disables it.",
              "zh-CN": "默认开启，上限 25%（2500 bps）；启用字段缺席时采用已有有效上限，否则为 2500 bps。显式 false 关闭。",
              "ru": "По умолчанию включён лимит 25% (2500 bps); без флага используется допустимый сохранённый лимит, иначе 2500 bps. Явное false отключает фильтр."
            }
          },
          "robinhood": {
            "status": "supported",
            "note": {
              "en": "Enabled by default at 25% (2500 bps); an absent enabled flag uses a valid stored limit, otherwise 2500 bps. Explicit false disables it.",
              "zh-CN": "默认开启，上限 25%（2500 bps）；启用字段缺席时采用已有有效上限，否则为 2500 bps。显式 false 关闭。",
              "ru": "По умолчанию включён лимит 25% (2500 bps); без флага используется допустимый сохранённый лимит, иначе 2500 bps. Явное false отключает фильтр."
            }
          },
          "solana": {
            "status": "supported",
            "note": {
              "en": "Enabled by default at 25% (2500 bps); an absent enabled flag uses a valid stored limit, otherwise 2500 bps. Explicit false disables it.",
              "zh-CN": "默认开启，上限 25%（2500 bps）；启用字段缺席时采用已有有效上限，否则为 2500 bps。显式 false 关闭。",
              "ru": "По умолчанию включён лимит 25% (2500 bps); без флага используется допустимый сохранённый лимит, иначе 2500 bps. Явное false отключает фильтр."
            }
          }
        }
      },
      {
        "id": "min_sell_usd",
        "label": {
          "en": "Minimum sell amount (USD)",
          "zh-CN": "最小卖出金额（美元）",
          "ru": "Минимальная сумма продажи (USD)"
        },
        "field": "min_sell_usd / exec.min_sell_usd / rule.min_sell_usd",
        "chains": {
          "bsc": {
            "status": "supported"
          },
          "robinhood": {
            "status": "supported"
          },
          "solana": {
            "status": "supported"
          }
        }
      },
      {
        "id": "retain_bps",
        "label": {
          "en": "Retained position (%)",
          "zh-CN": "保留持仓比例 %",
          "ru": "Сохраняемая доля позиции (%)"
        },
        "field": "retain_bps / exec.retain_bps / rule.retain_bps",
        "chains": {
          "bsc": {
            "status": "supported",
            "note": {
              "en": "Flash sells sent before the parent buy receipt approximate the retained share.",
              "zh-CN": "父买单回执到达前发送的闪卖按比例近似保留。",
              "ru": "До получения подтверждения исходной покупки быстрая продажа сохраняет долю приблизительно."
            }
          },
          "robinhood": {
            "status": "supported",
            "note": {
              "en": "Flash sells sent before the parent buy receipt approximate the retained share.",
              "zh-CN": "父买单回执到达前发送的闪卖按比例近似保留。",
              "ru": "До получения подтверждения исходной покупки быстрая продажа сохраняет долю приблизительно."
            }
          },
          "solana": {
            "status": "supported"
          }
        }
      },
      {
        "id": "sell_fee_filter",
        "label": {
          "en": "Max sell fee",
          "zh-CN": "卖出费率上限",
          "ru": "Максимальная комиссия продажи"
        },
        "field": "sell_fee_filter_enabled / sell_fee_max_bps",
        "chains": {
          "bsc": {
            "status": "supported",
            "note": {
              "en": "Off when absent or false. Enabling requires a 0–9999 bps cap; 0 is strictest. At buy time, known sell-back pool fees plus token sell tax above the cap reject the buy; unknown parts pass. GET returns stored values.",
              "zh-CN": "缺席或 false 关闭；启用须有 0–9999 bps 上限，0 最严。买入时，买入路线反向卖出的已知池费与代币卖税之和超限则拒单，未知部分放行。GET 返回存储值。",
              "ru": "Выключено при отсутствии флага или false. Для включения нужен лимит 0–9999 bps; 0 — самый строгий. При покупке известные комиссии пула и налог обратной продажи выше лимита отклоняют покупку; неизвестные части пропускаются. GET возвращает сохранённые значения."
            }
          },
          "robinhood": {
            "status": "supported",
            "note": {
              "en": "Off when absent or false. Enabling requires a 0–9999 bps cap; 0 is strictest. At buy time, known sell-back pool fees plus token sell tax above the cap reject the buy; unknown parts pass. GET returns stored values.",
              "zh-CN": "缺席或 false 关闭；启用须有 0–9999 bps 上限，0 最严。买入时，买入路线反向卖出的已知池费与代币卖税之和超限则拒单，未知部分放行。GET 返回存储值。",
              "ru": "Выключено при отсутствии флага или false. Для включения нужен лимит 0–9999 bps; 0 — самый строгий. При покупке известные комиссии пула и налог обратной продажи выше лимита отклоняют покупку; неизвестные части пропускаются. GET возвращает сохранённые значения."
            }
          },
          "solana": {
            "status": "supported",
            "note": {
              "en": "Off when absent or false. Enabling requires a 0–9999 bps cap; 0 is strictest. At buy time, known sell-back pool fees plus token sell tax above the cap reject the buy; unknown parts pass. GET returns stored values.",
              "zh-CN": "缺席或 false 关闭；启用须有 0–9999 bps 上限，0 最严。买入时，买入路线反向卖出的已知池费与代币卖税之和超限则拒单，未知部分放行。GET 返回存储值。",
              "ru": "Выключено при отсутствии флага или false. Для включения нужен лимит 0–9999 bps; 0 — самый строгий. При покупке известные комиссии пула и налог обратной продажи выше лимита отклоняют покупку; неизвестные части пропускаются. GET возвращает сохранённые значения."
            }
          }
        }
      },
      {
        "id": "usdc_trading",
        "label": {
          "en": "USDC trading",
          "zh-CN": "USDC 交易",
          "ru": "Торговля в USDC"
        },
        "field": "usdc_trading",
        "chains": {
          "bsc": {
            "status": "unavailable"
          },
          "robinhood": {
            "status": "unavailable"
          },
          "solana": {
            "status": "supported",
            "note": {
              "en": "Off for new tasks unless requested. USDC pools prefer USDC for buys and keep sell proceeds in USDC; false uses SOL only. Other chains reject any write, including false.",
              "zh-CN": "新任务缺省关闭。开启后 USDC 池优先用 USDC 买入、卖出所得留在 USDC；false 只用 SOL。其他链写入即拒绝，包括 false。",
              "ru": "По умолчанию выключено для новых задач. Пулы USDC используют USDC для покупок и сохраняют выручку в USDC; false означает только SOL. Другие сети отклоняют запись, включая false."
            }
          }
        }
      },
      {
        "id": "buy_fee_tip_first",
        "label": {
          "en": "Lower failure cost",
          "zh-CN": "失败少扣费",
          "ru": "Меньше затрат при неудаче"
        },
        "field": "buy_fee_tip_first / buy_fee_tip_first_min",
        "chains": {
          "bsc": {
            "status": "unavailable"
          },
          "robinhood": {
            "status": "unavailable"
          },
          "solana": {
            "status": "conditional",
            "note": {
              "en": "Buy auto mode only: buy_fee_auto true and gas.high_tip.enabled not true. With buy_fee_tip_first true, a buy that lands but fails is charged at most about 0.001 SOL of priority fee and no tip, at the cost of some speed. buy_fee_tip_first_min no longer affects execution; it is still accepted, stored and read back. Writing min true still requires merged tip_first true; writing tip_first true in manual mode returns 400. Other chains reject either field, including false. Turning tip_first off also turns min off unless the PATCH explicitly supplies min, which is validated as supplied.",
              "zh-CN": "仅买入自动模式：buy_fee_auto 为 true 且 gas.high_tip.enabled 不为 true。buy_fee_tip_first 为 true 时，交易上链后失败最多扣约 0.001 SOL 优先费，小费不扣，会牺牲一部分速度。buy_fee_tip_first_min 已不生效，仍接受、存储并原样读回。写 min=true 仍要求合并后的 tip_first=true；手动模式写 tip_first=true 返回 400。其他链写任一字段均拒绝，包括 false。关闭 tip_first 也会关闭 min；同一 PATCH 明确指定 min 时以该值为准，并按原规则校验。",
              "ru": "Только автоматическая покупка: buy_fee_auto=true и gas.high_tip.enabled не true. При buy_fee_tip_first=true, если покупка попала в блок, но завершилась неудачно, списывается не более ~0.001 SOL приоритетной комиссии, а чаевые не списываются; скорость несколько снижается. buy_fee_tip_first_min больше не влияет на исполнение, но по-прежнему принимается, сохраняется и возвращается при чтении. Запись min=true по-прежнему требует tip_first=true после слияния; запись tip_first=true в ручном режиме возвращает 400. Другие сети отклоняют оба поля, включая false. Отключение tip_first также выключает min; явно переданное в PATCH значение min имеет приоритет и проходит прежнюю проверку."
            }
          }
        }
      },
      {
        "id": "task_fee_warnings",
        "label": {
          "en": "Task save fee warnings",
          "zh-CN": "任务保存费用提醒",
          "ru": "Предупреждения о комиссиях при сохранении"
        },
        "field": "warnings",
        "chains": {
          "solana": {
            "status": "supported",
            "note": {
              "en": "Create and PATCH report individual fees above 1 SOL and buy fee ratios above 10% after saving.",
              "zh-CN": "创建与 PATCH 成功后提醒超过 1 SOL 的费用项和超过 10% 的买入费用比例。",
              "ru": "После создания или PATCH сообщаются комиссии выше 1 SOL и доля комиссии покупки выше 10%."
            }
          },
          "bsc": {
            "status": "supported",
            "note": {
              "en": "Create and PATCH report each effective tip above 1 BNB after saving.",
              "zh-CN": "创建与 PATCH 成功后提醒超过 1 BNB 的生效小费。",
              "ru": "После создания или PATCH сообщаются действующие чаевые выше 1 BNB."
            }
          },
          "robinhood": {
            "status": "unavailable"
          }
        }
      },
      {
        "id": "fee_auto",
        "label": {
          "en": "Auto fee mode",
          "zh-CN": "自动费用模式",
          "ru": "Автоматический режим комиссии"
        },
        "field": "buy_fee_auto / sell_fee_auto",
        "chains": {
          "bsc": {
            "status": "unavailable"
          },
          "robinhood": {
            "status": "unavailable"
          },
          "solana": {
            "status": "supported",
            "note": {
              "en": "Each side uses auto mode only when its flag is true and high_tip.enabled is false. Omitted or false stays manual.",
              "zh-CN": "买卖各自仅在标记为 true 且 high_tip.enabled 为 false 时自动分配费用；省略或 false 为手动模式。",
              "ru": "Автоматический режим действует для каждой стороны только при true и high_tip.enabled=false. Отсутствие флага или false означает ручной режим."
            }
          }
        }
      },
      {
        "id": "buy_landing_fee_ratio",
        "label": {
          "en": "Buy total fee ratio",
          "zh-CN": "按本金比例总费用",
          "ru": "Общая комиссия от суммы покупки"
        },
        "field": "buy_landing_fee_bps / buy_landing_fee_min / buy_landing_fee_max",
        "chains": {
          "solana": {
            "status": "supported",
            "note": {
              "en": "Auto-mode copy and sniper buys: total = principal × ratio, bounded by min (default 0.002 SOL) and optional max, split per sending route. no ratio cap; needs buy_fee_auto=true with gas.high_tip.enabled=false.",
              "zh-CN": "仅自动模式跟买与狙击买：总费用 = 本金 × 比例，受最小费用（默认 0.002 SOL）和选填最大费用约束，按发送通道拆分。不设比例上限；需要 buy_fee_auto=true 且 gas.high_tip.enabled=false。",
              "ru": "Только автоматический режим копирования и снайперских покупок: общая комиссия = сумма × доля, с минимумом (по умолчанию 0.002 SOL) и необязательным максимумом, разделяется по маршрутам. Доля не ограничена; нужно buy_fee_auto=true и gas.high_tip.enabled=false."
            }
          },
          "bsc": {
            "status": "unavailable",
            "note": {
              "en": "Writing any of these fields returns HTTP 400 unsupported_chain_feature, including zero.",
              "zh-CN": "写入任一字段返回 HTTP 400 unsupported_chain_feature，包括 0。",
              "ru": "Запись любого поля возвращает HTTP 400 unsupported_chain_feature, включая ноль."
            }
          },
          "robinhood": {
            "status": "unavailable",
            "note": {
              "en": "Writing any of these fields returns HTTP 400 unsupported_chain_feature, including zero.",
              "zh-CN": "写入任一字段返回 HTTP 400 unsupported_chain_feature，包括 0。",
              "ru": "Запись любого поля возвращает HTTP 400 unsupported_chain_feature, включая ноль."
            }
          }
        }
      },
      {
        "id": "follow_sell_gas",
        "label": {
          "en": "Separate copy-sell gas",
          "zh-CN": "跟卖单独设置 Gas",
          "ru": "Отдельный gas для копируемых продаж"
        },
        "field": "follow_sell.gas / exec.follow_sell",
        "appliesTo": "copy_trade",
        "chains": {
          "bsc": {
            "status": "supported",
            "note": {
              "en": "Omit auto_gas in follow_sell.gas.",
              "zh-CN": "follow_sell.gas 中须省略 auto_gas。",
              "ru": "Не передавайте auto_gas в follow_sell.gas."
            }
          },
          "solana": {
            "status": "supported",
            "note": {
              "en": "Omit auto_gas in follow_sell.gas.",
              "zh-CN": "follow_sell.gas 中须省略 auto_gas。",
              "ru": "Не передавайте auto_gas в follow_sell.gas."
            }
          },
          "robinhood": {
            "status": "conditional",
            "note": {
              "en": "Normal gas is automatic. Omit auto_gas and manual normal-lane fees. Enabling high tips is rejected because the route has no high-tip provider.",
              "zh-CN": "普通通道使用自动 Gas，须省略 auto_gas 和普通通道的手动费用。当前路由没有高小费服务商，开启高小费会被拒绝。",
              "ru": "В обычном канале gas автоматический. Не передавайте auto_gas и ручные комиссии этого канала. Включение повышенных чаевых отклоняется, так как на текущем маршруте нет подходящего провайдера."
            }
          }
        }
      },
      {
        "id": "follow_sell_scope",
        "label": {
          "en": "Grouped copy sell",
          "zh-CN": "捆绑卖出",
          "ru": "Копирование продаж группы"
        },
        "field": "follow_sell.scope / exits.follow_sell.scope",
        "appliesTo": "copy_trade",
        "chains": {
          "robinhood": {
            "status": "supported",
            "note": {
              "en": "With Grouped Copy, bundle follows sales from any group member using the combined position. buyer follows each wallet only for the position bought after it and uses its own position for ratios. The scope also applies to transfer-out sells.",
              "zh-CN": "捆绑跟单时，bundle 按合并持仓跟组内任一地址卖出。buyer 只跟带来该部分仓位的地址卖出，按该地址自身持仓计算比例。跟卖范围也适用于目标转出。",
              "ru": "При групповом копировании bundle учитывает продажи всех участников и их совокупную позицию. buyer учитывает продажи каждого кошелька только для позиции, купленной вслед за ним, и рассчитывает долю по его собственной позиции. Режим также действует при переводах."
            }
          },
          "bsc": {
            "status": "supported",
            "note": {
              "en": "With Grouped Copy, bundle follows sales from any group member using the combined position. buyer follows each wallet only for the position bought after it and uses its own position for ratios. The scope also applies to transfer-out sells.",
              "zh-CN": "捆绑跟单时，bundle 按合并持仓跟组内任一地址卖出。buyer 只跟带来该部分仓位的地址卖出，按该地址自身持仓计算比例。跟卖范围也适用于目标转出。",
              "ru": "При групповом копировании bundle учитывает продажи всех участников и их совокупную позицию. buyer учитывает продажи каждого кошелька только для позиции, купленной вслед за ним, и рассчитывает долю по его собственной позиции. Режим также действует при переводах."
            }
          },
          "solana": {
            "status": "supported",
            "note": {
              "en": "With Grouped Copy, bundle follows sales from any group member using the combined position. buyer follows each wallet only for the position bought after it and uses its own position for ratios. The scope also applies to transfer-out sells.",
              "zh-CN": "捆绑跟单时，bundle 按合并持仓跟组内任一地址卖出。buyer 只跟带来该部分仓位的地址卖出，按该地址自身持仓计算比例。跟卖范围也适用于目标转出。",
              "ru": "При групповом копировании bundle учитывает продажи всех участников и их совокупную позицию. buyer учитывает продажи каждого кошелька только для позиции, купленной вслед за ним, и рассчитывает долю по его собственной позиции. Режим также действует при переводах."
            }
          }
        }
      },
      {
        "id": "buy_schedule",
        "label": {
          "en": "Buy schedule",
          "zh-CN": "定时买入",
          "ru": "Расписание покупок"
        },
        "field": "buy_schedule / spec.schedule",
        "chains": {
          "bsc": {
            "status": "supported"
          },
          "robinhood": {
            "status": "supported"
          },
          "solana": {
            "status": "supported"
          }
        }
      },
      {
        "id": "prior_buyer_blacklist",
        "label": {
          "en": "Prior buyers blacklist and optional late sale",
          "zh-CN": "先手买家黑名单与事后卖出",
          "ru": "Чёрный список ранних покупателей и продажа при позднем обнаружении"
        },
        "field": "filters.prior_buyer_blacklist",
        "appliesTo": "copy_trade",
        "chains": {
          "bsc": {
            "status": "supported"
          },
          "robinhood": {
            "status": "supported"
          },
          "solana": {
            "status": "supported"
          }
        }
      },
      {
        "id": "reverse_first_buy",
        "label": {
          "en": "Leader first buy amount",
          "zh-CN": "目标本轮首笔买入金额",
          "ru": "Сумма первой покупки лидера в текущем цикле"
        },
        "field": "reverse_buy.min_leader_first_buy / max_leader_first_buy",
        "appliesTo": "copy_trade",
        "chains": {
          "bsc": {
            "status": "conditional",
            "note": {
              "en": "Only with Buy on Sell. Skip if the first buy amount is unknown.",
              "zh-CN": "仅反向买入。首笔买入金额未知时跳过。",
              "ru": "Только при покупке на продаже. Если сумма первой покупки неизвестна, сигнал пропускается."
            }
          },
          "robinhood": {
            "status": "conditional",
            "note": {
              "en": "Only with Buy on Sell. Skip if the first buy amount is unknown.",
              "zh-CN": "仅反向买入。首笔买入金额未知时跳过。",
              "ru": "Только при покупке на продаже. Если сумма первой покупки неизвестна, сигнал пропускается."
            }
          },
          "solana": {
            "status": "conditional",
            "note": {
              "en": "Only with Buy on Sell. Skip if the first buy amount is unknown.",
              "zh-CN": "仅反向买入。首笔买入金额未知时跳过。",
              "ru": "Только при покупке на продаже. Если сумма первой покупки неизвестна, сигнал пропускается."
            }
          }
        }
      },
      {
        "id": "first_buy_window",
        "label": {
          "en": "First Buy Only window",
          "zh-CN": "仅跟首次买入窗口",
          "ru": "Окно первой покупки"
        },
        "field": "dedupe.first_buy_window_minutes",
        "appliesTo": "copy_trade",
        "chains": {
          "bsc": {
            "status": "conditional",
            "note": {
              "en": "Cell tasks use 0–720 whole minutes; omitted means 360. A held position is skipped only with block_if_held.",
              "zh-CN": "Cell 任务使用 0–720 整数分钟；省略即 360 分钟。只有开启 block_if_held 才跳过已有持仓。",
              "ru": "Для задач Cell: 0–720 полных минут; при отсутствии — 360. Позиция пропускается только с block_if_held."
            }
          },
          "robinhood": {
            "status": "conditional",
            "note": {
              "en": "Cell tasks use 0–720 whole minutes; omitted means 360.",
              "zh-CN": "Cell 任务使用 0–720 整数分钟；省略即 360 分钟。",
              "ru": "Для задач Cell: 0–720 полных минут; при отсутствии — 360."
            }
          },
          "solana": {
            "status": "conditional",
            "note": {
              "en": "Cell tasks use 0–720 whole minutes; omitted means 360. Reverse tasks ignore the window.",
              "zh-CN": "Cell 任务使用 0–720 整数分钟；省略即 360 分钟。反向任务不读取窗口。",
              "ru": "Для задач Cell: 0–720 полных минут; при отсутствии — 360. Обратные задачи игнорируют окно."
            }
          }
        }
      },
      {
        "id": "snipe_market_cap",
        "label": {
          "en": "Snipe market cap range",
          "zh-CN": "狙击市值范围",
          "ru": "Диапазон капитализации для снайпинга"
        },
        "field": "target.market_cap",
        "appliesTo": "sniper",
        "chains": {
          "bsc": {
            "status": "supported",
            "note": {
              "en": "Total supply × price in USD; 0 is unbounded. The fill-time upper bound allows up to approximately 30% above max_usd.",
              "zh-CN": "总供应量 × USD 价格；0 表示不限。成交时的上限允许比 max_usd 高约 30%。",
              "ru": "Общее предложение × цена в USD; 0 означает отсутствие границы. При исполнении допускается превышение max_usd примерно до 30%."
            }
          },
          "robinhood": {
            "status": "supported",
            "note": {
              "en": "Total supply × price in USD; 0 is unbounded. The fill-time upper bound allows up to approximately 30% above max_usd. On KOTM, the lower bound is checked only before sending.",
              "zh-CN": "总供应量 × USD 价格；0 表示不限。成交时的上限允许比 max_usd 高约 30%；KOTM 下限只在发送前检查。",
              "ru": "Общее предложение × цена в USD; 0 означает отсутствие границы. При исполнении допускается превышение max_usd примерно до 30%. Для KOTM нижняя граница проверяется только перед отправкой."
            }
          },
          "solana": {
            "status": "supported",
            "note": {
              "en": "Total supply × price in USD; 0 is unbounded. The fill-time upper bound enforces max_usd as given; the lower bound is checked only before sending.",
              "zh-CN": "总供应量 × USD 价格；0 表示不限。成交时严格执行 max_usd 上限；下限只在发送前检查。",
              "ru": "Общее предложение × цена в USD; 0 означает отсутствие границы. При исполнении max_usd соблюдается без допуска; нижняя граница проверяется только перед отправкой."
            }
          }
        }
      },
      {
        "id": "snipe_launch_delay",
        "label": {
          "en": "Launch buy delay (ms)",
          "zh-CN": "开盘买入延时（毫秒）",
          "ru": "Задержка покупки после запуска (мс)"
        },
        "field": "buy.delay_ms",
        "appliesTo": "sniper",
        "chains": {
          "bsc": {
            "status": "supported"
          },
          "robinhood": {
            "status": "supported"
          },
          "solana": {
            "status": "supported"
          }
        }
      },
      {
        "id": "creator_sold",
        "label": {
          "en": "Creator sale before buying",
          "zh-CN": "买入前创建者是否已卖出",
          "ru": "Продажа создателем до покупки"
        },
        "field": "target.creator_sold",
        "appliesTo": "sniper",
        "chains": {
          "bsc": {
            "status": "supported"
          },
          "robinhood": {
            "status": "supported"
          },
          "solana": {
            "status": "supported"
          }
        }
      },
      {
        "id": "dev_buy_range",
        "label": {
          "en": "Dev buy amount range",
          "zh-CN": "Dev 买入金额范围",
          "ru": "Диапазон покупки разработчика"
        },
        "field": "target.dev_buy_max",
        "appliesTo": "sniper",
        "chains": {
          "bsc": {
            "status": "supported",
            "note": {
              "en": "An omitted max means no upper bound; explicit 0 remains a bound.",
              "zh-CN": "省略上限表示不限；显式 0 仍是上限。",
              "ru": "Без max верхнего предела нет; явный 0 остаётся границей."
            }
          },
          "robinhood": {
            "status": "supported",
            "note": {
              "en": "An omitted max means no upper bound; explicit 0 remains a bound.",
              "zh-CN": "省略上限表示不限；显式 0 仍是上限。",
              "ru": "Без max верхнего предела нет; явный 0 остаётся границей."
            }
          },
          "solana": {
            "status": "supported",
            "note": {
              "en": "An omitted max means no upper bound; explicit 0 remains a bound.",
              "zh-CN": "省略上限表示不限；显式 0 仍是上限。",
              "ru": "Без max верхнего предела нет; явный 0 остаётся границей."
            }
          }
        }
      },
      {
        "id": "plain_name",
        "label": {
          "en": "Skip tokens with special characters in the name or symbol",
          "zh-CN": "名称或符号带特殊符号时不买",
          "ru": "Пропускать токены со спецсимволами в названии или тикере"
        },
        "field": "target.require_plain_name",
        "appliesTo": "sniper",
        "chains": {
          "bsc": {
            "status": "supported"
          },
          "robinhood": {
            "status": "supported"
          },
          "solana": {
            "status": "supported"
          }
        }
      },
      {
        "id": "same_name_relaunch",
        "label": {
          "en": "Same-name relaunch filter",
          "zh-CN": "同名代币过滤",
          "ru": "Фильтр повторного запуска с тем же названием"
        },
        "field": "target.skip_same_name_relaunch",
        "appliesTo": "sniper",
        "chains": {
          "bsc": {
            "status": "supported"
          },
          "robinhood": {
            "status": "supported"
          },
          "solana": {
            "status": "supported"
          }
        }
      },
      {
        "id": "keyword_blacklist",
        "label": {
          "en": "Excluded keywords",
          "zh-CN": "排除关键词",
          "ru": "Исключённые ключевые слова"
        },
        "field": "target.blocked_keywords",
        "appliesTo": "sniper",
        "chains": {
          "bsc": {
            "status": "supported"
          },
          "robinhood": {
            "status": "supported"
          },
          "solana": {
            "status": "supported"
          }
        }
      },
      {
        "id": "anti_sniper_timing",
        "label": {
          "en": "Anti-sniper fee tier",
          "zh-CN": "防狙击费档位",
          "ru": "Уровень анти-снайперской комиссии"
        },
        "field": "buy.anti_sniper_block_offset",
        "appliesTo": "sniper",
        "chains": {
          "bsc": {
            "status": "conditional",
            "note": {
              "en": "Four.meme / OpenFour launches that charge an anti-sniper fee; four-meme or open-four selected. Tiers 0..6; omitted/null = tier 5. A higher tier buys later and pays less. Approximate anti-sniper fee share: 50/33/19/12/8/4/0%; OpenFour up to about 1 percentage point higher.",
              "zh-CN": "Four.meme / OpenFour 收取防狙击费的开盘；选中 four-meme 或 open-four。档位 0..6；省略/null = 档位 5。档位越高买入越晚、费用越低。防狙击费大致占比：50/33/19/12/8/4/0%；OpenFour 最多约高 1 个百分点。",
              "ru": "Запуски Four.meme / OpenFour с анти-снайперской комиссией; выбран four-meme или open-four. Уровни 0..6; пропуск/null = уровень 5. Чем выше уровень, тем позже покупка и ниже комиссия. Примерная доля анти-снайперской комиссии: 50/33/19/12/8/4/0%; у OpenFour выше примерно до 1 процентного пункта."
            }
          },
          "robinhood": {
            "status": "unavailable"
          },
          "solana": {
            "status": "unavailable"
          }
        }
      },
      {
        "id": "token_target_mode",
        "label": {
          "en": "Snipe specific token addresses",
          "zh-CN": "按代币地址狙击",
          "ru": "Снайпинг по адресам токенов"
        },
        "field": "target.mode",
        "appliesTo": "sniper",
        "chains": {
          "robinhood": {
            "status": "unavailable",
            "note": {
              "en": "Retired after the task format update: target.mode \"token\" returns HTTP 400 unsupported_target_mode. Use launchpad mode with creator or keyword filters.",
              "zh-CN": "任务格式统一后下线：target.mode \"token\" 返回 HTTP 400 unsupported_target_mode。请改用 launchpad 模式加创建者或关键词过滤。",
              "ru": "Отключено после перехода на единый формат задач: target.mode \"token\" возвращает HTTP 400 unsupported_target_mode. Используйте режим launchpad с фильтрами по создателю или ключевым словам."
            }
          },
          "bsc": {
            "status": "unavailable",
            "note": {
              "en": "Retired after the task format update: target.mode \"token\" returns HTTP 400 unsupported_target_mode. Use launchpad mode with creator or keyword filters.",
              "zh-CN": "任务格式统一后下线：target.mode \"token\" 返回 HTTP 400 unsupported_target_mode。请改用 launchpad 模式加创建者或关键词过滤。",
              "ru": "Отключено после перехода на единый формат задач: target.mode \"token\" возвращает HTTP 400 unsupported_target_mode. Используйте режим launchpad с фильтрами по создателю или ключевым словам."
            }
          },
          "solana": {
            "status": "unavailable",
            "note": {
              "en": "Retired after the task format update: target.mode \"token\" returns HTTP 400 unsupported_target_mode. Use launchpad mode with creator or keyword filters.",
              "zh-CN": "任务格式统一后下线：target.mode \"token\" 返回 HTTP 400 unsupported_target_mode。请改用 launchpad 模式加创建者或关键词过滤。",
              "ru": "Отключено после перехода на единый формат задач: target.mode \"token\" возвращает HTTP 400 unsupported_target_mode. Используйте режим launchpad с фильтрами по создателю или ключевым словам."
            }
          }
        }
      },
      {
        "id": "long_xyz_timing",
        "label": {
          "en": "Long.xyz buy timing",
          "zh-CN": "Long.xyz 买入时机",
          "ru": "Время покупки Long.xyz"
        },
        "field": "buy.long_xyz_delay_sec",
        "appliesTo": "sniper",
        "chains": {
          "robinhood": {
            "status": "conditional",
            "note": {
              "en": "Only while target.launchpads contains long-xyz. slippage_pct must be at least 100 - 9.86 x seconds percent (omitted timing counts as 10 seconds).",
              "zh-CN": "仅当 target.launchpads 含 long-xyz 时可用。slippage_pct 须不低于 100 - 9.86 x 秒数（百分数；省略按 10 秒计）。",
              "ru": "Только если target.launchpads содержит long-xyz. slippage_pct не ниже 100 - 9.86 x секунд, в процентах (без значения считается 10 секунд)."
            }
          },
          "bsc": {
            "status": "unavailable",
            "note": {
              "en": "Long.xyz is a Robinhood launchpad.",
              "zh-CN": "Long.xyz 是 Robinhood 发射台。",
              "ru": "Long.xyz — лаунчпад Robinhood."
            }
          },
          "solana": {
            "status": "unavailable",
            "note": {
              "en": "Long.xyz is a Robinhood launchpad.",
              "zh-CN": "Long.xyz 是 Robinhood 发射台。",
              "ru": "Long.xyz — лаунчпад Robinhood."
            }
          }
        }
      },
      {
        "id": "quote_filter",
        "label": {
          "en": "Quote Filter",
          "zh-CN": "计价代币筛选",
          "ru": "Фильтр котируемых токенов"
        },
        "field": "target.quotes",
        "appliesTo": "sniper",
        "chains": {
          "bsc": {
            "status": "supported"
          },
          "robinhood": {
            "status": "supported"
          },
          "solana": {
            "status": "supported"
          }
        }
      },
      {
        "id": "high_tip",
        "label": {
          "en": "High TIP mode",
          "zh-CN": "高 TIP 模式",
          "ru": "Режим высокого TIP"
        },
        "field": "gas.high_tip.enabled",
        "chains": {
          "bsc": {
            "status": "conditional",
            "note": {
              "en": "Default: tip lane on, 0.05 gwei gas and 0.0005 BNB bid. Explicit gas.priority_fee without high_tip.enabled disables the lane on create; PATCH omission retains it. An explicit gas.priority_fee also sets high_tip.priority_fee unless given, so it reaches every route.",
              "zh-CN": "默认小费档开启：0.05 gwei Gas、0.0005 BNB 优先费。创建时只传 gas.priority_fee 而不传 high_tip.enabled 会关闭小费档；PATCH 省略则保留。显式传 gas.priority_fee 时，未另给 high_tip.priority_fee 则小费档 Gas 同步为该值，作用于所有通道。",
              "ru": "По умолчанию канал чаевых включён: gas 0.05 gwei и ставка 0.0005 BNB. При создании gas.priority_fee без high_tip.enabled отключает канал; PATCH сохраняет его. Явный gas.priority_fee также задаёт high_tip.priority_fee, если тот не указан, и действует на все маршруты."
            }
          },
          "robinhood": {
            "status": "unavailable",
            "note": {
              "en": "No reachable high-tip provider on the current route.",
              "zh-CN": "当前路由无可用高 tip provider。",
              "ru": "Нет доступного провайдера для high-tip."
            }
          },
          "solana": {
            "status": "supported"
          }
        }
      },
      {
        "id": "main_landing_fee",
        "label": {
          "en": "Landing Tip",
          "zh-CN": "着陆小费",
          "ru": "Чаевые за включение"
        },
        "field": "gas.landing_fee",
        "chains": {
          "bsc": {
            "status": "stored_only",
            "note": {
              "en": "Saved, but BSC tasks do not pay tip from this lane.",
              "zh-CN": "可保存，但 BSC 任务不从此档支付 tip。",
              "ru": "Сохраняется, но задачи BSC не платят tip из этого канала."
            }
          },
          "robinhood": {
            "status": "unavailable",
            "note": {
              "en": "Nonzero values are rejected.",
              "zh-CN": "非零值被拒绝。",
              "ru": "Ненулевые значения отклоняются."
            }
          },
          "solana": {
            "status": "conditional",
            "note": {
              "en": "Tip in SOL. The tip tier determines which acceleration routes are available.",
              "zh-CN": "单位为 SOL。可使用的加速通道取决于小费档位。",
              "ru": "Чаевые в SOL. От размера чаевых зависит, какие каналы ускорения доступны."
            }
          }
        }
      },
      {
        "id": "auto_gas",
        "label": {
          "en": "Auto Gas",
          "zh-CN": "Gas 自动计算",
          "ru": "Автоматический Gas"
        },
        "field": "gas.auto_gas",
        "chains": {
          "bsc": {
            "status": "unavailable"
          },
          "robinhood": {
            "status": "unavailable",
            "note": {
              "en": "Cell chooses gas automatically, but this field is not accepted.",
              "zh-CN": "Cell 会自动选择 gas，但不接受此字段。",
              "ru": "Cell выбирает gas автоматически, но это поле не принимается."
            }
          },
          "solana": {
            "status": "unavailable"
          }
        }
      },
      {
        "id": "anti_mev",
        "label": {
          "en": "MEV protection",
          "zh-CN": "防 MEV",
          "ru": "Защита от MEV"
        },
        "field": "gas.anti_mev",
        "chains": {
          "bsc": {
            "status": "supported"
          },
          "robinhood": {
            "status": "conditional",
            "note": {
              "en": "Configurable, but current Cell routes are identical.",
              "zh-CN": "可配置，但当前 Cell 两组通道相同。",
              "ru": "Настраивается, но текущие маршруты Cell одинаковы."
            }
          },
          "solana": {
            "status": "supported",
            "note": {
              "en": "Anti-MEV fills are slower than normal mode. The tip tier determines which protected routes are available.",
              "zh-CN": "防夹模式成交慢于普通模式。可使用的防夹通道取决于小费档位。",
              "ru": "В режиме Anti-MEV исполнение медленнее обычного. От размера чаевых зависит, какие защищённые каналы доступны."
            }
          }
        }
      },
      {
        "id": "speed_first",
        "label": {
          "en": "Ultra-fast mode (deprecated)",
          "zh-CN": "极速模式（已废弃）",
          "ru": "Ультрабыстрый режим (устарело)"
        },
        "field": "price_strategy",
        "appliesTo": "copy_trade",
        "chains": {
          "bsc": {
            "status": "stored_only",
            "note": {
              "en": "Execution ignores this field: advanced.leader_fill_buy_slippage picks the copy-buy price strategy (false is speed first, true is price protection). Configs stored as strategy tasks do not keep it and read back protected.",
              "zh-CN": "执行已不读此字段：跟单买入的价格策略由 advanced.leader_fill_buy_slippage 决定（false 为速度优先，true 为价格保护）。存为策略任务的配置不保存该值，读回 protected。",
              "ru": "Исполнение игнорирует это поле: ценовую стратегию копи-покупок задаёт advanced.leader_fill_buy_slippage (false — скорость в приоритете, true — защита цены). Конфигурации, хранящиеся как стратегические задачи, его не сохраняют и возвращают protected."
            }
          },
          "robinhood": {
            "status": "stored_only",
            "note": {
              "en": "Execution ignores this field: advanced.leader_fill_buy_slippage picks the copy-buy price strategy (false is speed first, true is price protection). Configs stored as strategy tasks do not keep it and read back protected.",
              "zh-CN": "执行已不读此字段：跟单买入的价格策略由 advanced.leader_fill_buy_slippage 决定（false 为速度优先，true 为价格保护）。存为策略任务的配置不保存该值，读回 protected。",
              "ru": "Исполнение игнорирует это поле: ценовую стратегию копи-покупок задаёт advanced.leader_fill_buy_slippage (false — скорость в приоритете, true — защита цены). Конфигурации, хранящиеся как стратегические задачи, его не сохраняют и возвращают protected."
            }
          },
          "solana": {
            "status": "stored_only",
            "note": {
              "en": "Execution ignores this field: advanced.leader_fill_buy_slippage picks the copy-buy price strategy (false is speed first, true is price protection). Configs stored as strategy tasks do not keep it and read back protected.",
              "zh-CN": "执行已不读此字段：跟单买入的价格策略由 advanced.leader_fill_buy_slippage 决定（false 为速度优先，true 为价格保护）。存为策略任务的配置不保存该值，读回 protected。",
              "ru": "Исполнение игнорирует это поле: ценовую стратегию копи-покупок задаёт advanced.leader_fill_buy_slippage (false — скорость в приоритете, true — защита цены). Конфигурации, хранящиеся как стратегические задачи, его не сохраняют и возвращают protected."
            }
          }
        }
      },
      {
        "id": "sell_price_strategy",
        "label": {
          "en": "Sell price strategy (deprecated)",
          "zh-CN": "卖出价格策略（已废弃）",
          "ru": "Ценовая стратегия продажи (устарело)"
        },
        "field": "advanced.leader_fill_sell_slippage",
        "appliesTo": "copy_trade",
        "chains": {
          "bsc": {
            "status": "stored_only",
            "note": {
              "en": "Accepted; execution does not read it. Copy sells always go at maximum slippage. Configs stored as strategy tasks do not keep it and read back false.",
              "zh-CN": "照收，执行不读取；跟单卖出一律按最大滑点。存为策略任务的配置不保存该值，读回 false。",
              "ru": "Принимается, исполнение его не читает; копи-продажи всегда идут с максимальным проскальзыванием. Конфигурации, хранящиеся как стратегические задачи, его не сохраняют и возвращают false."
            }
          },
          "robinhood": {
            "status": "stored_only",
            "note": {
              "en": "Accepted; execution does not read it. Copy sells always go at maximum slippage. Configs stored as strategy tasks do not keep it and read back false.",
              "zh-CN": "照收，执行不读取；跟单卖出一律按最大滑点。存为策略任务的配置不保存该值，读回 false。",
              "ru": "Принимается, исполнение его не читает; копи-продажи всегда идут с максимальным проскальзыванием. Конфигурации, хранящиеся как стратегические задачи, его не сохраняют и возвращают false."
            }
          },
          "solana": {
            "status": "stored_only",
            "note": {
              "en": "Accepted; execution does not read it. Copy sells always go at maximum slippage. Configs stored as strategy tasks do not keep it and read back false.",
              "zh-CN": "照收，执行不读取；跟单卖出一律按最大滑点。存为策略任务的配置不保存该值，读回 false。",
              "ru": "Принимается, исполнение его не читает; копи-продажи всегда идут с максимальным проскальзыванием. Конфигурации, хранящиеся как стратегические задачи, его не сохраняют и возвращают false."
            }
          }
        }
      },
      {
        "id": "migration_sell",
        "label": {
          "en": "Migration Sell",
          "zh-CN": "迁移卖出",
          "ru": "Продажа при миграции"
        },
        "field": "exit.migration_sell.enabled",
        "chains": {
          "bsc": {
            "status": "supported"
          },
          "robinhood": {
            "status": "supported"
          },
          "solana": {
            "status": "supported"
          }
        }
      }
    ],
    "detailsUrl": "https://apm.fun/docs/openapi/chain-support"
  }
}