From 7da3c3d938e4b64a43963d602ab4a0a8c89f6f9e Mon Sep 17 00:00:00 2001 From: "Somhairle H. Marisol" Date: Tue, 22 Sep 2026 02:13:04 +0800 Subject: Add real AKShare stock quote probe slice (3d-17) --- 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 0108ea7..7460bad 100644 --- a/src/FundLab.Api/MarketDataService.fs +++ b/src/FundLab.Api/MarketDataService.fs @@ -19,6 +19,7 @@ type IMarketDataCollector = abstract Search: query: string * CancellationToken -> Result abstract FetchNav: code: string * CancellationToken -> Result abstract FetchBondQuote: code: string * CancellationToken -> Result + abstract FetchStockQuote: code: string * CancellationToken -> Result type IMarketDataService = abstract Search: query: string * CancellationToken -> Result @@ -207,6 +208,9 @@ type ProcessMarketDataCollector(pythonExecutable: string, scriptPath: string, py member _.FetchBondQuote(code: string, token: CancellationToken) = execute token [ "--operation"; "bond-quote"; "--code"; code ] + member _.FetchStockQuote(code: string, token: CancellationToken) = + execute token [ "--operation"; "stock-quote"; "--code"; code ] + type MarketDataService(repository: FundRepository, collector: IMarketDataCollector) = let codePattern = Text.RegularExpressions.Regex("^[0-9]{6}$", Text.RegularExpressions.RegexOptions.Compiled) -- cgit v1.2.3