Infinn API Documentation
Order and Trades

GetBasketOptSeq

POST/NorenWClient/GetBasketOptSeq

Authorization token is required. Enter your access_token from GenAcsTok above.

"Use proxy" sends this request through this website's server, which never logs request or response bodies. Infinn sees the docs server's IP, not yours. Turn it off to send directly from your browser instead.

jData fields

Values are sent as a JSON string in the jData form field.

Use ID of logged-in user.

  • Example: YOUR_USER_ID
  • Where to get it: The ID you log in with at trade.infinn.in (User ID = Client ID). Also returned as uid by GenAcsTok.

Account ID of logged-in user.

  • Example: YOUR_USER_ID
  • Where to get it: Same as User ID for individual accounts. Returned by GenAcsTok / UserDetails.

Exchange (Select from exarr array provided in User Details response).

  • Example: NSE
  • Where to get it: 'exarr' array in the UserDetails response.
  • Allowed: NSE, NFO, BSE, MCX, CDS, NCX, BFO, BCD

B -> BUY, S -> SELL.

  • Example: B
  • Allowed: B = buy, S = sell

Product name.

  • Example: C
  • Allowed: C = Delivery, M = Margin, H = Cover, I = Intraday, B = Bracket, F = MTF, S = Special, P = Special2

Unique ID of contract on which order to be placed (use URL encoding to avoid special character errors for symbols like M&M).

  • Example: RELIANCE-EQ
  • Where to get it: SearchScrip reply, or the TradingSymbol column of the exchange symbol file.

Order quantity.

  • Example: 1
  • Where to get it: Quantity in units (for F&O a multiple of the lot size).

Order price.

  • Example: 1000
  • Where to get it: Your limit price. Use "0" for MKT / SL-MKT orders.

Price type.

  • Example: LMT
  • Allowed: LMT, MKT, SL-LMT, SL-MKT, DS, 2L, 3L

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.

⚠ When "Use proxy" is on, this token is sent through this website's server on its way to Infinn. It is never logged here, but if you would rather it never leave your browser, turn off "Use proxy" above or use the ready code with your own client instead.

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 'Authorization: Bearer PASTE_ACCESS_TOKEN_HERE' \
  --header 'Content-Type: text/plain' \
  --data 'jData={"uid":"YOUR_USER_ID","actid":"YOUR_USER_ID","exch":"NSE","trantype":"B","prd":"C","tsym":"RELIANCE-EQ","qty":"1","prc":"1000","prctyp":"LMT"}'
Response will appear here after sending a request