diff --git a/src/bot.rs b/src/bot.rs index c14c002..b00bd20 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -20,18 +20,12 @@ impl BfxBot { // TODO: change constructor to take SymbolPairs and not Symbol pub fn new( exchanges: Vec, - trading_symbols: Vec, - quote: Symbol, + trading_pairs: Vec, tick_duration: Duration, ) -> Self { - let pairs: Vec<_> = trading_symbols - .iter() - .map(|x| SymbolPair::new(quote.clone(), x.clone())) - .collect(); - let exchange_managers = exchanges .iter() - .map(|x| ExchangeManager::new(x, &pairs)) + .map(|x| ExchangeManager::new(x, &trading_pairs)) .collect(); BfxBot {