External developers test against the production API host — there is no separate public staging environment and you do not need access to Echo Zero source code.
Base URL: https://mcp.echozero.app/api
1. Create a developer account and API key
- Sign in at devportal.echozero.app.
- Register as a developer and create an API key.
- Export it locally:
export EZ_API_KEY="ez_live_..."
All examples below send this key as x-api-key.
2. Dry-run sandbox endpoints
The Sandbox API group provides dry-run simulators — they validate ownership and return simulated results with no real execution.
Simulate a trade for your agent
curl -sS -X POST "https://mcp.echozero.app/api/sandbox/agents/{agentId}/trade" \
-H "x-api-key: $EZ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"pair": "SOL/USDC",
"amount": 100,
"action": "BUY"
}'
Simulate signal parsing for a strategy
curl -sS -X POST "https://mcp.echozero.app/api/sandbox/strategies/{strategyId}/signals/simulate" \
-H "x-api-key: $EZ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "Buy SOL at $145, TP $160, SL $138"
}'
List sandbox signal history
curl -sS "https://mcp.echozero.app/api/sandbox/strategies/{strategyId}/signals?page=1&limit=20" \
-H "x-api-key: $EZ_API_KEY"
See the Sandbox tag in the API Reference sidebar for full request/response schemas.
3. Virtual wallet (paper trading)
Switch to virtual wallet mode and add simulated funds before testing buy/sell flows:
# Toggle to virtual mode
curl -sS -X POST "https://mcp.echozero.app/api/v1/wallet/mode" \
-H "x-api-key: $EZ_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "isVirtualMode": true }'
# Add virtual SOL balance
curl -sS -X POST "https://mcp.echozero.app/api/v1/wallet/virtual/add-funds" \
-H "x-api-key: $EZ_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "amountInSol": 10 }'
Virtual trades use simulated balances — no on-chain execution.
4. Portal demo signals
To record a demo signal row for an agent (isolated from live subscriber execution), use:
curl -sS -X POST "https://mcp.echozero.app/api/dev/trade-signals" \
-H "x-api-key: $EZ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"developerAgentId": "{agentId}",
"action": "buy",
"tokenAddress": "So11111111111111111111111111111111111111112",
"amount": 100
}'
Demo signals appear in developer signal history but do not trigger the live trade bridge.
5. Dev Portal UI
Many flows (agent setup, signal preview, subscriber analytics) can also be exercised from the Dev Portal before you wire up production bots.
Use a dedicated test agent with no real subscribers while iterating. When you are ready for live execution, switch to production webhook or structured signal ingestion paths documented in the Signal envelope and Webhook security guides.