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 {
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user