Skip to content

Orders

Type of Orders

  • LIMIT - Limit orders are orders where you strictly define the purchase or sell price. Whenever there is available quantity for the given limit price the order will get executed at that price. There is a chance that your limit price order may not get executed at all or may get executed partially in case adequate quantity is not available at the specified Limit price.

  • MARKET - Market orders will place an order which is nearly guaranteed to get executed at the best available price in market. What this means is that if you are trying to buy then you will get whatever quantity is available in the market at the lowest available sell price. If you are trying to sell you will get the quantity at the highest available buy price.

  • STOP LIMIT - This is a stop loss limit order. It mainly contains of 2 parts to consider there is a limit price and there is a trigger price. The trigger price is the price which needs to be breached (either on high side in case of Stop Loss Sell orders, or on lower side in case of Stop Loss Buy orders). Once the trigger price is breached then an order is placed for your required action (i.e. buy or sell) at the Limit price similar to a Limit order.

  • STOP MARKET - This is a stop loss market order. Think of it as a stop loss limit order without requiring to set a limit price. Whenever the trigger price is breached then the system will place a market order which is almost guaranteed to get executed.

Product Types

  • BO - This is a 3 leg order where you can specify your original order, a profit booking order and a stop loss order all at one go. Here the main functionality will involve placing a limit order (either buy or sell) and then specifying the trigger prices at which you will look to book profit and limit your loss, these will be specified in the form of trigger prices and will end up placing market orders squaring off whenever a particular trigger is breached. In case of one of the trigger orders getting placed the pending trigger order will get auto cancelled. So in case you placed a bracket order for reliance industries with 1000 as limit and 100 as trigger for profit and 50 as trigger for stop loss, it means that in case the LTP goes above 1100 or goes below 950 the respective profit or stop loss trigger will get invoked and close out the entire position. Please note that bracket orders are intraday orders.

  • CO - Pay a fraction of total order amount (10% or Rs. 20) to own the shares. In case it falls below the following price, sell it off to prevent losing money from sharp price drops.

  • CNC - Pay total order amount to own the shares.

  • MIS - Pay a fraction of total order amount (10% or Rs. 20) to own the shares. You can hold the stocks till market closes today (3:15pm) or sell it off anytime before. The positions taken in MIS, will be squared off on the same day by the client or till the exchange squared off.

  • NRML - Pay a fraction of total order amount now and pay the remaining amount in 5 days to own the shares.

  • MTF - Pay a fraction of total order amount now and pay the remaining at a later date at a fixed interest rate.

Validity

  • DAY - Order will be placed and valid throughout the market hours including the post closing session (9AM to 4PM).

  • IOC - Order will be placed to exchange and executed if matching price and quantity is found at the time of order placement, if not executed, the order will be immediately cancelled.

  • EOS - Order will be placed and valid throughout the market hours (9.15AM to 3.30PM). Order will not be valid for the post closing session.

  • GTC - GTC order is active until the trade is executed or trader cancels the order.

  • GTD - GTD orders remains active until a user specified date/7 days whichever is earlier or it has been filled or cancelled.

Place Trade

Order placement refers to the function by which you as a user can place an order to respective exchanges. Order placement allows you to set various parameters like the symbol, action (buy, sell, stop loss buy, stop loss sell), product type, validity period and few other custom parameters and then finally place the order. Any order placed will first go through a risk validation in our internal systems and will then be sent to exchange. Usually any order successfully placed will have OrderID and ExchangeOrderID fields populated. If ExchangeOrderID is blank it usually means that the order has not been sent and accepted at respective exchange.

PlaceTrade(Trading_Symbol, Exchange, Action, Duration, Order_Type, Quantity, Streaming_Symbol, Limit_Price, Disclosed_Quantity='0', TriggerPrice='0', ProductCode='CNC')
Parameter
Trading_Symbol Trading Symbol of the Scrip, to be obtained from Contract file downloaded
Exchange Name of the exchange, BSE/NSE
Action BUY/SELL
Duration Order validity, DAY/IOC/EOS(for BSE)
Order_Type Order type, LIMIT/MARKET/STOP_LIMIT/STOP_MARKET
Quantity Quantity of the scrip to transact
Streaming_Symbol exchangetoken to be obtained from Contract file downloaded
Limit_Price Limit price of scrip
Disclosed_Quantity Quantity to be disclosed publicly while order placement (default 0)
TriggerPrice Trigger Price applicable for SL/SL-M Orders (default 0)
ProdcutCode Margin product to use for the order (margins are blocked based on this), CNC/MIS/NRML/MTF (default CNC)
{
  "appID": "663051cfbac7d699a1c59b96048b50e7",
  "config": {},
  "data": {
    "type": "placeTradeDao",
    "msg": "Your order has been placed successfully!.",
    "oid": "210415xxxxxxxxx"
  },
  "msgID": "76caf2d6-0d34-4b55-ab69-0693ae63c656",
  "srvTm": 1618475056294
}

Modify Order

Modify orders allows a user to change certain aspects of the order once it is placed. Depending on the execution state of the order (i.e. either completely open, partially open) there are various levels of modification allowed. As a user you can edit the product type, order quantity, order validity and certain other parameters. Please note that any modifications made to an order will be sent back to the risk system for validation before being submitted and there are chances that an already placed order may get rejected in case of a modification.

ModifyTrade(Trading_Symbol, Exchange, Action, Duration, Order_Type, Quantity, Streaming_Symbol, Limit_Price, Order_ID, Disclosed_Quantity='0', TriggerPrice='0', ProductCode='CNC')
Parameter
Trading_Symbol Trading Symbol of the Scrip, to be obtained from Contract file downloaded
Exchange Name of the exchange, BSE/NSE
Action BUY/SELL
Duration Order validity, DAY/IOC/EOS(for BSE)
Order_Type Order type, LIMIT/MARKET/STOP_LIMIT/STOP_MARKET
Quantity Quantity of the scrip to transact
Streaming_Symbol exchangetoken to be obtained from Contract file downloaded
Limit_Price Limit price of scrip
Order_ID Parent order Id
Disclosed_Quantity Quantity to be disclosed publicly while order placement (default 0)
TriggerPrice Trigger Price applicable for SL/SL-M Orders (default 0)
ProdcutCode Margin product to use for the order (margins are blocked based on this), CNC/MIS/NRML/MTF (default CNC)
{
  "appID": "663051cfbac7d699a1c59b96048b50e7",
  "config": {},
  "data": {
    "type": "modifyTradeDao",
    "msg": "Your order has been modified succesfully!.",
    "oid": "2104300000XXXXX"
  },
  "msgID": "e0df9fd7-ea39-4f89-a5e6-b41d11d8b996",
  "srvTm": 1619774403060
}

Cancel Order

An order can be cancelled, as long as on order is open or pending in the system

CancelTrade(OrderId)
Parameter
OrderId Parent order Id
Exchange Name of the exchange, BSE/NSE
Order_Type Order type, LIMIT/MARKET/STOP_LIMIT/STOP_MARKET
ProdcutCode Margin product to use for the order (margins are blocked based on this), CNC/MIS/NRML/MTF (default CNC)
{
   "appID":"663051cfbac7d699a1c59b96048b50e7",
   "config":{},
   "data":{
      "type":"cancelTradeDao",
      "msg":"Your order has been cancelled successfully!.",
      "oid":"2104230000xxxxx"
   },
   "msgID":"ddf9898d-8de5-4b0c-96e6-730db638f020",
   "srvTm":1619185977244
}

After market order

After market order or AMO in short refers to orders which can be placed once the markets or exchanges are closed for trading. You can place AMO post market hours which will result in the order in question being placed automatically by 9:15 AM - 9:30 AM the next business day. AMO orders usually need to be limit orders in order to prevent inadvertent execution in case of adverse price movement in markets at beginning of day. AMO is a useful way to place your orders in case you do not have time to place orders during market hours.

Get AMO status

Before placing AMO order, you can check if AMO orders can be placed at this time using -

GetAMOStatus()
{
  "eq": {
    "appID": "663051cfbac7d699a1c59b96048b50e7",
    "config": {},
    "data": {
      "type": "commAMODao",
      "sts": "true"
    },
    "msgID": "40ce52ea-d3ef-4ee1-89b0-7dada799aa61",
    "srvTm": 1620033570265
  },
  "comm": {
    "appID": "663051cfbac7d699a1c59b96048b50e7",
    "config": {},
    "data": {
      "type": "commAMODao",
      "sts": "true"
    },
    "msgID": "b2a2efc4-2c38-41cc-8e32-25011986d204",
    "srvTm": 1620033570481
  }
}

Place After Market Order

PlaceAMOTrade(Trading_Symbol, Exchange, Action, Duration, Order_Type, Quantity, Streaming_Symbol, Limit_Price, Disclosed_Quantity='0', TriggerPrice='0', ProductCode='CNC')
Parameter
Trading_Symbol Trading Symbol of the Scrip, to be obtained from Contract file downloaded
Exchange Name of the exchange, BSE/NSE
Action BUY/SELL
Duration Order validity, DAY/IOC/EOS(for BSE)
Order_Type Order type, LIMIT/MARKET/STOP_LIMIT/STOP_MARKET
Quantity Quantity of the scrip to transact
Streaming_Symbol exchangetoken to be obtained from Contract file downloaded
Limit_Price Limit price of scrip
Disclosed_Quantity Quantity to be disclosed publicly while order placement (default 0)
TriggerPrice Trigger Price applicable for SL/SL-M Orders (default 0)
ProdcutCode Margin product to use for the order (margins are blocked based on this), CNC/MIS/NRML/MTF (default CNC)
{
  "appID": "663051cfbac7d699a1c59b96048b50e7",
  "config": {},
  "data": {
    "type": "placeTradeDao",
    "msg": "Your AMO order has been placed succesfully!.",
    "oid": "2105030000XXXXX"
  },
  "msgID": "c79658bd-4374-4acb-ab35-0b5bcfdf0486",
  "srvTm": 1620034205890
}

Modify After Market Order

ModifyAMOTrade(Trading_Symbol, Exchange, Action, Duration, Order_Type, Quantity, Streaming_Symbol, Limit_Price, Order_ID, Disclosed_Quantity='0', TriggerPrice='0', ProductCode='CNC')
Parameter
Trading_Symbol Trading Symbol of the Scrip, to be obtained from Contract file downloaded
Exchange Name of the exchange, BSE/NSE
Action BUY/SELL
Duration Order validity, DAY/IOC/EOS(for BSE)
Order_Type Order type, LIMIT/MARKET/STOP_LIMIT/STOP_MARKET
Quantity Quantity of the scrip to transact
Streaming_Symbol exchangetoken to be obtained from Contract file downloaded
Limit_Price Limit price of scrip
Order_ID Parent order Id
Disclosed_Quantity Quantity to be disclosed publicly while order placement (default 0)
TriggerPrice Trigger Price applicable for SL/SL-M Orders (default 0)
ProdcutCode Margin product to use for the order (margins are blocked based on this), CNC/MIS/NRML/MTF (default CNC)
{
  "appID": "663051cfbac7d699a1c59b96048b50e7",
  "config": {},
  "data": {
    "type": "modifyTradeDao",
    "msg": "Your AMO order has been modified succesfully!.",
    "oid": "2105030000XXXXX"
  },
  "msgID": "65373a86-7aa4-433f-a742-9303d9ffc7d3",
  "srvTm": 1620036042508
}

Cancel After Market Order

CancelAMOTrade(OrderId)
Parameter
OrderId Parent order Id
Exchange Name of the exchange, BSE/NSE
Order_Type Order type, LIMIT/MARKET/STOP_LIMIT/STOP_MARKET
ProdcutCode Margin product to use for the order (margins are blocked based on this), CNC/MIS/NRML/MTF (default CNC)
{
  "appID": "663051cfbac7d699a1c59b96048b50e7",
  "config": {},
  "data": {
    "type": "cancelTradeDao",
    "msg": "Your AMO order has been cancelled successfully!.",
    "oid": "2105030000XXXXX"
  },
  "msgID": "2ab8368e-352c-4604-9e70-66db586fe864",
  "srvTm": 1620036273250
}

Place Basket Order

PlaceBasketTrade(OrderList)

Basket order allows user to place multiple orders at one time. User can place orders for multiple scrips all at once. One just creates multiple orders for same or different securities and club these orders together to be placed in one go. This helps save time.

OrderList : List of Order to be placed, Refer: Order Class

Order

class Order(Exchange, TradingSymbol, StreamingSymbol, Action, ProductCode, OrderType, Duration, Price, TriggerPrice, Quantity, DisclosedQuantity, GTDDate, Remark)
Parameter
Exchange Name of the exchange, BSE/NSE
Trading_Symbol Trading Symbol of the Scrip, to be obtained from Contract file downloaded
Streaming_Symbol exchangetoken to be obtained from Contract file downloaded
Action BUY/SELL
ProdcutCode Margin product to use for the order (margins are blocked based on this), CNC/MIS/NRML (default CNC)
OrderType Order type, LIMIT/MARKET/STOP_LIMIT/STOP_MARKET
Duration Order validity, DAY/IOC
Price Limit price of scrip
TriggerPrice Trigger Price applicable for SL/SL-M Orders (default 0)
Quantity Quantity of the scrip to transact
Disclosed_Quantity Quantity to be disclosed publicly while order placement (default 0)
GTDDate Good Till Date in dd/MM/yyyy format
Remark remark
{
  "appID": "663051cfbac7d699a1c59b96048b50e7",
  "config": {},
  "data": {
    "type": "placeTradeDao",
    "msg": "Your order has been placed successfully!."
  },
  "msgID": "7e974851-3a4e-4abe-8c06-e158ea269abc",
  "srvTm": 1620032799889
}

Place Cover trade Order

PlaceCoverTrade(Trading_Symbol, Exchange, Action, Duration, Order_Type, Quantity, Streaming_Symbol, Limit_Price, Disclosed_Quantity='0', TriggerPrice='0', ProductCode='CNC')

A Cover Order is an order type for intraday trades. A Cover Order lets you to place trades with very high leverage of up to 20 times the available limits (Cash/Stocks collateral limits)

Pay a fraction of total order amount (10% or Rs. 20) to own the shares. In case it falls below the following price, sell it off to prevent losing money from sharp price drops.

Parameter
Trading_Symbol Trading Symbol of the Scrip, to be obtained from Contract file downloaded
Exchange Name of the exchange, BSE/NSE
Action BUY/SELL
Duration Order validity, DAY/IOC/EOS(for BSE)
Order_Type Order type, LIMIT/MARKET/STOP_LIMIT/STOP_MARKET
Quantity Quantity of the scrip to transact
Streaming_Symbol exchangetoken to be obtained from Contract file downloaded
Limit_Price Limit price of scrip
Disclosed_Quantity Quantity to be disclosed publicly while order placement (default 0)
TriggerPrice Trigger Price applicable for SL/SL-M Orders (default 0)
ProdcutCode Margin product to use for the order (margins are blocked based on this), CNC/MIS/NRML/MTF (default CNC)
{
  "appID": "663051cfbac7d699a1c59b96048b50e7",
  "config": {},
  "data": {
    "type": "placeTradeDao",
    "msg": "Your Cover order has been placed successfully!.",
    "oid": "2104300000XXXXX"
  },
  "msgID": "6de3520d-908e-4d8b-9887-169f252f3044",
  "srvTm": 1619772648592
}

Modify Cover Order

ModifyCoverTrade(Trading_Symbol, Exchange, Action, Duration, Order_Type, Quantity, Streaming_Symbol, Limit_Price, Order_ID, Disclosed_Quantity='0', TriggerPrice='0', ProductCode='CNC')
Parameter
Trading_Symbol Trading Symbol of the Scrip, to be obtained from Contract file downloaded
Exchange Name of the exchange, BSE/NSE
Action BUY/SELL
Duration Order validity, DAY/IOC/EOS(for BSE)
Order_Type Order type, LIMIT/MARKET/STOP_LIMIT/STOP_MARKET
Quantity Quantity of the scrip to transact
Streaming_Symbol exchangetoken to be obtained from Contract file downloaded
Limit_Price Limit price of scrip
Order_ID Parent order Id
Disclosed_Quantity Quantity to be disclosed publicly while order placement (default 0)
TriggerPrice Trigger Price applicable for SL/SL-M Orders (default 0)
ProdcutCode Margin product to use for the order (margins are blocked based on this), CNC/MIS/NRML/MTF (default CNC)
{
  "appID": "663051cfbac7d699a1c59b96048b50e7",
  "config": {},
  "data": {
    "type": "modifyTradeDao",
    "msg": "Your Cover order has been modified successfully!.",
    "oid": "2104300000XXXXX"
  },
  "msgID": "a65b9527-1918-496a-9df9-755e2cd336c0",
  "srvTm": 1619776170231
}

Exit Cover Order

ExitCoverTrade(OrderId)

This functionality allows you to completely exit a cover order which includes cancelling any unplaced orders and also completely squaring off any executed orders. For the orders which were executed it will usually modify the stop loss order leg and place it as a market order to ensure execution, while any non executed quantity order will get cancelled.

Parameter
OrderId Parent order Id
{
  "appID": "663051cfbac7d699a1c59b96048b50e7",
  "config": {},
  "data": {
    "type": "cancelTradeDao",
    "msg": "You have exited from the order successfully!."
  },
  "msgID": "99c9722b-5f26-47e3-93d5-c68ceca143d0",
  "srvTm": 1619776437807
}

Place Bracket Order

This is a 3 leg order where you can specify your original order, a profit booking order and a stop loss order all at one go. Here the main functionality will involve placing a limit order (either buy or sell) and then specifying the trigger prices at which you will look to book profit and limit your loss, these will be specified in the form of trigger prices and will end up placing market orders squaring off whenever a particular trigger is breached. In case of one of the trigger orders getting placed the pending trigger order will get auto cancelled. So in case you placed a bracket order for reliance industries with 1000 as limit and 100 as trigger for profit and 50 as trigger for stop loss, it means that in case the LTP goes above 1100 or goes below 950 the respective profit or stop loss trigger will get invoked and close out the entire position. Please note that bracket orders are intraday orders.

PlaceBracketTrade(Exchange, Streaming_Symbol, Transaction_Type, Quantity, Duration, Disclosed_Quantity, Limit_Price, Target, StopLoss, Trailing_Stop_Loss='Y', Trailing_Stop_Loss_Value='1')

Parameter
Exchange Name of the exchange, BSE/NSE
Streaming_Symbol exchangetoken to be obtained from Contract file downloaded
Transaction_Type BUY/SELL
Quantity Quantity of the scrip to transact
Duration Order validity, DAY/IOC/EOS(for BSE)
Disclosed_Quantity Quantity to be disclosed publicly while order placement (default 0)
Limit_Price Limit price of scrip
Target Absolute Target value, e.g. 5, if you want to keep the target price Rs. 5 over the Limit price
StopLoss Absolute Stop Loss value, e.g. 3, if you want to keep the StopLoss price Rs. 5 below the Limit price
Trailing_Stop_Loss Y/N (default Y)
Trailing_Stop_Loss_Value Number (default 1)
{
  "appID": "663051cfbac7d699a1c59b96048b50e7",
  "config": {},
  "data": {
    "type": "placeTradeDao",
    "msg": "Your order has been placed successfully!.",
    "oid": "2104300000XXXXX"
  },
  "msgID": "6792ff21-41c1-42d3-9aa3-e4beb705130b",
  "srvTm": 1619777987665
}

Exit Bracket Order

ExitBracketTrade(Order_Id, Syom_Id, Status)

Similar to Exit Cover order the functionality will ensure that any non executed open order will be cancelled. However for any orders which are executed it will automatically cancel one of the target or stop loss legs and modify the other leg to be placed as a market order. This will ensure that any executed orders will be squared off in position terms.

Parameter
OrderId Order Id
Syom_Id Syom_Id for leg orders. Can be obtained post placing Bracket Order from OrderBook
Status Current Status of the Bracket Order
{
  "appID": "663051cfbac7d699a1c59b96048b50e7",
  "config": {},
  "data": {
    "type": "cancelTradeDao",
    "msg": "Your order has been cancelled successfully!."
  },
  "msgID": "00dc4e1c-e8e4-4d4d-b1c9-a1e098b48a66",
  "srvTm": 1619778416757
}

Place GTC/GTD Order

PlaceGtcGtdTrade(Trading_Symbol, Exchange, Action, Duration, Order_Type, Quantity, Limit_Price, Product_Code, DTDays)

Good Till Cancel (GTC) orders refers to orders where the validity period of the order is up to execution, cancellation by user or 90 days whichever comes first. This is a validity period used when you want to fire and forget an order and is usually an order placed with a limit price. Good Till Date (GTD) orders are similar to GTC orders, however here the validity period is set by the user (max validity period of 90 days), rest of the functionality is the same, this too is a limit order.

GTC order is active until the trade is executed or trader cancels the order. GTD orders remains active until a user specified date/7 days whichever is earlier or it has been filled or cancelled.

Parameter
Trading_Symbol Trading Symbol of the Scrip, to be obtained from Contract file downloaded
Exchange Name of the exchange, BSE/NSE
Action BUY/SELL
Duration Order validity, GTD/GTC
Order_Type Order type, LIMIT/MARKET/STOP_LIMIT/STOP_MARKET
Quantity Quantity of the scrip to transact
Streaming_Symbol exchangetoken to be obtained from Contract file downloaded
Limit_Price Limit price of scrip
Disclosed_Quantity Quantity to be disclosed publicly while order placement (default 0)
TriggerPrice Trigger Price applicable for SL/SL-M Orders (default 0)
ProdcutCode Margin product to use for the order (margins are blocked based on this), CNC/MIS/NRML/MTF
DTDays Date for GTD Orders in dd-MM-yyyy format
{
   "appID":"663051cfbac7d699a1c59b96048b50e7",
   "config":{},
   "data":{
      "type":"placeGtcGtdTradeDao",
      "msg":"Your order has been placed successfully!."
   },
   "msgID":"2493a9b5-f393-4047-bd96-c2b0120a8d8f",
   "srvTm":1619530128926
}

Order Book

OrderBook()

This method will retrieve the equity Order Book. Typical order book response will be a nested JSON containing below fields - Symbol - Product Type - Order type - Quantity - Price - Validity - Order ID - Order Status

{
   "eq":{
      "type":"orderBookResponse",
      "ord":[
         {
            "stkPrc":"",
            "dur":"GTD",
            "vlDt":"29-04-2021",
            "rcvTim":"18:58:48",
            "rcvEpTim":"27/04/2021 18:58:48",
            "sym":"1660_NSE",
            "cpName":"Itc Ltd",
            "exit":"false",
            "syomID":"",
            "exc":"NSE",
            "ntQty":"1",
            "dpName":"ITC",
            "cancel":"true",
            "sipID":"N",
            "nstReqID":"1",
            "ordTyp":"LIMIT",
            "opTyp":"",
            "trsTyp":"BUY",
            "srs":"EQ",
            "prdCode":"NRML",
            "ogt":"--",
            "flQty":"0",
            "trdSym":"ITCLTD",
            "edit":"true",
            "asTyp":"EQUITY",
            "trgPrc":"0.00",
            "avgPrc":"0.00",
            "dsQty":"0",
            "ordID":"2104270000xxxxx",
            "sts":"open",
            "dpInsTyp":"",
            "rjRsn":"",
            "userID":"BJORN",
            "dpExpDt":"",
            "ltSz":"1",
            "tkSz":"0.05",
            "desc":"Buy 1 Qty @ &#8377 203.00",
            "prc":"203.00",
            "exONo":"1100000000066257",
            "rcvDt":"27/04/2021",
            "pdQty":"1",
            "userCmnt":"GTD",
            "rmk":"--",
            "boSeqId":"nest_tm",
            "epochTim":"1619530128",
            "ordTim":"27/04/2021 18:58:48",
            "trgId":"2104273",
            "dpVal":"ITC",
            "ltp":"197.40",
            "bsktOrdId":"",
            "bsktEpch":""
         },
         {
            "stkPrc":"",
            "dur":"IOC",
            "vlDt":"NA",
            "rcvTim":"16:51:32",
            "rcvEpTim":"17/03/2021 16:51:32",
            "sym":"5385_NSE",
            "cpName":"Aavas Financiers Limited",
            "exit":"false",
            "syomID":"",
            "exc":"NSE",
            "ntQty":"60",
            "dpName":"AAVAS",
            "cancel":"true",
            "sipID":"N",
            "nstReqID":"1",
            "ordTyp":"LIMIT",
            "opTyp":"",
            "trsTyp":"SELL",
            "srs":"EQ",
            "prdCode":"MTF",
            "ogt":"AMO",
            "flQty":"0",
            "trdSym":"AAVFIN",
            "edit":"true",
            "asTyp":"EQUITY",
            "trgPrc":"0.00",
            "avgPrc":"0.00",
            "dsQty":"0",
            "ordID":"2103170000xxxxx",
            "sts":"after market order req received",
            "dpInsTyp":"",
            "rjRsn":"",
            "userID":"BJORN",
            "dpExpDt":"",
            "ltSz":"1",
            "tkSz":"0.05",
            "desc":"Sell 60 Qty @ &#8377 2000.00",
            "prc":"2000.00",
            "exONo":"NA",
            "rcvDt":"17/03/2021",
            "pdQty":"60",
            "userCmnt":"NA",
            "rmk":"",
            "boSeqId":"",
            "epochTim":"1615980092",
            "ordTim":"17/03/2021 16:51:32",
            "trgId":"",
            "dpVal":"AAVAS",
            "ltp":"2276.15",
            "bsktOrdId":"",
            "bsktEpch":""
         },
         {
            "stkPrc":"",
            "dur":"IOC",
            "vlDt":"NA",
            "rcvTim":"16:51:31",
            "rcvEpTim":"17/03/2021 16:51:31",
            "sym":"5385_NSE",
            "cpName":"Aavas Financiers Limited",
            "exit":"false",
            "syomID":"",
            "exc":"NSE",
            "ntQty":"59",
            "dpName":"AAVAS",
            "cancel":"true",
            "sipID":"N",
            "nstReqID":"1",
            "ordTyp":"LIMIT",
            "opTyp":"",
            "trsTyp":"SELL",
            "srs":"EQ",
            "prdCode":"CNC",
            "ogt":"AMO",
            "flQty":"0",
            "trdSym":"AAVFIN",
            "edit":"true",
            "asTyp":"EQUITY",
            "trgPrc":"0.00",
            "avgPrc":"0.00",
            "dsQty":"0",
            "ordID":"2103170000xxxxx",
            "sts":"after market order req received",
            "dpInsTyp":"",
            "rjRsn":"",
            "userID":"BJORN",
            "dpExpDt":"",
            "ltSz":"1",
            "tkSz":"0.05",
            "desc":"Sell 59 Qty @ &#8377 2000.00",
            "prc":"2000.00",
            "exONo":"NA",
            "rcvDt":"17/03/2021",
            "pdQty":"59",
            "userCmnt":"NA",
            "rmk":"",
            "boSeqId":"",
            "epochTim":"1615980091",
            "ordTim":"17/03/2021 16:51:31",
            "trgId":"",
            "dpVal":"AAVAS",
            "ltp":"2276.15",
            "bsktOrdId":"",
            "bsktEpch":""
         }
      ]
   },
   "comm":""
}

Trade Book

TradeBook()

This method will retrieve the Trade Book. Typical trade book response will be a nested JSON containing below fields - Symbol - Product Type - Order type - Quantity - Price - Validity - Trade ID - Trade Status

{
  "eq": {
    "appID": "663051cfbac7d699a1c59b96048b50e7",
    "config": {},
    "data": {
      "type": "eqTradeBookDao",
      "trade": [
        {
          "ordTim": "13:45:06",
          "trdSym": "ITCLTD",
          "exONo": "11000000000XXXXX",
          "dpInsTyp": "",
          "ntPrc": "204.60",
          "rmk": "null",
          "dpExpDt": "",
          "ltSz": "1",
          "cpName": "Itc Ltd",
          "prdCode": "NRML",
          "flTim": "13:45:06",
          "flDt": "30-Apr-2021",
          "flLeg": "1",
          "flID": "500XXXXX",
          "fldQty": "1",
          "psCnv": "true",
          "qty": "1",
          "opTyp": "",
          "sym": "1660_NSE",
          "dpName": "ITC",
          "ordID": "2104300000XXXXX",
          "trsTyp": "BUY",
          "stkPrc": "",
          "exc": "NSE",
          "chgP": "-0.59",
          "sts": "Complete",
          "asTyp": "EQUITY",
          "tkSz": "0.05",
          "ordType": "MARKET",
          "trdID": "500XXXXX",
          "ltp": "203.10",
          "flQty": "1",
          "chg": "-1.20",
          "srs": "EQ",
          "rcvTim": "30/04/2021 13:45:06",
          "nstReqID": "1",
          "flPrc": "204.60",
          "exp": "",
          "epochTim": "1619770506"
        }
      ]
    },
    "msgID": "7b8c0c47-4fa7-4528-a5a5-f972be07e64d",
    "srvTm": 1619771109385
  },
  "comm": ""
}

Order Details

OrderDetails(OrderId)

Please use this method to retrieve the details of single order. Response Fields : - Symbol - Product Type - Order type - Quantity - Price - Validity - Trade ID - Trade Status

Parameter
OrderId Order Id
Exchange Name of the exchange, BSE/NSE/MCX/NCDEX
{
  "appID": "663051cfbac7d699a1c59b96048b50e7",
  "config": {},
  "data": {
    "type": "eqOrderDetailsDao",
    "ord": [
      {
        "avgPrc": "204.60",
        "dsQty": "0",
        "dur": "DAY",
        "exOID": "11000000000XXXXX",
        "exc": "NSE",
        "nstReqID": "1",
        "ordID": "2104300000XXXXX",
        "prcTF": "0.00",
        "prcTyp": "MARKET",
        "prdCode": "NRML",
        "qtyTF": "1",
        "scName": "ITC",
        "sts": "complete",
        "symName": "ITC",
        "tim": "30/04/2021 13:45:06",
        "trgPrc": "0.00",
        "trsTyp": "BUY",
        "txt": "",
        "unFlSz": "0"
      },
      {
        "avgPrc": "0.00",
        "dsQty": "0",
        "dur": "DAY",
        "exOID": "11000000000XXXXX",
        "exc": "NSE",
        "nstReqID": "1",
        "ordID": "2104300000XXXXX",
        "prcTF": "0.00",
        "prcTyp": "MARKET",
        "prdCode": "NRML",
        "qtyTF": "1",
        "scName": "ITC",
        "sts": "open",
        "symName": "ITC",
        "tim": "30/04/2021 13:45:06",
        "trgPrc": "0.00",
        "trsTyp": "BUY",
        "txt": "",
        "unFlSz": "1"
      },
      {
        "avgPrc": "0.00",
        "dsQty": "0",
        "dur": "DAY",
        "exOID": "NA",
        "exc": "NSE",
        "nstReqID": "1",
        "ordID": "2104300000XXXXX",
        "prcTF": "0.00",
        "prcTyp": "MARKET",
        "prdCode": "NRML",
        "qtyTF": "1",
        "scName": "ITC",
        "sts": "open pending",
        "symName": "ITC",
        "tim": "30/04/2021 13:45:06",
        "trgPrc": "0.00",
        "trsTyp": "BUY",
        "txt": "",
        "unFlSz": "1"
      },
      {
        "avgPrc": "0.00",
        "dsQty": "0",
        "dur": "DAY",
        "exOID": "NA",
        "exc": "NSE",
        "nstReqID": "1",
        "ordID": "2104300000XXXXX",
        "prcTF": "0.00",
        "prcTyp": "MARKET",
        "prdCode": "NRML",
        "qtyTF": "1",
        "scName": "ITC",
        "sts": "validation pending",
        "symName": "ITC",
        "tim": "30/04/2021 13:45:06",
        "trgPrc": "0.00",
        "trsTyp": "BUY",
        "txt": "",
        "unFlSz": "1"
      },
      {
        "avgPrc": "0.00",
        "dsQty": "0",
        "dur": "DAY",
        "exOID": "NA",
        "exc": "NSE",
        "nstReqID": "1",
        "ordID": "2104300000XXXXX",
        "prcTF": "0.00",
        "prcTyp": "MARKET",
        "prdCode": "NRML",
        "qtyTF": "1",
        "scName": "ITC",
        "sts": "put order req received",
        "symName": "ITC",
        "tim": "30/04/2021 13:45:06",
        "trgPrc": "0.00",
        "trsTyp": "BUY",
        "txt": "",
        "unFlSz": "1"
      }
    ]
  },
  "msgID": "81209ff7-7c3f-415c-b3da-183dac090b5a",
  "srvTm": 1619770595057
}

Order History

OrderHistory(StartDate, EndDate)

This method will retrieve all the historical orders placed from StartDate to EndDate

Parameter
StartDate Start Date of search
EndDate End Date of search
OrderHistory('01-04-2021','29-04-2021')