• Home
  • Products
    • Login
    • Product Info
    • User Guide
    • Pricing
  • Services
    • Stock Brokers
    • Freelancers
  • Help
    • Documentation
    • Knowledge Base
    • FAQ
  • Company
    • About Us
    • Contact Us
    • Terms & Conditions
  • Home
  • Products
    • Login
    • Product Info
    • User Guide
    • Pricing
  • Services
    • Stock Brokers
    • Freelancers
  • Help
    • Documentation
    • Knowledge Base
    • FAQ
  • Company
    • About Us
    • Contact Us
    • Terms & Conditions

AutoTrader Web

home/Documentation/AutoTrader Web
Expand All Collapse All
  • Index
  • Getting Started
  • Portfolio Management System (PMS)
  •  Copy Trading (Master-Child Auto-Copy)
    • Master-Child Copy - Performance
  • PMS vs Master-Child
  • Trading View
  •  Supported Brokers
    • Symphony XTS
    • Zerodha
    • Angel Broking
    • Dhan
    • Aliceblue
    • Fyers
    • Nuvama
    • IIFL
    • Zebu
    • Finvasia
    • Motilal Oswal
    • Kotak
    • Mastertrust
    • Five Paisa
    • Choice Broking
    • FlatTrade
    • Tradejini
    • Upstox
    • SAS Online
    • Profitmart
  •  Client Setup
    • Desktop Client
    • AmiBroker Library
    • Excel Library or Tools
    • Java Library
    • MetaTrader Library
    • C# Library
    • Python Library
    • HTTP REST
  •  User Interface
    • User Registration
    •   Settings
      • General
      • Trading Accounts
      • Pseudo Accounts
      • Group Accounts
      • API Key
    •   AutoTrader
      • Activity
      • Instruments
    •   Trading
      • Summary
      • Positions
      • Orders
      • Margins
      • Holdings
      • Trade
    •   User
      • Account
      • Profile
  •  API (Application Programming Interface)
    • Place Regular Order
    • Place Cover Order
    • Place Bracket Order
    • Place Advanced Order
    • Cancel Order
    • Cancel Child Orders
    • Cancel All Orders
    • Modify Order
    • Modify Order Price
    • Modify Order Quantity
    • Square-off Position
    • Square-off Portfolio
    • Read Orders
    • Read Positions
    • Read Margins
    • Read Holdings
    • Read Portfolio Summary
    • Fetch All Trading Accounts
    • Create or Update Trading Account
    • Validate Trading Account Credentials
    • API Parameters
    • API Rate Limits
    • Email Limits
    • Postman
  • Pricing
  • Precautions
  •  Broker Independence
    • API Functions
    • Pseudo Account
    • Instruments (Trading Symbols)
  • Quantity Multiplier
  • Architecture

Instruments (Trading Symbols)

16033 views December 24, 2024 Pritesh 15

If you are someone who has worked on automating a trading strategy across different stock brokers, then you would know that the trading symbols used by stock brokers differs from one broker to another. This is mostly applicable for derivative symbols. Let us take a look at an example.

Example

Let’s consider the derivative we want to trade is a call option of BANKNIFTY with a strike price of 40000 and expiry date of 30-Dec-2021. Now the symbol that is used to identify this derivative contract, differs from broker to broker. See below table:

BrokerSymbol
ZERODHABANKNIFTY21DEC40000CE
UPSTOXBANKNIFTY21DEC40000CE
ALICEBLUEBANKNIFTY DEC 40000.0 CE
FINVASIABANKNIFTY21DEC40000CE
AUTOTRADERBANKNIFTY_30-DEC-2021_CE_40000

The different broker mapping for a sample BANKNIFTY option example can be seen here.

If we use these broker specific symbols in our strategy code, then changing a broker would require changing strategy code to use symbol format as per new broker. To overcome this problem, we built independent instrument format (highlighted above).

If we use these broker specific symbols in our strategy code, then changing a broker would require changing strategy code to use symbol format as per new broker. To overcome this problem, we built independent instrument format (highlighted above).

How does it work?

We use a simple and standard format to create symbols, which will be explained later. Our users use this symbol in their strategy code. Our systems internally have mappings that help it pick up broker specific symbol.

We have even created a free to use public tool for searching instruments (symbols).

You can use this tool to search for trading symbols of brokers like Supports leading Indian Stock Brokers etc.

Now let us understand it starting from code.

placeOrder("PSEUDO_ACC_ID", "NSE", "BANKNIFTY_30-DEC-2021_CE_40000", "BUY", "LIMIT", "INTRADAY", 25, 230.55, 0);
  1. The API user uses broker independent symbol in his strategy code
  2. Our system checks which trading account is mapped to “PSEUDO_ACC_ID”
  3. From the trading account, our system finds out which stock broker it belongs to
  4. The system then looks internal mapping table to find broker specific symbol

As a result, changing stock brokers does not require changing instrument symbols in strategy code.

Broker Independent Symbol Format

TypeFormatExample
EquitySYMBOLSBIN
FutureSYMBOL_DD-MMM-YYYY_FUTBANKNIFTY_25-JUN-2020_FUT
OptionSYMBOL_DD-MMM-YYYY_[CE/PE]_STRIKEBANKNIFTY_28-MAY-2020_CE_25000

Was this helpful?

15 Yes  2 No
Related Articles
  • Master-Child Copy – Performance
  • Tradejini
  • Dhan
  • FlatTrade
  • Supported Brokers
  • Symphony XTS

© 2025 Stocks Developer. All Rights Reserved.