Fill

Struct Fill 

Source
pub struct Fill {
Show 14 fields pub entry_id: String, pub trade_id: String, pub order_id: String, pub trade_time: DateTime, pub trade_type: TradeType, pub price: String, pub size: String, pub commission: String, pub product_id: String, pub sequence_timestamp: DateTime, pub liquidity_indicator: LiquidityIndicator, pub size_in_quote: bool, pub user_id: String, pub side: OrderSide,
}
Expand description

Structure representing CB’s response to a fill request

Fields§

§entry_id: String

Unique identifier for the fill.

§trade_id: String

ID of the fill – unique for all FILL trade_types but not unique for adjusted fills.

§order_id: String

ID of the order the fill belongs to.

§trade_time: DateTime

Time at which this fill was completed.

§trade_type: TradeType

String denoting what type of fill this is. Regular fills have the value FILL. Adjusted fills have possible values REVERSAL, CORRECTION, SYNTHETIC.

§price: String

Price the fill was posted at.

§size: String

Amount of order that was transacted at this fill.

§commission: String

Fee amount for fill.

§product_id: String

The product this order was created for.

§sequence_timestamp: DateTime

Time at which this fill was posted.

§liquidity_indicator: LiquidityIndicator

Possible values: [UNKNOWN_LIQUIDITY_INDICATOR, MAKER, TAKER]

§size_in_quote: bool

Whether the order was placed with quote currency.

§user_id: String

User that placed the order the fill belongs to.

§side: OrderSide

Possible values: [UNKNOWN_ORDER_SIDE, BUY, SELL]

Trait Implementations§

Source§

impl Debug for Fill

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Fill

Source§

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 Fill

§

impl RefUnwindSafe for Fill

§

impl Send for Fill

§

impl Sync for Fill

§

impl Unpin for Fill

§

impl UnwindSafe for Fill

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,