---
title: "Create an RHC copy-trade rule (PRO+)"
method: POST
path: "/rhc/copytrade/subscriptions"
tags: ["Robinhood Chain"]
---

# Create an RHC copy-trade rule (PRO+)

`POST /rhc/copytrade/subscriptions`

## Request

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

Mirror chosen Robinhood Chain wallets to a webhook or the `rhc:copytrade:signals` WebSocket channel. Any valid 0x source wallet fires, KOL or not (`source_admission: any_wallet`, production since 2026-10-04; KOL membership is enrichment only and copy-trade sources do not use Wallet Tracker quota); `operational_state` says whether the rule can fire right now. A source trade must be at most 5 s old by chain time. Addresses are **lowercased on write** — the evaluator matches the lowercased event address, so a checksummed rule would never fire. Amounts are ETH. Idempotency is `(subscription_id, tx_hash)`, so a replayed event can never double-fire.

**No `min_mc_usd`/`max_mc_usd`**: the RHC trade event carries no market cap, so an MC band could only be a per-event database lookup on a ~3.3M trades/day chain or a filter that silently never matches. Returns `webhook_secret` once, never again.

## Request body

- object
  - `name` string
  - `source_wallets` string[], required
  - `min_trade_eth` number
  - `only_action` 'buy' | 'sell' | 'both'
  - `sizing_mode` 'fixed' | 'proportional' | 'percent_source'
  - `sizing_amount` number, required: ETH when sizing_mode=fixed, else a multiplier of the source trade
  - `delivery_mode` 'webhook' | 'websocket' | 'both'
  - `webhook_url` string, uri: HTTPS only. Required unless delivery_mode is websocket.

## Response `200`

Created — includes one-time webhook_secret.

- object
  - `chain` 'robinhood'
  - `subscription` object
    - `id` integer
    - `name` string, nullable
    - `source_wallets` string[]
    - `min_trade_eth` 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
    - `is_active` boolean
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `source_wallets_tracked` string[], nullable: DEPRECATED 2026-10-04 (kept, still filled): subset of source_wallets in the tracked KOL set (kol_evm_wallets, the set behind /rhc/kol/wallets). KOL enrichment only once source_admission is any_wallet; under the legacy kol_only engine only these can produce a signal. null when the reference read failed.
    - `source_wallets_untracked` string[], nullable: DEPRECATED 2026-10-04 (kept, still filled): subset of source_wallets NOT in the tracked KOL set. Under source_admission any_wallet they fire like any other wallet; under the legacy kol_only engine they never produce a signal. null when the reference read failed.
    - `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 (the key is omitted otherwise, never null). Additive — status codes and existing fields never change. Emitted only under source_admission kol_only (legacy); under any_wallet an untracked wallet is not a problem and no warning is attached.
      - `code` 'untracked_source_wallets' | 'source_wallet_tracking_unavailable', required
      - `message` string, required
  - `warnings` object[]: Present only when something needs attention (the key is omitted otherwise, never null). Additive — status codes and existing fields never change. Emitted only under source_admission kol_only (legacy); under any_wallet an untracked wallet is not a problem and no warning is attached.
    - `code` 'untracked_source_wallets' | 'source_wallet_tracking_unavailable', required
    - `message` string, required
  - `webhook_secret` string, nullable: One-time HMAC secret — only present when webhook delivery is configured.
  - `note` string

## Other responses

- `400`: Invalid body, EVM 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`: RHC 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-robinhood-chain-api.md) · [All operations](https://skmtc.dev/madeonsol/apis/madeonsol-robinhood-chain-api/llms.txt) · [OpenAPI document](https://skmtc.dev/madeonsol/apis/madeonsol-robinhood-chain-api/revisions/5db123bfc4d4?raw)
