Datafeed Toolbox — Bloomberg, FRED, Haver Analytics, and LSEG Datastream

SkillDatabases & data

Guide for accessing financial and economic data in MATLAB using the Datafeed Toolbox. Covers Bloomberg (market data via bloomberg/blp/bloombergHypermedia), FRED (Federal Reserve economic data via fredrs), Haver Analytics (economic data via haver/haverdirect/haverview), and LSEG Datastream (historical data via datastreamws). Use when connecting to any of these data providers from MATLAB.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Datafeed Toolbox — Bloomberg, FRED, Haver Analytics, and LSEG Datastream skill

What this skill tells your AI

The instructions your AI receives, as published by matlab/matlab-agentic-toolkit in skills-catalog/computational-finance/matlab-access-datafeed/SKILL.md and read by ahel’s review.

Access financial and economic data from four major providers through the MATLAB Datafeed Toolbox.

When to Use

  • User wants to connect to Bloomberg, FRED, Haver Analytics, or LSEG Datastream from MATLAB
  • User needs to retrieve market data (prices, history, real-time, reference data) via Bloomberg
  • User needs to retrieve economic time series from the St. Louis Fed (FRED)
  • User needs to fetch economic/financial time series from Haver Analytics databases
  • User needs to retrieve historical financial data from LSEG Datastream
  • User needs help choosing between interfaces within a provider (e.g., bloomberg vs blp vs bloombergHypermedia, haver vs haverview)
  • User is writing MATLAB code involving securities, economic indicators, or data provider connectivity

When NOT to Use

  • General financial modeling or portfolio optimization that doesn't involve data provider connectivity
  • Bloomberg Terminal keyboard shortcuts or Excel add-in questions (not MATLAB)
  • Datastream Excel add-in (not MATLAB)
  • Real-time streaming from LSEG (datastreamws is historical only)
  • Data sources not covered here (e.g., Yahoo Finance)

Provider Overview

ProviderData TypeInterfacesReference
BloombergMarket data (equities, fixed income, derivatives, indices)bloomberg, blp, bloombergHypermedia, bloombergEMSXreferences/bloomberg.md
FREDU.S. economic data (GDP, unemployment, CPI, interest rates)fredrs (replaces obsolete fred)references/fred.md
Haver AnalyticsGlobal economic & financial data (macro, industry, surveys)haver, haverdirect, haverviewreferences/haver.md
LSEG DatastreamHistorical financial data (equities, indices, economics, expressions)datastreamwsreferences/datastreamws.md

Quick Interface Selection

Bloomberg — see references/bloomberg.md for full API patterns

  • Windows Desktop/Terminal userbloomberg (C++)
  • Need platform independence (Data License)bloombergHypermedia
  • Server/cloud, no Terminal (BPIPE)bloombergBPIPE
  • Existing blp users → migrate to bloomberg (same API, no Java needed)

FRED — see references/fred.md for full API patterns

  • Any platformfredrs (requires R2026a+, API key)
  • fred is obsolete — do NOT use it

Haver Analytics — see references/haver.md for full API patterns

  • Windows with local data fileshaver
  • Windows needing remote accesshaverdirect
  • Non-Windows / server / cloudhaverview (REST API)

LSEG Datastream — see references/datastreamws.md for full API patterns

  • Any platformdatastreamws (REST API, requires Datastream credentials)

How to Use References

Before generating code for a specific provider, read the corresponding reference file for detailed API patterns, function signatures, gotchas, and examples:

  • Working with Bloomberg data → read references/bloomberg.md
  • Working with FRED economic data → read references/fred.md
  • Working with Haver Analytics data → read references/haver.md
  • Working with LSEG Datastream data → read references/datastreamws.md

Common Rules

  • Always use getSecret() for credentials and API keys — never hardcode secrets
  • All four providers require the Datafeed Toolbox
  • fredrs additionally requires R2026a or later
  • datastreamws available since R2018b
  • Bloomberg and Haver local interfaces (bloomberg, blp, haver, haverdirect) are Windows-only; cloud/REST variants (bloombergHypermedia, bpipe, haverview, fredrs, datastreamws) are platform-independent

Copyright 2026 The MathWorks, Inc.

Signals

GitHub stars
1k
Forks
128
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
matlab-access-datafeed
Source
github.com/matlab/matlab-agentic-toolkit