#include <iostream>
#include <string>
#include <curl/curl.h>
#include <thread>
#include <nlohmann/json.hpp>
#include <fstream>
#include <functional>
#include <chrono>
#include <regex>
#include <boost/algorithm/string.hpp>
#include <cstdlib>
Go to the source code of this file.
|
size_t | WriteCallback (void *contents, size_t size, size_t nmemb, std::string *s) |
|
void | fetchDataWithRetry (const std::string &apikey, bool adjusted=true, bool extended_hours=true, const std::string &month="2024-09", const std::string &outputsize="compact", const std::string &datatype="json", int maxRetries=3, const std::string &symbol="AAPL") |
|
◆ fetchDataWithRetry()
void fetchDataWithRetry |
( |
const std::string & |
apikey, |
|
|
bool |
adjusted = true , |
|
|
bool |
extended_hours = true , |
|
|
const std::string & |
month = "2024-09" , |
|
|
const std::string & |
outputsize = "compact" , |
|
|
const std::string & |
datatype = "json" , |
|
|
int |
maxRetries = 3 , |
|
|
const std::string & |
symbol = "AAPL" |
|
) |
| |
◆ WriteCallback()
size_t WriteCallback |
( |
void * |
contents, |
|
|
size_t |
size, |
|
|
size_t |
nmemb, |
|
|
std::string * |
s |
|
) |
| |