pub struct PlaceOrderRequest {Show 16 fields
pub dhan_client_id: String,
pub correlation_id: Option<String>,
pub transaction_type: TransactionType,
pub exchange_segment: ExchangeSegment,
pub product_type: ProductType,
pub order_type: OrderType,
pub validity: Validity,
pub security_id: String,
pub quantity: u64,
pub disclosed_quantity: Option<u64>,
pub price: Option<f64>,
pub trigger_price: Option<f64>,
pub after_market_order: Option<bool>,
pub amo_time: Option<AmoTime>,
pub bo_profit_value: Option<f64>,
pub bo_stop_loss_value: Option<f64>,
}Expand description
Request body for placing a new order.
Used by POST /v2/orders and POST /v2/orders/slicing.
Fields§
§dhan_client_id: StringUser-specific identification generated by Dhan.
correlation_id: Option<String>User/partner generated tracking ID.
transaction_type: TransactionTypeBuy or Sell.
exchange_segment: ExchangeSegmentExchange & segment.
product_type: ProductTypeProduct type.
order_type: OrderTypeOrder type.
validity: ValidityOrder validity.
security_id: StringExchange standard security ID.
quantity: u64Number of shares.
disclosed_quantity: Option<u64>Number of shares visible (>30% of quantity).
price: Option<f64>Price at which order is placed.
trigger_price: Option<f64>Trigger price for SL/SL-M orders.
after_market_order: Option<bool>Flag for after-market orders.
amo_time: Option<AmoTime>Timing for after-market order.
bo_profit_value: Option<f64>Bracket order target price change.
bo_stop_loss_value: Option<f64>Bracket order stop-loss price change.
Trait Implementations§
Source§impl Clone for PlaceOrderRequest
impl Clone for PlaceOrderRequest
Source§fn clone(&self) -> PlaceOrderRequest
fn clone(&self) -> PlaceOrderRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlaceOrderRequest
impl Debug for PlaceOrderRequest
Auto Trait Implementations§
impl Freeze for PlaceOrderRequest
impl RefUnwindSafe for PlaceOrderRequest
impl Send for PlaceOrderRequest
impl Sync for PlaceOrderRequest
impl Unpin for PlaceOrderRequest
impl UnsafeUnpin for PlaceOrderRequest
impl UnwindSafe for PlaceOrderRequest
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