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
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbols | const value & | Yes | Symbol code array, up to 50 symbols |
| market | utility::string_t | No | Market, default empty |
| sec_type | utility::string_t | No | Security type, default empty |
| lang | utility::string_t | No | Language, default empty |
Return
web::json::value JSON object
Response Fields
| Field | Type | Description |
|---|---|---|
| symbol | string | Stock symbol |
| roe | float | Return on Equity |
| roa | float | Return on Assets |
| pb_rate | float | Price-to-Book ratio |
| ps_rate | float | Price-to-Sales ratio |
| divide_rate | float | Dividend yield |
| week52_high | float | 52-week high |
| week52_low | float | 52-week low |
| ttm_eps | float | Trailing Twelve Months earnings per share |
| lyr_eps | float | Last Year Ratio earnings per share |
| volume_ratio | float | Volume ratio |
| turnover_rate | float | Turnover rate |
| ttm_pe_rate | float | Trailing Twelve Months P/E ratio |
| lyr_pe_rate | float | Last Year Ratio P/E ratio |
| market_cap | float | Market capitalization |
| float_market_cap | float | Free-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;Updated about 13 hours ago
Did this page help you?
