On this page

Every fixed value list in the Infinn API, in one place. Transcribed from the API's own annexure pages and from the field tables on individual endpoints.

These are what the API defines, not what your account can use

Entitlements are per account. User Details returns exarr, orarr and prarr - the exchanges, order types and products actually enabled. Build your dropdowns from those, not from the lists below.

Exchanges

Sent as exch on almost every endpoint.

CodeExchange
NSENational Stock Exchange - cash / equity
NFONSE equity derivatives (futures & options)
BSEBombay Stock Exchange - cash / equity
BFOBSE equity derivatives
CDSNSE currency derivatives
MCXMulti Commodity Exchange
NCXNSE commodity

Segments

Sent as seg on Limits and Get Max Payout Amount, and returned in several responses.

segMeaning
EQTEquity
DEREquity derivatives
FXCurrency
COMCommodity

Products

Sent as prd. Returned as prd, with the display name in s_prdt_ali.

prdMeaning
CDelivery - shares settle into your demat account (CNC)
IIntraday - must be squared off the same day (MIS)
MMargin - carry-forward derivatives position (NRML)
HCover order - entry plus a compulsory stop-loss
BBracket order - entry plus a stop-loss and a target
SSpecial
PSpecial2
Show the alias, send the code

prarr from User Details pairs each prd with an s_prdt_ali - "Delivery", "High Leverage" and so on. Those are the names to put in front of a user. Note that the alias text is broker-configurable, so do not match on it.

Price types

Sent as prctyp.

prctypMeaning
LMTLimit - fills at your price or better
MKTMarket - fills immediately at whatever the market offers
SL-LMTStop-loss limit - becomes a limit order once trgprc is hit
SL-MKTStop-loss market - becomes a market order once trgprc is hit
DSDisclosed quantity order
2LTwo-leg order - both legs sent together
3LThree-leg order - all three legs sent together
orarr may contain more than this

The documented prctyp list has seven values. The published User Details sample response includes 4L as well, which appears nowhere in the prctyp documentation. Treat orarr as authoritative for what your account may send.

Transaction types

Sent as trantype.

trantypeMeaning
BBuy
SSell

Retention types

Sent as ret.

retMeaning
DAYValid for the rest of today's session
IOCImmediate or cancel - fill what you can now, cancel the rest
EOSEnd of session

Which exchange accepts which

ExchangePermitted ret values
NSEDAY, IOC
BSEEOS, DAY, IOC
NFODAY, IOC
CDSDAY, IOC
NCXDAY, IOC
BFOEOS, DAY, IOC

Order sources

Sent as ordersource. Optional on most endpoints; if omitted, the access type of the login is used.

ordersourceMeaning
APIPlaced through the API
WEBPlaced from the web terminal
MOBPlaced from the mobile app
TTPlaced from the trading terminal

Order statuses

Returned as status.

status
PENDING
OPEN
COMPLETE
CANCELED
REJECTED
TRIGGER_PENDING
INVALID_STATUS_TYPE
The casing you receive may differ

These are the documented values. The published Order Book sample contains "Open" and "REJECT". Compare case-insensitively and accept both spellings of rejected. More

Internal statuses

Returned as st_intrn by Single Order Status. Finer-grained than status.

st_intrn
COMPLETE
REJECTED
CANCELED
MODIFY PENDING
CANCEL PENDING
ORDER PENDING
OPEN
ORDER ACK
MODIFY ACK
CANCEL ACK
TRIGGER_PENDING
AMO OPEN
AMO MODIFIED
AMO CANCELED

Report types - REST

Returned as rpt by the order history and report endpoints.

rpt
NewAck
ModAck
CanAck
PendingNew
PendingReplace
PendingCancel
New
Replaced
Canceled
Fill
Rejected
ReplaceRejected
CancelRejected
INVALID_REPORT_TYPE

Report types - WebSocket

Returned as reporttype on an order update. A longer list, covering events only a live feed observes.

reporttype
NewAck
ModAck
CanAck
PendingNew
PendingReplace
PendingCancel
New
Replaced
Canceled
Fill
Rejected
ReplaceRejected
CancelRejected
Validation pending
lapsed
Modify lapsed
Cancel lapsed
Drop copy
Triggered
Trigger pending
Price confirmation
Frozen
AMO received
AMO replaced
AMO canceled
AMO replace rejection
AMO cancel rejection
Modify validation pending
Auth pending
Mass Canceled
INVALID_REPORT_TYPE

Scan conditions

Sent as condition_name to Get Content List.

condition_nameFinds
UpperCircuitTrading at the upper circuit limit
LowerCircuitTrading at the lower circuit limit
OpenHighOpened at the day's high
OpenLowOpened at the day's low
HighBreakBroke above a previous high
LowBreakBroke below a previous low

Alert validity

Sent as validity on the alert and GTT endpoints.

validityMeaning
DAYExpires at the end of today
GTTGood till triggered -- stays until it fires or is cancelled

Alert types

WebSocket message types

tDirectionMessageDocumented on
aClient → serverConnect taskConnect & authenticate
akServer → clientConnect acknowledgementConnect & authenticate
hClient → serverHeartbeatHeartbeat
hkServer → clientHeartbeat acknowledgementHeartbeat
tClient → serverSubscribeTouchline feed
tkServer → clientSubscribe acknowledgement (full snapshot)Touchline feed
tfServer → clientTouchline update (changed fields only)Touchline feed
uClient → serverUnsubscribeTouchline feed
ukServer → clientUnsubscribe acknowledgementTouchline feed
dClient → serverSubscribeMarket depth feed
dkServer → clientSubscribe acknowledgement (full snapshot)Market depth feed
dfServer → clientDepth update (changed fields only)Market depth feed
udClient → serverUnsubscribeMarket depth feed
udkServer → clientUnsubscribe acknowledgementMarket depth feed
lClient → serverSubscribeLTP feed
lkServer → clientSubscribe acknowledgement (full snapshot)LTP feed
lfServer → clientLTP updateLTP feed
ulClient → serverUnsubscribeLTP feed
ulkServer → clientUnsubscribe acknowledgementLTP feed
omServer → clientOrder updateOrder updates
uoClient → serverUnsubscribe from order updatesOrder updates
uokServer → clientUnsubscribe acknowledgementOrder updates
pClient → serverSubscribePosition updates
pkServer → clientSubscribe acknowledgementPosition updates
pmServer → clientPosition updatePosition updates
upClient → serverUnsubscribePosition updates
upkServer → clientUnsubscribe acknowledgementPosition updates
amServer → clientAlert updateAlert updates
rmServer → clientAdmin message updateAdmin messages
msServer → clientMarket status updateMarket status updates

Sentinel and placeholder values

ValueAppears asMeaning
42949672.95A price on the WebSocket feedAn at-the-open price. 232−1 divided by 100, reused as "no price". Do not display it.
"inf", "-nan"Numeric fields in the report endpointsC float-formatting artefacts. Treat as missing, not as infinity.
"NULL"String fields in the report endpointsThe literal four characters, not a JSON null.
"INVALID_STATUS_TYPE"statusA sentinel in the annexure.
"INVALID_REPORT_TYPE"rptA sentinel in the annexure.
-0.01, 0, -1e-07StrikePrice on a futures row in the symbol masterThree different sentinels for one idea, one per file. -1e-07 is scientific notation, so a naive integer parse of that column throws on the currency file.
XXOptionType in the symbol masterA futures row: not a call, not a put.
Absent fieldAnywhereInfinn omits fields rather than returning null. Check presence before reading.

Field naming differences

The same concept under different names, depending on where you read it.

ConceptOn the WebSocketOver REST
Productpcodeprd
Event / report typereporttyperpt
Message typemsgtypemsgtyp
Contract tokentktoken
Exchangeeexch
Trading symboltstsym

Next

Esc
↑↓ navigate↵ openEsc close/ to search