GetBasketOptSeq
/NorenWClient/GetBasketOptSeqAuthorization token is required. Enter your access_token from GenAcsTok above.
jData fields
Values are sent as a JSON string in the jData form field.
Use ID of logged-in user.
Account ID of logged-in user.
Exchange (Select from exarr array provided in User Details response).
B -> BUY, S -> SELL.
Product name.
Unique ID of contract on which order to be placed (use URL encoding to avoid special character errors for symbols like M&M).
Order quantity.
Order price.
Price type.
Optional field. Array of JSON objects (fields given below).
Authorization Token
Required for all API calls. Use the access_token from the GenAcsTok response as a Bearer token.
Request Details
URI: /NorenWClient/GetBasketOptSeq
Method: POST
Request Parameters
| Parameter Name | Possible Values | Description |
|---|---|---|
jData* | JSON object | Should send JSON object with fields in the list below. |
| Authorization* | Bearer <access_token> | access_token from GenAcsTok response. Required for all API calls. |
JSON Fields
| Field Name | Possible Values | Description |
|---|---|---|
uid* | - | Use ID of logged-in user. |
actid* | - | Account ID of logged-in user. |
exch* | NSE / NFO / BSE / MCX | Exchange (Select from exarr array provided in User Details response). |
trantype* | B / S | B -> BUY, S -> SELL. |
prd* | M / I / C / F / H / B | Product name. |
tsym* | - | Unique ID of contract on which order to be placed (use URL encoding to avoid special character errors for symbols like M&M). |
qty* | - | Order quantity. |
prc* | - | Order price. |
prctyp* | LMT / MKT / SL-LMT / SL-MKT | Price type. |
basketlists | Array of JSON objects | Optional field. Array of JSON objects (fields given below). |
JSON Fields of basketlists Object
| Field Name | Possible Values | Description |
|---|---|---|
exch* | NSE / NFO / BSE / MCX | Exchange. |
tsym* | - | Trading symbol. |
qty* | - | Order quantity. |
prc* | - | Order price. |
prd* | C / M / H | Product name. |
trantype* | B / S | B -> BUY, S -> SELL. |
prctyp* | LMT / MKT / SL-LMT / SL-MKT | Price type. |
Note: Out of basketlists, the parameter provided will be considered as the first order.
Example Request
curl https://apitest.kambala.co.in/NorenWClientAPI/GetBasketOptSeq \
-d "jData={\"uid\":\"VIDYA\", \"actid\":\"CLIENT1\", \"exch\":\"NSE\", \"trantype\":\"S\", \"prctyp\":\"MKT\", \"prd\":\"M\", \"tsym\":\"FINNIFTY27FEB25C13500\", \"qty\":\"25\", \"prc\":\"0\",\"basketlists\":\"[{\\\"exch\\\":\\\"NFO\\\",\\\"trantype\\\":\\\"B\\\",\\\"prctyp\\\":\\\"MKT\\\",\\\"prd\\\":\\\"M\\\",\\\"qty\\\":\\\"25\\\",\\\"prc\\\":\\\"0\\\",\\\"tsym\\\":\\\"FINNIFTY27FEB25C13500\\\"}]\"}"Response Details
Response data will be in JSON format with the following fields:
| Field Name | Possible Values | Description |
|---|---|---|
stat | Ok / Not_Ok | Place order success or failure indication. |
request_time | - | Response received time. |
remarks | - | This field will contain rejection reasons. |
marginused | - | Total margin used. |
marginusedtrade | - | Margin used after trade. |
marginusedprev | - | Margin used excluding this order. |
msg_str | Array of strings | Message sequence of leg entered in basket. |
bkt_mar_list | Array of objects | Basket margin list (fields given below). |
emsg | - | Present only if order placement fails. |
bkt_mar_list Object Fields
| Field Name | Possible Values | Description |
|---|---|---|
bkt_mar | - | Basket margin for each order. |
Sample Success Response
{
"request_time": "10:34:42 20-02-2025",
"stat": "Ok",
"marginused": "31152740.27",
"marginusedtrade": "6234185.41",
"marginusedprev": "0.00",
"msg_str": [
"1",
"0",
"2"
],
"bkt_mar_list": [
{
"bkt_mar": "24965945.14"
},
{
"bkt_mar": "24965945.14"
},
{
"bkt_mar": "31152740.27"
}
]
}Sample Failure Response
{
"stat": "Not_Ok",
"emsg": "Session Expired : Invalid Session Key"
}curl --request POST \
--url 'https://api.infinn.in/NorenWClient/GetBasketOptSeq' \
--header 'Content-Type: text/plain' \
--data 'jData={}'