stock_trek/algorithm.rs
1use crate::{
2 commands::command::Command, preferences::Preferences, signal::signals::Signals,
3 signal_context::SignalContext, strategy_context::StrategyContext,
4};
5
6pub trait Algorithm: Send + Sync {
7 fn preferences(&self) -> Preferences;
8 fn signals(&self, c: &SignalContext) -> Signals;
9 fn strategy(&self, c: &StrategyContext) -> Command;
10}