---
title: "Create a copy-trade subscription"
method: POST
path: "/copytrade/subscriptions"
tags: ["Copy-Trade"]
---

# Create a copy-trade subscription

`POST /copytrade/subscriptions`

## Request

- Base URL: `https://madeonsol.com/api/v1`
- URL: `https://madeonsol.com/api/v1/copytrade/subscriptions`
- Auth: HTTP bearer

Create a rule that mirrors chosen Solana wallets into a signed webhook and/or the `copytrade:signals` WebSocket channel. Which wallets fire depends on the running engine, reported on every rule as `source_admission`: `any_wallet` (production since 2026-10-04) = any valid source wallet, KOL or not, with no Wallet Tracker entry and no Wallet Tracker quota used; `kol_only` (legacy) = only active tracked KOL wallets (the set behind `GET /api/v1/kol/wallets`), other wallets are accepted but never fire. `operational_state` says whether the rule can fire right now. A source trade must be at most 10 s old by chain time or it is not executed. `sizing_amount` is SOL when `sizing_mode=fixed`, otherwise a multiplier of the source trade. Optional `min_mc_usd`/`max_mc_usd` band on the source trade's market cap — rows with unknown MC are dropped when the band is set, never assumed inside it. Returns `webhook_secret` once, never again. Quotas: PRO 3 rules × 5 wallets · ULTRA 20 × 50 · BUSINESS 100 × 250. PRO+.

## Request body

- object
  - `name` string
  - `source_wallets` string[], required: Capped further by the tier's per-rule copytrade_wallets quota (PRO 5 / ULTRA 50 / BUSINESS 250), reported by GET /me as features.copytrade_wallets_per_rule.limit.
  - `min_trade_sol` number
  - `only_action` 'buy' | 'sell' | 'both'
  - `sizing_mode` 'fixed' | 'proportional' | 'percent_source'
  - `sizing_amount` number, required
  - `delivery_mode` 'webhook' | 'websocket' | 'both'
  - `webhook_url` string, uri: HTTPS only. Required unless delivery_mode is websocket.
  - `min_mc_usd` number, nullable
  - `max_mc_usd` number, nullable

## Response `200`

Created — the CopyTradeSubscription row (under `subscription`) plus the one-time webhook_secret

- object
  - `subscription` CopyTradeSubscription
    - `id` integer: Numeric rule id (used in /copytrade/subscriptions/{id})
    - `name` string, nullable
    - `source_wallets` string[]: Base58 wallets being mirrored (1-50)
    - `min_trade_sol` number
    - `only_action` 'buy' | 'sell' | 'both'
    - `sizing_mode` 'fixed' | 'proportional' | 'percent_source'
    - `sizing_amount` number
    - `delivery_mode` 'webhook' | 'websocket' | 'both'
    - `webhook_url` string, uri, nullable
    - `min_mc_usd` number, nullable
    - `max_mc_usd` number, nullable
    - `is_active` boolean
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `source_wallets_tracked` string[], nullable: DEPRECATED 2026-10-04 (kept): source wallets that are tracked KOL wallets. Enrichment only under source_admission any_wallet; under kol_only only these can produce a signal. null when the tracking read failed. Since 2026-09-25.
    - `source_wallets_untracked` string[], nullable: DEPRECATED 2026-10-04 (kept): source wallets that are not tracked KOL wallets. They fire under source_admission any_wallet; under kol_only they never produce a signal.
    - `operational_state` 'eligible' | 'monitoring_pending' | 'monitoring_unavailable' | 'source_capacity_unavailable' | 'no_tracked_sources' | 'unknown': Whether the rule can fire at all, separate from is_active (the customer switch). Under source_admission any_wallet (2026-10-04) every valid source wallet is followed, KOL or not: eligible; monitoring_pending = the rule changed after the engine's last rule load (live within seconds); monitoring_unavailable = the engine or the trade stream is not reporting, and it fires nothing until it is (see monitoring_reasons); source_capacity_unavailable = the engine's source-wallet cap is reached. Legacy (source_admission kol_only or absent): no_tracked_sources = none of source_wallets is a tracked KOL wallet (kol_evm_wallets on Robinhood Chain, active kol_wallets on Solana), so the rule cannot fire; unknown = the tracking read failed.
    - `source_admission` 'kol_only' | 'any_wallet': Which trades the RUNNING copy-trade engine admits (shared by the Solana and Robinhood Chain rules). any_wallet: a qualifying trade by any source wallet, KOL or not (Robinhood Chain: the ERC-4337 userOp sender on bundled transactions; Solana: the same effective-trader rule as KOL attribution). kol_only: only tracked KOL wallets (kol_evm_wallets / active kol_wallets), legacy. Absent when the engine state could not be read (legacy semantics). Added 2026-10-04.
    - `monitoring_reasons` string[]: Present only with operational_state monitoring_unavailable: the infrastructure reasons (e.g. dex_stream_stale, trade_stream_stale, source_producer_stale, map_stale, bus_disconnected, engine_state_stale). Added 2026-10-04.
    - `warnings` object[]: Present only when something needs attention (untracked source wallets, tracking unavailable).
      - `code` string
      - `message` string
  - `webhook_secret` string, nullable: Shown once; null when delivery_mode is websocket.
  - `note` string
  - `warnings` object[]: Mirror of subscription.warnings; present only when something needs attention (e.g. untracked source wallets).
    - `code` string
    - `message` string

## Other responses

- `400`: Invalid body, wallet address, webhook URL, or wallet count above the tier cap
- `401`: Missing or invalid API key, or an expired free-tier key. Authentication-stage error: no `X-RateLimit-*` headers, no `_rid`.
- `403`: Forbidden. One of: the key's tier is below this endpoint's or parameter's gate (`tier_required` with an `upgrade` block); the public demo key used outside its allow-list (`demo_key_endpoint_not_allowed`); an invalid or revoked key; an origin-restricted key called from a disallowed origin (`code` `origin_not_allowed` / `origin_required`). `X-RateLimit-*` headers are present only on `tier_required`.
- `409`: Copy-trade rule limit reached for the tier
- `429`: Too many requests. Every 429 carries `Retry-After`. A quota 429 (`rate_limit_exceeded`, with `X-RateLimit-*`), a heavy-query concurrency 429 (`error_kind` `concurrency`/`capacity`), or the per-IP authentication-failure block (30 failed auths/min; plain `error` + `retry_after_seconds`, no `X-RateLimit-*`).
- `500`: Unexpected server error from the route (`Internal server error`, with `_rid`). Safe to retry with backoff. A failed API-key lookup is a 503 `auth_backend_unavailable`, never a 500.
- `503`: The API-key or subscription lookup could not be answered (authentication stage). Retryable and not your fault: it is never counted as a failed authentication. Honour `Retry-After`; no `X-RateLimit-*`, no `_rid`.

---

[API](https://skmtc.dev/madeonsol/apis/madeonsol-api.md) · [All operations](https://skmtc.dev/madeonsol/apis/madeonsol-api/llms.txt) · [OpenAPI document](https://skmtc.dev/madeonsol/apis/madeonsol-api/revisions/d9531a28d83b?raw)
