CellViz  1.0
data.h
Go to the documentation of this file.
1 //
2 // Created by velocitatem on 10/9/24.
3 //
4 #ifndef DATA_H
5 #define DATA_H
6 #include <iostream>
7 #include <string>
8 #include <curl/curl.h>
9 #include <thread>
10 #include <nlohmann/json.hpp>
11 #include <fstream>
12 #include <functional>
13 #include <chrono>
14 #include <regex>
15 #include <boost/algorithm/string.hpp>
16 #include <cstdlib>
17 size_t WriteCallback(void* contents, size_t size, size_t nmemb, std::string* s);
18 void fetchDataWithRetry(const std::string& apikey,
19  bool adjusted = true,
20  bool extended_hours = true,
21  const std::string& month = "2024-09",
22  const std::string& outputsize = "compact",
23  const std::string& datatype = "json",
24  int maxRetries = 3,
25  const std::string& symbol = "AAPL");
26 
27 
28 #endif //DATA_H
size_t WriteCallback(void *contents, size_t size, size_t nmemb, std::string *s)
Definition: data.cpp:5
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")
Definition: data.cpp:11