matlab-access-datafeed

Retrieve financial and economic data in MATLAB from Bloomberg, FRED, and Haver Analytics.

995|122|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill matlab-access-datafeed
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: matlab-access-datafeed
Source: https://github.com/matlab/matlab-agentic-toolkit/tree/main/skills-catalog/computational-finance/matlab-access-datafeed
Command: npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill matlab-access-datafeed

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Connecting MATLAB to financial data providers involves choosing among multiple interfaces per provider, each with different platform constraints, authentication methods, and API patterns. This Skill guides AI agents to select the correct Datafeed Toolbox interface and generate working connection and retrieval code without hallucinating functions.

Core Features & Use Cases

  • Bloomberg Access: Connect via bloomberg, blp, bloombergBPIPE, or bloombergHypermedia for reference data, historical prices, and intraday tick data.
  • FRED Economic Data: Retrieve U.S. economic series (GDP, CPI, unemployment) using fredrs with search, category, tag, and release discovery methods.
  • Haver Analytics: Fetch economic time series via haver (local files), haverdirect (remote servers), or haverview (cloud REST API).
  • Use Case: A quantitative analyst asks the agent to pull five years of daily closing prices for a list of equities from Bloomberg and monthly GDP data from FRED; the Skill directs the agent to the right interface, correct function signatures, and credential handling with getSecret.

Quick Start

Ask your AI agent to connect to Bloomberg from MATLAB and retrieve the last price for IBM US Equity using the Datafeed Toolbox.

Frequently Asked Questions about matlab-access-datafeed

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect to Bloomberg from MATLAB?

Use the bloomberg function from the Datafeed Toolbox on Windows with a Bloomberg Terminal, or bloombergHypermedia for platform-independent Data License access. Retrieve data with getdata for reference fields, history for end-of-day series, and timeseries for intraday ticks.

How do I get FRED economic data in MATLAB?

Use the fredrs interface with a FRED API key, available since R2026a in the Datafeed Toolbox. Call fetch to get a timetable or series with the observations flag to get a table, and use search, category, or tags to discover series IDs.

What is the difference between bloomberg and blp in MATLAB?

bloomberg uses the Bloomberg C++ API and is recommended on Windows, while blp uses the Java API and requires users to supply their own Java runtime and blpapi3.jar. Both provide identical functionality, so blp users can migrate to bloomberg as a drop-in replacement.

Which Haver Analytics interface should I use in MATLAB?

Use haver for local data files on Windows, haverdirect for remote server access on Windows, and haverview for non-Windows or cloud deployments via REST API. Note that haverview has a different API surface and no close method.

Can I use the Datafeed Toolbox on Linux or Mac?

Yes, but only with platform-independent interfaces: bloombergHypermedia, BPIPE child classes, fredrs, and haverview. The local interfaces bloomberg, blp, haver, and haverdirect are Windows-only.

Why does passing a cell array of strings to Bloomberg functions fail?

Bloomberg methods reject cell arrays of strings like {"IBM US Equity"} because they fail internal ischar validation. Use string arrays, char vectors, or cellstr instead when specifying securities or fields.