pub struct FundingPayment {
pub timestamp: DateTime<FixedOffset>,
pub position_size: f64,
pub funding_rate: f64,
pub payment_amount: f64,
pub mark_price: f64,
}Expand description
Minimal representation of a funding payment used in tests and simplified workflows.
Fields§
§timestamp: DateTime<FixedOffset>Timestamp of the payment.
position_size: f64Position size in contracts at the time of the payment.
funding_rate: f64Funding rate that was applied for the interval.
payment_amount: f64Amount paid or received because of funding. Positive values represent income.
mark_price: f64Mark price when the payment was settled.
Trait Implementations§
Source§impl Clone for FundingPayment
impl Clone for FundingPayment
Source§fn clone(&self) -> FundingPayment
fn clone(&self) -> FundingPayment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FundingPayment
impl Debug for FundingPayment
Source§impl PartialEq for FundingPayment
impl PartialEq for FundingPayment
impl StructuralPartialEq for FundingPayment
Auto Trait Implementations§
impl Freeze for FundingPayment
impl RefUnwindSafe for FundingPayment
impl Send for FundingPayment
impl Sync for FundingPayment
impl Unpin for FundingPayment
impl UnwindSafe for FundingPayment
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