Struct OrderFillEventV1
pub struct OrderFillEventV1 {Show 16 fields
pub maker_order: Option<IndexerOrder>,
pub fill_amount: u64,
pub maker_fee: i64,
pub taker_fee: i64,
pub total_filled_maker: u64,
pub total_filled_taker: u64,
pub affiliate_rev_share: u64,
pub maker_builder_fee: u64,
pub taker_builder_fee: u64,
pub maker_builder_address: String,
pub taker_builder_address: String,
pub maker_order_router_fee: u64,
pub taker_order_router_fee: u64,
pub maker_order_router_address: String,
pub taker_order_router_address: String,
pub taker_order: Option<TakerOrder>,
}Expand description
OrderFillEvent message contains all the information from an order match in the dYdX chain. This includes the maker/taker orders that matched and the amount filled.
Fields§
§maker_order: Option<IndexerOrder>§fill_amount: u64Fill amount in base quantums.
maker_fee: i64Maker fee in USDC quantums.
taker_fee: i64Taker fee in USDC quantums. If the taker order is a liquidation, then this represents the special liquidation fee, not the standard taker fee.
total_filled_maker: u64Total filled of the maker order in base quantums.
total_filled_taker: u64Total filled of the taker order in base quantums.
rev share for affiliates in USDC quantums.
maker_builder_fee: u64fee for maker builder in USDC quantums.
taker_builder_fee: u64fee for taker builder in USDC quantums.
maker_builder_address: Stringbuilder address for maker
taker_builder_address: Stringbuilder address for taker
maker_order_router_fee: u64fee for maker order router in USDC quantums
taker_order_router_fee: u64fee for taker order router in USDC quantums
maker_order_router_address: Stringorder router address for maker
taker_order_router_address: Stringorder router address for taker
taker_order: Option<TakerOrder>The type of order fill this event represents.
Trait Implementations§
§impl Clone for OrderFillEventV1
impl Clone for OrderFillEventV1
§fn clone(&self) -> OrderFillEventV1
fn clone(&self) -> OrderFillEventV1
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for OrderFillEventV1
impl Debug for OrderFillEventV1
§impl Default for OrderFillEventV1
impl Default for OrderFillEventV1
§fn default() -> OrderFillEventV1
fn default() -> OrderFillEventV1
§impl Message for OrderFillEventV1
impl Message for OrderFillEventV1
§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.§impl Name for OrderFillEventV1
impl Name for OrderFillEventV1
§const NAME: &'static str = "OrderFillEventV1"
const NAME: &'static str = "OrderFillEventV1"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.§const PACKAGE: &'static str = "dydxprotocol.indexer.events"
const PACKAGE: &'static str = "dydxprotocol.indexer.events"
., e.g. google.protobuf.§fn full_name() -> String
fn full_name() -> String
Message.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.§impl PartialEq for OrderFillEventV1
impl PartialEq for OrderFillEventV1
impl StructuralPartialEq for OrderFillEventV1
Auto Trait Implementations§
impl Freeze for OrderFillEventV1
impl RefUnwindSafe for OrderFillEventV1
impl Send for OrderFillEventV1
impl Sync for OrderFillEventV1
impl Unpin for OrderFillEventV1
impl UnwindSafe for OrderFillEventV1
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].