avin_core 0.4.0

Core of the 'avin' library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*****************************************************************************
 * URL:         http://avin.info
 * AUTHOR:      Alex Avin
 * E-MAIL:      mr.alexavin@gmail.com
 * LICENSE:     MIT
 ****************************************************************************/

use polars::prelude::DataFrame;

use crate::Bar;

pub trait UserData: Send {
    fn id(&self) -> &str;
    fn df(&self) -> &DataFrame;
    fn init(&mut self, bars: &[Bar]);
    fn update(&mut self, bars: &[Bar]);
}