pub enum ProductType {
Cnc,
Intraday,
Margin,
Co,
Bo,
Mtf,
}Expand description
Product type for an order.
This determines how the position is held and margined by the broker.
Values map directly to the strings expected by Fyers.
Variants§
Cnc
CNC (Cash and Carry)
Delivery-based equity trading. Positions are carried overnight until manually closed.
Intraday
Intraday
Positions must be closed within the same trading day. Lower margin requirements compared to CNC.
Margin
Margin
Margin trading for derivative segments (F&O).
Co
Cover Order (CO)
Intraday order that requires a stop-loss. Provides higher leverage due to mandatory risk control.
Bo
Bracket Order (BO)
Order with both stop-loss and take-profit. Automatically exits the position when either level is hit.
Mtf
Margin Trading Facility (MTF)
Broker-funded leveraged delivery positions for approved stocks.
Trait Implementations§
Source§impl Clone for ProductType
impl Clone for ProductType
Source§fn clone(&self) -> ProductType
fn clone(&self) -> ProductType
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 ProductType
impl Debug for ProductType
Source§impl Hash for ProductType
impl Hash for ProductType
Source§impl PartialEq for ProductType
impl PartialEq for ProductType
Source§impl Serialize for ProductType
impl Serialize for ProductType
impl Copy for ProductType
impl Eq for ProductType
impl StructuralPartialEq for ProductType
Auto Trait Implementations§
impl Freeze for ProductType
impl RefUnwindSafe for ProductType
impl Send for ProductType
impl Sync for ProductType
impl Unpin for ProductType
impl UnsafeUnpin for ProductType
impl UnwindSafe for ProductType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.