matlab/matlab-agentic-toolkit / skills-catalog/computational-finance/matlab-access-datafeed
matlab-access-datafeed
VerifiedConnect to Bloomberg, FRED, Haver Analytics, LSEG Datastream, NOAA Climate Data Online, or US government agencies (BEA, BLS, Census, EIA) from MATLAB and retrieve data. Covers market data (bloomberg/blp/bloombergHypermedia), economic data (fredrs, haver/haverdirect/haverview), historical financial data (datastreamws), weather/climate data (@noaa from GitHub), and government data (usbea/usbls/uscensus/useia from GitHub).
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.6 KB |
| manifest.yaml | config | 620 B |
| references/bloomberg.md | markdown | 11.5 KB |
| references/datastreamws.md | markdown | 3.2 KB |
| references/fred.md | markdown | 4.0 KB |
| references/haver.md | markdown | 4.8 KB |
| references/noaa.md | markdown | 5.8 KB |
| references/us-govt-data.md | markdown | 8.2 KB |
references/datastreamws.md
View on GitHub# LSEG Datastream Web Services (datastreamws) in Datafeed Toolbox
Connect to LSEG Datastream Web Services and retrieve historical financial data. Available since R2018b.
## Connection
```matlab
c = datastreamws(getSecret("datastreamwsUser"), getSecret("datastreamwsPassword"));
```
## Properties
| Property | Description | Default |
|----------|-------------|---------|
| `UserName` | Datastream user name used to connect | Value passed to constructor |
| `TimeOut` | Request timeout in milliseconds | 100 |
```matlab
c.TimeOut = 200;
```
## history — The Only Retrieval Method
`history` is the sole data retrieval method. Do NOT use `fetch` (that belongs to fredrs/haver).
### Calling Forms
| Form | Syntax | Behavior |
|------|--------|----------|
| Full | `history(c, sec, fields, startDate, endDate, freq)` | Time series with specified periodicity |
| Minimal | `history(c, sec)` | All available data for the security |
| Snapshot | `history(c, sec, fields, date)` | Single-date cross-section (4 args triggers Kind=0) |
### Full Form
```matlab
data = history(c, "VOD", "P", "01/01/2023", "12/31/2023", "D");
```
### Minimal Form — All Available Data
```matlab
data = history(c, "VOD");
```
### Snapshot Form (4 Arguments)
When exactly 4 arguments are passed (connection, security, fields, date), the request is a snapshot — a single-date retrieval across multiple fields:
```matlab
data = history(c, "VOD", ["PO"; "PH"; "PL"; "P"], "2024-06-15");
```
### Multiple Securities
```matlab
securities = {"MKS", "BARC", "BP.", "BA."};
data = history(c, securities, "P", startDate, endDate, "Q");
```
### Second Output — Raw Response
```matlab
[data, response] = history(c, securities, fields, startDate, endDate, "D");
```
## Output
`history` always returns a timetable — for single securities, multiple securities, and error conditions.
## Date Handling
### Absolute Dates
String, datetime, and datenum are all accepted:
```matlab
history(c, "VOD", "P", "01/01/2023", "12/31/2023", "D")
history(c, "VOD", "P", datetime(2023,1,1), datetime(2023,12,31), "D")
```
### Relative Dates
Relative date strings pass through to the Datastream server:
| Syntax | Meaning |
|--------|---------|
| `-1Y` | One year ago |
| `-6M` | Six months ago |
| `-0D` | Today |
```matlab
data = history(c, "VOD", "P", "-1Y", "-0D", "D");
```
### Special Date Keywords
| Keyword | Meaning |
|---------|---------|
| `BDATE` | Base date (server-defined) |
| `TIME` | Current server time |
These are accepted as date arguments and interpreted server-side.
## Periodicity
| Code | Frequency |
|------|-----------|
| `"D"` | Daily |
| `"W"` | Weekly |
| `"M"` | Monthly |
| `"Q"` | Quarterly |
| `"Y"` | Yearly |
## Datastream Expressions
Use `IsExpression` and `IsSymbolSet` flags for computed expressions instead of plain securities:
```matlab
exprs = ["PCH#(ALD,1D)", "PCH#(BARC,1D)", "PCH#(BP.,1D)"];
data = history(c, exprs, "", startDate, endDate, "D", ...
"IsExpression", "true", "IsSymbolSet", "true");
```
- Pass empty string `""` for fields — the expression encodes the computation
- `IsExpression` — securities are Datastream expressions, not instrument codes
- `IsSymbolSet` — input is a set of individual expressions, not a list name
---
Copyright 2026 The MathWorks, Inc.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| Agent Cost Reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| Agent Cost Reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |