aboutsummarylogtreecommitdiffstats
path: root/api.h
diff options
context:
space:
mode:
authorAntony Kellermann2018-03-11 22:39:04 -0400
committerAntony Kellermann2018-03-11 22:39:04 -0400
commit9581f647acc6afbbc0c0be2904e1ac5ee4bd4007 (patch)
treec225c31827cf822dbb5dcb853b0ca3881d3d402d /api.h
parent4121b9ea5bce8d8d97b20ad8f29a358041d12fab (diff)
downloadaur-9581f647acc6afbbc0c0be2904e1ac5ee4bd4007.tar.gz
Added morningstar 5y history for graphing
Diffstat (limited to 'api.h')
-rw-r--r--api.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/api.h b/api.h
index 2242e2fc82bf..919dab3a58ba 100644
--- a/api.h
+++ b/api.h
@@ -103,6 +103,13 @@ double* api_get_hist_5y(const char* ticker_name_string);
double* iex_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 mutf/otcmkts
+ * @return double array of close prices
+ */
+double* morningstar_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