tigeropen-csharp

Generates C# code for Tiger Brokers OpenAPI market data, trading, and push subscriptions.

1.5k|337|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/qusong0627/QuantMind --skill tigeropen-csharp-qusong0627
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tigeropen-csharp
Source: https://github.com/qusong0627/QuantMind/tree/main/skills/tigeropen-csharp
Command: npx skills add https://github.com/qusong0627/QuantMind --skill tigeropen-csharp-qusong0627

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires TigerBrokers.OpenAPI, and includes references (resource) components.

What problem does it solve? Building trading applications against the Tiger Brokers OpenAPI C# SDK requires knowing exact model types, enum conventions, and API constants that are easy to get wrong (e.g., PositionsModel vs PositionModel, Expiry as a long millisecond timestamp). This Skill provides verified, bilingual reference guides so AI coding tools generate correct SDK code on the first attempt. ## Core Features & Use Cases - Market Data Queries: Real-time quotes, K-lines, depth, timelines, capital flow, and futures data via QuoteClient and TigerRequest<TResponse> patterns. - Trading Operations: Place, modify, cancel, and preview orders (limit, market, stop-limit, trail), query positions, assets, and order history with mandatory paper-trading safety defaults. - Real-time Push & Options: TCP/WebSocket streaming subscriptions via the singleton PushClient, plus option chains, Greeks, multi-leg combo strategies, and option exercise workflows. - Use Case: Ask the AI to "write C# code to subscribe to real-time AAPL quotes and place a paper limit order" and receive compilable code using the correct PushClient.GetInstance() pattern and PlaceOrderModel.BuildLimitOrder factory. ## Quick Start Ask the AI to write C# code using the Tiger Brokers OpenAPI SDK to query real-time quotes for AAPL and TSLA with a TigerConfig loaded from your config directory.

Frequently Asked Questions about tigeropen-csharp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I place an order with the Tiger Brokers C# SDK?▼

Build a ContractItem, create the order with a PlaceOrderModel factory method like BuildLimitOrder, then submit it via a TigerRequest<PlaceOrderResponse> with TradeApiService.PLACE_ORDER. Default to a paper account and call PREVIEW_ORDER before any live order.

How do I subscribe to real-time quotes in C# with Tiger OpenAPI?▼

Get the singleton via PushClient.GetInstance(), configure it with TigerConfig and an IApiComposeCallback implementation, call ConnectAsync, then SubscribeQuote with a HashSet of symbols. Quote updates arrive through the QuoteChange callback.

What .NET version does the Tiger Brokers C# SDK require?▼

The SDK targets .NET 10.0 (net10.0) with C# 14 as the default language version. Install it via NuGet with dotnet add package TigerBrokers.OpenAPI.

Why does my Tiger SDK request fail without throwing an exception?▼

Execute and ExecuteAsync swallow exceptions and return an error response with Code = 3 instead of throwing. Always check response.IsSuccess() or Code rather than relying on try/catch; only Validate() precondition failures throw TigerApiException.

How do I query option chains and Greeks with the Tiger C# SDK?▼

Use QuoteApiService.OPTION_CHAIN with an OptionChainV3Model, setting ReturnGreekValue = true and Expiry as a long millisecond timestamp converted via DateUtil.ConvertTimestamp. Filters like implied volatility and delta ranges go through OptionChainFilterModel with Range<Double> values.

Does the Tiger C# SDK support multi-leg option combo orders?▼

Yes, via PlaceOrderModel.BuildMultiLegOrder with a list of ContractLeg items and a ComboType such as VERTICAL, STRADDLE, or CALENDAR, submitted through the standard PLACE_ORDER endpoint. There is no separate PLACE_COMBO_ORDER constant.