pub struct SecurityStatus {
pub security_status_req_id: Option<String>,
pub symbol: String,
pub security_trading_status: Option<i32>,
pub buy_volume: Option<f64>,
pub sell_volume: Option<f64>,
pub high_px: Option<f64>,
pub low_px: Option<f64>,
pub last_px: Option<f64>,
pub text: Option<String>,
}Expand description
Security Status message (35=f)
Provides information about the current status of a security including trading status, volumes, and various price metrics.
Fields§
§security_status_req_id: Option<String>ID of the request (tag 324) - optional in response
symbol: StringInstrument symbol (tag 55)
security_trading_status: Option<i32>Security trading status (tag 326) 7 = Ready to trade, 8 = Not Available for trading, 20 = Unknown or Invalid
buy_volume: Option<f64>Volume in buy contracts (tag 330)
sell_volume: Option<f64>Volume in sell contracts (tag 331)
high_px: Option<f64>Price of the 24h highest trade (tag 332)
low_px: Option<f64>Price of the 24h lowest trade (tag 333)
last_px: Option<f64>The price of the latest trade (tag 31)
text: Option<String>Explanatory text (tag 58)
Implementations§
Source§impl SecurityStatus
impl SecurityStatus
Sourcepub fn with_security_status_req_id(self, req_id: String) -> Self
pub fn with_security_status_req_id(self, req_id: String) -> Self
Set the security status request ID
Sourcepub fn with_trading_status(self, status: i32) -> Self
pub fn with_trading_status(self, status: i32) -> Self
Set the trading status
Sourcepub fn with_buy_volume(self, volume: f64) -> Self
pub fn with_buy_volume(self, volume: f64) -> Self
Set buy volume
Sourcepub fn with_sell_volume(self, volume: f64) -> Self
pub fn with_sell_volume(self, volume: f64) -> Self
Set sell volume
Sourcepub fn with_high_px(self, price: f64) -> Self
pub fn with_high_px(self, price: f64) -> Self
Set high price
Sourcepub fn with_low_px(self, price: f64) -> Self
pub fn with_low_px(self, price: f64) -> Self
Set low price
Sourcepub fn with_last_px(self, price: f64) -> Self
pub fn with_last_px(self, price: f64) -> Self
Set last price
Sourcepub fn from_fix_message(message: &FixMessage) -> DeribitFixResult<Self>
pub fn from_fix_message(message: &FixMessage) -> DeribitFixResult<Self>
Parse from FIX message
Sourcepub fn to_fix_message(
&self,
sender_comp_id: String,
target_comp_id: String,
msg_seq_num: u32,
) -> DeribitFixResult<FixMessage>
pub fn to_fix_message( &self, sender_comp_id: String, target_comp_id: String, msg_seq_num: u32, ) -> DeribitFixResult<FixMessage>
Convert to FIX message
Trait Implementations§
Source§impl Clone for SecurityStatus
impl Clone for SecurityStatus
Source§fn clone(&self) -> SecurityStatus
fn clone(&self) -> SecurityStatus
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 SecurityStatus
impl Debug for SecurityStatus
Source§impl<'de> Deserialize<'de> for SecurityStatus
impl<'de> Deserialize<'de> for SecurityStatus
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 SecurityStatus
impl PartialEq for SecurityStatus
Source§impl Serialize for SecurityStatus
impl Serialize for SecurityStatus
impl StructuralPartialEq for SecurityStatus
Auto Trait Implementations§
impl Freeze for SecurityStatus
impl RefUnwindSafe for SecurityStatus
impl Send for SecurityStatus
impl Sync for SecurityStatus
impl Unpin for SecurityStatus
impl UnwindSafe for SecurityStatus
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