On this page
What this endpoint does

A complete price picture for one instrument right now: last traded price, the day's open/high/low, volume, circuit limits and the five best buy and sell prices waiting in the market.

POSThttps://api.infinn.in/NorenWClientAPI/GetQuotes
Method
POST
Authentication
Token required
Content-Type
text/plain
Body
jData=<json>
Returns
JSON object
Rate limit
20 orders/sec, 200/min (account-wide)

What it does

A complete price picture for one instrument right now: last traded price, the day's open/high/low, volume, circuit limits and the five best buy and sell prices waiting in the market.

Returns a full market snapshot for one instrument, including five levels of depth.

Do not poll this for live prices

GetQuotes is a snapshot. Calling it in a loop will exhaust the 20 orders per second limit within a handful of instruments. For anything live, use the WebSocket feed, which pushes updates as they happen.

Some fields are off by default

sptprc, wk52_h and wk52_l are marked in the API specification as disabled by default and enabled on request. If you need them, ask Infinn to turn them on.

Request

Send a POST with the header Content-Type: text/plain. The body is a single form field, jData, whose value is a JSON string. Include Authorization: Bearer <access_token>. See how requests are shaped if that sounds unfamiliar.

Headers

Request headers
HeaderTypeDescription
Authorization
required
string

Bearer <access_token>, using the access_token from GenAcsTok. A missing or rejected token returns an HTTP error (usually 403) with an empty body.

Content-Type
required
string

text/plain (used in these docs) or application/json. Both work. The body is always jData=<JSON>.

jData fields

Request parameters
FieldTypeDescription
uid
required
string

Logged-in user ID.

Your Infinn login ID - the same one you type at trade.infinn.in.

ExampleIN001
Where to get itThe ID you log in with at trade.infinn.in. Also returned as uid by GenAcsTok.
exch
optional
string

Exchange.

Which exchange the instrument trades on.

ExampleNSE
Where to get itThe exarr array in the UserDetails response lists the exchanges enabled on your account.
NSENFOBSEBFOCDSMCXNCX

NSE = National Stock Exchange - cash / equity; NFO = NSE equity derivatives (futures & options); BSE = Bombay Stock Exchange - cash / equity; BFO = BSE equity derivatives; CDS = NSE currency derivatives; MCX = Multi Commodity Exchange; NCX = NSE commodity

token
optional
string

Contract token.

A number that identifies the instrument. Faster and safer than a name because it never changes.

Example2885
Where to get itThe Token column of the symbol master file, or the token field of a SearchScrip response. 2885 is RELIANCE-EQ on NSE.

Request and response together

The same call, shown as raw HTTP on the left and the documented response on the right.

Request
HTTP request
POST /NorenWClientAPI/GetQuotes HTTP/1.1
Host: api.infinn.in
Authorization: Bearer YOUR_ACCESS_TOKEN
Content-Type: text/plain

jData={"uid":"IN001"}
Response
200 OK
{
"request_time": "12:05:21 18-05-2021",
"stat": "Ok",
"exch": "NSE",
"tsym": "ACC-EQ",
"cname": "ACC LIMITED",
"symname": "ACC",
"seg": "EQT",
"instname": "EQ",
"isin": "INE012A01025",
"pp": "2",
"ls": "1",
"ti": "0.05",
"mult": "1",
"uc": "2093.95",
"lc": "1713.25",
"prcftr_d": "(1 / 1 ) * (1 / 1)",
"token": "22",
"lp": "0.00",
"h": "0.00",
"l": "0.00",
"v": "0",
"ltq": "0",
"ltt": "05:30:00",
"bp1": "2000.00",
"sp1": "0.00",
"bq1": "2",
"sq1": "0",
"bo1": "2",
"so1": "0"
}

A failure, for comparison

Note the HTTP status: it is still 200. The failure is reported inside the body. See the two error layers.

Request
HTTP request
POST /NorenWClientAPI/GetQuotes HTTP/1.1
Host: api.infinn.in
Authorization: Bearer YOUR_ACCESS_TOKEN
Content-Type: text/plain

jData={"uid":"IN001"}
Error
200 OK — but stat is Not_Ok
{
"stat": "Not_Ok",
"request_time": "10:50:54 10-12-2020",
"emsg": "Error Occurred : 5 \"no data\""
}

Code examples

Each sample is a complete, runnable program. Replace YOUR_ACCESS_TOKEN and the placeholder field values, and it will run as-is. Every one checks both error layers.

cURL
curl --request POST \
--url 'https://api.infinn.in/NorenWClientAPI/GetQuotes' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: text/plain' \
--data 'jData={"uid":"IN001"}'

Response

On success the body is a JSON object. Infinn omits fields rather than returning null, so check that a field is present before reading it.

Response fields
FieldTypeDescription
statstring

Ok on success, Not_Ok on failure. Always check this before reading anything else.

Did it work? Ok means yes, Not_Ok means no.

request_timestring

The time Infinn processed the request, formatted HH:MM:SS dd-mm-yyyy.

PresencePresent on success.
exchstring

Exchange.

tsymstring

Trading symbol.

cnamestring

Company name.

symnamestring

Symbol name.

segstring

Segment.

instnamestring

Instrument name.

isinstring

ISIN.

ppstring

Price precision - decimal places to display.

lsstring

Lot size.

tistring

Tick size.

multstring

Contract multiplier, used for order-value maths.

prcftr_dstring

Price factor, as the expression ((GN / GD) * (PN / PD)).

tokenstring

Contract token.

lpstring

Last traded price.

The price of the most recent trade.

ostring

Day's opening price.

hstring

Day's high.

lstring

Day's low.

cstring

Closing price.

vstring

Volume.

apstring

Average traded price for the day (VWAP).

ltqstring

Last traded quantity.

lttstring

Last trade time.

ltdstring

Last trade date, formatted dd-mm-yy.

ucstring

Upper circuit limit.

The highest price the exchange will allow today.

lcstring

Lower circuit limit.

The lowest price the exchange will allow today.

tbqstring

Total buy quantity across the book.

tsqstring

Total sell quantity across the book.

bp1string

Best buy price, level 1. bp2 to bp5 follow.

sp1string

Best sell price, level 1. sp2 to sp5 follow.

bq1string

Best buy quantity, level 1. bq2 to bq5 follow.

sq1string

Best sell quantity, level 1. sq2 to sq5 follow.

bo1string

Number of buy orders at level 1. bo2 to bo5 follow.

so1string

Number of sell orders at level 1. so2 to so5 follow.

oistring

Open interest.

toistring

Total open interest for the underlying.

strprcstring

Strike price.

exdstring

Expiry date.

opttstring

Option type.

und_exchstring

Underlying exchange segment.

und_tkstring

Underlying token.

sptprcstring

Spot price. Disabled by default; enabled on request.

wk52_hstring

52-week high. Disabled by default; enabled on request.

wk52_lstring

52-week low. Disabled by default; enabled on request.

navstring

Net asset value.

lutstring

Feed time.

ord_msgstring

Order message.

scrip_base_prcstring

Scrip base price.

issuecapstring

Issue capital.

e_datestring

End date.

cutof_allstring

Cut-off all.

emsgstring

Human-readable reason for the failure.

If something went wrong, this says what.

PresencePresent only when stat is Not_Ok.

Errors

This endpoint can fail at either layer. A transport failure returns a 4xx or 5xx with an empty body; an application failure returns 200 with stat: "Not_Ok" and an emsg.

Esc
↑↓ navigate↵ openEsc close/ to search