pub struct SettlementRecord {
pub symbol: String,
pub side: Side,
pub size: Decimal,
pub session_avg_price: Decimal,
pub mark_price: Decimal,
pub realised_pnl: Decimal,
pub created_time: Timestamp,
}Expand description
Item of the list returned by GET /v5/asset/settlement-record (Client::get_settlement_record).
Fields§
§symbol: StringSymbol name.
side: SideBuy, Sell.
size: DecimalPosition size.
session_avg_price: DecimalSettlement price.
mark_price: DecimalMark price.
realised_pnl: DecimalRealised PnL.
created_time: TimestampCreated time (ms).
Trait Implementations§
Source§impl Debug for SettlementRecord
impl Debug for SettlementRecord
Source§impl<'de> Deserialize<'de> for SettlementRecord
impl<'de> Deserialize<'de> for SettlementRecord
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
Source§impl PartialEq for SettlementRecord
impl PartialEq for SettlementRecord
impl StructuralPartialEq for SettlementRecord
Auto Trait Implementations§
impl Freeze for SettlementRecord
impl RefUnwindSafe for SettlementRecord
impl Send for SettlementRecord
impl Sync for SettlementRecord
impl Unpin for SettlementRecord
impl UnsafeUnpin for SettlementRecord
impl UnwindSafe for SettlementRecord
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