Infinn API Documentation
Market Info

Span Calculator

POST/NorenWClientAPI/SpanCalc

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.

Any Account id, preferably actual account id if sending from post login screen

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

Array of json objects. (object fields given in below table)

Exchange

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

Instrument name

Symbol name

YYYY-MM-DD format

Option Type

Strike price

Buy Open Quantity

Sell Open Quantity

Net Open Quantity

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/SpanCalc

Request Details
Parameter Name Possible value Description
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 Fields Possible value Description
actid* Any Account id, preferably actual account id if sending from post login screen
pos* Array of json objects. (object fields given in below table)
Json Fields of object in values Array Possible value Description
exch NFO, CDS, MCX ... Exchange
instname FUTSTK, FUTIDX, OPTSTK, FUTCUR... Instrument name
symname USDINR, ACC, ABB, NIFTY.. Symbol name
exd 2020-10-29 YYYY-MM-DD format
optt CE, PE Option Type
strprc 11900.00, 71.0025 Strike price
buyqty Buy Open Quantity
sellqty Sell Open Quantity
netqty Net Open Quantity
Response Details

Response data will be in json format with below fields:

Json Fields Possible value Description
stat Ok or Not_Ok Market watch success or failure indication.
span Span value
expo Exposure margin
span_trade Span value ignoring input fields buyqty, sellqty
expo_trade Exposure margin ignoring input fields buyqty, sellqty
curl --request POST \
  --url 'https://api.infinn.in/NorenWClientAPI/SpanCalc' \
  --header 'Authorization: Bearer PASTE_ACCESS_TOKEN_HERE' \
  --header 'Content-Type: text/plain' \
  --data 'jData={"actid":"YOUR_USER_ID","pos":""}'
Response will appear here after sending a request