aboutsummarylogtreecommitdiffstats
path: root/api.h
diff options
context:
space:
mode:
authorAntony Kellermann2018-05-27 13:10:55 -0400
committerAntony Kellermann2018-05-27 13:10:55 -0400
commitae945b19f0fb05021e653b7aa2376fc34abaf840 (patch)
treea6be0336acfa37371b5ff6e51437c6271215def3 /api.h
parent5cef0e640da577b9d5dc9f86a9973b903531ff41 (diff)
downloadaur-ae945b19f0fb05021e653b7aa2376fc34abaf840.tar.gz
Modified news to take data from iex, instead of News API
Diffstat (limited to 'api.h')
-rw-r--r--api.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/api.h b/api.h
index 5fba0d159f66..01be9abd1829 100644
--- a/api.h
+++ b/api.h
@@ -9,7 +9,9 @@
#ifndef API_H
#define API_H
+#define DATE_MAX_LENGTH 16
#define SYMBOL_MAX_LENGTH 32
+#define URL_MAX_LENGTH 2048
#define EMPTY (-999)
#include <stddef.h>
@@ -111,17 +113,9 @@ double* morningstar_get_hist_5y(const char* symbol);
/**
* 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
+ * @param symbol the string to query
*/
-void news_print_top_three(const char* ticker_name_string);
-
-/**
- * Prints relevant information about up to three articles given a News API JSON formatted response object. Title, source,
- * and URL will always be printed. The URL will be shortened by Google's URL-shortener API. If the author and date
- * are specified, those will be printed as well.
- * @param jobj the JSON array
- */
-void json_print_news(const Json* jobj);
+void iex_print_news(const char* symbol, int num_articles);
/**
* Prints information about the symbol ticker_name_string by calling the function json_print_news.