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" />
                    
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.0
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=TigerBrokers.OpenAPI&version=1.2.0
                    
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 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

中文

老虎开放平台 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 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.

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
1.2.0 38 4/3/2026
1.1.0 41 4/3/2026