pub struct MakerTakerEventLog {
pub pair_id: i32,
pub event_type: i32,
pub cycle_id: i64,
pub maker_order_id: Option<u64>,
pub taker_order_id: Option<u64>,
pub fair_price: Option<i64>,
pub new_price: Option<i64>,
pub fill_price: Option<i64>,
pub fill_quantity: Option<i64>,
pub at: Option<Timestamp>,
pub detail: Option<String>,
}Expand description
Maker-Taker 이벤트 로그 레코드
Fields§
§pair_id: i32Pair ID
event_type: i32이벤트 유형
cycle_id: i64사이클 식별자 (동일 사이클의 이벤트를 묶음)
maker_order_id: Option<u64>maker 주문 ID (해당 이벤트에서 참조 가능한 경우)
taker_order_id: Option<u64>taker 주문 ID (TakerSubmitted / TakerFilled 시점)
fair_price: Option<i64>해당 이벤트 시점의 maker fair price (원, raw int64)
new_price: Option<i64>정정 시 새 호가 (MakerAmended 전용, 원, raw int64)
fill_price: Option<i64>체결 가격 (MakerFilled / TakerFilled, 원, raw int64)
fill_quantity: Option<i64>체결 수량 (MakerFilled / TakerFilled)
at: Option<Timestamp>이벤트 발생 시각
detail: Option<String>상세 내용 (optional)
Implementations§
Source§impl MakerTakerEventLog
impl MakerTakerEventLog
Sourcepub fn event_type(&self) -> MakerTakerEventType
pub fn event_type(&self) -> MakerTakerEventType
Returns the enum value of event_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_event_type(&mut self, value: MakerTakerEventType)
pub fn set_event_type(&mut self, value: MakerTakerEventType)
Sets event_type to the provided enum value.
Sourcepub fn maker_order_id(&self) -> u64
pub fn maker_order_id(&self) -> u64
Returns the value of maker_order_id, or the default value if maker_order_id is unset.
Sourcepub fn taker_order_id(&self) -> u64
pub fn taker_order_id(&self) -> u64
Returns the value of taker_order_id, or the default value if taker_order_id is unset.
Sourcepub fn fair_price(&self) -> i64
pub fn fair_price(&self) -> i64
Returns the value of fair_price, or the default value if fair_price is unset.
Sourcepub fn new_price(&self) -> i64
pub fn new_price(&self) -> i64
Returns the value of new_price, or the default value if new_price is unset.
Sourcepub fn fill_price(&self) -> i64
pub fn fill_price(&self) -> i64
Returns the value of fill_price, or the default value if fill_price is unset.
Sourcepub fn fill_quantity(&self) -> i64
pub fn fill_quantity(&self) -> i64
Returns the value of fill_quantity, or the default value if fill_quantity is unset.
Trait Implementations§
Source§impl Clone for MakerTakerEventLog
impl Clone for MakerTakerEventLog
Source§fn clone(&self) -> MakerTakerEventLog
fn clone(&self) -> MakerTakerEventLog
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MakerTakerEventLog
impl Debug for MakerTakerEventLog
Source§impl Default for MakerTakerEventLog
impl Default for MakerTakerEventLog
§impl<'de> Deserialize<'de> for MakerTakerEventLog
impl<'de> Deserialize<'de> for MakerTakerEventLog
§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>,
Source§impl Message for MakerTakerEventLog
impl Message for MakerTakerEventLog
Source§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.Source§impl PartialEq for MakerTakerEventLog
impl PartialEq for MakerTakerEventLog
Source§fn eq(&self, other: &MakerTakerEventLog) -> bool
fn eq(&self, other: &MakerTakerEventLog) -> bool
self and other values to be equal, and is used by ==.§impl Serialize for MakerTakerEventLog
impl Serialize for MakerTakerEventLog
impl StructuralPartialEq for MakerTakerEventLog
Auto Trait Implementations§
impl Freeze for MakerTakerEventLog
impl RefUnwindSafe for MakerTakerEventLog
impl Send for MakerTakerEventLog
impl Sync for MakerTakerEventLog
impl Unpin for MakerTakerEventLog
impl UnsafeUnpin for MakerTakerEventLog
impl UnwindSafe for MakerTakerEventLog
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request