#[non_exhaustive]pub struct FillUpdate {
pub inst_id: String,
pub fill_sz: NumberString,
pub fill_px: NumberString,
pub side: String,
pub ts: NumberString,
pub ord_id: String,
pub cl_ord_id: String,
pub trade_id: String,
pub exec_type: String,
pub count: NumberString,
pub extra: ExtraFields,
}Expand description
Private fills channel row.
OKX docs: https://www.okx.com/docs-v5/en/#order-book-trading-trade-ws-fills-channel
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.inst_id: StringInstrument ID, e.g., BTC-USDT-SWAP.
fill_sz: NumberStringFilled quantity; aggregated when count > 1.
fill_px: NumberStringLast filled price.
side: StringTrade direction: buy or sell.
ts: NumberStringFilled time (Unix milliseconds).
ord_id: StringOKX-assigned order ID.
cl_ord_id: StringClient-supplied order ID.
trade_id: StringThe last trade ID in the trades aggregation.
exec_type: StringLiquidity role: T (taker) or M (maker).
count: NumberStringNumber of trades aggregated into this push.
extra: ExtraFieldsUnrecognized fields retained for forward compatibility.
Trait Implementations§
Source§impl Clone for FillUpdate
impl Clone for FillUpdate
Source§fn clone(&self) -> FillUpdate
fn clone(&self) -> FillUpdate
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 FillUpdate
impl Debug for FillUpdate
Source§impl Default for FillUpdate
impl Default for FillUpdate
Source§fn default() -> FillUpdate
fn default() -> FillUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FillUpdate
impl<'de> Deserialize<'de> for FillUpdate
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 FillUpdate
impl RefUnwindSafe for FillUpdate
impl Send for FillUpdate
impl Sync for FillUpdate
impl Unpin for FillUpdate
impl UnsafeUnpin for FillUpdate
impl UnwindSafe for FillUpdate
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