feat: Add Binance USDS Futures execution

This commit is contained in:
John Colvin committed 2024-12-22 04:00:23 +00:00
1 parent 25439b094a
commit 1b232aa610
71 files changed
+3913 -66

No files matched your search

+17
View File
@@ -26,5 +26,22 @@ std::string normalize_data_path(std::string const &input_path) {
return input_path;
}
std::string read_file(const std::string &path) {
std::string out;
read_file(path, out);
return out;
}
void read_file(const std::string &path, std::string &out) {
std::ifstream ifstr{path};
// Preallocate memory
ifstr.seekg(0, std::ios::end);
out.reserve(ifstr.tellg());
ifstr.seekg(0, std::ios::beg);
out.assign(
(std::istreambuf_iterator<char>(ifstr)),
std::istreambuf_iterator<char>());
}
} // namespace utils
} // namespace bts