Inverted quote and base in SymbolPair constructor
This commit is contained in:
parent
4f7d9042d6
commit
78b5b4d0f7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user