窝轮牛熊证
大约 5 分钟
轮证筛选器
对应的请求类:TigerRequest(QuoteApiService.WARRANT_FILTER)
说明
获取窝轮牛熊证行情列表数据,支持按不同字段排序和筛选轮证。
参数
参数 | 类型 | 是否必填 | 描述 |
---|---|---|---|
symbol | string | Yes | 正股股票代码 |
page | int | No | 页码,从0开始,默认为0 |
page_size | int | No | 每页数量,默认50 |
sort_field_name | string | No | 排序字段,默认expireDate(参照返回对象WarrantItem的字段) |
sort_dir | SortDir | No | 排序顺序,枚举SortDir_Ascend/SortDir_Descend ,默认SortDir_Ascend |
warrant_type | Set<Int32> | No | 类型WarrantType(1:Call, 2: Put, 3: Bull, 4: Bear, 0: All),默认全部 |
issuer_name | string | No | 发行商(参照返回FilterBounds实例的issuerName字段),默认全部 |
expire_ym | string | No | 到期日,格式为yyyy-MM |
state | int | No | 状态,0 全部, 1 正常, 2 终止交易, 3 等待上市,默认0 |
in_out_price | Set<Int32> | No | 1:价内(包含平值),-1:价外 |
lot_size | Set<Int32> | No | 每手股数 |
entitlement_ratio | Set<Double> | No | 换股比率 |
strike | Range<Double> | No | 行权价区间 |
effective_leverage | Range<Double> | No | 有效杠杆区间 |
leverage_ratio | Range<Double> | No | 杠杆比例区间 |
call_price | Range<Double> | No | 回收价区间 |
volume | Range<Long> | No | 成交量区间 |
premium | Range<Double> | No | 溢价区间 |
outstanding_ratio | Range<Double> | No | 街货比区间 |
implied_volatility | Range<Double> | No | 隐含波动率区间 |
返回TigerOpenAPI.Quote.Response.WarrantFilterResponse
source
结构如下:
namespace TigerOpenAPI.Quote.Response
{
public class WarrantFilterResponse : TigerResponse
{
[JsonProperty(PropertyName = "data")]
public WarrantFilterItem Data { get; set; }
}
}
返回数据可通过WarrantFilterResponse.Data
属性访问,返回WarrantFilterItem
对象,其中TigerOpenAPI.Quote.Response.WarrantFilterItem
属性如下:
名称 | 类型 | 说明 |
---|---|---|
page | int | 页码 |
totalPage | int | 总页数 |
totalCount | int | 数据总数 |
bounds | FilterBounds | 请求可设置的过滤条件,说明见下文 |
items | List<WarrantItem> | 列表,包含WarrantItem对象,轮证数据,说明见下文 |
FilterBounds
对象结构:
名称 | 类型 | 说明 |
---|---|---|
issuerName | List<String> | 发行商名称 |
expireDate | List<String> | 到期日 |
lotSize | List<Int32> | 每手股数 |
entitlementRatio | List<Double> | 换股比率 |
leverageRatio | Range<Double> | 杠杆比率范围 |
strike | Range<Double> | 行权价范围 |
premium | Range<Double> | 溢价范围 |
outstandingRatio | Range<Double> | 街货比范围 |
impliedVolatility | Range<Double> | 隐含波动率范围 |
effectiveLeverage | Range<Double> | 有效杠杆范围 |
callPrice | Range<Double> | 回收价范围 |
WarrantItem
对象结构:
名称 | 类型 | 说明 |
---|---|---|
symbol | string | 标的股票代码 |
name | string | 标的名称 |
type | WarrantType | 类型,1:认购,2:认沽,3:牛证,4:熊证 |
secType | string | 合约类型,窝轮:WAR/牛熊证:IOPT |
market | string | 市场,HK |
entitlementRatio | double | 换股比率 |
entitlementPrice | double | 换股价 |
premium | double | 溢价 |
breakevenPoint | double | 到期盈亏平衡点 |
callPrice | double | 回收价(仅牛熊证) |
beforeCallLevel | double | 距回收价(百分比,比如0.196875,含义为19.6875%) |
expireDate | string | 到期日 |
lastTradingDate | string | 最后交易日 |
state | WarrantState | 状态,1 正常, 2 终止交易, 3 等待上市 |
changeRate | double | 涨跌幅 |
change | double | 涨跌额 |
latestPrice | double | 最新价 |
volume | long | 成交量 |
outstandingRatio | double | 街货比 |
lotSize | int | 每手股数 |
strike | double | 行权价 |
inOutPrice | double | 价内(大于0)/价外(小于0) |
delta | double | 对冲值 |
leverageRatio | double | 杠杆比率 |
effectiveLeverage | double | 有效杠杆 |
impliedVolatility | double | 隐含波动率 |
具体字段可通过对象的属性,如WarrantItem.Symbol
进行访问
示例
static async Task<WarrantFilterResponse?> FilterWarrantAsync(QuoteClient quoteClient)
{
TigerRequest<WarrantFilterResponse> request = new TigerRequest<WarrantFilterResponse>()
{
ApiMethodName = QuoteApiService.WARRANT_FILTER,
ModelValue = new WarrantFilterModel()
{
Symbol = "00700",
Lang = Language.zh_CN,
SortFieldName = "expireDate",
SortDir = SortDir.SortDir_Descend,
WarrantType = new HashSet<Int32>() { (int)WarrantType.Bull },
IssuerName = "高盛",
Strike = new Range<double>(300, 320.0),
Page = 0,
PageSize = 10
}
};
return await quoteClient.ExecuteAsync(request);
}
返回示例
{
"data":{
"page":0,
"totalPage":1,
"totalCount":2,
"items":[
{
"symbol":"68723",
"name":"腾讯高盛四三牛B.C",
"type":"Bull",
"secType":"IOPT",
"market":"HK",
"entitlementRatio":500,
"entitlementPrice":45,
"premium":0.014566,
"breakevenPoint":362.2,
"callPrice":320,
"beforeCallLevel":0.115625,
"expireDate":"2024-03-28",
"lastTradingDate":"2024-03-27",
"state":"Normal",
"changeRate":-0.142857,
"change":-0.015,
"latestPrice":0.09,
"volume":3530000,
"amount":358480,
"outstandingRatio":0.0065,
"lotSize":5000,
"strike":"317.2",
"inOutPrice":0.125473,
"delta":0,
"leverageRatio":7.933333,
"effectiveLeverage":0,
"impliedVolatility":0
},
{
"symbol":"68722",
"name":"腾讯高盛四三牛A.C",
"type":"Bull",
"secType":"IOPT",
"market":"HK",
"entitlementRatio":500,
"entitlementPrice":56,
"premium":0.017367,
"breakevenPoint":363.2,
"callPrice":310,
"beforeCallLevel":0.151613,
"expireDate":"2024-03-28",
"lastTradingDate":"2024-03-27",
"state":"Normal",
"changeRate":-0.111111,
"change":-0.014,
"latestPrice":0.112,
"volume":3560000,
"amount":411775,
"outstandingRatio":0.0356,
"lotSize":5000,
"strike":"307.2",
"inOutPrice":0.162109,
"delta":0,
"leverageRatio":6.375,
"effectiveLeverage":0,
"impliedVolatility":0
}
],
"bounds":{
"issuerName":[
"东亚",
"法巴",
"法兴",
"高盛",
"国君",
"海通",
"花旗",
"汇丰",
"麦银",
"摩利",
"摩通",
"瑞通",
"瑞信",
"瑞银",
"星展",
"中银"
],
"expireDate":[
"2026-01",
"2025-12",
"2025-09",
"2025-08",
"2024-12",
"2024-07",
"2024-06",
"2024-04",
"2024-03",
"2024-02",
"2024-01",
"2023-12",
"2023-11",
"2023-10",
"2023-09",
"2023-08",
"2023-07",
"2023-06",
"2023-05",
"2023-04",
"2023-03"
],
"lotSize":[
1000,
5000,
10000,
50000
],
"entitlementRatio":[
47.483,
92.166,
94.967,
100,
460.829,
474.834,
500
],
"leverageRatio":{
"min":1.418569,
"max":751.84803
},
"strike":{
"min":111.301,
"max":717.11
},
"premium":{
"min":-0.167507,
"max":1.012842
},
"outstandingRatio":{
"min":0,
"max":1
},
"impliedVolatility":{
"min":0,
"max":252.155
},
"effectiveLeverage":{
"min":-14.994,
"max":51.765
},
"callPrice":{
"min":113.96,
"max":520
}
}
},
"code":0,
"message":"success",
"timestamp":1678180669797,
"sign":"oaPHlkLI44Yfg2BPCp7fNsXgnTeDC/5+cBX109/eRbbtA8gVih4r4E0dCn9BgTkyo/fGRMIpMu0mq0clckybFFV/+83Q3rW9CaoimHEJzvTwcK8nkwI6gTz5EfipXUWJUnFy5/BDtmcISQ9oIkKSIuVAaI/Dk+EMEIlx7ClVO6Y="
}
获取轮证行情
对应的请求类:TigerRequest(QuoteApiService.WARRANT_REAL_TIME_QUOTE)
说明
获取窝轮牛熊证实时行情
参数
参数 | 类型 | 是否必填 | 描述 |
---|---|---|---|
symbols | List<String> | yes | 轮证标的代码,上限为50个 |
返回TigerOpenAPI.Quote.Response.WarrantQuoteResponse
source
结构如下:
namespace TigerOpenAPI.Quote.Response
{
public class WarrantQuoteResponse : TigerResponse
{
[JsonProperty(PropertyName = "data")]
public WarrantQuoteItem Data { get; set; }
}
}
返回数据可通过WarrantQuoteResponse.Data
属性访问,返回WarrantQuoteItem
对象,其中items属性列表的TigerOpenAPI.Quote.Response.WarrantQuote
属性如下:
字段 | 类型 | 说明 |
---|---|---|
symbol | string | 标的代码 |
name | string | 标的名称 |
exchange | string | 交易所 |
market | string | 市场 |
secType | string | 合约类型 |
currency | string | 币种 |
expiry | string | 到期日 yyyy-MM-dd |
strike | string | 行权价 |
right | string | 方向 (PUT/CALL) |
multiplier | double | 每手数量 |
lastTradingDate | long | 最后交易日时间戳 |
entitlementRatio | double | 换股比率 |
entitlementPrice | double | 换股价 |
minTick | double | 股价最小变动单位 |
listingDate | long | 上市日期的时间戳 |
callPrice | double | 回收价*(仅牛熊证)* |
halted | HaltedStatus | 是否停牌。0: 正常 3: 停牌 4: 退市 |
underlyingSymbol | string | 底层资产代码 |
timestamp | long | 时间戳 |
latestPrice | double | 最新价格 |
preClose | double | 前一交易日收盘价 |
open | double | 开盘价 |
high | double | 最高价 |
low | double | 最低价 |
volume | long | 成交量 |
amount | double | 成交额 |
premium | double | 溢价 |
outstandingRatio | double | 街货比 |
impliedVolatility | double | 隐含波动率(仅窝轮支持) |
inOutPrice | double | 价内/价外 |
delta | double | 对冲值(仅窝轮支持) |
leverageRatio | double | 杠杆率 |
breakevenPoint | double | 到期盈亏平衡点 |
具体字段可通过对象的属性,如WarrantQuote.Symbol
进行访问
示例
static async Task<WarrantQuoteResponse?> GetWarrantQuoteAsync(QuoteClient quoteClient)
{
TigerRequest<WarrantQuoteResponse> request = new TigerRequest<WarrantQuoteResponse>()
{
ApiMethodName = QuoteApiService.WARRANT_REAL_TIME_QUOTE,
ModelValue = new WarrantQuoteModel()
{
Symbols = new List<string>()
{
"68723",
"68722"
},
Lang = Language.zh_CN
}
};
return await quoteClient.ExecuteAsync(request);
}
返回示例
{
"data":{
"items":[
{
"symbol":"68723",
"name":"腾讯高盛四三牛B.C",
"exchange":"SEHK",
"secType":"IOPT",
"market":"HK",
"currency":"HKD",
"expiry":"2024-03-28",
"strike":"317.2",
"right":"CALL",
"multiplier":5000,
"lastTradingDate":1711468800000,
"entitlementRatio":500,
"entitlementPrice":45,
"minTick":0.001,
"listingDate":1673280000000,
"callPrice":320,
"halted":"Normal",
"underlyingSymbol":"00700",
"timestamp":1678176488065,
"latestPrice":0.09,
"preClose":0.105,
"open":0.099,
"high":0.115,
"low":0.087,
"volume":3530000,
"amount":358480,
"premium":0.014566,
"outstandingRatio":0.0065,
"impliedVolatility":"NaN",
"inOutPrice":0.125473,
"delta":"NaN",
"leverageRatio":7.933333,
"breakevenPoint":362.2
},
{
"symbol":"68722",
"name":"腾讯高盛四三牛A.C",
"exchange":"SEHK",
"secType":"IOPT",
"market":"HK",
"currency":"HKD",
"expiry":"2024-03-28",
"strike":"307.2",
"right":"CALL",
"multiplier":5000,
"lastTradingDate":1711468800000,
"entitlementRatio":500,
"entitlementPrice":56,
"minTick":0.001,
"listingDate":1673280000000,
"callPrice":310,
"halted":"Normal",
"underlyingSymbol":"00700",
"timestamp":1678176488065,
"latestPrice":0.112,
"preClose":0.126,
"open":0.121,
"high":0.132,
"low":0.109,
"volume":3560000,
"amount":411775,
"premium":0.017367,
"outstandingRatio":0.0356,
"impliedVolatility":"NaN",
"inOutPrice":0.162109,
"delta":"NaN",
"leverageRatio":6.375,
"breakevenPoint":363.2
}
]
},
"code":0,
"message":"success",
"timestamp":1678181939808,
"sign":"pWm6NThfBa2jjR4p2o5jiwoBx/r0EuPDMcVBYASH7BCXfqsZx1OXqRrD/NRPJHPTCylGzZ4djQkYQPIzzfrQQQ2fTJJHR6SnR79dW7s9QSsjqwgyReH/u8xif8cXa7jlWK5k12IOOsOvtz9C4OTJhOmbPotN76MaZAI5DYXSQRo="
}