#[non_exhaustive]pub struct ConvertTradeResult {
pub trade_id: String,
pub quote_id: String,
pub cl_t_req_id: String,
pub state: ConvertTradeState,
pub inst_id: String,
pub base_ccy: String,
pub quote_ccy: String,
pub side: OrderSide,
pub fill_px: NumberString,
pub fill_base_sz: NumberString,
pub fill_quote_sz: NumberString,
pub ts: NumberString,
}Expand description
Result returned after executing a Convert trade.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.trade_id: StringServer-assigned trade ID.
quote_id: StringQuote ID used to execute the conversion.
cl_t_req_id: StringClient-supplied trade request ID, when supplied.
state: ConvertTradeStateTrade execution state.
inst_id: StringCurrency pair, e.g. BTC-USDT.
base_ccy: StringBase currency, e.g. BTC in BTC-USDT.
quote_ccy: StringQuote currency, e.g. USDT in BTC-USDT.
side: OrderSideTrade side based on the base currency.
fill_px: NumberStringFilled price denominated in the quote currency.
fill_base_sz: NumberStringFilled amount of the base currency.
fill_quote_sz: NumberStringFilled amount of the quote currency.
ts: NumberStringConvert trade time as a Unix timestamp in milliseconds.
Trait Implementations§
Source§impl Clone for ConvertTradeResult
impl Clone for ConvertTradeResult
Source§fn clone(&self) -> ConvertTradeResult
fn clone(&self) -> ConvertTradeResult
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 ConvertTradeResult
impl Debug for ConvertTradeResult
Source§impl<'de> Deserialize<'de> for ConvertTradeResult
impl<'de> Deserialize<'de> for ConvertTradeResult
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 ConvertTradeResult
impl RefUnwindSafe for ConvertTradeResult
impl Send for ConvertTradeResult
impl Sync for ConvertTradeResult
impl Unpin for ConvertTradeResult
impl UnsafeUnpin for ConvertTradeResult
impl UnwindSafe for ConvertTradeResult
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