Symbol Format
OpenAlgo Symbol Format Standardization
OpenAlgo standardizes financial instrument identification via a common symbol format across all exchanges and brokers, enhancing compatibility and simplifying automated trading. This uniform symbology eliminates the need for traders to adapt to varied broker-specific formats, streamlining algorithm development and execution. The format integrates key identifiers such as the base symbol, expiration date, and option type, ensuring consistent and error-free communication within trading systems. With OpenAlgo, developers can efficiently extend platform capabilities while traders focus on strategy, not syntax.
Equity Symbol Format
In the context of OpenAlgo, equity symbols are constructed based on the base symbol of the stock.
Examples:
NSE Equity for Infosys: Given the base symbol
INFY, the OpenAlgo symbol for Infosys on the National Stock Exchange (NSE) would beINFY.BSE Equity for Tata Motors: With the base symbol
TATAMOTORS, the symbol on the Bombay Stock Exchange (BSE) would beTATAMOTORS.NSE Equity for State Bank of India: If the base symbol is
SBIN, the OpenAlgo symbol on NSE would beSBIN.
Future Symbol Format
For futures, the OpenAlgo symbology specifies that the symbol should consist of the base symbol followed by the expiration date and "FUT" to denote that it is a futures contract.
Format: [Base Symbol][Expiration Date]FUT
Below are the extended examples for various futures contracts:
NSE Futures:
Example: For Bank Nifty futures expiring in April 2024, the symbol would be
BANKNIFTY24APR24FUT.
BSE Futures:
Example: For SENSEX futures expiring in April 2024, the symbol would be
SENSEX24APR24FUT.
Currency Futures:
Example: For USDINR currency futures expiring in May 2024, the symbol would be
USDINR10MAY24FUT.
MCX Futures:
Example: For crude oil futures on MCX expiring in May 2024, the symbol would be
CRUDEOILM20MAY24FUT.
IRC Futures:
Example: For government bond futures, specifically the 7.26% 2033 bond expiring in April 2024, the symbol in OpenAlgo would be
726GS203325APR24FUT.
Options Symbol Format
Options symbols in OpenAlgo are structured to include the base symbol, the expiration date, the strike price, and whether it's a Call or Put option.
Format: [Base Symbol][Expiration Date][Strike Price][Option Type]
Examples:
NSE Index Options:
Example: For a Nifty call option with a strike price of 20,800, expiring on 28th March 2024, the symbol would be
NIFTY28MAR2420800CE.
NSE Stock Options:
Example: For a Vedanta Limited (VEDL) call option with a strike price of 292.50, expiring on 25th April 2024, the symbol would be
VEDL25APR24292.5CE.
Currency Options:
Example: For a US Dollar to Indian Rupee (USDINR) call option with a strike price of 82, expiring on 19th April 2024, the symbol would be
USDINR19APR2482CE.
MCX Options:
Example: For a Crude Oil call option with a strike price of 6,750, expiring on 17th April 2024, the symbol would be
CRUDEOIL17APR246750CE.
IRC Options:
Example: For an Goverent bond (726GS2032) put option with a strike price of 97, expiring on 25th April 2024, the symbol would be
726GS203225APR2497PE.
Common NSE Index Symbols (Exchange Code : NSE_INDEX)
NIFTY NIFTYNXT50 FINNIFTY BANKNIFTY MIDCPNIFTY INDIAVIX HANGSENGBEESNAV NIFTY100 NIFTY200 NIFTY500 NIFTYALPHA50 NIFTYAUTO NIFTYCOMMODITIES NIFTYCONSUMPTION NIFTYCPSE NIFTYDIVOPPS50 NIFTYENERGY NIFTYFMCG NIFTYGROWSECT15 NIFTYGS10YR NIFTYGS10YRCLN NIFTYGS1115YR NIFTYGS15YRPLUS NIFTYGS48YR NIFTYGS813YR NIFTYGSCOMPSITE NIFTYINFRA NIFTYIT
NIFTYMEDIA NIFTYMETAL NIFTYMIDLIQ15 NIFTYMIDCAP100 NIFTYMIDCAP150 NIFTYMIDCAP50 NIFTYMIDSML400 NIFTYMNC NIFTYPHARMA NIFTYPSE NIFTYPSUBANK NIFTYPVTBANK NIFTYREALTY NIFTYSERVSECTOR NIFTYSMLCAP100 NIFTYSMLCAP250 NIFTYSMLCAP50 NIFTY100EQLWGT NIFTY100LIQ15 NIFTY100LOWVOL30 NIFTY100QUALTY30 NIFTY200QUALTY30 NIFTY50DIVPOINT NIFTY50EQLWGT NIFTY50PR1XINV NIFTY50PR2XLEV NIFTY50TR1XINV NIFTY50TR2XLEV NIFTY50VALUE20
Common BSE Index Symbols (Exchange Code : BSE_INDEX)
SENSEX BANKEX SENSEX50 BSE100 BSE150MIDCAPINDEX BSE200 BSE250LARGEMIDCAPINDEX BSE400MIDSMALLCAPINDEX BSE500 BSEAUTO BSECAPITALGOODS BSECARBONEX BSECONSUMERDURABLES BSECPSE BSEDOLLEX100 BSEDOLLEX200 BSEDOLLEX30 BSEENERGY BSEFASTMOVINGCONSUMERGOODS BSEFINANCIALSERVICES BSEGREENEX BSEHEALTHCARE BSEINDIAINFRASTRUCTUREINDEX BSEINDUSTRIALS BSEINFORMATIONTECHNOLOGY BSEIPO BSELARGECAP BSEMETAL BSEMIDCAP BSEMIDCAPSELECTINDEX BSEOIL&GAS BSEPOWER BSEPSU BSEREALTY BSESENSEXNEXT50 BSESMALLCAP BSESMALLCAPSELECTINDEX BSESMEIPO BSETECK BSETELECOM
Exchange Codes
The supported exchange symbol formats in OpenAlgo allow for an identification system that denotes where the instrument is traded, along with specific details that vary by instrument type:
NSE:
NSEfor National Stock Exchange equities.BSE:
BSEfor Bombay Stock Exchange equities.NFO:
NFOfor NSE Futures and Options.BFO:
BFOfor BSE Futures and Options.BCD:
BCDfor BSE Currency Derivatives.CDS:
CDSfor NSE Currency Derivatives.MCX:
MCXfor commodities traded on the Multi Commodity Exchange.NSE_INDEX:
NSE_INDEXfor indices on the National Stock Exchange.BSE_INDEX:
BSE_INDEXfor indices on the Bombay Stock Exchange.
Database Schema (Common Symbols)
For developers, understanding the database schema is essential for managing data effectively within OpenAlgo:
id: A unique identifier for each record in the database.
symbol: The standard trading symbol of the instrument as per OpenAlgo's symbology.
brsymbol: The broker-specific symbol for the instrument, if applicable.
name: The common name of the instrument (e.g., the company name for equities).
exchange: The standard exchange identifier code (e.g NSE, BSE, MCX CDS etc) where the instrument is traded as per OpenAlgo's symbology.
brexchange: The specific broker exchange identifier, if different from the standard exchange code.
token: A unique token or code assigned to the instrument, possibly for internal tracking or broker-specific identification.
expiry: The expiration date for derivatives contracts, formatted as per broker/exchange standards.
strike: The strike price for options contracts.
lotsize: The standardized lot size for the instrument, particularly relevant for derivatives trading.
instrumenttype: The type of instrument (e.g., equity, future, option).
tick_size: The minimum price movement of the instrument on the exchange.

This schema captures both the standardized OpenAlgo symbology and the potentially divergent broker-specific information, enabling algorithms and traders to operate across multiple platforms without confusion. It allows for the storage of instrument metadata necessary for trading activities and ensures that all financial instruments are identifiable and their market details readily accessible.
Last updated