Warrants

Filter Warrants and CBBCs

value QuoteClient::get_warrant_filter(const utility::string_t symbol, int page_size = 100, int page = 0, utility::string_t sort_field_name = U(""), utility::string_t sort_dir = U("SortDir_Ascend"))

Description

Returns warrants and callable bull/bear contracts for an underlying Hong Kong stock. The current C++ SDK does not accept the previously documented filter_params argument, and page_size precedes page.

Parameters

ParameterTypeRequiredDescription
symbolconst utility::string_tYesHong Kong underlying symbol, such as U("00700")
page_sizeintNoPage size; SDK default 100; sent only when greater than zero
pageintNoPage number; SDK default 0; sent only when greater than zero
sort_field_nameutility::string_tNoSort field; SDK default is an empty string
sort_dirutility::string_tNoSort direction; SDK default is U("SortDir_Ascend")

Return

web::json::value. The SDK returns the response items array directly. Items commonly contain symbol, name, type, secType, latestPrice, strike, expiry, premium, and leverage fields.

Example

#include "tigerapi/client_config.h"
#include "tigerapi/quote_client.h"

int main() {
    TIGER_API::ClientConfig config(false, U("your_config_directory_path"));
    TIGER_API::QuoteClient client(config);
    auto result = client.get_warrant_filter(
        U("00700"), 20, 0, U("expireDate"), U("SortDir_Ascend"));
    utility::ucout << result.serialize() << std::endl;
}

Response provenance

The SDK extracts items directly from the server response but has no local warrant-item model or verified fixture. Runtime fields are authoritative; no synthetic prices or dates are shown.

Permissions and Limits

This method is for Hong Kong warrants and CBBCs and requires Hong Kong market-data permission. See API Rate Limits.

Response Example

{
  "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
  }
}

Get Real-Time Warrant Quotes

value QuoteClient::get_warrant_real_time_quote(const value &symbols)
value QuoteClient::get_warrant_real_time_quote(const utility::string_t symbol)

Description

Returns real-time quotes for one or more warrants or CBBCs. The old get_warrant_briefs method does not exist in the current SDK; its anchor remains for link compatibility.

Parameters

ParameterTypeRequiredDescription
symbolsconst value&YesJSON array of symbol strings
symbolconst utility::string_tYesOne warrant or CBBC symbol; this overload builds the array internally

Return

web::json::value array. Key fields include contract metadata, latestPrice, preClose, volume, premium, outstandingRatio, and leverageRatio; warrants may also contain impliedVolatility and delta.

Example

#include "tigerapi/client_config.h"
#include "tigerapi/quote_client.h"

int main() {
    TIGER_API::ClientConfig config(false, U("your_config_directory_path"));
    TIGER_API::QuoteClient client(config);
    auto result = client.get_warrant_real_time_quote(U("15792"));
    utility::ucout << result.serialize() << std::endl;
}

Response provenance

This method returns the server items array. The SDK repository has no fixed response model or verified fixture, so no synthetic quote payload is shown.

Permissions and Limits

The server controls symbol-count limits and field availability. Hong Kong market-data permission is required. See include/tigerapi/quote_client.h for authoritative signatures.


Did this page help you?