From 78b5b4d0f738db836ebd3f9bf8ce92db353e99d2 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Tue, 2 Mar 2021 17:16:06 +0000 Subject: [PATCH] Inverted quote and base in SymbolPair constructor --- src/currency.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/currency.rs b/src/currency.rs index 83dbab7..4e0500a 100644 --- a/src/currency.rs +++ b/src/currency.rs @@ -76,8 +76,8 @@ pub struct SymbolPair { } impl SymbolPair { - pub fn new(quote: Symbol, base: Symbol) -> Self { - SymbolPair { quote, base } + pub fn new(base: Symbol, quote: Symbol) -> Self { + SymbolPair { base, quote } } pub fn trading_repr(&self) -> String { format!("t{}{}", self.base, self.quote)