Inverted quote and base in SymbolPair constructor

This commit is contained in:
Giulio De Pasquale 2021-03-02 17:16:06 +00:00
parent 4f7d9042d6
commit 78b5b4d0f7

View File

@ -76,8 +76,8 @@ pub struct SymbolPair {
} }
impl SymbolPair { impl SymbolPair {
pub fn new(quote: Symbol, base: Symbol) -> Self { pub fn new(base: Symbol, quote: Symbol) -> Self {
SymbolPair { quote, base } SymbolPair { base, quote }
} }
pub fn trading_repr(&self) -> String { pub fn trading_repr(&self) -> String {
format!("t{}{}", self.base, self.quote) format!("t{}{}", self.base, self.quote)