Build on Coder.
A REST API for your custom algorithms, the marketplace and market data, included with every plan. Authenticate with an API key from /apikey. An optional x402 export exists for agents that want historical signal data without a subscription.
# List your custom algorithms
curl -H "X-API-Key: cdr_your_key_here" \
https://cdr.fun/api/ai/algos
# Create a new algo with filters
curl -X POST -H "X-API-Key: cdr_your_key_here" \
-H "Content-Type: application/json" \
-d '{"name": "Sniper", "filters": {"min_mc": 5000, "require_twitter": true}}' \
https://cdr.fun/api/ai/algos
# Browse the marketplace (no auth needed)
curl https://cdr.fun/api/ai/marketplace
{ "success": true, "data": { ... } }
No key
Browse the marketplace, query the 44 filter definitions, read market data.
Authenticated
List your algos, view subscriptions, read algo detail. Three active keys per account.
Subscriber or holder
Any paid plan or 1% of supply (10M tokens): create, edit and delete algos. Listing on the marketplace is for holders.
Optional: historical signal export for agents without a subscription.
For offline research only; subscribers receive live signals in Telegram at no extra cost. Priced per exported signal in USD and paid in CDR. The 402 response carries the exact CDR amount at the live rate and describes a CDR (SPL token) transfer. Payment is verified on-chain and signatures are stored to block replay.
- Check the count for free.
- Request N signals. The server answers 402 with price and recipient.
- Send the CDR and retry with the payment proof the 402 response asks for.
- Receive N signals with 27 fields each.
GET /api/ai/bot-calls?limit=5 HTTP/1.1
HTTP/1.1 402 Payment Required
{ "payment": { "priceUsd": 5.0, "pricePerSignal": 1.0, "signalCount": 5,
"blockchain": "solana",
CDR amount, token and recipient: see the live 402 response } }
GET /api/ai/bot-calls?limit=5 HTTP/1.1
X-Payment-Signature: 5KQz...9xYZ
HTTP/1.1 200 OK
{ "success": true, "count": 5, "data": [ { "mint": "HU5m94y...",
"algorithm": "SwarmDetector", "entry_mc": 33146.5, "peak_mc": 39925.4,
"confidence": "HIGH", "reason": "Swarm: 5 consecutive grows", ... } ] }
Endpoints
Custom algos
| Method | Path | Auth | Description |
|---|---|---|---|
| GET | /api/ai/algos/filters | Public | All 44 filters with types, defaults and tiers |
| GET | /api/ai/algos | Key | List your algos with stats |
| GET | /api/ai/algos/:id | Key | Full algo detail, filters and marketplace status |
| POST | /api/ai/algos | Paid | Create a new algo (paid plan or CDR holder) |
| PATCH | /api/ai/algos/:id | Paid | Update name, filters, or enable and disable |
| DELETE | /api/ai/algos/:id | Paid | Delete algo, cascades the marketplace listing |
Marketplace
| Method | Path | Auth | Description |
|---|---|---|---|
| GET | /api/ai/marketplace | Public | Browse listings, sort and paginate |
| GET | /api/ai/marketplace/:id | Public | Listing detail plus seven-day performance |
| POST | /api/ai/algos/:id/list | CDR | List an algo on the marketplace |
| PATCH | /api/ai/marketplace/:id | CDR | Update price, description, active status |
| GET | /api/ai/marketplace/subscriptions | Key | Your active subscriptions |
| POST | /api/ai/marketplace/:id/subscribe | Key | Initiate a subscription, returns 402 |
| POST | /api/ai/marketplace/:id/confirm | Key | Confirm CDR payment, activate |
Signals and market data
| Method | Path | Auth | Description |
|---|---|---|---|
| GET | /api/ai/bot-calls/count | Public | Total signal count plus pricing |
| GET | /api/ai/bot-calls?limit=N | x402 | Historical export, N most recent signals, priced per signal in USD, paid in CDR |
| GET | /api/ai/token-discovery | Public | Token discovery data, paginated |
| GET | /api/ai/price-history | Public | Historical price snapshots |
| GET | /api/ai/viewer-history | Public | Viewer count history |
| GET | /api/ai/sync | Public | Incremental token updates since a timestamp |
| GET | /api/ai/spike-calls | Public | Spike detection signals |
| Limit | Value |
|---|---|
| Requests per minute | 100 |
| Max algos per user | 25 |
| Max API keys per user | 3 |
| Algo name length | 30 characters |
| Listing description | 500 characters |
| Marketplace price range | $1 to $10,000 per month |
| Subscription duration | 30 days per payment |
| Code | Meaning |
|---|---|
| 400 | Invalid name, missing fields, price out of range, or 25-algo cap reached |
| 401 | Missing or invalid API key |
| 402 | Payment required. Not an error, contains payment instructions |
| 403 | Plan or holder status required, or payment verification failed |
| 404 | Algo or listing not found |
| 409 | Duplicate name, already listed, or already subscribed |
| 429 | Rate limit exceeded, wait 60 seconds |