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
| Parameter | Type | Required | Description |
|---|---|---|---|
| industry_level | utility::string_t | No | Industry level, default GGROUP. Options:- GSECTOR: Level 1 sectors- GGROUP: Level 2 industry groups- GIND: Level 3 industries- GSUBIND: Level 4 sub-industries |
| lang | utility::string_t | No | Language, 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| industry_id | utility::string_t | Yes | Industry ID returned by get_industry_list |
| market | utility::string_t | No | Market, default US. Options: US, HK, CN |
| lang | utility::string_t | No | Language |
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
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | utility::string_t | Yes | Stock symbol |
| market | utility::string_t | No | Market, default US |
| sec_type | utility::string_t | No | Security type, e.g. STK, FUND |
| lang | utility::string_t | No | Language |
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.
Updated about 13 hours ago
Did this page help you?
