pub struct SubmitOrderRequest {
pub fund_code: String,
pub symbol: String,
pub side: i32,
pub quantity: i64,
pub price: String,
pub quote_type: i32,
pub is_lp: bool,
pub auto_amend_strategy: Option<i32>,
pub limit_price_type: Option<i32>,
pub order_condition: Option<i32>,
pub need_hedge: Option<bool>,
}Fields§
§fund_code: String펀드 코드 (필수)
symbol: String종목 코드 ISIN (필수)
side: i32매수/매도 (필수)
quantity: i64수량 (필수)
price: String가격 (필수, 시장가 주문 시 0)
quote_type: i32주문 유형 (기본: LIMIT)
is_lp: bool유동성 공급자 여부
auto_amend_strategy: Option<i32>자동정정 전략
limit_price_type: Option<i32>지정가 가격 결정 방식 (미지정 시 price 필드의 가격 사용)
order_condition: Option<i32>호가조건 (미지정 시 FAS, 일반 지정가)
need_hedge: Option<bool>헷지 누적 대상 여부 (미지정 시 false) true 로 설정하면 외부에서 직접 제출한 주문의 체결도 hedge accumulator 에 누적되어 목표 헷지에 반영됨. 실제 누적되려면 (fund_code, symbol) 조합으로 Hedge 가 DB 에 등록되어 있어야 함.
Implementations§
Source§impl SubmitOrderRequest
impl SubmitOrderRequest
Sourcepub fn side(&self) -> OrderSide
pub fn side(&self) -> OrderSide
Returns the enum value of side, or the default if the field is set to an invalid enum value.
Sourcepub fn quote_type(&self) -> QuoteType
pub fn quote_type(&self) -> QuoteType
Returns the enum value of quote_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_quote_type(&mut self, value: QuoteType)
pub fn set_quote_type(&mut self, value: QuoteType)
Sets quote_type to the provided enum value.
Sourcepub fn auto_amend_strategy(&self) -> AmendMethodType
pub fn auto_amend_strategy(&self) -> AmendMethodType
Returns the enum value of auto_amend_strategy, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_auto_amend_strategy(&mut self, value: AmendMethodType)
pub fn set_auto_amend_strategy(&mut self, value: AmendMethodType)
Sets auto_amend_strategy to the provided enum value.
Sourcepub fn limit_price_type(&self) -> LimitPriceType
pub fn limit_price_type(&self) -> LimitPriceType
Returns the enum value of limit_price_type, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_limit_price_type(&mut self, value: LimitPriceType)
pub fn set_limit_price_type(&mut self, value: LimitPriceType)
Sets limit_price_type to the provided enum value.
Sourcepub fn order_condition(&self) -> OrderConditionType
pub fn order_condition(&self) -> OrderConditionType
Returns the enum value of order_condition, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_order_condition(&mut self, value: OrderConditionType)
pub fn set_order_condition(&mut self, value: OrderConditionType)
Sets order_condition to the provided enum value.
Sourcepub fn need_hedge(&self) -> bool
pub fn need_hedge(&self) -> bool
Returns the value of need_hedge, or the default value if need_hedge is unset.
Trait Implementations§
Source§impl Clone for SubmitOrderRequest
impl Clone for SubmitOrderRequest
Source§fn clone(&self) -> SubmitOrderRequest
fn clone(&self) -> SubmitOrderRequest
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 SubmitOrderRequest
impl Debug for SubmitOrderRequest
Source§impl Default for SubmitOrderRequest
impl Default for SubmitOrderRequest
§impl<'de> Deserialize<'de> for SubmitOrderRequest
impl<'de> Deserialize<'de> for SubmitOrderRequest
§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 SubmitOrderRequest
impl Message for SubmitOrderRequest
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 SubmitOrderRequest
impl PartialEq for SubmitOrderRequest
Source§fn eq(&self, other: &SubmitOrderRequest) -> bool
fn eq(&self, other: &SubmitOrderRequest) -> bool
self and other values to be equal, and is used by ==.§impl Serialize for SubmitOrderRequest
impl Serialize for SubmitOrderRequest
impl StructuralPartialEq for SubmitOrderRequest
Auto Trait Implementations§
impl Freeze for SubmitOrderRequest
impl RefUnwindSafe for SubmitOrderRequest
impl Send for SubmitOrderRequest
impl Sync for SubmitOrderRequest
impl Unpin for SubmitOrderRequest
impl UnsafeUnpin for SubmitOrderRequest
impl UnwindSafe for SubmitOrderRequest
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