Crypto backtesting
Loading...
Searching...
No Matches
utils.h
Go to the documentation of this file.
1#pragma once
2
3#include "fx/constants.h"
4#include <string>
5#include <string_view>
6#include <vector>
7
8std::string epoch_to_utc(const size_t);
9std::string file_read(const std::string_view);
10std::vector<std::vector<double>> to_series(const std::string);
11std::vector<std::vector<double>> to_series3(const std::string &);
12std::vector<std::vector<double>> to_series4(const std::string &);
std::string epoch_to_utc(const size_t)
Routine to convert epoch seconds to a UTC time string.
Definition time.cxx:7
std::vector< std::vector< double > > to_series(const std::string)
Open a CSV file and return a vector of floating points for each row.
Definition file.cxx:78
std::vector< std::vector< double > > to_series4(const std::string &)
Open a CSV file and return a vector of floating points for each row.
Definition file.cxx:119
std::string file_read(const std::string_view)
Open a file a return a string of the contents.
Definition file.cxx:12
std::vector< std::vector< double > > to_series3(const std::string &)
Open a CSV file and return a vector of floating points for each row.
Definition file.cxx:90