feat: Add Binance USDS Futures execution
This commit is contained in:
1 parent
25439b094a
commit
1b232aa610
71 files changed
+3913
-66
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user