pub enum Exchange {
NSE,
BSE,
NFO,
CDS,
BFO,
MCX,
GLOBAL,
NCO,
NSEIX,
}
Expand description
Stock exchanges supported by KiteConnect
This enum represents all major Indian stock exchanges and international markets that can be accessed through the KiteConnect API. Each exchange has specific trading rules, timings, and supported instrument types.
§Exchange Categories
- Equity: NSE, BSE, NSEIX - Cash market trading in stocks
- Derivatives: NFO, BFO - Futures and options trading
- Commodity: MCX, CDS, NCO - Commodity futures and options
- Global: GLOBAL - International markets and instruments
§Trading Hours
Most Indian exchanges operate from 9:15 AM to 3:30 PM IST on trading days, with pre-market and post-market sessions available on some exchanges.
§Example
use kiteconnect_async_wasm::models::common::Exchange;
let exchange = Exchange::NSE;
println!("Exchange: {}", exchange); // Prints: "NSE"
if exchange.is_equity() {
println!("This is an equity exchange");
}
Variants§
NSE
National Stock Exchange of India (NSE)
Primary equity exchange in India by volume. Supports:
- Equity cash market
- ETFs and mutual funds
- Government securities
BSE
Bombay Stock Exchange (BSE)
Asia’s oldest stock exchange. Supports:
- Equity cash market
- SME platform
- Government securities
NFO
NSE Futures & Options (NFO)
Derivatives segment of NSE. Supports:
- Index futures and options
- Stock futures and options
- Currency derivatives
CDS
Currency Derivatives Segment (CDS)
Currency trading segment. Supports:
- Currency futures
- Currency options
- Cross-currency pairs
BFO
BSE Futures & Options (BFO)
Derivatives segment of BSE. Supports:
- Index derivatives
- Stock derivatives
- Weekly options
MCX
Multi Commodity Exchange (MCX)
India’s largest commodity exchange. Supports:
- Precious metals (gold, silver)
- Base metals (copper, aluminum)
- Energy commodities (crude oil, natural gas)
- Agricultural commodities
GLOBAL
Global/International markets
Access to international instruments and markets. Availability depends on broker permissions.
NCO
National Commodity & Derivatives Exchange (NCDEX)
Agricultural commodity exchange. Supports:
- Agricultural futures
- Agricultural options
- Weather derivatives
NSEIX
NSE Indices Exchange (NSEIX)
Index-based trading platform. Supports:
- Index trading
- Specialized index products
Implementations§
Source§impl Exchange
impl Exchange
Sourcepub fn is_derivative(self) -> bool
pub fn is_derivative(self) -> bool
Check if exchange supports derivatives trading
Sourcepub fn is_commodity(self) -> bool
pub fn is_commodity(self) -> bool
Check if exchange supports commodity trading
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Exchange
impl<'de> Deserialize<'de> for Exchange
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>,
impl Copy for Exchange
impl Eq for Exchange
impl StructuralPartialEq for Exchange
Auto Trait Implementations§
impl Freeze for Exchange
impl RefUnwindSafe for Exchange
impl Send for Exchange
impl Sync for Exchange
impl Unpin for Exchange
impl UnwindSafe for Exchange
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,
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
key
and return true
if they are equal.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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.