Get Stock Details

Get Stock Details

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

Description

Get detailed stock information

Rate Limit

60 requests/min

Parameters

ParameterTypeRequiredDescription
symbolsconst value &YesSymbol code array, max 50
langutility::string_tNoLanguage, default empty
sec_typeutility::string_tNoSecurity type, default empty

Return

web::json::value JSON object

Response Fields

FieldTypeDescription
symbolstringSecurity symbol
marketstringMarket
exchangestringExchange
namestringName
shortablefloatShort availability info
ask_pricefloatBest ask price
ask_sizeintBest ask size
bid_pricefloatBest bid price
bid_sizeintBest bid size
pre_closefloatPrevious close price
latest_pricefloatLatest price
latest_timelongLatest trade time (millisecond timestamp)
adj_pre_closefloatAdjusted previous close price
volumelongVolume
openfloatOpen price
highfloatHigh price
lowfloatLow price
changefloatPrice change
amountfloatTurnover
amplitudefloatAmplitude
float_sharesfloatFree-float shares
sharesfloatTotal shares outstanding
epsfloatEarnings per share
etfintIndicates whether the instrument is an ETF
listing_datelongListing date timestamp

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"));

value result = quote_client.get_stock_detail(symbols);
ucout << result.serialize() << std::endl;

Did this page help you?