pub struct OrderMarginRequest {
pub exchange: Exchange,
pub trading_symbol: String,
pub transaction_type: TransactionType,
pub variety: Variety,
pub product: Product,
pub order_type: OrderType,
pub quantity: u32,
pub price: Option<f64>,
pub trigger_price: Option<f64>,
}
Expand description
Request item for order/basket margin calculation APIs
Fields§
§exchange: Exchange
Name of the exchange
trading_symbol: String
Exchange tradingsymbol of the instrument
transaction_type: TransactionType
BUY or SELL
variety: Variety
Order variety (regular, amo, co, iceberg, auction)
product: Product
Margin product to use for the order
order_type: OrderType
Order type (MARKET, LIMIT, SL, SL-M)
quantity: u32
Quantity of the order
price: Option<f64>
Price at which the order is going to be placed (for LIMIT orders)
trigger_price: Option<f64>
Trigger price (for SL, SL-M, CO orders)
Trait Implementations§
Source§impl Clone for OrderMarginRequest
impl Clone for OrderMarginRequest
Source§fn clone(&self) -> OrderMarginRequest
fn clone(&self) -> OrderMarginRequest
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 OrderMarginRequest
impl Debug for OrderMarginRequest
Source§impl<'de> Deserialize<'de> for OrderMarginRequest
impl<'de> Deserialize<'de> for OrderMarginRequest
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 OrderMarginRequest
impl RefUnwindSafe for OrderMarginRequest
impl Send for OrderMarginRequest
impl Sync for OrderMarginRequest
impl Unpin for OrderMarginRequest
impl UnwindSafe for OrderMarginRequest
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