This skill should be used when the user asks to "access LSEG data", "query Refinitiv", "get market data from Refinitiv", "download fundamentals from LSEG", "access ESG scores", "convert RIC to ISIN", or needs the LSEG Data Library Python API.
/plugin marketplace add edwinhu/workflows/plugin install workflows@edwinhu-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
examples/fundamentals_query.pyexamples/historical_pricing.ipynbexamples/stock_screener.ipynbreferences/esg.mdreferences/fundamentals.mdreferences/pricing.mdreferences/screening.mdreferences/symbology.mdreferences/troubleshooting.mdreferences/wrds-comparison.mdscripts/test_connection.pyAccess financial data from LSEG (London Stock Exchange Group), formerly Refinitiv, via the lseg.data Python library.
import lseg.data as ld
ld.open_session()
# Get fundamentals
df = ld.get_data(
universe=['AAPL.O', 'MSFT.O'],
fields=['TR.CompanyName', 'TR.Revenue', 'TR.EPS']
)
# Get historical prices
prices = ld.get_history(
universe='AAPL.O',
fields=['OPEN', 'HIGH', 'LOW', 'CLOSE', 'VOLUME'],
start='2023-01-01',
end='2023-12-31'
)
ld.close_session()
Config file lseg-data.config.json:
{
"sessions": {
"default": "platform.ldp",
"platform": {
"ldp": {
"app-key": "YOUR_APP_KEY",
"username": "YOUR_MACHINE_ID",
"password": "YOUR_PASSWORD"
}
}
}
}
Or environment variables: RDP_USERNAME, RDP_PASSWORD, RDP_APP_KEY
| API | Use Case | Example |
|---|---|---|
ld.get_data() | Point-in-time data | Fundamentals, ESG scores |
ld.get_history() | Time series | Historical prices, OHLCV |
symbol_conversion.Definition() | ID mapping | RIC ↔ ISIN ↔ CUSIP |
| Prefix | Type | Example |
|---|---|---|
TR. | Refinitiv fields | TR.Revenue, TR.EPS |
CF_ | Composite (real-time) | CF_LAST, CF_BID |
| Suffix | Exchange | Example |
|---|---|---|
.O | NASDAQ | AAPL.O |
.N | NYSE | IBM.N |
.L | London | VOD.L |
.T | Tokyo | 7203.T |
| Endpoint | Limit |
|---|---|
get_data() | 10,000 data points/request |
get_history() | 3,000 rows/request |
| Session | 500 requests/minute |
references/fundamentals.md - Financial statement fields, ratios, estimatesreferences/esg.md - ESG scores, pillars, controversiesreferences/symbology.md - RIC/ISIN/CUSIP conversionreferences/pricing.md - Historical prices, real-time datareferences/screening.md - Stock screening with Screener objectreferences/troubleshooting.md - Common issues and solutionsreferences/wrds-comparison.md - LSEG vs WRDS data mappingexamples/historical_pricing.ipynb - Historical price retrievalexamples/fundamentals_query.py - Fundamental data patternsexamples/stock_screener.ipynb - Dynamic stock screeningscripts/test_connection.py - Validate LSEG connectivityLSEG API samples at ~/resources/lseg-samples/:
Example.RDPLibrary.Python/ - Core API examplesExamples.DataLibrary.Python.AdvancedUsecases/ - Advanced patternsArticle.DataLibrary.Python.Screener/ - Stock screeningPattern from oh-my-opencode: When querying market data, use current date context.
Example for time series:
from datetime import datetime, timedelta
# Get recent market data
end_date = datetime.now()
start_date = end_date - timedelta(days=365)
# Adjust to exclude recent data (T-1 for market data availability)
end_date = end_date - timedelta(days=1)
df = ek.get_timeseries(
"AAPL.O",
fields=['CLOSE'],
start_date=start_date.strftime('%Y-%m-%d'),
end_date=end_date.strftime('%Y-%m-%d')
)
Remember: Market data typically has T-1 availability.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.