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
<PackageReference Include="Boutquin.Trading.Data.Fred" Version="1.0.2" />
<PackageVersion Include="Boutquin.Trading.Data.Fred" Version="1.0.2" />
<PackageReference Include="Boutquin.Trading.Data.Fred" />
paket add Boutquin.Trading.Data.Fred --version 1.0.2
#r "nuget: Boutquin.Trading.Data.Fred, 1.0.2"
#:package Boutquin.Trading.Data.Fred@1.0.2
#addin nuget:?package=Boutquin.Trading.Data.Fred&version=1.0.2
#tool nuget:?package=Boutquin.Trading.Data.Fred&version=1.0.2
Boutquin.Trading.Data.Fred
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
IEconomicDataFetcherfromBoutquin.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
CancellationTokenfor 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 | Versions 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. |
-
net10.0
- Boutquin.Trading.Domain (>= 1.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.