Package Information
Documentation
n8n-nodes-nyfed
This is an n8n community node. It lets you use the Federal Reserve Bank of New York Markets Data API in your n8n workflows.
The Markets Data API provides public data published by the New York Fed: reference rates (SOFR, EFFR, OBFR, BGCR, TGCR…), System Open Market Account (SOMA) holdings, open market operations (repo, reverse repo, Treasury, agency MBS, securities lending, central bank liquidity swaps), primary dealer statistics and more.
n8n is a fair-code licensed workflow automation platform.
Installation
Operations
Credentials
Compatibility
Usage
Resources
Version history
Installation
Follow the installation guide in the n8n community nodes documentation and install the package n8n-nodes-nyfed.
Operations
Only the public (production) API is supported; the beta API is not used.
| Resource | Operations |
|---|---|
| Agency Mortgage-Backed Securities Operation | Get Current Day, Get Last Two Weeks, Get Last N, Search |
| Central Bank Liquidity Swap | Get Current Day, Get Last N, Search, Get Counterparties |
| Guide Sheet (FR 2004SI, FR 2004WI, FR 2004F-Series) | Get Current, Get Previous |
| Primary Dealer Market Share | Get Latest Quarterly, Get Latest Year-to-Date |
| Primary Dealer Statistic | Get Latest by Series Break, Get Survey by As Of Date, Get Survey by Time Series, Get Survey by Series Break and Time Series, List As Of Dates, List Series Breaks, List Time Series, Download All Surveys (CSV) |
| Reference Rate (SOFR, SOFR Averages and Index, BGCR, TGCR, EFFR, OBFR) | Get Latest, Get Last N, Search |
| Repo and Reverse Repo Operation | Get Current Day, Get Last Two Weeks, Get Last N, Search, Search Reverse Repo Propositions |
| Securities Lending Operation | Get Current Day, Get Last Two Weeks, Get Last N, Search |
| SOMA Holding | Get Summary, Get Latest As Of Date, List As Of Dates, Get Agency/Treasury Holdings (by as of date and holding type), Get Agency/Treasury Holdings by CUSIP, Get Agency/Treasury Release Log, Get Agency Debt / Treasury Weighted Average Maturity, Get Treasury Monthly Holdings |
| Treasury Securities Operation | Get Current Day, Get Last Two Weeks, Get Last N (max. 100), Search |
Credentials
No credentials are required. The NY Fed Markets Data API is public.
Compatibility
Built with @n8n/node-cli 0.57 and tested against n8n-workflow 2.x. Requires an n8n version supporting n8nNodesApiVersion: 1 (n8n 1.x and later).
Usage
- Response Format –
JSON(default) returns the data as n8n items.CSV,XLSX,XMLandPDF(depending on the endpoint) download the file returned by the API as binary data in the field configured in Put Output File in Field. - Split Into Items – by default, the JSON envelope returned by the API (e.g.
{ "refRates": [...] }) is removed and every record becomes one n8n item. Disable it in Options to get the raw API response as a single item. - Dates – use the date picker or an expression; any value is converted to the
yyyy-MM-ddformat the API expects. On Search operations an empty start/end date makes the API default to the current date. - SOMA and Primary Dealer "As Of Date" – if left empty, the node looks up the latest available as of date automatically.
- Series breaks, time series and liquidity swap counterparties are loaded dynamically from the API, but can also be set with expressions (time series and counterparties accept comma-separated lists).
- Operations returning data for the "current day" produce no items when there were no operations that day.
- Some endpoints return very large datasets (e.g. Get Treasury Monthly Holdings returns more than 80,000 records, Download All Surveys is a ~27 MB CSV).
- The node can be used as a tool by AI agents (
usableAsTool).
Use of reference rates and of the data accessible through the Markets Data APIs is subject to the New York Fed Terms of Use.
Development
npm install
npm run dev # starts n8n with the node loaded and hot reload
npm run lint
npm run build
Resources
Version history
0.1.0
Initial release covering every endpoint of the public Markets Data API.