pub struct BybitPosition {
pub symbol: String,
pub side: String,
pub size: String,
pub avg_price: String,
pub mark_price: String,
pub unrealised_pnl: String,
pub leverage: String,
}Expand description
Bybit position information
Fields§
§symbol: StringTrading symbol for the position
side: StringPosition side (Buy/Sell)
size: StringPosition size
avg_price: StringAverage entry price
mark_price: StringCurrent mark price
unrealised_pnl: StringUnrealized profit and loss
leverage: StringPosition leverage
Trait Implementations§
Source§impl Debug for BybitPosition
impl Debug for BybitPosition
Source§impl<'de> Deserialize<'de> for BybitPosition
impl<'de> Deserialize<'de> for BybitPosition
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
Auto Trait Implementations§
impl Freeze for BybitPosition
impl RefUnwindSafe for BybitPosition
impl Send for BybitPosition
impl Sync for BybitPosition
impl Unpin for BybitPosition
impl UnwindSafe for BybitPosition
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