Exchange

Exchange — The Gateway to Market Data

An Exchange in Vyapari represents a Stock Exchange — a marketplace where instruments are traded.
Each Exchange carries specific properties and metadata that define its trading behavior and schedule.


Exchange Properties

Every Exchange in Vyapari defines a few key attributes:

  • Name — e.g., National Stock Exchange of India
  • Acronym — e.g., NSE (Cash)
  • Trade Start Time — e.g., 09:15 for NSE (Cash)
  • Trade Stop Time — e.g., 15:30 for NSE (Cash)*

These properties are used internally by Vyapari to manage session timings, synchronization, and data processing.
You, as a user, generally won’t need to modify or interact with them directly.

Note "Behind the Scenes"

Vyapari automatically uses Exchange metadata to:
- Manage trading hours  
- Handle data feeds correctly  
- Align Bar Series with real-world market sessions  

Exchanges and Instruments

Every Exchange maintains its own list of tradable Instruments.
The same company’s stock can trade on multiple exchanges — for example, TCS trades on both NSE and BSE.

In Vyapari, these are treated as distinct Instruments:

  • TCS @ NSETCS @ BSE

Each Instrument is always aware of which Exchange it belongs to, ensuring accurate data handling and trade execution.


Exchanges and Watchlists

Watchlists in Vyapari are also Exchange-specific.
A Watchlist can only contain Instruments from one Exchange.

However, Vyapari provides a special Exchange named “All”, which allows you to create cross-exchange Watchlists.
In such Watchlists, each Instrument still retains knowledge of its own Exchange.

Tip "Example"

- `Watchlist: Tech-All`  
  - `TCS @ NSE`  
  - `INFY @ BSE`  
  - `WIPRO @ NSE`  

Even though they appear together, each Instrument’s Exchange data remains intact.

Summary

In short:

  • An Exchange defines where and when trading happens.
  • An Instrument knows which Exchange it belongs to.
  • A Watchlist groups Instruments, usually from a single Exchange — unless it’s using the special “All” type.

Together, these form the foundation of Vyapari’s market structure.


Supported Exchanges

  • NSE: The Cash segment of the National Stock Exchange of India
  • NSE F&O: The Futures & Options section of NSE
  • NSE CUR: The Currency (Forex) section of NSE
  • BSE: The Cash segment of the Bombay Stock Exchange
  • BSE F&O: The Futures & Options section of BSE
  • BSE CUR: The Currency (Forex) section of BSE
  • MCX: The Multi commodity Exchange (India)
  • All: Special Vyapari Exchange used to build multi exchange watchlists