Skip to main content

Annexure

There are various enums which are used in APIs. The details of these could be found below.

Exchanges

These are the possible value of exchanges used in API as integer.
ExchangeNameValueDescription
NSE1NSE cash market
NFO2NSE F&O market
BSE3BSE cash market

Order status

These are the possible value of order status as integer used in API as integer.
Order statusValueDescription
CREATED1order is created
OPEN3Order is sent to Order management system
PENDING4Order is sent to exchange and in pending status.
COMPLETED5Order is completed
CANCELLED6Order is cancelled
REJECTED7Order is rejected. You could see the rejection reason to know the cause
INVALID_STATUS8Invalid order status
TRIGGER_PENDING10a stoploss order is sent to exchange and is pending

Order validity

These are the possible validities as integer which users could choose while placing/modifying order.
Order validityValueDescription
DAY1Valid for a day
IOC2Immediate or Cancelled
EOS2Valid till the end of the session
GTT3Valid until triggered

Price type

These are the possible price types as integer which users can choose while placing/modifying order.
Price typeValueDescription
LIMIT1Order is placed at a fixed price.know more
MARKET2Order is placed at Market rate know more
STOPLOSSLIMIT3Order is placed as limit when stoploss is triggered. know more
STOPLOSSMARKET4Order is placed as market when stoploss is triggered.know more
SPREAD5price type when spread order is placed
TWOLEGGEDORDER6price type when two legged order is placed. know more
THREELEGGEDORDER7price type when three legged order is placed. know more

Order type

These are the possible options for Order types available while placing order as integer.
Order typeValueDescription
CNC1Carry forward order in equity segment
INTRADAY2Intraday Orders
NRML3Carry forward order in F&O segment
CO4Cover Order are intraday orders with a stoploss
BO5Bracket Order are intrdaya order with a target and stoploss

Transaction type

Trasaction type determines whether order is BUY or SELL and are as integer.
Transaction typeValueDescription
BUY1Buy order
SELL2Sell order

Option type

These are the possible options types present in F&O segment of NSE as integer.
Option typeValueDescription
CE1Call option
PE2Put option

Order Source

These are the possible order source from which order is recieved from as integer.
Order sourceValueDescription
MOB1Order coming from Mobile
WEB2Order coming from Web
TT3Order coming from Trading terminal
API4Order coming from API
OTHERS5Order coming from other source

Order Source

These are the possible subscriptions type available to subscribe/unsubscribe to message types in websocket.
subscription typeValueDescription
ttsubscribe marketwatch
tutunsubscribe marketwatch
d2subscribe snapquote
ud2unsubscribe snapquote
o3subscribe Order updates
uo3unsubscribe Order updates