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
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbols | const value & | Yes | Symbol code array, max 50 |
| lang | utility::string_t | No | Language, default empty |
| sec_type | utility::string_t | No | Security type, default empty |
Return
web::json::value JSON object
Response Fields
| Field | Type | Description |
|---|---|---|
| symbol | string | Security symbol |
| market | string | Market |
| exchange | string | Exchange |
| name | string | Name |
| shortable | float | Short availability info |
| ask_price | float | Best ask price |
| ask_size | int | Best ask size |
| bid_price | float | Best bid price |
| bid_size | int | Best bid size |
| pre_close | float | Previous close price |
| latest_price | float | Latest price |
| latest_time | long | Latest trade time (millisecond timestamp) |
| adj_pre_close | float | Adjusted previous close price |
| volume | long | Volume |
| open | float | Open price |
| high | float | High price |
| low | float | Low price |
| change | float | Price change |
| amount | float | Turnover |
| amplitude | float | Amplitude |
| float_shares | float | Free-float shares |
| shares | float | Total shares outstanding |
| eps | float | Earnings per share |
| etf | int | Indicates whether the instrument is an ETF |
| listing_date | long | Listing 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;Updated about 13 hours ago
Did this page help you?
