pub struct UpstreamTrade {Show 13 fields
pub trade_id: String,
pub client_order_id: String,
pub venue_order_id: String,
pub instrument_id: String,
pub side: String,
pub order_type: String,
pub qty: String,
pub price: String,
pub quote_notional: String,
pub fee: String,
pub fee_currency: String,
pub liquidity: String,
pub ts_event: i64,
}Expand description
Trade format for upstream API (matches botRoutes.py Trade schema)
Fields§
§trade_id: StringStable trade ID.
client_order_id: StringClient order ID.
venue_order_id: StringVenue/exchange order ID.
instrument_id: StringInstrument ID.
side: StringFill side.
order_type: StringOrder type label.
qty: StringFilled quantity string.
price: StringFill price string.
quote_notional: StringQuote notional string.
fee: StringFee amount string.
fee_currency: StringFee currency.
liquidity: StringLiquidity role.
ts_event: i64Event timestamp in milliseconds.
Trait Implementations§
Source§impl Clone for UpstreamTrade
impl Clone for UpstreamTrade
Source§fn clone(&self) -> UpstreamTrade
fn clone(&self) -> UpstreamTrade
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UpstreamTrade
impl Debug for UpstreamTrade
Source§impl<'de> Deserialize<'de> for UpstreamTrade
impl<'de> Deserialize<'de> for UpstreamTrade
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 UpstreamTrade
impl RefUnwindSafe for UpstreamTrade
impl Send for UpstreamTrade
impl Sync for UpstreamTrade
impl Unpin for UpstreamTrade
impl UnsafeUnpin for UpstreamTrade
impl UnwindSafe for UpstreamTrade
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