Developer API
Every live prediction, signal, score and bot trade in DUKOIN — as JSON, for your trading desk, dashboards and bots. 5,000 calls a day on Elite.
Authentication
Create a key in App → Developer API. Send it as a bearer token. Keys are hashed at rest and can be revoked anytime.
curl -H "Authorization: Bearer dk_live_YOUR_KEY" https://dukoin.com/wp-json/dukoin/api/v1/predictions/bitcoin
Responses include meta.freshness (LIVE / RECENT / DELAYED / STALE) and X-RateLimit-Remaining. Errors: 401 bad key · 402 plan · 404 unknown asset · 429 daily quota.
| GET | Returns |
|---|---|
| /predictions/{asset} | Live price ranges for 4h–1y (ledger + live), bull/base/bear quantiles, calibration status, model card. |
| /signals/{asset} | Outlook stance and score, every driver with weight, 16-indicator consensus on 1h / 4h / 1d. |
| /board | Signals, outlook and 7d / 30d / 1y ranges for ~60 major coins in one call. |
| /assets/{asset} | Price, market cap, supply, indicators (SMA, RSI, MACD, volatility, drawdown), Research Score, derivatives. |
| /markets?limit=100 | Top assets by market cap with 1h–1y changes and freshness metadata. |
| /derivatives | Funding, open interest and basis for 800+ perpetuals; hottest and coldest funding. |
| /pulse | Market cap, volume, dominance, breadth, Fear & Greed, DeFi TVL, stablecoins, BTC network. |
| /dips?window=24h | Dip Detector: large declines with cause classification and value-trap flags (1h / 24h / 7d / 30d). |
| /bots | Your bots with live equity, return, drawdown and win rate. |
| /bots/{id}/trades | Full trade log for one of your bots. |
Bot webhooks
Elite bots can POST every trade to your endpoint — route it to your exchange tools, a 3Commas-style relay or your own execution service.
POST https://your-endpoint
X-DUKOIN-Signature: hex(hmac_sha256(raw_body, bot_webhook_secret))
{"event":"trade","mode":"paper","bot_id":12,"bot":"Trend rider · BTC","strategy":"trend",
"asset_id":"bitcoin","symbol":"BTC","pair":"BTCUSDT","side":"buy","qty":0.1192,
"price":83021.4,"reason":"Uptrend: price above rising 50-day average","trade_id":481,"ts":1791842400}
Always verify the signature before acting. DUKOIN never holds funds or exchange keys.