pub struct Fill {
pub symbol: Symbol,
pub order_id: String,
pub client_id: Option<String>,
pub side: Side,
pub price: Price,
pub size: Volume,
pub fee: f64,
pub fee_currency: String,
pub timestamp: DateTime<Utc>,
}Expand description
A trade fill reported by the exchange.
Fields§
§symbol: SymbolSymbol this fill is for.
order_id: StringExchange-assigned order id this fill belongs to.
client_id: Option<String>Optional client id echoed back by the exchange.
side: SideSide of the trade.
price: PriceFill price.
size: VolumeFilled quantity in base-asset units or contracts.
fee: f64Fee charged for this fill, in fee_currency.
fee_currency: StringCurrency the fee is denominated in (e.g. "USDT").
timestamp: DateTime<Utc>Time the fill occurred at the exchange.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fill
impl<'de> Deserialize<'de> for Fill
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Fill, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Fill, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Fill
impl Serialize for Fill
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Fill
impl RefUnwindSafe for Fill
impl Send for Fill
impl Sync for Fill
impl Unpin for Fill
impl UnsafeUnpin for Fill
impl UnwindSafe for Fill
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