窝轮牛熊证
以下操作均通过 QuoteClient.ExecuteAsync 调用。
STOCK_DETAIL 与 QUOTE_OVERNIGHT 需额外行情权限,未开通时服务端返回权限错误码。
窝轮筛选
操作名
QuoteApiService.WARRANT_FILTER = warrant_filter. 使用服务端方法 warrant_filter。这是 *ApiService 常量,不是客户端成员方法。
请求
TigerRequest<WarrantFilterResponse>ModelValue: WarrantFilterModel.
参数
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Not applicable | TradeClient uses DefaultAccount when empty |
Symbol | string | symbol | null | Required | — |
Page | Int32 | page | None (omitted if not set) | Optional | Positive integer |
PageSize | Int32 | page_size | None (omitted if not set) | Optional | Positive integer |
SortFieldName | string | sort_field_name | null | Optional | — |
SortDir | SortDir | sort_dir | None (omitted if not set) | Optional | — |
WarrantType | ISet | warrant_type | None (omitted if not set) | Optional | — |
IssuerName | string | issuer_name | null | Optional | — |
ExpireYM | string | expire_ym | null | Optional | — |
State | Int32 | state | None (omitted if not set) | Optional | — |
InOutPrice | ISet | in_out_price | None (omitted if not set) | Optional | — |
LotSize | ISet | lot_size | None (omitted if not set) | Optional | — |
EntitlementRatio | ISet | entitlement_ratio | None (omitted if not set) | Optional | — |
Strike | Range | strike | None (omitted if not set) | Optional | — |
EffectiveLeverage | Range | effective_leverage | None (omitted if not set) | Optional | — |
LeverageRatio | Range | leverage_ratio | None (omitted if not set) | Optional | — |
CallPrice | Range | call_price | None (omitted if not set) | Optional | — |
Volume | Range | volume | None (omitted if not set) | Optional | — |
Premium | Range | premium | None (omitted if not set) | Optional | — |
OutstandingRatio | Range | outstanding_ratio | None (omitted if not set) | Optional | — |
ImpliedVolatility | Range | implied_volatility | None (omitted if not set) | Optional | — |
返回
WarrantFilterResponse inherits TigerResponse; its data property is WarrantFilterItem. Key SDK fields: Page: Int32, TotalPage: Int32, TotalCount: Int32, Items: list of WarrantItem, Bounds: FilterBounds.
示例
TigerRequest<WarrantFilterResponse> request = new()
{
ApiMethodName = QuoteApiService.WARRANT_FILTER,
ModelValue = new WarrantFilterModel { Account = tradeClient.GetDefaultAccount, Symbol = "AAPL", Page = 1, PageSize = 20 }
};
WarrantFilterResponse? response = await quoteClient.ExecuteAsync(request);响应类型
WarrantFilterItem? data = response?.Data; // response 或 data 缺失时为 null返回示例
{
"code": 0,
"message": "success",
"timestamp": 1785528000000,
"data": {
"items": [
{"symbol": "15678", "name": "AAPL CW A", "underlying": "AAPL.US", "strike": 300.0, "expiry": "2025-12-30", "type": "CALL", "latestPrice": 0.52},
{"symbol": "15679", "name": "AAPL CW B", "underlying": "AAPL.US", "strike": 320.0, "expiry": "2026-03-30", "type": "CALL", "latestPrice": 0.35}
],
"totalCount": 45
}
}获取窝轮行情
操作名
QuoteApiService.WARRANT_REAL_TIME_QUOTE = warrant_real_time_quote. 使用服务端方法 warrant_real_time_quote。这是 *ApiService 常量,不是客户端成员方法。
请求
TigerRequest<WarrantQuoteResponse>ModelValue: WarrantQuoteModel.
参数
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Not applicable | TradeClient uses DefaultAccount when empty |
Symbols | 列表,元素为 string | symbols | null | Required | Non-empty list |
返回
WarrantQuoteResponse inherits TigerResponse; its data property is WarrantQuoteItem. Key SDK fields: Items: list of WarrantQuote.
示例
TigerRequest<WarrantQuoteResponse> request = new()
{
ApiMethodName = QuoteApiService.WARRANT_REAL_TIME_QUOTE,
ModelValue = new WarrantQuoteModel { Account = tradeClient.GetDefaultAccount, Symbols = new List<string> { "AAPL" } }
};
WarrantQuoteResponse? response = await quoteClient.ExecuteAsync(request);响应类型
WarrantQuoteItem? data = response?.Data; // response 或 data 缺失时为 nullUpdated 8 days ago
