From 7dd0e3f42105569b6e6ec02aeeec9b5a8bbd9dd3 Mon Sep 17 00:00:00 2001 From: "Somhairle H. Marisol" Date: Tue, 22 Sep 2026 03:25:00 +0800 Subject: Add real AKShare stock daily history probe slice (3d-19) --- src/FundLab.Api/MarketDataService.fs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/FundLab.Api/MarketDataService.fs') diff --git a/src/FundLab.Api/MarketDataService.fs b/src/FundLab.Api/MarketDataService.fs index 7460bad..ee3aa67 100644 --- a/src/FundLab.Api/MarketDataService.fs +++ b/src/FundLab.Api/MarketDataService.fs @@ -20,6 +20,7 @@ type IMarketDataCollector = abstract FetchNav: code: string * CancellationToken -> Result abstract FetchBondQuote: code: string * CancellationToken -> Result abstract FetchStockQuote: code: string * CancellationToken -> Result + abstract FetchStockDaily: code: string * days: int * CancellationToken -> Result type IMarketDataService = abstract Search: query: string * CancellationToken -> Result @@ -211,6 +212,9 @@ type ProcessMarketDataCollector(pythonExecutable: string, scriptPath: string, py member _.FetchStockQuote(code: string, token: CancellationToken) = execute token [ "--operation"; "stock-quote"; "--code"; code ] + member _.FetchStockDaily(code: string, days: int, token: CancellationToken) = + execute token [ "--operation"; "stock-daily"; "--code"; code; "--days"; string days ] + type MarketDataService(repository: FundRepository, collector: IMarketDataCollector) = let codePattern = Text.RegularExpressions.Regex("^[0-9]{6}$", Text.RegularExpressions.RegexOptions.Compiled) -- cgit v1.2.3