WarrantCbbc

About 4 min

Filter Warrant CBBC

Description

Get stock‘s Warrant and CBBC

Argument

ArgumentTypeRequiredDescription
symbolstringYesstock's symbol
pageintNopage NO, default 0
page_sizeintNoPage size,default 50
sort_field_namestringNoSort field name,default 'expireDate'(Refer to the fields of the returned WarrantItem)
sort_dirSortDirNosort directory,enum SortDir_Ascend/SortDir_Descend , default SortDir_Ascend
warrant_typeSet<Int32>Notype: WarrantType(1:Call, 2: Put, 3: Bull, 4: Bear, 0: All), default 0
issuer_namestringNoIssuer name
expire_ymstringNoexpire date, formate:yyyy-MM
stateintNoState,0 All, 1 Normal, 2 Terminate Trades, 3 Waiting to be listed, default 0
in_out_priceSet<Int32>No-1:out the money, 1: in the money
lot_sizeSet<Int32>Nolot size
entitlement_ratioSet<Double>Noentitlement ratio
strikeRange<Double>Nostrike price range
effective_leverageRange<Double>Noeffective leverage range
leverage_ratioRange<Double>Noleverage ratio range
call_priceRange<Double>Nocall price range
volumeRange<Long>Novolume range
premiumRange<Double>Nopremium range
outstanding_ratioRange<Double>Nooutstanding ratio range
implied_volatilityRange<Double>Noimplied volatility range

ResponseTigerOpenAPI.Quote.Response.WarrantFilterResponsesourceopen in new window

Structured as follows:

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

Use WarrantFilterResponse.Data to access returned data. This method will return a WarrantFilterItem object, whereTigerOpenAPI.Quote.Response.WarrantFilterItem has the following attributes:

NameTypeDescription
pageintpage NO
totalPageinttotal pages
totalCountinttotal record count
boundsFilterBoundsRequest the filter conditions that can be set
itemsList<WarrantItem>a list of items, that contains WarrantItem object. Contains actual data

FilterBounds has the following attributes:

NameTypeDescription
issuerNameList<String>issuer names
expireDateList<String>expire date
lotSizeList<Int32>lot size
entitlementRatioList<Double>entitlement ratio
leverageRatioRange<Double>leverage ratio range
strikeRange<Double>strike price range
premiumRange<Double>premium range
outstandingRatioRange<Double>outstanding ratio range
impliedVolatilityRange<Double>implied volatility range
effectiveLeverageRange<Double>effective leverage range
callPriceRange<Double>call price range

WarrantItem object has the following attributes:

NameTypeDescription
symbolstringsymbol
namestringname
typeWarrantTypewarrant type 1:Call,2:Put,3:Bull,4:Bear
secTypestringcontract type,Warrant:WAR/CBBC:IOPT
marketstringMarket,HK
entitlementRatiodoubleentitlement ratio
entitlementPricedoubleentitlement price
premiumdoublepremium
breakevenPointdoublebreakeven point
callPricedoublecall price(only support IOPT)
beforeCallLeveldoubledistance from recovery price (percentage, such as 0.196875, which means 19.6875%)
expireDatestringexpire date
lastTradingDatestringlast trading date
stateWarrantStatestate,1 Normal, 2 Terminate Trades, 3 Waiting to be listed
changeRatedoublechange rate
changedoublechange
latestPricedoublelatest price
volumelongvolume
outstandingRatiodoubleoutstanding ratio
lotSizeintlot size
strikedoublestrike price
inOutPricedoublein(bigger zhan 0)/out(less zhan 0) price
deltadoubledelta
leverageRatiodoubleleverage ratio
effectiveLeveragedoubleeffective leverage
impliedVolatilitydoubleimplied volatility

Use the properties, such asWarrantItem.Symbol to access data

Example

  static async Task<WarrantFilterResponse?> FilterWarrantAsync(QuoteClient quoteClient)
  {
    TigerRequest<WarrantFilterResponse> request = new TigerRequest<WarrantFilterResponse>()
    {
      ApiMethodName = QuoteApiService.WARRANT_FILTER,
      ModelValue = new WarrantFilterModel()
      {
        Symbol = "00700",
        Lang = Language.en_US,
        SortFieldName = "expireDate",
        SortDir = SortDir.SortDir_Descend,
        WarrantType = new HashSet<Int32>() { (int)WarrantType.Bull },
        IssuerName = "GS",
        Strike = new Range<double>(300, 320.0),
        Page = 0,
        PageSize = 10
      }
    };
    return await quoteClient.ExecuteAsync(request);
  }

Response Example

{
    "data":{
        "page":0,
        "totalPage":1,
        "totalCount":2,
        "items":[
            {
                "symbol":"68723",
                "name":"GS#TENCTRC2403B.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":"GS#TENCTRC2403A.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":[
                "BI",
                "BP",
                "CS",
                "CT",
                "DS",
                "EA",
                "GJ",
                "GS",
                "HS",
                "HT",
                "JP",
                "MB",
                "MS",
                "SG",
                "UB",
                "VT"
            ],
            "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":1678181055141,
    "sign":"UVEfNFy2Oux0zi8h84Fc5mZbaQcirEWJVFxBtNiiPtqToqa9aRxSl1Rj96bnaulbJHGAf4dILOYn0EcurAh0WvDAmswIdu0TsycnqimUJkfbl7WaUYLXqhFGthOHE9nFkm4clvLk9PfICjpVMKL5GLLX2wewgNRQbki//TSzeD4="
}

Get Warrant Realtime Quotes

Description

Get Warrant/CBBC Realtime Quotes

Argument

ArgumentTypeRequiredDescription
symbolsList<string>yessymbol, maximum number per request is 50

ResponseTigerOpenAPI.Quote.Response.WarrantQuoteResponsesourceopen in new window

Structured as follows:

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

Use WarrantQuoteResponse.Data to access returned data. This method will return a WarrantQuoteItem object, whereTigerOpenAPI.Quote.Response.WarrantQuote has the following attributes:

NameTypeDescription
symbolstringwarrant/cbbc's symbol
namestringName
exchangestringexchange
marketstringmarket
secTypestringsecurity type
currencystringcurrency
expirystringexpire date: yyyy-MM-dd
strikestringstrike price
rightstringright (PUT/CALL)
multiplierdoublemultiplier
lastTradingDatelonglast trading date's timestamp
entitlementRatiodoubleentitlement ratio
entitlementPricedoubleentitlement price
minTickdoublemin tick
listingDatelonglisting date
callPricedoublecall price*(only support CBBC)*
haltedHaltedStatushalted. 0: Normal 3: Suspension 4: Delisted
underlyingSymbolstringunderlying symbol
timestamplongtimestamp
latestPricedoublelatest price
preClosedoubleprevious close price
opendoubleopen
highdoublehigh
lowdoublelow
volumelongvolume
amountdoubletrading amount
premiumdoublepremium
outstandingRatiodoubleoutstanding ratio
impliedVolatilitydoubleimplied volatility(only for warrant)
inOutPricedoublein/out price (in the money, 20.744% -> 0.20744)
deltadoubledelta(only for warrant)
leverageRatiodoubleleverage ratio
breakevenPointdoublebreakeven point

Use the get methods, such asgetSymbol() to access data

Example

  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.en_US
      }
    };
    return await quoteClient.ExecuteAsync(request);
  }

Response Example

{
    "data":{
        "items":[
            {
                "symbol":"68723",
                "name":"GS#TENCTRC2403B.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":"GS#TENCTRC2403A.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":1678182130169,
    "sign":"uf16kFbfEf9jzXzbzypdiaq/5uQ1qt64gNUu1DTGqcklxE4AjBEmOADiC3i0w7rQ4c3xc8KmFem5Dz2i4ZM0VQkV1ehi8cxTjeMFMrq3noFCd34Un/ZjL5Hbgl7DwSefs1Bz1ER5V0x7AtWxC6Q2ouL3BjO0JOX3HbwPWbZDiNc="
}
Last update: