stock-trek 0.8.9

Stock Trek time-series analysis
Documentation
1
2
3
4
5
6
7
8
use crate::cex::{asset_id::AssetId, cex_id::CexId};

pub type Allocation = Box<dyn AllocationTrait>;

pub trait AllocationTrait {
    fn allocation_for_asset_total(&self, asset_id: &AssetId) -> f64;
    fn allocation_for_asset_in_cex(&self, asset_id: &AssetId, cex_id: &CexId) -> f64;
}