窝轮牛熊证

大约 5 分钟

轮证筛选器

对应的请求类:TigerRequest(QuoteApiService.WARRANT_FILTER)

说明

获取窝轮牛熊证行情列表数据,支持按不同字段排序和筛选轮证。

参数

参数类型是否必填描述
symbolstringYes正股股票代码
pageintNo页码,从0开始,默认为0
page_sizeintNo每页数量,默认50
sort_field_namestringNo排序字段,默认expireDate(参照返回对象WarrantItem的字段)
sort_dirSortDirNo排序顺序,枚举SortDir_Ascend/SortDir_Descend ,默认SortDir_Ascend
warrant_typeSet<Int32>No类型WarrantType(1:Call, 2: Put, 3: Bull, 4: Bear, 0: All),默认全部
issuer_namestringNo发行商(参照返回FilterBounds实例的issuerName字段),默认全部
expire_ymstringNo到期日,格式为yyyy-MM
stateintNo状态,0 全部, 1 正常, 2 终止交易, 3 等待上市,默认0
in_out_priceSet<Int32>No1:价内(包含平值),-1:价外
lot_sizeSet<Int32>No每手股数
entitlement_ratioSet<Double>No换股比率
strikeRange<Double>No行权价区间
effective_leverageRange<Double>No有效杠杆区间
leverage_ratioRange<Double>No杠杆比例区间
call_priceRange<Double>No回收价区间
volumeRange<Long>No成交量区间
premiumRange<Double>No溢价区间
outstanding_ratioRange<Double>No街货比区间
implied_volatilityRange<Double>No隐含波动率区间

返回TigerOpenAPI.Quote.Response.WarrantFilterResponsesourceopen in new window

结构如下:

namespace TigerOpenAPI.Quote.Response
{
  public class WarrantFilterResponse : TigerResponse
  {
    [JsonProperty(PropertyName = "data")]
    public WarrantFilterItem Data { get; set; }
  }
}

返回数据可通过WarrantFilterResponse.Data属性访问,返回WarrantFilterItem对象,其中TigerOpenAPI.Quote.Response.WarrantFilterItem 属性如下:

名称类型说明
pageint页码
totalPageint总页数
totalCountint数据总数
boundsFilterBounds请求可设置的过滤条件,说明见下文
itemsList<WarrantItem>列表,包含WarrantItem对象,轮证数据,说明见下文

FilterBounds对象结构:

名称类型说明
issuerNameList<String>发行商名称
expireDateList<String>到期日
lotSizeList<Int32>每手股数
entitlementRatioList<Double>换股比率
leverageRatioRange<Double>杠杆比率范围
strikeRange<Double>行权价范围
premiumRange<Double>溢价范围
outstandingRatioRange<Double>街货比范围
impliedVolatilityRange<Double>隐含波动率范围
effectiveLeverageRange<Double>有效杠杆范围
callPriceRange<Double>回收价范围

WarrantItem对象结构:

名称类型说明
symbolstring标的股票代码
namestring标的名称
typeWarrantType类型,1:认购,2:认沽,3:牛证,4:熊证
secTypestring合约类型,窝轮:WAR/牛熊证:IOPT
marketstring市场,HK
entitlementRatiodouble换股比率
entitlementPricedouble换股价
premiumdouble溢价
breakevenPointdouble到期盈亏平衡点
callPricedouble回收价(仅牛熊证)
beforeCallLeveldouble距回收价(百分比,比如0.196875,含义为19.6875%)
expireDatestring到期日
lastTradingDatestring最后交易日
stateWarrantState状态,1 正常, 2 终止交易, 3 等待上市
changeRatedouble涨跌幅
changedouble涨跌额
latestPricedouble最新价
volumelong成交量
outstandingRatiodouble街货比
lotSizeint每手股数
strikedouble行权价
inOutPricedouble价内(大于0)/价外(小于0)
deltadouble对冲值
leverageRatiodouble杠杆比率
effectiveLeveragedouble有效杠杆
impliedVolatilitydouble隐含波动率

具体字段可通过对象的属性,如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)

说明

获取窝轮牛熊证实时行情

参数

参数类型是否必填描述
symbolsList<String>yes轮证标的代码,上限为50个

返回TigerOpenAPI.Quote.Response.WarrantQuoteResponsesourceopen in new window

结构如下:

namespace TigerOpenAPI.Quote.Response
{
  public class WarrantQuoteResponse : TigerResponse
  {
    [JsonProperty(PropertyName = "data")]
    public WarrantQuoteItem Data { get; set; }
  }
}

返回数据可通过WarrantQuoteResponse.Data属性访问,返回WarrantQuoteItem对象,其中items属性列表的TigerOpenAPI.Quote.Response.WarrantQuote 属性如下:

字段类型说明
symbolstring标的代码
namestring标的名称
exchangestring交易所
marketstring市场
secTypestring合约类型
currencystring币种
expirystring到期日 yyyy-MM-dd
strikestring行权价
rightstring方向 (PUT/CALL)
multiplierdouble每手数量
lastTradingDatelong最后交易日时间戳
entitlementRatiodouble换股比率
entitlementPricedouble换股价
minTickdouble股价最小变动单位
listingDatelong上市日期的时间戳
callPricedouble回收价*(仅牛熊证)*
haltedHaltedStatus是否停牌。0: 正常 3: 停牌 4: 退市
underlyingSymbolstring底层资产代码
timestamplong时间戳
latestPricedouble最新价格
preClosedouble前一交易日收盘价
opendouble开盘价
highdouble最高价
lowdouble最低价
volumelong成交量
amountdouble成交额
premiumdouble溢价
outstandingRatiodouble街货比
impliedVolatilitydouble隐含波动率(仅窝轮支持)
inOutPricedouble价内/价外
deltadouble对冲值(仅窝轮支持)
leverageRatiodouble杠杆率
breakevenPointdouble到期盈亏平衡点

具体字段可通过对象的属性,如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="
}
上次编辑于: