DWLF — Market Analysis Platform
API base: https://api.dwlf.co.uk/v2
Auth
Use API key auth. Check TOOLS.md for the key. Header:
Authorization: ApiKey dwlf_sk_...
Helper script: scripts/dwlf-api.sh
Quick Start
# Generic GET request
./scripts/dwlf-api.sh GET /market-data/BTC-USD
# With query params
./scripts/dwlf-api.sh GET "/events?symbol=BTC-USD&limit=10"
# POST request
./scripts/dwlf-api.sh POST /visual-backtests '{"strategyId":"...","symbol":"BTC-USD"}'
Symbol Format
- Crypto:
BTC-USD, ETH-USD, SOL-USD (always with -USD suffix)
- Stocks/ETFs:
TSLA, NVDA, META, MARA, RIOT
- Forex:
GBP-USD, EUR-USD
If user says "BTC" → use BTC-USD. If "TSLA" → use TSLA.
Core Endpoints
Market Data
| Method |
Path |
Description |
| GET |
/market-data/{symbol}?interval=1d&limit=50 |
OHLCV candles |
| GET |
/market-data/symbols |
List all tracked symbols |
| GET |
/support-resistance/{symbol} |
S/R levels with scores |
| GET |
/chart-indicators/{symbol}?interval=1d |
All indicators (RSI, EMA, MACD, etc.) |
| GET |
/trendlines/{symbol} |
Auto-detected trendlines |
| GET |
/events?symbol={symbol}&limit=20 |
System events (breakouts) |
| GET |
/events?type=custom_event&scope=user&symbol={symbol}&days=30 |
User's custom events (wcl, dss, reversals etc.) |
Strategies & Signals
| Method |
Path |
Description |
| GET |
/visual-strategies |
List user's strategies |
| GET |
/visual-strategies/{id} |
Strategy details |
| POST |
/visual-strategies |
Create strategy |
| PUT |
/visual-strategies/{id} |
Update strategy |
| GET |
/user/trade-signals/active |
Active trade signals |
| GET |
/user/trade-signals/recent?limit=20 |
Recent signals |
| GET |
/user/trade-signals/stats |
Signal performance stats |
| GET |
/user/trade-signals/symbol/{symbol} |
Signals for a symbol |
Backtesting
| Method |
Path |
Description |
| POST |
/visual-backtests |
Trigger backtest (async) |
| GET |
/visual-backtests/{id} |
Get backtest results |
Backtests are async — POST triggers, then poll GET until complete.
Portfolio & Trades
| Method |
Path |
Description |
| GET |
/portfolios |
List portfolios |
| GET |
/portfolios/{id} |
Portfolio details + holdings |
| GET |
/trades?status=open |
List trades |
| POST |
/trades |
Log a new trade |
| PUT |
/trades/{id} |
Update trade |
| GET |
/trade-plans |
List trade plans |
Watchlist
| Method |
Path |
Description |
| GET |
/watchlist |
Get watchlist |
| POST |
/watchlist |
Add symbol ({"symbol":"BTC-USD"}) |
| DELETE |
/watchlist/{symbol} |
Remove symbol |
Custom Events
| Method |
Path |
Description |
| GET |
/custom-events |
List custom events |
| POST |
/custom-events |
Create custom event |
| GET |
/custom-events/{id} |
Event details |
Custom Event Symbol Activation
| Method |
Path |
Description |
| POST |
/custom-event-symbols/:eventId/enable-all |
Bulk activate symbols for an event |
| POST |
/custom-event-symbols/:eventId/disable-all |
Bulk deactivate symbols for an event |
| GET |
/custom-event-symbols/event/:eventId |
Get active symbols for an event |
| GET |
/custom-event-symbols |
List all event-symbol associations |
Strategy Symbol Activation
| Method |
Path |
Description |
| POST |
/strategy-symbols/:strategyId/enable-all |
Bulk activate symbols for a strategy |
| POST |
/strategy-symbols/:strategyId/disable-all |
Bulk deactivate symbols for a strategy |
| GET |
/strategy-symbols/strategy/:strategyId |
Get active symbols for a strategy |
| GET |
/strategy-symbols |
List all strategy-symbol associations |
Evaluations
| Method |
Path |
Description |
| POST |
/evaluations |
Trigger evaluation run |
| GET |
/evaluations/{id} |
Get evaluation results |
Symbol Activation (Required After Creation)
⚠️ IMPORTANT: Creating a custom event or strategy does NOT automatically activate it for any symbols. After creation, you MUST ask the user which symbols to activate it for, then call the enable endpoint. Without this step, the event/strategy will not fire or generate signals.
Workflow: Custom Events
- Create the event →
POST /custom-events
- Compile the event →
POST /custom-events/{id}/compile
- Ask the user which symbols to activate for
- Activate symbols →
POST /custom-event-symbols/{eventId}/enable-all with { "symbols": ["BTC-USD", "ETH-USD"] }
Workflow: Strategies
- Create the strategy →
POST /visual-strategies
- Compile the strategy →
POST /visual-strategies/{id}/compile
- Ask the user which symbols to activate for
- Activate symbols →
POST /strategy-symbols/{strategyId}/enable-all with { "symbols": ["BTC-USD", "ETH-USD"] }
Checking Active Symbols
- Event symbols:
GET /custom-event-symbols/event/{eventId}
- Strategy symbols:
GET /strategy-symbols/strategy/{strategyId}
- All activations:
GET /custom-event-symbols and GET /strategy-symbols (query: ?activeOnly=true)
Deactivating Symbols
- Event:
POST /custom-event-symbols/{eventId}/disable-all with { "symbols": [...] }
- Strategy:
POST /strategy-symbols/{strategyId}/disable-all with { "symbols": [...] }
Response Formatting
When presenting data to users:
Market overview: Show price, % change, key S/R levels, and any recent events.
Signals: Show symbol, direction, entry, stop loss, confidence score, strategy name.
S/R levels: Sort by score (strongest first), show level and touch count.
Backtests: Show trade count, win rate, total return, Sharpe ratio, best/worst trades.
Available Indicators
EMA (multiple periods), SMA, RSI, MACD, Bollinger Bands, DSS (Double Smoothed Stochastic),
Stochastic RSI, ATR, ADX, OBV, Volume Profile, Ichimoku Cloud, Fibonacci Retracement,
Support/Resistance, Trendlines, Candlestick Patterns, SMC (Order Blocks, FVGs, BOS/ChoCH).
Academy
DWLF Academy is a CDN-hosted collection of educational content (15 tracks, 60+ lessons) covering indicators, events, strategies, charting, and more. No auth required.
Use academy tools to read lesson content and understand DWLF concepts:
dwlf_list_academy_tracks — browse all tracks and lessons
dwlf_search_academy — search by keyword
dwlf_get_academy_lesson — read a specific lesson (markdown)
When a user asks "how does X work in DWLF?" or "what is DSS?", check the academy first — it likely has a lesson explaining it.
Detailed Reference
- API endpoints (params, response shapes): read
references/api-endpoints.md
- Strategy builder (node types, edge wiring, examples): read
references/strategy-builder.md
1---
2name: dwlf
3description: >
4 Interact with DWLF (dwlf.co.uk), a market analysis platform for crypto and stocks.
5 Use for: market data, price charts, technical indicators (EMA, RSI, DSS, S/R, trendlines,
6 candlestick patterns, SMC), strategies (visual signal builder), backtesting, custom events,
7 trade signals, portfolio tracking, watchlists, trade journaling, and academy content.
8 Trigger on: market analysis, trading signals, backtests, portfolio, DWLF, chart indicators,
9 support/resistance, strategy builder, trade journal, watchlist, how's BTC, how's the market.
10metadata:
11 source: https://skillmd.com/skills/modbender/dwlf
12 clawdbot:
13 emoji: "📊"
14 requires:
15 bins: ["curl", "jq"]
16---
17
18# DWLF — Market Analysis Platform
19
20API base: `https://api.dwlf.co.uk/v2`
21
22## Auth
23
24Use API key auth. Check `TOOLS.md` for the key. Header:
25```
26Authorization: ApiKey dwlf_sk_...
27```
28
29Helper script: `scripts/dwlf-api.sh`
30
31## Quick Start
32
33```bash
34# Generic GET request
35./scripts/dwlf-api.sh GET /market-data/BTC-USD
36
37# With query params
38./scripts/dwlf-api.sh GET "/events?symbol=BTC-USD&limit=10"
39
40# POST request
41./scripts/dwlf-api.sh POST /visual-backtests '{"strategyId":"...","symbol":"BTC-USD"}'
42```
43
44## Symbol Format
45
46- Crypto: `BTC-USD`, `ETH-USD`, `SOL-USD` (always with `-USD` suffix)
47- Stocks/ETFs: `TSLA`, `NVDA`, `META`, `MARA`, `RIOT`
48- Forex: `GBP-USD`, `EUR-USD`
49
50If user says "BTC" → use `BTC-USD`. If "TSLA" → use `TSLA`.
51
52## Core Endpoints
53
54### Market Data
55| Method | Path | Description |
56|--------|------|-------------|
57| GET | `/market-data/{symbol}?interval=1d&limit=50` | OHLCV candles |
58| GET | `/market-data/symbols` | List all tracked symbols |
59| GET | `/support-resistance/{symbol}` | S/R levels with scores |
60| GET | `/chart-indicators/{symbol}?interval=1d` | All indicators (RSI, EMA, MACD, etc.) |
61| GET | `/trendlines/{symbol}` | Auto-detected trendlines |
62| GET | `/events?symbol={symbol}&limit=20` | System events (breakouts) |
63| GET | `/events?type=custom_event&scope=user&symbol={symbol}&days=30` | User's custom events (wcl, dss, reversals etc.) |
64
65### Strategies & Signals
66| Method | Path | Description |
67|--------|------|-------------|
68| GET | `/visual-strategies` | List user's strategies |
69| GET | `/visual-strategies/{id}` | Strategy details |
70| POST | `/visual-strategies` | Create strategy |
71| PUT | `/visual-strategies/{id}` | Update strategy |
72| GET | `/user/trade-signals/active` | Active trade signals |
73| GET | `/user/trade-signals/recent?limit=20` | Recent signals |
74| GET | `/user/trade-signals/stats` | Signal performance stats |
75| GET | `/user/trade-signals/symbol/{symbol}` | Signals for a symbol |
76
77### Backtesting
78| Method | Path | Description |
79|--------|------|-------------|
80| POST | `/visual-backtests` | Trigger backtest (async) |
81| GET | `/visual-backtests/{id}` | Get backtest results |
82
83Backtests are async — POST triggers, then poll GET until complete.
84
85### Portfolio & Trades
86| Method | Path | Description |
87|--------|------|-------------|
88| GET | `/portfolios` | List portfolios |
89| GET | `/portfolios/{id}` | Portfolio details + holdings |
90| GET | `/trades?status=open` | List trades |
91| POST | `/trades` | Log a new trade |
92| PUT | `/trades/{id}` | Update trade |
93| GET | `/trade-plans` | List trade plans |
94
95### Watchlist
96| Method | Path | Description |
97|--------|------|-------------|
98| GET | `/watchlist` | Get watchlist |
99| POST | `/watchlist` | Add symbol (`{"symbol":"BTC-USD"}`) |
100| DELETE | `/watchlist/{symbol}` | Remove symbol |
101
102### Custom Events
103| Method | Path | Description |
104|--------|------|-------------|
105| GET | `/custom-events` | List custom events |
106| POST | `/custom-events` | Create custom event |
107| GET | `/custom-events/{id}` | Event details |
108
109### Custom Event Symbol Activation
110| Method | Path | Description |
111|--------|------|-------------|
112| POST | `/custom-event-symbols/:eventId/enable-all` | Bulk activate symbols for an event |
113| POST | `/custom-event-symbols/:eventId/disable-all` | Bulk deactivate symbols for an event |
114| GET | `/custom-event-symbols/event/:eventId` | Get active symbols for an event |
115| GET | `/custom-event-symbols` | List all event-symbol associations |
116
117### Strategy Symbol Activation
118| Method | Path | Description |
119|--------|------|-------------|
120| POST | `/strategy-symbols/:strategyId/enable-all` | Bulk activate symbols for a strategy |
121| POST | `/strategy-symbols/:strategyId/disable-all` | Bulk deactivate symbols for a strategy |
122| GET | `/strategy-symbols/strategy/:strategyId` | Get active symbols for a strategy |
123| GET | `/strategy-symbols` | List all strategy-symbol associations |
124
125### Evaluations
126| Method | Path | Description |
127|--------|------|-------------|
128| POST | `/evaluations` | Trigger evaluation run |
129| GET | `/evaluations/{id}` | Get evaluation results |
130
131## Symbol Activation (Required After Creation)
132
133> ⚠️ **IMPORTANT:** Creating a custom event or strategy does **NOT** automatically activate it for any symbols. After creation, you **MUST** ask the user which symbols to activate it for, then call the enable endpoint. Without this step, the event/strategy will **not fire or generate signals**.
134
135### Workflow: Custom Events
1361. Create the event → `POST /custom-events`
1372. Compile the event → `POST /custom-events/{id}/compile`
1383. **Ask the user** which symbols to activate for
1394. **Activate symbols** → `POST /custom-event-symbols/{eventId}/enable-all` with `{ "symbols": ["BTC-USD", "ETH-USD"] }`
140
141### Workflow: Strategies
1421. Create the strategy → `POST /visual-strategies`
1432. Compile the strategy → `POST /visual-strategies/{id}/compile`
1443. **Ask the user** which symbols to activate for
1454. **Activate symbols** → `POST /strategy-symbols/{strategyId}/enable-all` with `{ "symbols": ["BTC-USD", "ETH-USD"] }`
146
147### Checking Active Symbols
148- Event symbols: `GET /custom-event-symbols/event/{eventId}`
149- Strategy symbols: `GET /strategy-symbols/strategy/{strategyId}`
150- All activations: `GET /custom-event-symbols` and `GET /strategy-symbols` (query: `?activeOnly=true`)
151
152### Deactivating Symbols
153- Event: `POST /custom-event-symbols/{eventId}/disable-all` with `{ "symbols": [...] }`
154- Strategy: `POST /strategy-symbols/{strategyId}/disable-all` with `{ "symbols": [...] }`
155
156## Response Formatting
157
158When presenting data to users:
159
160**Market overview:** Show price, % change, key S/R levels, and any recent events.
161
162**Signals:** Show symbol, direction, entry, stop loss, confidence score, strategy name.
163
164**S/R levels:** Sort by score (strongest first), show level and touch count.
165
166**Backtests:** Show trade count, win rate, total return, Sharpe ratio, best/worst trades.
167
168## Available Indicators
169
170EMA (multiple periods), SMA, RSI, MACD, Bollinger Bands, DSS (Double Smoothed Stochastic),
171Stochastic RSI, ATR, ADX, OBV, Volume Profile, Ichimoku Cloud, Fibonacci Retracement,
172Support/Resistance, Trendlines, Candlestick Patterns, SMC (Order Blocks, FVGs, BOS/ChoCH).
173
174## Academy
175
176DWLF Academy is a CDN-hosted collection of educational content (15 tracks, 60+ lessons) covering indicators, events, strategies, charting, and more. No auth required.
177
178Use academy tools to read lesson content and understand DWLF concepts:
179- `dwlf_list_academy_tracks` — browse all tracks and lessons
180- `dwlf_search_academy` — search by keyword
181- `dwlf_get_academy_lesson` — read a specific lesson (markdown)
182
183When a user asks "how does X work in DWLF?" or "what is DSS?", check the academy first — it likely has a lesson explaining it.
184
185## Detailed Reference
186
187- **API endpoints** (params, response shapes): read `references/api-endpoints.md`
188- **Strategy builder** (node types, edge wiring, examples): read `references/strategy-builder.md`