Boutquin.Trading.Data.Fred 1.0.2

dotnet add package Boutquin.Trading.Data.Fred --version 1.0.2
                    
NuGet\Install-Package Boutquin.Trading.Data.Fred -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Boutquin.Trading.Data.Fred" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Boutquin.Trading.Data.Fred" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Boutquin.Trading.Data.Fred" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Boutquin.Trading.Data.Fred --version 1.0.2
                    
#r "nuget: Boutquin.Trading.Data.Fred, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Boutquin.Trading.Data.Fred@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Boutquin.Trading.Data.Fred&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Boutquin.Trading.Data.Fred&version=1.0.2
                    
Install as a Cake Tool

Boutquin.Trading.Data.Fred

Nuget License

FRED Economic Data Provider

Federal Reserve Economic Data fetcher for the Boutquin.Trading quantitative trading framework. Provides treasury yields, inflation indicators, GDP, and macro time series via the FRED REST API.

Features

  • Implements IEconomicDataFetcher from Boutquin.Trading.Domain
  • Returns IAsyncEnumerable<KeyValuePair<DateOnly, decimal>> for a given FRED series ID
  • Raw values as FRED provides them (e.g., yields in percent, not decimal) — caller transforms
  • Missing values (".") silently skipped
  • Supports CancellationToken for cooperative cancellation
  • Compatible with L1/L2 caching decorators

Well-Known Series

FredSeriesConstants provides constants for common series:

Constant FRED Series Description
Treasury yields DGS1MO through DGS30 1-month to 30-year treasury yields
Inflation CPIAUCSL, T10YIE CPI, 10Y breakeven inflation
Growth GDP, GDPC1 Nominal and real GDP

Usage

var fetcher = new FredFetcher(httpClient, apiKey);
await foreach (var (date, value) in fetcher.FetchAsync(FredSeriesConstants.DGS10))
{
    // value is in percent (e.g., 4.25 for 4.25%)
}

API Key

Requires a free FRED API key from fred.stlouisfed.org.

Installation

dotnet add package Boutquin.Trading.Data.Fred

Disclaimer

Boutquin.Trading is open-source software provided under the Apache 2.0 License. It is a general-purpose research and backtesting tool intended for educational purposes only.

This software does not constitute financial advice. All historical performance data represents backtested results computed using actual historical index and ETF return data. Backtested performance is hypothetical and does not represent actual trading. Actual investment results may differ materially. Past performance is not indicative of future results.

The software authors are not registered investment advisers, portfolio managers, or financial planners. Use of this software to make investment decisions is entirely at your own risk. Before making any investment decision, consult with a qualified financial professional who understands your individual circumstances, goals, and risk tolerance.

License

This project is licensed under the Apache 2.0 License. See the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 108 3/31/2026
1.0.1 107 3/31/2026
Loading failed