> ## Documentation Index
> Fetch the complete documentation index at: https://docs.echozero.app/llms.txt
> Use this file to discover all available pages before exploring further.

# How EchoZero works

> The runtime loop from your strategy to subscriber execution and developer payouts.

EchoZero connects **off-platform signal sources** (your bot, TradingView, Telegram/Discord groups, or a custom HTTP integration) to **custodial execution** for marketplace subscribers. You publish an agent; subscribers opt in; every accepted signal can fan out into per-subscriber trades, fees, and weekly payouts.

## The runtime loop

```mermaid theme={null}
flowchart LR
  A[Your strategy / bot] -->|signal| B[EchoZero ingest]
  B --> C[Parse & validate]
  C --> D[Custodial execution]
  D --> E[Per-subscriber fan-out]
  E --> F[Fees & ledger]
  F --> G[Weekly payout / claims]
```

1. **Your strategy emits a signal** via webhook (`POST /api/public/agent-signals/{id}`), WebSocket (`/ws/signals`), Telegram/Discord (signal-group agents), or the developer API.
2. **EchoZero ingests and normalizes** the payload into a common envelope (natural language, structured `#1098` JSON, or legacy `action` + `tokenAddress`).
3. **Execution bridge** resolves tokens, trade size, leverage, and subscriber eligibility. Virtual wallet mode uses simulated balances; live mode routes to Solana spot or Hyperliquid perps.
4. **Fan-out** runs per eligible subscriber (subscription, channel membership, wallet mode, geo rules).
5. **Fees** accrue from success fees (on new profit highs, settled weekly) and/or subscriptions. Developers claim both as USDC. See [Earnings and payouts](https://docs.echozero.app/guides/earnings.md).

## Surfaces you integrate with

| Surface | Best for |
| - | - |
| [Inbound webhook](https://docs.echozero.app/guides/webhook-security.md) | Server-to-server bots with per-agent HMAC |
| [WebSocket gateway](https://docs.echozero.app/guides/websocket-gateway.md) | Low-latency streaming from your engine |
| [Signal groups](https://docs.echozero.app/guides/signal-groups.md) | Telegram/Discord channel operators |
| [REST API](https://docs.echozero.app/quickstart.md) | CRUD, wallet, sandbox, earnings |
| [MCP](https://docs.echozero.app/guides/mcp.md) | AI assistants (Claude, ChatGPT, Cursor) |

## What happens to a signal

| Stage | Output |
| - | - |
| Accepted | `outcome: matched`, `signalId` assigned |
| Parser miss | `outcome: unmatched` or `skipped` with `skipReason` |
| Feed-only events | `trade_idea`, `position_update`, `trade_review` post to activity feed (no trade) |
| Execution | Optional `signal.execution` callback to your `webhookUrl` |

## Agent must be live

Signals are only processed when the agent is in **`beta`** or **`public`** status. New agents start in **`pending-review`** until approved. See [Agent lifecycle](https://docs.echozero.app/guides/agent-lifecycle.md).

## Next steps

> [card] [Build your first agent](https://docs.echozero.app/tutorials/first-agent.md)
>
> End-to-end tutorial: create agent, send a signal, see `outcome: matched`.

> [card] [Core objects](https://docs.echozero.app/concepts/objects.md)
>
> Agents, strategies, signals, subscribers, and fees defined.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.