Skip to main content

Multi place order

This API allows us to place multiple orders up to 10, the order number of each order will be printed out as a list.

Method : POST

https://connect.thefirstock.com/api/V3/strategies/multiPlaceOrders

Request details

ParameterDescriptionData typesExample
userIdUser Id of the login userString"AA1999"
datalist of place ordersListlist of place orders
jKeyKey Obtained on login success.String"28fa3983bd7a6334848b
eeb7358ab57fccf19d46a
b16c7dac81bf154e65061ce"

Request details for data

ParameterDescriptionData typesExample
data.exchangeNSE / NFO / BSEString"NSE"
data.tradingSymbolTrading Symbol (use url encoding to avoid special char error for symbols like M&M) NSE NFOString"ITC-EQ"
data.quantityOrder QuantityString"1"
data.priceOrder PriceString"0"
data.triggerPriceOnly to be sent in case of SL / SL-M orderString"SL"
data.productC / M / I C -> Cash and Carry, M -> F&O Normal, I -> Intraday.String"I"
data.priceTypeLMT / MKT / SL-LMT / SL-MKTString"MKT"
data.retentionDAY / EOS / IOCString"DAY"
data.transactionTypeB / S B -> BUY, S -> SELLString"S"
data.remarksUser can send remarks for the orderString"Test1"
curl --location 'https://connect.thefirstock.com/api/V3/strategies/multiPlaceOrders' \
--header 'Content-Type: application/json' \
--data '{
"userId": "AA123",
"jKey": "e6a211bea63adff386578988e1cf4a9521c4744e6a39ad63174c8797e2af8c38",
"data": [
{
"exchange": "NSE",
"tradingSymbol": "ITC-EQ",
"quantity": "1",
"price": "0",
"product": "I",
"transactionType": "S",
"priceType": "MKT",
"retention": "DAY",
"triggerPrice": "800",
"remarks": "Test1"
},
{
"exchange": "NSE",
"tradingSymbol": "ITC-EQ",
"quantity": "1",
"price": "0",
"product": "I",
"transactionType": "S",
"priceType": "MKT",
"retention": "DAY",
"triggerPrice": "800",
"remarks": "Test1"
}
]
}'

Success response details

ParameterDescriptionData typesExample
statusSuccess String"Success"
data.requestTimeResponse received time.String"18:53:14 15-02-2023"
data.orderNumberIt will be present only on successful Order placement to OMS.String"1234567890111"

Failure response details

ParameterDescriptionData TypeExample
statusFailedString"Failed"
codeHTTP CodeString"200"
dataDataString"Invalid Session Key"

Sample response

[
{
status: "Success",
data: {
requestTime: "18:53:14 15-02-2023",
orderNumber: "1234567890111",
},
},
{
status: "Success",
data: {
requestTime: "18:53:14 15-02-2023",
orderNumber: "1234567890111",
},
},
];