General Instructions
General Instructions
Steps to Generate Access Token
Steps to Generate Access Token
Order Management API
Order Management API

Trading

Square Off Orders

 DESCRIPTION

Allows you to Multiple Square Off Order

 URL

<protocol>://<domain name>/kb/PlaceOrders/SquareOffOrder

 INPUT

S.No. Parameter Description Mandatory/Comments
1 Uid User Id Yes
2 SqOffOrderReq SqOffOrderReq is an array containing details of the square-off order. Yes
3 Exch Exchange
Possible Values:
NSE
NFO,
BSE,
MCX,
CDS,
NCX,
BFO,
and BCD.
Yes
4 Tsym Trading Symbol, refer here. Yes
5 Qty Order Quantity refers to the number of units of a product. Yes
6 Prd Product Name is basically the type of product you're ordering.
Possible Values:
C: Delivery
M: Margin
H: Cover Order
I: Intraday
B: Bracket Order
F: MTF
Yes
7 Trantype Transaction Type.
Possible Values:
B - Buy,
S - Sell
Yes

SAMPLE



{
  "Uid": "DEMO",
  "SqOffOrderReq": [
    {
      "Exch": "BSE",
      "Tsym": "ASIANTNE",
      "Qty": "1",
      "Trantype": "S",
      "Prd": "I"
    },    
    {
      "Exch": "NFO",
      "Tsym": "APOLLOTYRE25AUG22P200",
      "Qty": "1",
      "Trantype": "S",
      "Prd": "M"
    }
  ]
}

RESPONSE

S.No. Parameter Description
1 ResponseId Response Id
2 ResponseMessage Response Message
3 Data It contains the data of the response, such as the status of the request, request time, etc.

DATA

S.No. Parameter Description
1 Exch Exchange
Possible Values:
NSE,
NFO,
BSE,
MCX,
CDS,
NCX,
BFO,
and BCD.
2 Tsym Trading Symbol, refer here.
3 Prd Product Name is basically the type of product you're ordering.
Possible Values:
C: Delivery
M: Margin
H: Cover Order
I: Intraday
B: Bracket Order
F: MTF
4 Stat Status
Possible Values:
'Ok'
'Not_Ok'
5 Request time Response received time.
6 NorenOrdNo Order number
7 Emsg Message is a small remark ,this will be present only if Order cancelation fails

SAMPLE



{
  "StatusCode": 200,
  "Message": "Request successful.",
  "IsError": false,
  "ResponseException": null,
  "Result": {
    "TotalRows": 0,
    "Data": [
      {
        "ResponseId": 1,
        "ResponseMessage": "Order placed successfully",
        "Data": {
          "Exch": "BSE",
          "Tsym": "ASIANTNE",
          "Prd": "I",
          "Stat": "Ok",
          "Request_time": "17:46:35 29-07-2022",
          "NorenOrdNo": "22072900000071",
          "Emsg": null
        }
      },      
      {
        "ResponseId": 1,
        "ResponseMessage": "Order placed successfully",
        "Data": {
          "Exch": "NFO",
          "Tsym": "APOLLOTYRE25AUG22P200",
          "Prd": "M",
          "Stat": "Ok",
          "Request_time": "17:46:35 29-07-2022",
          "NorenOrdNo": "22072900000073",
          "Emsg": null
        }
      }
    ]
  }
}