chapaty 0.1.4

A software to backtest trading strategies.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub mod binance;
pub mod cme;
use crate::enums::{self, data::HdbSourceDirKind};
use polars::prelude::{DataFrame, DataType, Field, Schema};
use std::str::FromStr;

pub struct BytesToDataFrameRequest {
    pub df_as_bytes: Vec<u8>,
    pub bytes_source_dir: HdbSourceDirKind,
}

pub trait DataProvider {
    fn get_name(&self) -> String;
    fn get_df_from_bytes(&self, bytes_to_data_frame_request: BytesToDataFrameRequest) -> DataFrame;
}