aboutsummarylogtreecommitdiffstats
path: root/api.h
diff options
context:
space:
mode:
authorAntony Kellermann2018-03-11 22:19:53 -0400
committerAntony Kellermann2018-03-11 22:19:53 -0400
commit4121b9ea5bce8d8d97b20ad8f29a358041d12fab (patch)
tree095938efffcbd1ad8e0bddb06c6d7e6dc59d233b /api.h
parent66282968a7ae2af1abea77813df6c9af8073fe41 (diff)
downloadaur-4121b9ea5bce8d8d97b20ad8f29a358041d12fab.tar.gz
Added command 'graph' for IEX securities
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