Boutquin.Trading.Data.FamaFrench 1.0.2

dotnet add package Boutquin.Trading.Data.FamaFrench --version 1.0.2
                    
NuGet\Install-Package Boutquin.Trading.Data.FamaFrench -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.FamaFrench" 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.FamaFrench" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Boutquin.Trading.Data.FamaFrench" />
                    
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.FamaFrench --version 1.0.2
                    
#r "nuget: Boutquin.Trading.Data.FamaFrench, 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.FamaFrench@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.FamaFrench&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Boutquin.Trading.Data.FamaFrench&version=1.0.2
                    
Install as a Cake Tool

Boutquin.Trading.Data.FamaFrench

Nuget License

Fama-French Factor Data Provider

Academic factor return data fetcher for the Boutquin.Trading quantitative trading framework. Downloads factor return series from the Kenneth R. French Data Library.

Features

  • Implements IFactorDataFetcher from Boutquin.Trading.Domain
  • Returns IAsyncEnumerable<KeyValuePair<DateOnly, IReadOnlyDictionary<string, decimal>>> — all factors from a dataset in one async stream
  • No API key required (public data library)
  • Supports 3-factor, 5-factor, and momentum datasets in both daily and monthly frequencies
  • Values in percentage (caller transforms) — missing values (-99.99, -999) silently skipped
  • Monthly annual summary section excluded automatically
  • Downloads ZIP/CSV directly from the Ken French Data Library
  • Supports CancellationToken for cooperative cancellation
  • Compatible with L1/L2 caching decorators

Supported Datasets

The FamaFrenchDataset enum constrains valid identifiers:

Dataset Factors
ThreeFactors Mkt-RF, SMB, HML, RF
FiveFactors Mkt-RF, SMB, HML, RMW, CMA, RF
Momentum Mom

Factor names are defined in FamaFrenchConstants (in Boutquin.Trading.Domain).

Usage

var fetcher = new FamaFrenchFetcher(httpClient);
await foreach (var (date, factors) in fetcher.FetchFactorDataAsync(
    FamaFrenchDataset.FiveFactors, startDate, endDate))
{
    var marketPremium = factors[FamaFrenchConstants.MktRf]; // in percent
}

Installation

dotnet add package Boutquin.Trading.Data.FamaFrench

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 134 3/31/2026
1.0.1 111 3/31/2026
Loading failed