feat: add quote_asset to Ticker object

This commit is contained in:
Lucas Colombo 2024-05-23 21:27:56 -03:00
parent 3f731d1d11
commit 4a8ea54f5d
Signed by: lucas
GPG Key ID: EF34786CFEFFAE35

View File

@ -190,6 +190,7 @@ impl Default for RustlerOpts {
pub struct Ticker { pub struct Ticker {
pub symbol: String, pub symbol: String,
pub market: String, pub market: String,
pub quote_asset: Option<String>,
} }
impl Ticker { impl Ticker {
@ -197,6 +198,7 @@ impl Ticker {
Self { Self {
symbol: t.symbol.clone(), symbol: t.symbol.clone(),
market: m.short_name.clone(), market: m.short_name.clone(),
quote_asset: t.quote_symbol.clone(),
} }
} }