stock-trek 0.6.8

Stock Trek time-series analysis
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{
    asset_id::AssetId, exchange_id::ExchangeId, order::order_request::OrderRequest,
    portfolios::portfolio::Portfolio, scratch::scratch_pad::ScratchPad,
};
use rust_decimal::RoundingStrategy;

pub struct ResolvedContext {
    pub price_rounding: RoundingStrategy,
    pub quantity_rounding: RoundingStrategy,
    pub rate_rounding: RoundingStrategy,
    pub enqueue_order: fn(exchange_id: &ExchangeId, order_request: &OrderRequest<AssetId, f64>),
    pub portfolio: Portfolio,
    pub scratch_pad: ScratchPad,
}