Infinn API Documentation
Order and Trades

GetBasketOptSeq

POST/NorenWClient/GetBasketOptSeq

Authorization 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 NamePossible ValuesDescription
jData*JSON objectShould 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 NamePossible ValuesDescription
uid*-Use ID of logged-in user.
actid*-Account ID of logged-in user.
exch*NSE / NFO / BSE / MCXExchange (Select from exarr array provided in User Details response).
trantype*B / SB -> BUY, S -> SELL.
prd*M / I / C / F / H / BProduct 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-MKTPrice type.
basketlistsArray of JSON objectsOptional field. Array of JSON objects (fields given below).

JSON Fields of basketlists Object

Field NamePossible ValuesDescription
exch*NSE / NFO / BSE / MCXExchange.
tsym*-Trading symbol.
qty*-Order quantity.
prc*-Order price.
prd*C / M / HProduct name.
trantype*B / SB -> BUY, S -> SELL.
prctyp*LMT / MKT / SL-LMT / SL-MKTPrice 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 NamePossible ValuesDescription
statOk / Not_OkPlace 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_strArray of stringsMessage sequence of leg entered in basket.
bkt_mar_listArray of objectsBasket margin list (fields given below).
emsg-Present only if order placement fails.

bkt_mar_list Object Fields

Field NamePossible ValuesDescription
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={}'
Response will appear here after sending a request