Infinn API Documentation
Order and Trades

Order Book

POST/NorenWClientAPI/OrderBook

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.

Logged in User Id

  • 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.

Product name

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

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 to be POSTed to url : /NorenWClientAPI/OrderBook

Request Details
Parameter NamePossible valueDescription
jData*Should send json object with fields in below list
Authorization*Bearer <access_token>access_token from GenAcsTok response. Required for all API calls.
Json FieldsPossible valueDescription
uid*Logged in User Id
prdH / M / ...Product name
Example
curl https://api.infinn.in/NorenWClientAPI/OrderBook \
    -d "jData={\"uid\":\"VIDYA\"}" \
    -d "jKey=GHUDWU53H32MTHPA536Q32WR"
Response Details

Response data will be in json Array of objects with below fields in case of success:

Json FieldsPossible valueDescription
statOk or Not_OkOrder book success or failure indication.
exchExchange Segment
tsymTrading symbol / contract on which order is placed.
norenordnoNoren Order Number
prcOrder Price
qtyOrder Quantity
prdDisplay product alias name, using prarr returned in user details.
statusOrder status
trantypeB / STransaction type of the order
prctypLMT / MKTPrice type
fillsharesTotal Traded Quantity of this order
avgprcAverage trade price of total traded quantity
rejreasonIf order is rejected, reason in text form
exchordidExchange Order Number
cancelqtyCanceled quantity for order which is in status cancelled.
remarksAny message Entered during order entry.
dscqtyOrder disclosed quantity.
trgprcOrder trigger price
retDAY / IOC / EOSOrder validity
uid
actid
bpprcBook Profit Price applicable only if product is selected as B (Bracket order)
blprcBook loss Price applicable only if product is selected as H and B (High Leverage and Bracket order)
trailprcTrailing Price applicable only if product is selected as H and B (High Leverage and Bracket order)
amoYes / No
ppPrice precision
tiTick size
lsLot size
tokenContract Token
norentm
ordenttm
exch_tm
snoordt0 for profit leg and 1 for stoploss leg
snonumThis field will be present for product H and B; and only if it is profit/sl order.

Response data will be in json format with below fields in case of failure:

Json FieldsPossible valueDescription
statNot_OkOrder book failure indication.
request_timeResponse received time.
emsgError message
Sample Success Response

Success response :

[
    {
        "stat" : "Ok",
        "exch" : "NSE" ,
        "tsym" : "ACC-EQ" ,
        "norenordno" : "20062500000001223",
        "prc" : "127230",
        "qty" : "100",
        "prd" : "C",
        "status": "Open",
        "trantype" : "B",
        "prctyp" : "LMT",
        "fillshares" : "0",
        "avgprc" : "0",
        "exchordid" : "250620000000343421",
        "uid" : "VIDYA",
        "actid" : "CLIENT1",
        "ret" : "DAY",
        "amo" : "Yes"
    },
    {
        "stat" : "Ok",
        "exch" : "NSE" ,
        "tsym" : "ABB-EQ" ,
        "norenordno" : "20062500000002543",
        "prc" : "127830",
        "qty" : "50",
        "prd" : "C",
        "status": "REJECT",
        "trantype" : "B",
        "prctyp" : "LMT",
        "fillshares" : "0",
        "avgprc" : "0",
        "rejreason" : "Insufficient funds",
        "uid" : "VIDYA",
        "actid" : "CLIENT1",
        "ret" : "DAY",
        "amo" : "No"
    }
]
Sample Failure Response
{    
    "stat":"Not_Ok",
    "emsg":"Session Expired : Invalid Session Key"
}
curl --request POST \
  --url 'https://api.infinn.in/NorenWClientAPI/OrderBook' \
  --header 'Authorization: Bearer PASTE_ACCESS_TOKEN_HERE' \
  --header 'Content-Type: text/plain' \
  --data 'jData={"uid":"YOUR_USER_ID"}'
Response will appear here after sending a request