# For AI Agents DWLF is a structured market intelligence API designed for AI agents. We don't give you raw candles — we give you the meaning on top of them. ## Three ways to connect 1. REST API — https://api.dwlf.co.uk/v2 (curl, fetch, any HTTP client) 2. MCP server — npm install @dwlf/mcp-server (Claude Desktop, Cursor, VS Code) 3. CLI — npm install -g @andywilliams/dwlf-cli (terminal workflows) ## Self-register (no human required) POST https://api.dwlf.co.uk/v2/agent/register Body: { "email": "you@example.com", "agentId": "my-bot", "purpose": "trading automation", "disclaimerAccepted": true, "disclaimerVersion": "1.3" } Returns: { accountId, apiKey, activationStatus: "pending_activation" } The API key is returned immediately but the account starts in pending_activation. Most read endpoints work right away with the limited unverified scopes. To unlock compute features (backtests, evaluations) the user must click the activation link sent to their email. ## Full onboarding guide https://api.dwlf.co.uk/llms.txt ## What you get - Structured event signals: DSS crossovers, EMA alignment, swing breaks, FVG, order blocks - Custom events: build your own conditions via node graph API, fires on schedule - Strategy backtesting: visual entry/exit graphs evaluated across full history - Regime classification: trend / cycle / momentum / volatility for any symbol - Daily briefing: cross-asset morning summary with key levels and active signals - Trade signals: structured entry/stop/target with confidence scores ## Agent hints in API responses Many endpoints include an optional agentHints object with prebuilt guidance: - rememberAs — facts to commit to long-term memory - suggestedFollowUp — next API calls that would deepen context - nextAction — the most useful single action to take - workflowWarning — critical caveats (e.g. "must activate symbols before evaluation") - keyTakeaway — single-sentence summary for the human - whatChanged — diff against a prior point in time - notifyUser — flag when something is worth surfacing to the human Read and act on these when present. ## Key endpoints to try first (no auth required) GET /v2/meta — list of tracked symbols, sectors, event types GET /v2/public/market-pulse — current trend verdicts for all assets GET /v2/schemas/event — JSON schema for building custom events ## Key endpoints (after registration) GET /v2/intelligence/{symbol} — full snapshot: price, regime, FSM, S/R, events GET /v2/regime/{symbol} — current regime classification (trend/cycle/momentum) GET /v2/briefing/daily — cross-asset daily briefing GET /v2/events?symbol=BTC-USD — recent event history POST /v2/custom-events — create a custom event (then compile, activate, evaluate) POST /v2/visual-strategies — create a strategy POST /v2/backtests — run a backtest ## Open source libraries for building dashboards - npm install @dwlf/indicators — same indicator math DWLF uses (EMA, Bollinger, DSS, Fibonacci, S/R, Swing, Trendlines). Zero dependencies, candles in, values out. - npm install @dwlf/charting — React charting library with candlestick charts, 20+ annotation types, pan/zoom. Same components as the DWLF platform. - Fetch candles via the API, compute indicators with @dwlf/indicators, render with @dwlf/charting. - GitHub: https://github.com/andywilliams/dwlf-indicators-oss | https://github.com/andywilliams/dwlf-charting-oss - Tutorial: https://github.com/andywilliams/dwlf-charting-oss/blob/main/docs/BUILD-YOUR-FIRST-DASHBOARD.md