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.
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.
| Code | Exchange |
|---|---|
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 |
Segments
Sent as seg on Limits and Get Max Payout Amount, and returned in several responses.
| seg | Meaning |
|---|---|
EQT | Equity |
DER | Equity derivatives |
FX | Currency |
COM | Commodity |
Products
Sent as prd. Returned as prd, with the display name in s_prdt_ali.
| prd | Meaning |
|---|---|
C | Delivery - shares settle into your demat account (CNC) |
I | Intraday - must be squared off the same day (MIS) |
M | Margin - carry-forward derivatives position (NRML) |
H | Cover order - entry plus a compulsory stop-loss |
B | Bracket order - entry plus a stop-loss and a target |
S | Special |
P | Special2 |
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.
| prctyp | Meaning |
|---|---|
LMT | Limit - fills at your price or better |
MKT | Market - fills immediately at whatever the market offers |
SL-LMT | Stop-loss limit - becomes a limit order once trgprc is hit |
SL-MKT | Stop-loss market - becomes a market order once trgprc is hit |
DS | Disclosed quantity order |
2L | Two-leg order - both legs sent together |
3L | Three-leg order - all three legs sent together |
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.
| trantype | Meaning |
|---|---|
B | Buy |
S | Sell |
Retention types
Sent as ret.
| ret | Meaning |
|---|---|
DAY | Valid for the rest of today's session |
IOC | Immediate or cancel - fill what you can now, cancel the rest |
EOS | End of session |
Which exchange accepts which
| Exchange | Permitted ret values |
|---|---|
| NSE | DAY, IOC |
| BSE | EOS, DAY, IOC |
| NFO | DAY, IOC |
| CDS | DAY, IOC |
| NCX | DAY, IOC |
| BFO | EOS, DAY, IOC |
Order sources
Sent as ordersource. Optional on most endpoints; if omitted, the access type of the login is used.
| ordersource | Meaning |
|---|---|
API | Placed through the API |
WEB | Placed from the web terminal |
MOB | Placed from the mobile app |
TT | Placed from the trading terminal |
Order statuses
Returned as status.
| status |
|---|
PENDING |
OPEN |
COMPLETE |
CANCELED |
REJECTED |
TRIGGER_PENDING |
INVALID_STATUS_TYPE |
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_name | Finds |
|---|---|
UpperCircuit | Trading at the upper circuit limit |
LowerCircuit | Trading at the lower circuit limit |
OpenHigh | Opened at the day's high |
OpenLow | Opened at the day's low |
HighBreak | Broke above a previous high |
LowBreak | Broke below a previous low |
Alert validity
Sent as validity on the alert and GTT endpoints.
| validity | Meaning |
|---|---|
DAY | Expires at the end of today |
GTT | Good till triggered -- stays until it fires or is cancelled |
Alert types
WebSocket message types
t | Direction | Message | Documented on |
|---|---|---|---|
a | Client → server | Connect task | Connect & authenticate |
ak | Server → client | Connect acknowledgement | Connect & authenticate |
h | Client → server | Heartbeat | Heartbeat |
hk | Server → client | Heartbeat acknowledgement | Heartbeat |
t | Client → server | Subscribe | Touchline feed |
tk | Server → client | Subscribe acknowledgement (full snapshot) | Touchline feed |
tf | Server → client | Touchline update (changed fields only) | Touchline feed |
u | Client → server | Unsubscribe | Touchline feed |
uk | Server → client | Unsubscribe acknowledgement | Touchline feed |
d | Client → server | Subscribe | Market depth feed |
dk | Server → client | Subscribe acknowledgement (full snapshot) | Market depth feed |
df | Server → client | Depth update (changed fields only) | Market depth feed |
ud | Client → server | Unsubscribe | Market depth feed |
udk | Server → client | Unsubscribe acknowledgement | Market depth feed |
l | Client → server | Subscribe | LTP feed |
lk | Server → client | Subscribe acknowledgement (full snapshot) | LTP feed |
lf | Server → client | LTP update | LTP feed |
ul | Client → server | Unsubscribe | LTP feed |
ulk | Server → client | Unsubscribe acknowledgement | LTP feed |
om | Server → client | Order update | Order updates |
uo | Client → server | Unsubscribe from order updates | Order updates |
uok | Server → client | Unsubscribe acknowledgement | Order updates |
p | Client → server | Subscribe | Position updates |
pk | Server → client | Subscribe acknowledgement | Position updates |
pm | Server → client | Position update | Position updates |
up | Client → server | Unsubscribe | Position updates |
upk | Server → client | Unsubscribe acknowledgement | Position updates |
am | Server → client | Alert update | Alert updates |
rm | Server → client | Admin message update | Admin messages |
ms | Server → client | Market status update | Market status updates |
Sentinel and placeholder values
| Value | Appears as | Meaning |
|---|---|---|
42949672.95 | A price on the WebSocket feed | An at-the-open price. 232−1 divided by 100, reused as "no price". Do not display it. |
"inf", "-nan" | Numeric fields in the report endpoints | C float-formatting artefacts. Treat as missing, not as infinity. |
"NULL" | String fields in the report endpoints | The literal four characters, not a JSON null. |
"INVALID_STATUS_TYPE" | status | A sentinel in the annexure. |
"INVALID_REPORT_TYPE" | rpt | A sentinel in the annexure. |
-0.01, 0, -1e-07 | StrikePrice on a futures row in the symbol master | Three 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. |
XX | OptionType in the symbol master | A futures row: not a call, not a put. |
| Absent field | Anywhere | Infinn 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.
| Concept | On the WebSocket | Over REST |
|---|---|---|
| Product | pcode | prd |
| Event / report type | reporttype | rpt |
| Message type | msgtype | msgtyp |
| Contract token | tk | token |
| Exchange | e | exch |
| Trading symbol | ts | tsym |