pub struct FundLimit {Show 16 fields
pub fund: String,
pub limit_type: i32,
pub long_limit_quantity: i64,
pub long_limit_amount: i64,
pub short_limit_quantity: i64,
pub short_limit_amount: i64,
pub limit_quantity_per_order: i64,
pub limit_amount_per_order: i64,
pub tick_limit: i64,
pub unfilled_limit: i64,
pub spread_limit_quantity_per_order: i64,
pub current_long_quantity: i64,
pub current_long_amount: i64,
pub current_short_quantity: i64,
pub current_short_amount: i64,
pub current_unfilled: i64,
}Fields§
§fund: String§limit_type: i32§long_limit_quantity: i64매수한도수량
long_limit_amount: i64매수한도금액
short_limit_quantity: i64매도한도수량
short_limit_amount: i64매도한도금액
limit_quantity_per_order: i641회 주문 한도계약수
limit_amount_per_order: i641회 주문 한도금액
tick_limit: i641회 주문 한도틱
unfilled_limit: i64미체결한도수량
spread_limit_quantity_per_order: i64스프레드 1회 주문 한도계약수
current_long_quantity: i64현재 누적 매수 수량
current_long_amount: i64현재 누적 매수 금액
current_short_quantity: i64현재 누적 매도 수량 (음수로 저장)
current_short_amount: i64현재 누적 매도 금액 (음수로 저장)
current_unfilled: i64현재 미체결 수량
Implementations§
Source§impl FundLimit
impl FundLimit
Sourcepub fn limit_type(&self) -> FundLimitType
pub fn limit_type(&self) -> FundLimitType
Returns the enum value of limit_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_limit_type(&mut self, value: FundLimitType)
pub fn set_limit_type(&mut self, value: FundLimitType)
Sets limit_type to the provided enum value.
Trait Implementations§
§impl<'de> Deserialize<'de> for FundLimit
impl<'de> Deserialize<'de> for FundLimit
§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
Source§impl Message for FundLimit
impl Message for FundLimit
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for FundLimit
Auto Trait Implementations§
impl Freeze for FundLimit
impl RefUnwindSafe for FundLimit
impl Send for FundLimit
impl Sync for FundLimit
impl Unpin for FundLimit
impl UnwindSafe for FundLimit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Wrap the input message
T in a tonic::Request