
Market Data
dwlf
DWLF is a market analysis API and platform for crypto, stocks, ETFs and forex that unifies OHLCV market data, technical indicators, event detection, strategy building, backtesting and portfolio/watchlist management. Use it to fetch candle data, indicator sets (RSI, EMA, MACD, DSS, etc.
概览
DWLF is a market analysis API and platform for crypto, stocks, ETFs and forex that unifies OHLCV market data, technical indicators, event detection, strategy building, backtesting and portfolio/watchlist management.
DWLF is a market analysis API and platform for crypto, stocks, ETFs and forex that unifies OHLCV market data, technical indicators, event detection, strategy building, backtesting and portfolio/watchlist management. Use it to fetch candle data, indicator sets (RSI, EMA, MACD, DSS, etc.), auto-detected trendlines, support/resistance levels with scores, system and custom events, and symbol lists. The platform also exposes visual strategy CRUD, visual backtests, active/recent trade signals and performance stats, plus watchlists and trade journaling. Integrate via API key (Authorization: ApiKey ...) and use the helper script for quick requests; crypto symbols use a -USD suffix. Core advantages: single API for data + analytics, visual strategy builder, automated signal generation and robust backtesting for research, execution planning and portfolio monitoring.
Skill.md
这个 Skill 如何工作
DWLF is a market analysis API and platform for crypto, stocks, ETFs and forex that unifies OHLCV market data, technical indicators, event detection, strategy building, backtesting and portfolio/watchlist management. Use it to fetch candle data, indicator sets (RSI, EMA, MACD, DSS, etc.
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-USDsuffix) - 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-allwith{ "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-allwith{ "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-symbolsandGET /strategy-symbols(query:?activeOnly=true)
Deactivating Symbols
- Event:
POST /custom-event-symbols/{eventId}/disable-allwith{ "symbols": [...] } - Strategy:
POST /strategy-symbols/{strategyId}/disable-allwith{ "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 lessonsdwlf_search_academy— search by keyworddwlf_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
最适合用于
何时使用
DWLF is a market analysis API and platform for crypto, stocks, ETFs and forex that unifies OHLCV market data, technical indicators, event detection, strategy building, backtesting and portfolio/watchlist management. Use it to fetch candle data, indicator sets (RSI, EMA, MACD, DSS, etc.

01 · 会前准备
准备决策简报
在投委会开会前,把零散证据整理成结构化的论据。

02 · 团队协作
统一交接标准
让分析师、组合经理与 Agent 产出一致的研究结果。

03 · 实时更新
更新投资逻辑
出现新催化剂、KPI 发布或财报结果后,更新情景假设。
社区反馈
越用越好用。
随着 Skill 被使用与评审,反馈将展示在这里。
发现更多
相关 Skills
查看全部gmgn-market
gmgn-market is a CLI-driven Skill for retrieving crypto and meme-token market data: K-line (candlestick/OHLCV) charts, trending token rankings by USD volume, Trenches token lists, and newly launched…
crypto-price
This Skill retrieves cryptocurrency prices and generates dark-themed candlestick charts via a simple CLI. Invoke the script with a token symbol and optional duration (e.g., 30m, 3h, 12h, 2d) to…
cmc-api-crypto
This skill documents the CoinMarketCap (CMC) Cryptocurrency REST API for programmatic access to market and token data. It details authentication (API key via X-CMC_PRO_API_KEY), base URL, and…