pub struct OrderParams {Show 18 fields
pub trading_symbol: String,
pub exchange: Exchange,
pub transaction_type: TransactionType,
pub order_type: OrderType,
pub quantity: u32,
pub product: Product,
pub price: Option<f64>,
pub trigger_price: Option<f64>,
pub validity: Option<Validity>,
pub disclosed_quantity: Option<u32>,
pub tag: Option<String>,
pub squareoff: Option<f64>,
pub stoploss: Option<f64>,
pub trailing_stoploss: Option<f64>,
pub market_protection: Option<f64>,
pub iceberg_legs: Option<u32>,
pub iceberg_quantity: Option<u32>,
pub auction_number: Option<String>,
}
Expand description
Order placement parameters
Fields§
§trading_symbol: String
Trading symbol
exchange: Exchange
Exchange
transaction_type: TransactionType
Transaction type (BUY/SELL)
order_type: OrderType
Order type
quantity: u32
Quantity
product: Product
Product type
price: Option<f64>
Price (required for LIMIT orders)
trigger_price: Option<f64>
Trigger price (required for SL and SL-M orders)
validity: Option<Validity>
Validity
disclosed_quantity: Option<u32>
Disclosed quantity for iceberg orders
tag: Option<String>
Tag for the order
squareoff: Option<f64>
Square off value for bracket orders
stoploss: Option<f64>
Stoploss value for bracket orders
trailing_stoploss: Option<f64>
Trailing stoploss value for bracket orders
market_protection: Option<f64>
Market protection percentage
iceberg_legs: Option<u32>
ICEBERG legs for iceberg orders
iceberg_quantity: Option<u32>
ICEBERG quantity for iceberg orders
auction_number: Option<String>
Auction number
Trait Implementations§
Source§impl Clone for OrderParams
impl Clone for OrderParams
Source§fn clone(&self) -> OrderParams
fn clone(&self) -> OrderParams
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OrderParams
impl Debug for OrderParams
Source§impl<'de> Deserialize<'de> for OrderParams
impl<'de> Deserialize<'de> for OrderParams
Source§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
Auto Trait Implementations§
impl Freeze for OrderParams
impl RefUnwindSafe for OrderParams
impl Send for OrderParams
impl Sync for OrderParams
impl Unpin for OrderParams
impl UnwindSafe for OrderParams
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