63 Api(std::string apikey, std::string cert_path);
72 void fetch(std::string
const &function,
73 std::string
const &symbol,
74 std::string &stock_data);
Wraps alphavantage API. Fetches stock data using curl.
Definition api.h:44
size_t callback(void *contents, size_t size, size_t nmemb, std::string *s)
A call back function to be used with curl.
Definition api.cpp:7
Api()
Default constructor.
Definition api.cpp:14
~Api()
Destructor cleans up curl objects.
Definition api.cpp:65
void fetch(std::string const &function, std::string const &symbol, std::string &stock_data)
Fetch stock data.
Definition api.cpp:30