PulseTrade.MarketData.TAResearch.Client
0.1.0-alpha1
This is a prerelease version of PulseTrade.MarketData.TAResearch.Client.
dotnet add package PulseTrade.MarketData.TAResearch.Client --version 0.1.0-alpha1
NuGet\Install-Package PulseTrade.MarketData.TAResearch.Client -Version 0.1.0-alpha1
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="PulseTrade.MarketData.TAResearch.Client" Version="0.1.0-alpha1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PulseTrade.MarketData.TAResearch.Client" Version="0.1.0-alpha1" />
<PackageReference Include="PulseTrade.MarketData.TAResearch.Client" />
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 PulseTrade.MarketData.TAResearch.Client --version 0.1.0-alpha1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PulseTrade.MarketData.TAResearch.Client, 0.1.0-alpha1"
#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 PulseTrade.MarketData.TAResearch.Client@0.1.0-alpha1
#: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=PulseTrade.MarketData.TAResearch.Client&version=0.1.0-alpha1&prerelease
#tool nuget:?package=PulseTrade.MarketData.TAResearch.Client&version=0.1.0-alpha1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
PulseTrade.MarketData.TAResearch.Client
0.1.0-alpha1 是 PulseTrade.MarketData.TAResearch.Contracts 0.1.0-alpha5 的 typed HTTP split-service client。它提供:
ITaResearchQueryProvider:GET /healthz、POST /ta/range、POST /ta/deltaITaResearchWindowQueryProvider:POST /ta/latest、POST /ta/trading-day- 每次 request 產生
X-PTMD-Correlation-Id,response 缺少或不一致時 fail closed - per-request timeout 與 caller
CancellationToken - FSharp.SystemTextJson typed JSON encode/decode
- 不讀取或暴露 non-success response body;transport/protocol/JSON failure 只拋
TaResearchHttpException的固定安全訊息
使用方式
open System
open System.Threading
open PulseTrade.MarketData.TAResearch.Client
open PulseTrade.MarketData.TAResearch.Contracts
let options =
{ TaResearchHttpClientOptions.defaults (Uri "http://127.0.0.1:8786") with
Timeout = TimeSpan.FromSeconds 5.0 }
use client = TaResearchHttpClient.create options
let provider: ITaResearchQueryProvider = client.QueryProvider
let windowProvider: ITaResearchWindowQueryProvider = client.WindowQueryProvider
let health = provider.QueryHealthAsync CancellationToken.None
HTTP ownership
| Transport | TaResearchHttpClient.Dispose() 行為 |
|---|---|
TaResearchHttpTransport.Default |
dispose 內部建立的 HttpClient 與 handler |
TaResearchHttpTransport.Handler(handler, true) |
dispose 內部 HttpClient 與注入的 handler |
TaResearchHttpTransport.Handler(handler, false) |
dispose 內部 HttpClient,保留 handler |
TaResearchHttpTransport.ExistingClient(client, CallerOwned) |
不 dispose 注入的 HttpClient |
TaResearchHttpTransport.ExistingClient(client, ClientOwned) |
dispose 注入的 HttpClient |
Client 不會修改注入 HttpClient 的 BaseAddress、Timeout 或 default headers。timeout 由每次 request 的 linked cancellation source 執行。
API 細節見 API.md。本 package 不包含 SQL、Host 或 TAResearch runtime dependency。
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- FSharp.Core (>= 10.1.301)
- FSharp.SystemTextJson (= 1.4.36)
- PulseTrade.MarketData.TAResearch.Contracts (= 0.1.0-alpha5)
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 |
|---|---|---|
| 0.1.0-alpha1 | 62 | 7/12/2026 |