pub struct WsFill {
pub fill_id: Option<String>,
pub order_id: Option<String>,
pub cli_ord_id: Option<String>,
pub instrument: Option<String>,
pub side: Option<String>,
pub price: Option<Decimal>,
pub qty: Option<Decimal>,
pub fill_type: Option<String>,
pub fee_paid: Option<Decimal>,
pub fee_currency: Option<String>,
pub time: Option<u64>,
}Expand description
Fill data from WebSocket.
Fields§
§fill_id: Option<String>Fill ID.
order_id: Option<String>Order ID.
cli_ord_id: Option<String>Client order ID.
instrument: Option<String>Instrument/symbol.
side: Option<String>Fill side (“buy” or “sell”).
price: Option<Decimal>Fill price.
qty: Option<Decimal>Fill quantity.
fill_type: Option<String>Fill type (“maker”, “taker”, “liquidation”).
fee_paid: Option<Decimal>Fee paid.
fee_currency: Option<String>Fee currency.
time: Option<u64>Timestamp.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WsFill
impl<'de> Deserialize<'de> for WsFill
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 WsFill
impl RefUnwindSafe for WsFill
impl Send for WsFill
impl Sync for WsFill
impl Unpin for WsFill
impl UnwindSafe for WsFill
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