REST API for Solana trading signals, custom algorithms, and the algo marketplace. Authenticate with an API key, pay with SOL via x402, and automate your trading stack.
https://cdr.fun/api/ai/
Pass your key in the X-API-Key header with every request
Create algos, browse the marketplace, fetch signals, and automate your strategy
# 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 marketplace (no auth needed) curl https://cdr.fun/api/ai/marketplace
Create and manage custom trading algorithms with 44 configurable filters across 3 tiers. Full CRUD via REST.
Browse, subscribe to, and sell trading algorithms. SOL payments with 75/25 revenue split. 30-day subscriptions.
Access 8,000+ historical algorithm signals with full token metadata. Pay-per-request via x402 SOL payments.
Query all 44 filter definitions with types, defaults, and tier classification. Build algo configs programmatically.
Price history, viewer history, token discovery, and spike detection. Bulk export for AI training and backtesting.
Natural language token analysis, shilling detection, and PnL reports. Powered by DeepSeek via the Telegram bot.
Keys are 52 characters: cdr_ prefix + 48 hex characters. Generate via /apikey in the Telegram bot. Max 3 keys per account.
No API key needed. Browse marketplace, query filters, view market data.
Valid API key. List your algos, view subscriptions, read algo detail.
API key + hold 1% CDR supply (10M tokens). Create, edit, delete algos. List on marketplace.
Pay $1 per request in SOL. Access full trading signal dataset with token metadata.
| Method | Path | Auth | Description |
|---|---|---|---|
| GET | /api/ai/algos/filters | Public | All 44 filters with types, defaults, tiers |
| GET | /api/ai/algos | Key | List your algos with stats |
| GET | /api/ai/algos/:id | Key | Full algo detail + filters + marketplace status |
| POST | /api/ai/algos | CDR | Create new algo |
| PATCH | /api/ai/algos/:id | CDR | Update name, filters, or enable/disable |
| DELETE | /api/ai/algos/:id | CDR | Delete algo (cascades marketplace listing) |
| Method | Path | Auth | Description |
|---|---|---|---|
| GET | /api/ai/marketplace | Public | Browse listings (sort, paginate) |
| GET | /api/ai/marketplace/:id | Public | Listing detail + 7d performance |
| POST | /api/ai/algos/:id/list | CDR | List algo on 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 subscription (returns 402) |
| POST | /api/ai/marketplace/:id/confirm | Key | Confirm SOL payment, activate sub |
| Method | Path | Auth | Description |
|---|---|---|---|
| GET | /api/ai/bot-calls/count | Public | Total signal count + pricing |
| GET | /api/ai/bot-calls | x402 | Full signal dataset with token metadata |
| 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 timestamp |
| GET | /api/ai/spike-calls | Public | Spike detection signals |
{
"success": true,
"data": { ... }
}
{
"success": false,
"error": "Description of what went wrong"
}
{
"error": "Payment Required",
"payment": {
"total_sol": 0.011628,
"recipient": "CTLtMdpNartRuzVzETi2LpWFQQvqTU7mWXmSvGiCZTYx",
"blockchain": "solana"
}
}
| 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 - $10,000 / month |
| Subscription duration | 30 days per payment |
Generate your API key in seconds via Telegram and start building.