TigerBrokers.OpenAPI 1.2.5

dotnet add package TigerBrokers.OpenAPI --version 1.2.5
                    
NuGet\Install-Package TigerBrokers.OpenAPI -Version 1.2.5
                    
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.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TigerBrokers.OpenAPI" Version="1.2.5" />
                    
Directory.Packages.props
<PackageReference Include="TigerBrokers.OpenAPI" />
                    
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 TigerBrokers.OpenAPI --version 1.2.5
                    
#r "nuget: TigerBrokers.OpenAPI, 1.2.5"
                    
#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.5
                    
#: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.5
                    
Install as a Cake Addin
#tool nuget:?package=TigerBrokers.OpenAPI&version=1.2.5
                    
Install as a Cake Tool

TigerOpenAPI

NuGet License

English | 中文


English

Tiger Open Platform C# SDK. Provides trading, market data, and account management APIs for individual developers and institutional clients.

Requirements: .NET 6.0, 7.0, 8.0, 9.0, or 10.0 · C# 10.0 or later

Installation

dotnet add package TigerBrokers.OpenAPI

Quick Start

// Configure
var config = new TigerConfig
{
    TigerId    = "your_tiger_id",
    DefaultAccount = "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

中文

老虎开放平台 C# SDK,为个人开发者和机构客户提供交易、行情、账户管理等接口服务。

环境要求:.NET 6.0、7.0、8.0、9.0 或 10.0 · C# 10.0 或更高版本

安装

dotnet add package TigerBrokers.OpenAPI

快速开始

// 配置
var config = new TigerConfig
{
    TigerId    = "your_tiger_id",
    DefaultAccount = "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 Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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 (1)

Showing the top 1 NuGet packages that depend on TigerBrokers.OpenAPI:

Package Downloads
StockSharp.TigerBrokers

The Tiger Brokers OpenAPI connector connects StockSharp to a broker or electronic venue for financial markets. It translates provider-specific data and operations into the unified StockSharp message model, so applications can use the same subscriptions and workflows across different venues. More info on web site https://stocksharp.com/store/

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.5 106 8/26/2026
1.2.3 250 7/28/2026
1.2.2 175 7/6/2026
1.2.1 118 6/15/2026
1.2.0 398 4/3/2026
1.1.0 121 4/3/2026