---
title: "Create an RHC price alert (PRO+)"
method: POST
path: "/rhc/price-alerts"
tags: ["Robinhood Chain"]
---

# Create an RHC price alert (PRO+)

`POST /rhc/price-alerts`

## Request

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

Market-cap drop alert with an optional recovery leg, baselined against the token's market cap **at creation**. One-shot state machine: `watching → dipped → recovered`; `dip_low` ratchets down while dipped; terminal on the dip when no `recovery_pct` is set.

⚠️ **Latency differs from the Solana price alerts.** Solana alerts are evaluated inside a live in-memory price loop every 250 ms. RHC alerts are **event-driven**: each trade on the chain's trade feed (`rhc:dex_trade`) is checked against the alerted token set, with price-table polls (every 5 s while the feed is degraded or a trade carried no market cap, 60 s otherwise) and a trade-tape replay after a feed outage as safety nets. Latency is a few seconds (the chain trade flush is about 2 s), not sub-second. Every create response carries an `evaluation` block restating this. Do not size a strategy on the Solana figure. `token_address`, `drop_pct` and `recovery_pct` are immutable after creation.

## Request body

- object
  - `name` string
  - `token_address` string, required: Lowercase 0x token address, must be tracked with a market cap
  - `drop_pct` number, required
  - `recovery_pct` number: Omit for a dip-only, terminal alert
  - `delivery_mode` 'webhook' | 'websocket' | 'both'
  - `webhook_url` string, uri

## Response `200`

Created — includes one-time webhook_secret and an `evaluation` block describing how the alert is evaluated.

- object
  - `chain` 'robinhood'
  - `alert` object
    - `id` integer
    - `name` string, nullable
    - `token_address` string
    - `token_symbol` string, nullable
    - `baseline_mc_usd` number
    - `drop_pct` number
    - `recovery_pct` number, nullable
    - `status` 'watching' | 'dipped' | 'recovered' | 'expired': `expired` = the rule outlived its window and was deactivated (terminal, like `recovered`).
    - `dip_low_mc_usd` number, nullable
    - `dip_fired_at` string, date-time, nullable
    - `delivery_mode` 'webhook' | 'websocket' | 'both'
    - `webhook_url` string, uri, nullable
    - `is_active` boolean
    - `expires_at` string, date-time, nullable
    - `created_at` string, date-time
    - `updated_at` string, date-time
  - `webhook_secret` string, nullable: One-time HMAC secret — only present when webhook delivery is configured.
  - `evaluation` object
    - `mode` 'event_driven' | 'polled': `event_driven` since 2026-09-15 (`polled` before).
    - `trigger` string
    - `interval_seconds` integer: Kept for compatibility: the fast fallback table-poll interval.
    - `fallback_poll_seconds` object
      - `fast` integer
      - `slow` integer
    - `note` string
  - `note` string

## Other responses

- `400`: Invalid body, or token not tracked / has no market cap to baseline against.
- `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 price alert 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/96ce84657f55?raw)
