pub struct Trade { /* private fields */ }
Expand description
Defines a single Trade
made on Bitpanda exchange
Implementations§
Source§impl Trade
impl Trade
pub fn transaction_id(&self) -> &str
pub fn timestamp(&self) -> DateTime<FixedOffset>
pub fn transaction_type(&self) -> TransactionType
pub fn in_out(&self) -> InOut
pub fn amount_fiat(&self) -> Decimal
pub fn fiat(&self) -> Fiat
pub fn amount_asset(&self) -> Option<Decimal>
pub fn asset(&self) -> Asset
pub fn asset_market_price(&self) -> Option<Decimal>
pub fn asset_market_price_currency(&self) -> Option<Fiat>
pub fn asset_class(&self) -> AssetClass
pub fn product_id(&self) -> Option<u64>
pub fn fee(&self) -> Option<Decimal>
pub fn fee_asset(&self) -> Option<Currency>
pub fn spread(&self) -> Option<Decimal>
pub fn spread_currency(&self) -> Option<Fiat>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Trade
impl<'de> Deserialize<'de> for Trade
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Trade
impl StructuralPartialEq for Trade
Auto Trait Implementations§
impl Freeze for Trade
impl RefUnwindSafe for Trade
impl Send for Trade
impl Sync for Trade
impl Unpin for Trade
impl UnwindSafe for Trade
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more