TigerBrokers.OpenAPI
1.2.0
dotnet add package TigerBrokers.OpenAPI --version 1.2.0
NuGet\Install-Package TigerBrokers.OpenAPI -Version 1.2.0
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="TigerBrokers.OpenAPI" Version="1.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TigerBrokers.OpenAPI" Version="1.2.0" />
<PackageReference Include="TigerBrokers.OpenAPI" />
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 TigerBrokers.OpenAPI --version 1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TigerBrokers.OpenAPI, 1.2.0"
#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 TigerBrokers.OpenAPI@1.2.0
#: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=TigerBrokers.OpenAPI&version=1.2.0
#tool nuget:?package=TigerBrokers.OpenAPI&version=1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
TigerOpenAPI
English
Tiger Open Platform C# SDK. Provides trading, market data, and account management APIs for individual developers and institutional clients.
Requirements: .NET 10.0 · C# 13.0
Installation
dotnet add package TigerBrokers.OpenAPI
Quick Start
// Configure
var config = new TigerConfig
{
TigerId = "your_tiger_id",
Account = "your_account_id",
PrivateKey = "your_rsa_private_key",
Language = Language.en_US
};
// Query real-time quote
var quoteClient = new QuoteClient(config);
var model = new QuoteRealTimeQuoteModel(new List<string> { "AAPL" });
var request = new TigerRequest<QuoteRealTimeQuoteResponse>
{
ApiMethodName = QuoteApiService.REAL_TIME_QUOTE,
ModelValue = model
};
var response = quoteClient.Execute(request);
// Place a limit order
var tradeClient = new TradeClient(config);
var orderModel = new PlaceOrderModel("AAPL", OrderType.LMT, ActionType.BUY, 100, limitPrice: 150.0m);
var orderRequest = new TigerRequest<PlaceOrderResponse>
{
ApiMethodName = TradeApiService.PLACE_ORDER,
ModelValue = orderModel
};
var orderResponse = tradeClient.Execute(orderRequest);
Features
| Category | Details |
|---|---|
| Trading | US/HK/A stocks, US options, HK warrants, HK bull/bear certificates, Forex |
| Market Data | Real-time quotes, K-lines, order book depth, fundamentals |
| Order Types | Market, Limit, Stop, Stop-Limit, Trailing Stop, Algorithmic |
| Push | WebSocket real-time notifications for orders, positions, and market data |
Links
- Documentation: https://quant.itigerup.com/openapi/zh/csharp/overview/introduction.html
- Developer Portal: https://developer.itigerup.com/
- GitHub: https://github.com/tigerfintech/openapi-cs-sdk
中文
老虎开放平台 C# SDK,为个人开发者和机构客户提供交易、行情、账户管理等接口服务。
环境要求:.NET 10.0 · C# 13.0
安装
dotnet add package TigerBrokers.OpenAPI
快速开始
// 配置
var config = new TigerConfig
{
TigerId = "your_tiger_id",
Account = "your_account_id",
PrivateKey = "your_rsa_private_key",
Language = Language.zh_CN
};
// 查询实时行情
var quoteClient = new QuoteClient(config);
var model = new QuoteRealTimeQuoteModel(new List<string> { "AAPL" });
var request = new TigerRequest<QuoteRealTimeQuoteResponse>
{
ApiMethodName = QuoteApiService.REAL_TIME_QUOTE,
ModelValue = model
};
var response = quoteClient.Execute(request);
// 下限价买单
var tradeClient = new TradeClient(config);
var orderModel = new PlaceOrderModel("AAPL", OrderType.LMT, ActionType.BUY, 100, limitPrice: 150.0m);
var orderRequest = new TigerRequest<PlaceOrderResponse>
{
ApiMethodName = TradeApiService.PLACE_ORDER,
ModelValue = orderModel
};
var orderResponse = tradeClient.Execute(orderRequest);
功能特性
| 类别 | 详情 |
|---|---|
| 交易支持 | 美港股/A股、美股期权、港股窝轮、港股牛熊证、外汇 |
| 行情服务 | 实时报价、K 线、深度行情、基本面数据 |
| 订单类型 | 市价单、限价单、止损单、止损限价单、跟踪止损单、算法订单 |
| 推送服务 | WebSocket 实时推送订单、持仓、行情变动 |
相关链接
| 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
- BouncyCastle.Cryptography (>= 2.0.0)
- DotNetty.Codecs.Protobuf (>= 0.7.5)
- DotNetty.Handlers (>= 0.7.5)
- Google.Protobuf (>= 3.21.12)
- Google.Protobuf.Tools (>= 3.21.12)
- Newtonsoft.Json (>= 13.0.2)
- NLog (>= 5.1.0)
- Polly (>= 7.2.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.