pub struct DeribitPublicTrade {Show 18 fields
pub amount: f64,
pub contracts: Option<f64>,
pub direction: String,
pub index_price: f64,
pub instrument_name: String,
pub iv: Option<f64>,
pub liquidation: Option<String>,
pub mark_price: f64,
pub price: f64,
pub tick_direction: i32,
pub timestamp: i64,
pub trade_id: String,
pub trade_seq: i64,
pub block_trade_id: Option<String>,
pub block_trade_leg_count: Option<i32>,
pub block_rfq_id: Option<i64>,
pub combo_id: Option<String>,
pub combo_trade_id: Option<f64>,
}Expand description
Deribit public trade data from the market data API.
Represents a single trade returned by /public/get_last_trades_by_instrument_and_time
and other trade-related endpoints.
Fields§
§amount: f64Trade amount. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin.
contracts: Option<f64>Trade size in contract units (optional, may be absent in historical trades).
direction: StringDirection of the trade: “buy” or “sell”
index_price: f64Index Price at the moment of trade.
instrument_name: StringUnique instrument identifier.
iv: Option<f64>Option implied volatility for the price (Option only).
liquidation: Option<String>Optional field (only for trades caused by liquidation).
mark_price: f64Mark Price at the moment of trade.
price: f64Price in base currency.
tick_direction: i32Direction of the “tick” (0 = Plus Tick, 1 = Zero-Plus Tick, 2 = Minus Tick, 3 = Zero-Minus Tick).
timestamp: i64The timestamp of the trade (milliseconds since the UNIX epoch).
trade_id: StringUnique (per currency) trade identifier.
trade_seq: i64The sequence number of the trade within instrument.
block_trade_id: Option<String>Block trade id - when trade was part of a block trade.
block_trade_leg_count: Option<i32>Block trade leg count - when trade was part of a block trade.
block_rfq_id: Option<i64>ID of the Block RFQ - when trade was part of the Block RFQ.
combo_id: Option<String>Optional field containing combo instrument name if the trade is a combo trade.
combo_trade_id: Option<f64>Optional field containing combo trade identifier if the trade is a combo trade.
Trait Implementations§
Source§impl Clone for DeribitPublicTrade
impl Clone for DeribitPublicTrade
Source§fn clone(&self) -> DeribitPublicTrade
fn clone(&self) -> DeribitPublicTrade
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeribitPublicTrade
impl Debug for DeribitPublicTrade
Source§impl<'de> Deserialize<'de> for DeribitPublicTrade
impl<'de> Deserialize<'de> for DeribitPublicTrade
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>,
Auto Trait Implementations§
impl Freeze for DeribitPublicTrade
impl RefUnwindSafe for DeribitPublicTrade
impl Send for DeribitPublicTrade
impl Sync for DeribitPublicTrade
impl Unpin for DeribitPublicTrade
impl UnsafeUnpin for DeribitPublicTrade
impl UnwindSafe for DeribitPublicTrade
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more