Developer portal

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.

Base URLhttps://cdr.fun/api/ai/
cURLPythonJavaScript
# 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": { ... } }
Public

No key

Browse the marketplace, query the 44 filter definitions, read market data.

Key

Authenticated

List your algos, view subscriptions, read algo detail. Three active keys per account.

PaidCDR

Subscriber or holder

Any paid plan or 1% of supply (10M tokens): create, edit and delete algos. Listing on the marketplace is for holders.

x402

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", ... } ] }
Reference

Endpoints

Custom algos

MethodPathAuthDescription
GET/api/ai/algos/filtersPublicAll 44 filters with types, defaults and tiers
GET/api/ai/algosKeyList your algos with stats
GET/api/ai/algos/:idKeyFull algo detail, filters and marketplace status
POST/api/ai/algosPaidCreate a new algo (paid plan or CDR holder)
PATCH/api/ai/algos/:idPaidUpdate name, filters, or enable and disable
DELETE/api/ai/algos/:idPaidDelete algo, cascades the marketplace listing

Marketplace

MethodPathAuthDescription
GET/api/ai/marketplacePublicBrowse listings, sort and paginate
GET/api/ai/marketplace/:idPublicListing detail plus seven-day performance
POST/api/ai/algos/:id/listCDRList an algo on the marketplace
PATCH/api/ai/marketplace/:idCDRUpdate price, description, active status
GET/api/ai/marketplace/subscriptionsKeyYour active subscriptions
POST/api/ai/marketplace/:id/subscribeKeyInitiate a subscription, returns 402
POST/api/ai/marketplace/:id/confirmKeyConfirm CDR payment, activate

Signals and market data

MethodPathAuthDescription
GET/api/ai/bot-calls/countPublicTotal signal count plus pricing
GET/api/ai/bot-calls?limit=Nx402Historical export, N most recent signals, priced per signal in USD, paid in CDR
GET/api/ai/token-discoveryPublicToken discovery data, paginated
GET/api/ai/price-historyPublicHistorical price snapshots
GET/api/ai/viewer-historyPublicViewer count history
GET/api/ai/syncPublicIncremental token updates since a timestamp
GET/api/ai/spike-callsPublicSpike detection signals
LimitValue
Requests per minute100
Max algos per user25
Max API keys per user3
Algo name length30 characters
Listing description500 characters
Marketplace price range$1 to $10,000 per month
Subscription duration30 days per payment
CodeMeaning
400Invalid name, missing fields, price out of range, or 25-algo cap reached
401Missing or invalid API key
402Payment required. Not an error, contains payment instructions
403Plan or holder status required, or payment verification failed
404Algo or listing not found
409Duplicate name, already listed, or already subscribed
429Rate limit exceeded, wait 60 seconds