aboutsummarylogtreecommitdiffstats
path: root/api.h
diff options
context:
space:
mode:
Diffstat (limited to 'api.h')
-rw-r--r--api.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/api.h b/api.h
index 20262330e670..2242e2fc82bf 100644
--- a/api.h
+++ b/api.h
@@ -89,6 +89,20 @@ double* morningstar_get_price(const char* ticker_name_string);
double* coinmarketcap_get_price(const char* ticker_name_string);
/**
+ * Returns an array of doubles containing the close price each day in the past 5 years
+ * @param ticker_name_string symbol
+ * @return double array of close prices
+ */
+double* api_get_hist_5y(const char* ticker_name_string);
+
+/**
+ * Returns an array of doubles containing the close price each day in the past 5 years
+ * @param ticker_name_string symbol of stock or etf
+ * @return double array of close prices
+ */
+double* iex_get_hist_5y(const char* ticker_name_string);
+
+/**
* Prints the top three news articles by popularity pertaining to the given string, ticker_name_string. Spaces and
* underscores will be url-encoded (replaced by "%20"). News API will be used for data.
* @param ticker_name_string the string to query