Industry Data

Get an Industry List

value QuoteClient::get_industry_list(
    utility::string_t industry_level = U("GGROUP"),
    utility::string_t lang = U("")
)

Description

Returns a Global Industry Classification Standard (GICS) industry list.

Parameters

ParameterTypeRequiredDescription
industry_levelutility::string_tNoIndustry level, default GGROUP. Options:
- GSECTOR: Level 1 sectors
- GGROUP: Level 2 industry groups
- GIND: Level 3 industries
- GSUBIND: Level 4 sub-industries
langutility::string_tNoLanguage, e.g. zh_CN, en_US

Example

#include "tigerapi/quote_client.h"

auto client = std::make_shared<QuoteClient>(config);
value result = client->get_industry_list(U("GGROUP"));

Response provenance

This method returns unmodeled web::json::value. The SDK repository has no industry-list response model or verified fixture, so no synthetic JSON is shown.


Get Stocks in an Industry

value QuoteClient::get_industry_stocks(
    utility::string_t industry_id,
    utility::string_t market = U("US"),
    utility::string_t lang = U("")
)

Description

Returns stocks that belong to a specified industry.

Parameters

ParameterTypeRequiredDescription
industry_idutility::string_tYesIndustry ID returned by get_industry_list
marketutility::string_tNoMarket, default US. Options: US, HK, CN
langutility::string_tNoLanguage

Example

value result = client->get_industry_stocks(U("5020"), U("US"));

Get a Stock's Industry

value QuoteClient::get_stock_industry(
    utility::string_t symbol,
    utility::string_t market = U("US"),
    utility::string_t sec_type = U(""),
    utility::string_t lang = U("")
)

Description

Returns the complete GICS classification path (levels 1-4) for a specified stock.

Parameters

ParameterTypeRequiredDescription
symbolutility::string_tYesStock symbol
marketutility::string_tNoMarket, default US
sec_typeutility::string_tNoSecurity type, e.g. STK, FUND
langutility::string_tNoLanguage

Example

value result = client->get_stock_industry(U("AAPL"), U("US"));

Response provenance

This method returns unmodeled web::json::value. The SDK repository has no stock-industry response model or verified fixture, so no synthetic JSON is shown.


Did this page help you?