Get Stock Fundamentals

Get Stock Fundamentals

value QuoteClient::get_stock_fundamental(const value &symbols, utility::string_t market, utility::string_t sec_type, utility::string_t lang)

Description

Get company fundamental indicators

Rate Limit

60 requests/min

Parameters

ParameterTypeRequiredDescription
symbolsconst value &YesSymbol code array, up to 50 symbols
marketutility::string_tNoMarket, default empty
sec_typeutility::string_tNoSecurity type, default empty
langutility::string_tNoLanguage, default empty

Return

web::json::value JSON object

Response Fields

FieldTypeDescription
symbolstringStock symbol
roefloatReturn on Equity
roafloatReturn on Assets
pb_ratefloatPrice-to-Book ratio
ps_ratefloatPrice-to-Sales ratio
divide_ratefloatDividend yield
week52_highfloat52-week high
week52_lowfloat52-week low
ttm_epsfloatTrailing Twelve Months earnings per share
lyr_epsfloatLast Year Ratio earnings per share
volume_ratiofloatVolume ratio
turnover_ratefloatTurnover rate
ttm_pe_ratefloatTrailing Twelve Months P/E ratio
lyr_pe_ratefloatLast Year Ratio P/E ratio
market_capfloatMarket capitalization
float_market_capfloatFree-float market capitalization

Example

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

using namespace TIGER_API;
using namespace web::json;

ClientConfig config(false, U("your_config_directory_path"));
QuoteClient quote_client(config);

value symbols = value::array();
symbols[0] = value::string(U("AAPL"));
symbols[1] = value::string(U("GOOG"));

value result = quote_client.get_stock_fundamental(symbols, U("US"));
ucout << result.serialize() << std::endl;

Did this page help you?