Multi Place Orders
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
Request details
Parameter | Description | Data Type | Example |
---|---|---|---|
userId | User Id of the login user | String | NP2997 |
jKey | Key Obtained on login success | String | abc123 |
data | List of place orders | Array | [Array] |
exchange | Exchange market | String | NSE |
tradingSymbol | Trading symbol | String | ITC-EQ |
quantity | Order quantity | String | 10 |
price | Order price | String | 0 |
product | Product type | String | C |
transactionType | Transaction type | String | B |
priceType | Order price type | String | MKT |
retention | Retention type | String | DAY |
triggerPrice | Trigger price for the order | String | 0 |
remarks | Additional remarks | String | test1 |
Libraries and SDKs
curl --location 'https://connect-go.thefirstock.tech/api/V5/multiPlaceOrders' \
--header 'Content-Type: application/json' \
--data '{
"userId": "NP2997",
"jKey": "1478b9b71707210d8851258599b23a6a73d31b19809ac5068560f38dad493d35",
"data": [
{
"exchange": "NSE",
"tradingSymbol": "ITC-EQ",
"quantity": "10",
"price": "0",
"product": "C",
"transactionType": "B",
"priceType": "MKT",
"retention": "DAY",
"triggerPrice": "0",
"remarks": "test1"
},
{
"exchange": "NSE",
"tradingSymbol": "ITC-EQ",
"quantity": "10",
"price": "0",
"product": "C",
"transactionType": "B",
"priceType": "MKT",
"retention": "DAY",
"triggerPrice": "0",
"remarks": "test1"
}
]
}'
Success response details
Parameter | Description | Example |
---|---|---|
status String |
Indicates the success status of the API operation |
success |
data.requestTime String |
Time when the response was received | 18:53:14 15-02-2023 |
data.orderNumber String |
Unique identifier of the order, present only on successful placement to OMS |
1234567890111 |
Failure response details
Parameter | Description | Example |
---|---|---|
status String |
Indicates the result status of the API operation |
failed |
code String |
HTTP status code associated with the error | 200 |
data String |
Data pertaining to the API response or error |
Invalid Session Key |