pub struct TradeData {
pub symbol: String,
pub tick_direction: String,
pub price: String,
pub size: String,
pub timestamp: String,
pub trade_id: String,
pub side: String,
}Expand description
Trade data from Bybit Futures
Fields§
§symbol: StringTrading symbol (e.g., “BTCUSDT”)
tick_direction: StringTrade tick direction (e.g., “PlusTick”, “MinusTick”)
price: StringPrice of the trade
size: StringQuantity/size of the trade
timestamp: StringTrade timestamp in milliseconds
trade_id: StringTrade ID
side: StringWhether the trade was a buy or sell (from taker perspective)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TradeData
impl<'de> Deserialize<'de> for TradeData
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 TradeData
impl RefUnwindSafe for TradeData
impl Send for TradeData
impl Sync for TradeData
impl Unpin for TradeData
impl UnwindSafe for TradeData
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