Noren MobileClient API v1.0.9.0
Noren MobileClient API v1.0.9.0
Noren MobileClient API v1.0.9.0
2
TABLE OF CONTENTS
INTRODUCTION 6
Watch Lists 18
Get WatchList Names 18
Get WatchList 19
Search Scrips 21
Add Scrip to Watch List 24
Delete Scrip to Watch List 25
Get SecurityInfo 26
3
Product Conversion 59
Market Info 70
Get Index List 70
Get Top List Names 72
Get Top List 74
Get Time Price Data (Chart data) 77
Get Option Chain 80
Span Calculator 81
4
Version History
1.6.0 Option Chain added Return 10 strikes above and below the given Price, to
load the option chain screen.
Span calculator Provides span and exposure value for given positions
added
/SingleOrdHist and
/GetIndexList added
5
INTRODUCTION
Kambala Solutions is a solution oriented firm indulged in serving financial
organizations with innovative products and services. We understand the new challenges
and obstacles which are continuously arising for businesses with rapid advances in
technology and environment, they could only be tackled with efficient and effective
approaches. We have expertise in building high throughput, low latency distributed
applications that can support a large concurrent user base.
Noren OMS solution is built keeping in mind the large and diverse Indian broking
industry. Few of the prominent coverages are Order Execution, Algo Trading, Exchange
connectivity and Risk Mitigation. The Noren OMS team strives to serve ever changing
requirements with agility and personal touch. Noren OMS is continuously being tested
for stability, high scalability and low latency in mind.
6
Login and User Details
Login
Request to be POSTed to uri : /NorenWClient/QuickAuth
Request Details :
Parameter Possible value Description
Name
imei* Send mac if users logs in for desktop, imei is from mobile
Example:
curl https://apitest.kambala.co.in/NorenWClient/QuickAuth \
-d "jData={ \"apkversion\": \"1.0.0\", \"uid\": \"VIDYA\", \"pwd\": \"s3cur3Id\", \"factor2\":
\"31-08-2017\", \"imei\": \"134243434\", \"source\": \"MOB\"}“
Response Details :
7
Response data will be in json format with below fields.
Json Fields Possible Description
value
Logout
Request to be POSTed to uri : /NorenWClient/Logout
Request Details :
Parameter Possible value Description
Name
8
jKey* Key Obtained on login success.
Response Details :
Response data will be in json format with below fields.
Json Fields Possible Description
value
Forgot Password
Request to be POSTed to uri : /NorenWClient/ForgotPassword
Request Details :
Parameter Possible value Description
Name
9
Json Fields Possible value Description
uid* User Id
Response Details :
Response data will be in json format with below fields.
Json Fields Possible Description
value
Change Password
Request to be POSTed to uri : /NorenWClient/Changepwd
Request Details :
Parameter Possible value Description
Name
10
Json Fields Possible value Description
uid* User Id
Response Details :
Response data will be in json format with below fields.
Json Fields Possible Description
value
Request Details :
11
Parameter Possible value Description
Name
uid* User Id
Response Details :
Response data will be in json format with below fields.
Json Fields Possible Description
value
12
Login with Device Pin
Request to be POSTed to uri : /NorenWClient/PinAuth
Request Details :
Parameter Possible value Description
Name
uid* User Id
Response Details :
Response data will be in json format with below fields.
13
lastaccesstime It will be present only on login success.
Get HS Token
Request to be POSTed to uri : /NorenWClient/GetHsToken
Request Details :
Parameter Possible value Description
Name
uid* User Id
Response Details :
14
Response data will be in json format with below fields.
Json Fields Possible Description
value
Validate HS Token
Request to be POSTed to uri : /NorenWClient/ValidateHsToken
(To be used only from server, Call this url from Browser / Client Side APKs)
Request Details :
Parameter Possible value Description
Name
Response Details :
Response data will be in plain text format TRUE if Token is valid and FALSE for invalid User Id
or Token.
User Details
Request to be POSTed to uri : /NorenWClient/UserDetails
Request Details :
Parameter Possible value Description
Name
15
Json Fields Possible value Description
Response Details :
orarr Json array of strings with enabled price types for user
brkname Broker id
brnchid Branch id
actid
16
exch Json array of strings with enabled, allowed exchange
names
17
"uprev": "INVESTOR",
"stat": "Ok"
}
Watch Lists
Get WatchList Names
Request to be POSTed to uri : /NorenWClient/MWList
Request Details :
Parameter Possible value Description
Name
Response Details :
18
request_time It will be present only in a successful response.
{
"stat": "Not_Ok",
"emsg": "Session Expired : Invalid Session Key"
}
Get WatchList
Request to be POSTed to uri : /NorenWClient/MarketWatch
Request Details :
Parameter Possible value Description
Name
19
Response Details :
pp Price precision
ti Tick size
ls Lot size
20
{
"exch": "NSE",
"token": "13",
"tsym": "ABB-EQ"
},
{
"exch": "NSE",
"token": "22",
"tsym": "ACC-EQ"
}
],
"stat": "Ok"
}
Sample Failure Response :
{
"stat":"Not_Ok",
"emsg":"Invalid Input : Missing uid or wlname."
}
Search Scrips
Request to be POSTed to uri : /NorenWClient/SearchScrip
Request Details :
Parameter Possible value Description
Name
Response Details :
21
Json Fields Possible Description
value
pp Price precision
ti Tick size
ls Lot size
{
"stat": "Ok",
"values": [
{
"exch": "NSE",
"token": "18069",
"tsym": "REL100NAV-EQ"
},
{
"exch": "NSE",
"token": "24225",
"tsym": "RELAXO-EQ"
22
},
{
"exch": "NSE",
"token": "4327",
"tsym": "RELAXOFOOT-EQ"
},
{
"exch": "NSE",
"token": "18068",
"tsym": "RELBANKNAV-EQ"
},
{
"exch": "NSE",
"token": "2882",
"tsym": "RELCAPITAL-EQ"
},
{
"exch": "NSE",
"token": "18070",
"tsym": "RELCONSNAV-EQ"
},
{
"exch": "NSE",
"token": "18071",
"tsym": "RELDIVNAV-EQ"
},
{
"exch": "NSE",
"token": "18072",
"tsym": "RELGOLDNAV-EQ"
},
{
"exch": "NSE",
"token": "2885",
"tsym": "RELIANCE-EQ"
},
{
"exch": "NSE",
"token": "15068",
"tsym": "RELIGARE-EQ"
},
{
"exch": "NSE",
23
"token": "553",
"tsym": "RELINFRA-EQ"
},
{
"exch": "NSE",
"token": "18074",
"tsym": "RELNV20NAV-EQ"
}
]
}
Request Details :
Parameter Possible value Description
Name
Response Details :
24
Json Fields Possible Description
value
Request Details :
Parameter Possible value Description
Name
25
Response Details :
Get SecurityInfo
Request to be POSTed to uri : /NorenWClient/GetSecurityInfo
Request Details :
Parameter Possible value Description
Name
26
uid* Logged in User Id
exch Exchange
Example:
jData={"uid":"{{USER_ID}}", "exch":"NSE",
"token":"22"}&jKey=c180c60ec8f7870490ec27f4accdba179a149a5e5b1d503a0682d8b72acb24
b3
Response Details :
seg Segment
isin ISIN
ti Tick Size
27
ls Lot Size
pp Price precision
mult Multiplier
28
token Contract Token
Request Details :
29
Parameter Possible value Description
Name
exch* NSE / NFO / BSE Exchange (Select from ‘exarr’ Array provided in User Details
/ MCX response)
dscqty Disclosed quantity (Max 10% for NSE, and 50% for MCX)
prd* C/M/H Product name (Select from ‘prarr’ Array provided in User
Details response, and if same is allowed for selected,
exchange. Show product display name, for user to select,
and send corresponding prd in API call)
ret* DAY / EOS / IOC Retention type (Show options as per allowed exchanges)
30
and B (High Leverage and Bracket order )
qty2 Quantity for second leg, mandatory for price type 2L and 3L
prc2 Price for second leg, mandatory for price type 2L and 3L
Example:
curl https://apitest.kambala.co.in/NorenWClient/PlaceOrder \
-d "jData={\"uid\":\"VIDYA\", \"actid\":\"CLIENT1\", \"exch\":\"NSE\", \"tsym\":\"ACC-EQ\",
\"qty\":\"50\", \"price\":\"1400\", \"prd\":\"H\", \"trantype\":\"B\", \"prctyp\":\"LMT\", \"ret\":\"DAY\"}“ \
-d “jKey=GHUDWU53H32MTHPA536Q32WR”
Response Details :
31
norenordno It will be present only on successful Order placement to
OMS.
Modify Order
Request to be POSTed to uri : /NorenWClient/ModifyOrder
Request Details :
Parameter Possible value Description
Name
exch* Exchange
32
qty Modified / New Quantity
Response Details :
33
"stat":"Not_Ok",
"emsg":"Rejected : ORA:Order not found"
}
Cancel Order
Request to be POSTed to uri : /NorenWClient/CancelOrder
Request Details :
Parameter Possible value Description
Name
Response Details :
34
Sample Failure Response :
{
"request_time":"16:01:48 28-05-2020",
"stat":"Not_Ok",
"emsg":"Rejected : ORA:Order not found to Cancel"
}
Request Details :
Parameter Possible value Description
Name
prd* H/B Allowed for only H and B products (Cover order and bracket
order)
Response Details :
35
Order Margin
Request to be POSTed to uri : /NorenWClient/GetOrderMargin
Request Details :
Parameter Possible value Description
Name
exch* NSE / NFO / BSE Exchange (Select from ‘exarr’ Array provided in User Details
/ MCX response)
prd* C/M/H Product name (Select from ‘prarr’ Array provided in User
Details response, and if same is allowed for selected,
exchange. Show product display name, for user to select,
and send corresponding prd in API call)
36
rorgqty Optional field. Application only for modify order, open order
quantity
rorgprc Optional field. Application only for modify order, open order
price
orgtrgprc Optional field. Application only for modify order, open order
trigger price
Response Details :
Order Book
Request to be POSTed to uri : /NorenWClient/OrderBook
Request Details :
Parameter Possible value Description
Name
37
jKey* Key Obtained on login success.
Example:
curl https://apitest.kambala.co.in/NorenWClient/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.
38
rejreason If order is rejected, reason in text form
uid
actid
amo Yes / No
pp Price precision
ti Tick size
ls Lot size
orddttm
ordenttm
extm
Response data will be in json format with below fields in case of failure:
39
value
40
“amo” : “No”
}
]
Example:
curl https://apitest.kambala.co.in/NorenWClient/MultiLegOrderBook \
-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.
41
tsym Trading symbol / contract on which order is placed.
uid
actid
42
amo Yes / No
pp Price precision
ti Tick size
ls Lot size
qty2 Quantity for second leg, mandatory for price type 2L and 3L
prc2 Price for second leg, mandatory for price type 2L and 3L
avgprc2 Average trade price of total traded quantity for 2nd leg
avgprc3 Average trade price of total traded quantity for 3rd leg
Response data will be in json format with below fields in case of failure:
43
Single Order History
Request to be POSTed to uri : /NorenWClient/SingleOrdHist
Request Details :
Parameter Possible value Description
Name
Example:
curl https://apitest.kambala.co.in/NorenWClient/SingleOrdHist \
-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.
44
details.
uid
actid
amo Yes / No
pp Price precision
ti Tick size
45
ls Lot size
orddttm
ordenttm
extm
Response data will be in json format with below fields in case of failure:
[
{
"stat": "Ok",
"norenordno": "20121300065716",
"uid": "DEMO1",
"actid": "DEMO1",
"exch": "NSE",
"tsym": "ACCELYA-EQ",
"qty": "180",
"trantype": "B",
"prctyp": "LMT",
"ret": "DAY",
"token": "7053",
"pp": "2",
"ls": "1",
"ti": "0.05",
"prc": "800.00",
46
"avgprc": "800.00",
"discqty": "0",
"prd": "M",
"status": "COMPLETE",
"rpt": "Fill",
"fillshares": "180",
"norentm": "19:59:32 13-12-2020",
"exch_tm": "00:00:00 01-01-1980",
"remarks": "WC TEST Order",
"exchordid": "6858"
},
{
"stat": "Ok",
"norenordno": "20121300065716",
"uid": "DEMO1",
"actid": "DEMO1",
"exch": "NSE",
"tsym": "ACCELYA-EQ",
"qty": "180",
"trantype": "B",
"prctyp": "LMT",
"ret": "DAY",
"token": "7053",
"pp": "2",
"ls": "1",
"ti": "0.05",
"prc": "800.00",
"discqty": "0",
"prd": "M",
"status": "OPEN",
"rpt": "New",
"norentm": "19:59:32 13-12-2020",
"exch_tm": "00:00:00 01-01-1980",
"remarks": "WC TEST Order",
"exchordid": "6858"
},
{
47
"stat": "Ok",
"norenordno": "20121300065716",
"uid": "DEMO1",
"actid": "DEMO1",
"exch": "NSE",
"tsym": "ACCELYA-EQ",
"qty": "180",
"trantype": "B",
"prctyp": "LMT",
"ret": "DAY",
"token": "7053",
"pp": "2",
"ls": "1",
"ti": "0.05",
"prc": "800.00",
"discqty": "0",
"prd": "M",
"status": "PENDING",
"rpt": "PendingNew",
"norentm": "19:59:32 13-12-2020",
"remarks": "WC TEST Order"
},
{
"stat": "Ok",
"norenordno": "20121300065716",
"uid": "DEMO1",
"actid": "DEMO1",
"exch": "NSE",
"tsym": "ACCELYA-EQ",
"qty": "180",
"trantype": "B",
"prctyp": "LMT",
"ret": "DAY",
"token": "7053",
"pp": "2",
"ls": "1",
"ti": "0.05",
48
"prc": "800.00",
"prd": "M",
"status": "PENDING",
"rpt": "NewAck",
"norentm": "19:59:32 13-12-2020",
"remarks": "WC TEST Order"
}
]
Trade Book
Request to be POSTed to uri : /NorenWClient/TradeBook
Request Details :
Parameter Possible value Description
Name
Example:
curl https://apitest.kambala.co.in/NorenWClient/TradeBook \
-d "jData={\"uid\":\"VIDYA\", \“actid\”:\”DEMO1\”}“ \
-d “jKey=GHUDWU53H32MTHPA536Q32WR”
Response Details :
Response data will be in json Array of objects with below fields in case of success.
49
exch Exchange Segment
uid
actid
pp Price precision
ti Tick size
ls Lot size
flid Fill ID
50
token Token
Response data will be in json format with below fields in case of failure:
[
{
"stat": "Ok",
"norenordno": "20121300065715",
"uid": "GURURAJ",
"actid": "GURURAJ",
"exch": "NSE",
"prctyp": "LMT",
"ret": "DAY",
"prd": "M",
"flid": "102",
"fltm": "01-01-1980 00:00:00",
"trantype": "S",
"tsym": "ACCELYA-EQ",
"qty": "180",
"token": "7053",
"fillshares": "180",
"flqty": "180",
"pp": "2",
"ls": "1",
"ti": "0.05",
"prc": "800.00",
"flprc": "800.00",
51
"norentm": "19:59:32 13-12-2020",
"exch_tm": "00:00:00 01-01-1980",
"remarks": "WC TEST Order",
"exchordid": "6857"
},
{
"stat": "Ok",
"norenordno": "20121300065716",
"uid": "GURURAJ",
"actid": "GURURAJ",
"exch": "NSE",
"prctyp": "LMT",
"ret": "DAY",
"prd": "M",
"flid": "101",
"fltm": "01-01-1980 00:00:00",
"trantype": "B",
"tsym": "ACCELYA-EQ",
"qty": "180",
"token": "7053",
"fillshares": "180",
"flqty": "180",
"pp": "2",
"ls": "1",
"ti": "0.05",
"prc": "800.00",
"flprc": "800.00",
"norentm": "19:59:32 13-12-2020",
"exch_tm": "00:00:00 01-01-1980",
"remarks": "WC TEST Order",
"exchordid": "6858"
}
]
52
Exch Msg
Request to be POSTed to uri : /NorenWClient/ExchMsg
Request Details :
Parameter Possible value Description
Name
Example:
curl https://apitest.kambala.co.in/NorenWClient/ExchMsg \
-d "jData={\"uid\":\"VIDYA\"}“ \
-d “jKey=NSE”
Response Details :
Response data will be in json format with below fields in case of success.
Response data will be in json format with below fields in case of failure:
53
value
Order Margin
Request to be POSTed to uri : /NorenWClient/OrderMargin
Request Details :
Parameter Possible value Description
Name
exch* NSE / NFO / BSE Exchange (Select from ‘exarr’ Array provided in User Details
/ MCX response)
prd* C/M/H Product name (Select from ‘prarr’ Array provided in User
Details response, and if same is allowed for selected,
exchange. Show product display name, for user to select,
and send corresponding prd in API call)
54
prctyp* LMT / MKT /
SL-LMT / S L-MKT
/ DS / 2L / 3L
Example:
curl https://apitest.kambala.co.in/NorenWClient/PlaceOrder \
-d "jData={ \"actid\":\"CLIENT1\", \"exch\":\"NSE\", \"qty\":\"50\", \"price\":\"1400\", \"prd\":\"H\",
\"trantype\":\"B\", \"prctyp\":\"LMT\", \"orgqty\":\"50\", \"orgprc\":\"50\",\"token\":\"50\"}“ \
-d “jKey=GHUDWU53H32MTHPA536Q32WR”
Response Details :
55
cash optional Total Cash
Positions Book
Request to be POSTed to uri : /NorenWClient/PositionBook
Request Details :
Parameter Possible value Description
Name
Example:
curl https://apitest.kambala.co.in/NorenWClient/PositionBook \
-d "jData={\"uid\":\"VIDYA\", \”actid\”:\”ACCT_1\”}“ \
-d “jKey=GHUDWU53H32MTHPA536Q32WR”
Response Details :
Response data will be in json format with Array of Objects with below fields in case of success.
56
tsym Trading symbol / contract.
uid User Id
actid Account Id
lp LTP
rpnl RealizedPNL
urmtom UnrealizedMTOM.
(Can be recalculated in LTP update :
= netqty * (lp from web socket - netavgprc) * prcftr
57
bep Break even price
openbuyqty
opensellqty
openbuyamt
opensellamt
openbuyavgprc
opensellavgprc
mult
pp
prcftr gn*pn/(gd*pd).
ti Tick size
ls Lot size
Response data will be in json format with below fields in case of failure:
58
"tsym":"ACC-EQ",
"prarr":"C",
"pp":"2",
"ls":"1",
"ti":"5.00",
"mult":"1",
"prcftr":"1.000000",
"daybuyqty":"2",
"daysellqty":"2",
"daybuyamt":"2610.00",
"daybuyavgprc":"1305.00",
"daysellamt":"2610.00",
"daysellavgprc":"1305.00",
"cfbuyqty":"0",
"cfsellqty":"0",
"cfbuyamt":"0.00",
"cfbuyavgprc":"0.00",
"cfsellamt":"0.00",
"cfsellavgprc":"0.00",
"openbuyqty":"0",
"opensellqty":"23",
"openbuyamt":"0.00",
"openbuyavgprc":"0.00",
"opensellamt":"30015.00",
"opensellavgprc":"1305.00",
"netqty":"0",
"netavgprc":"0.00",
"lp":"0.00",
"urmtom":"0.00",
"rpnl":"0.00",
"cforgavgprc":"0.00"
}
]
Product Conversion
Request to be POSTed to uri : /NorenWClient/ProductConversion
Request Details :
59
Parameter Possible value Description
Name
exch* Exchange
actid* Account id
Response Details :
60
"stat":"Ok"
}
Response Details :
Response data will be in json format with below fields in case of Success:
61
colqty Collateral quantity
Exch_tsym object:
Json Fields of Possible Description
object in values value
Array
pp Price precision
ti Tick size
ls Lot size
Response data will be in json format with below fields in case of failure:
62
{
"exch":"NSE",
"token":"13",
"tsym":"ABB-EQ"
}
],
"holdqty":"2000000",
"colqty":"200",
"btstqty":"0",
"btstcolqty":"0",
"usedqty":"0",
"upldprc" : "1800.00"
},
{
"stat":"Ok",
"exch_tsym":[
{
"exch":"NSE",
"token":"22",
"tsym":"ACC-EQ"
}
],
"holdqty":"2000000",
"colqty":"200",
"btstqty":"0",
"btstcolqty":"0",
"usedqty":"0",
"upldprc" : "1400.00"
}
]
Limits
Request to be POSTed to uri : /NorenWClient/Limits
Request Details :
Parameter Possible value Description
Name
63
jKey* Key Obtained on login success.
seg CM / FO / FX Segment
exch Exchange
Response Details :
Response data will be in json format with below fields.
actid Account id
seg CM / FO / FX Segment
exch Exchange
64
system errors - by broker.
-------------------------Margin Utilized----------------------------------
turnoverlmt
pendordvallmt
65
turnover Turnover
66
span_c_i Span Margin (Commodity Intraday)
67
scripbskmar_e_i Scrip basket margin (Equity Intraday)
68
brkage_f_b Brokerage (FX Bracket Order)
69
Market Info
Get Index List
Request to be POSTed to uri : /NorenWClient/GetIndexList
Request Details :
Parameter Possible value Description
Name
exch* Exchange
Response Details :
70
idxname Index Name
Sample Output:
{
"request_time": "20:12:29 13-12-2020",
"values": [
{
"idxname": "HangSeng BeES-NAV",
"token": "26016"
},
{
"idxname": "India VIX",
"token": "26017"
},
{
"idxname": "Nifty 50",
"token": "26000"
},
{
"idxname": "Nifty IT",
"token": "26008"
},
{
"idxname": "Nifty Next 50",
"token": "26013"
},
{
"idxname": "Nifty Bank",
"token": "26009"
},
{
"idxname": "Nifty 500",
"token": "26004"
},
{
71
"idxname": "Nifty 100",
"token": "26012"
},
{
"idxname": "Nifty Midcap 50",
"token": "26014"
},
{
"idxname": "Nifty Realty",
"token": "26018"
},
]
}
Request Details :
Parameter Possible value Description
Name
exch* Exchange
Response Details :
72
stat Ok or Not_Ok TopListNames success or failure indication.
crt criteria
73
"crt":"VOLUME"
},
{
"bskt":"NSEALL",
"crt":"LTP"
},
{
"bskt":"NSEALL",
"crt":"VALUE"
}
]
}
exch* Exchange
crt* criteria
Response Details :
74
Response data will be in json format with below fields.
lp LTP
v volume
oi Open interest
75
{
"tsym":"SHRENIK-EQ",
"lp":"1850.00",
"c":"1785.00",
"v":"206846",
"value":"368806418.00",
"oi":"0",
"Pc":"3.64”
},
{
"tsym":"REMSONSIND-EQ",
"lp":"6000.00",
"c":"5795.00",
"v":"3948",
"value":"22752324.00",
"Oi":"0",
"pc":"3.54"
},
{
"tsym":"AXISNIFTY-EQ",
"lp":"106700.00",
"c":"103301.00",
"v":"422",
"value":"43825544.00",
"oi":"0",
"Pc":"3.29"
}
]
}
]
Sample Failure Response :
{
"stat":"Not_Ok",
"emsg":"Invalid Input : Missing uid or exch or bskt or tb or crt"
}
76
Json Fields Possible value Description
exch* Exchange
token*
Response Details :
v volume
77
intoi Interval io change
oi oi
78
"stat":"Ok",
"time":"02-06-2020 15:43:23",
"into":"1287.00",
"inth":"1287.00",
"intl":"0.00",
"intc":"1287.00",
"intvwap":"128702.00",
"intv":"4",
"intoi":"128702",
"v":"980515",
"oi":"128702"
},
{
"stat":"Ok",
"time":"02-06-2020 15:42:23",
"into":"0.00",
"inth":"0.00",
"intl":"0.00",
"intc":"0.00",
"intvwap":"0.00",
"intv":"0",
"intoi":"0",
"v":"980511",
"oi":"128702"
}
]
Request Details :
Parameter Possible value Description
Name
79
Json Fields Possible value Description
cnt* Number of strike to return on one side of the mid price for
PUT and CALL. (example cnt is 4, total 16 contracts will be
returned, if cnt is is 5 total 20 contract will be returned)
Response Details :
80
strprc Strike price
pp Price precision
ti Tick size
ls Lot size
Span Calculator
Request to be POSTed to uri : /NorenWClient/SpanCalc
Request Details :
Parameter Possible value Description
Name
81
strprc 11900.00, 71.0025 Strike price
Response Details :
82
Web Socket API
Connect to wss://api.broker1.com/NorenStream/NorenWS
General Guidelines
1) As soon as connection is done, a connection request should be sent with User id and
login session id.
2) All input and output messages will be in json format.
Connect
Request:
Json Fields Possible value Description
uid User ID
actid Account id
Response :
uid User ID
83
Subscribe Touchline
Request :
Number of Acknowledgements for a single subscription will be the same as the number of scrips
mentioned in the key (k) field.
tk 22 Scrip Token
ts Trading Symbol
ti Tick size
ls Lot size
lp LTP
pc Percentage change
v volume
o Open price
h High price
l Low price
84
c Close price
tk 22 Scrip Token
lp LTP
pc Percentage change
v volume
o Open price
h High price
l Low price
c Close price
Unsubscribe Touchline
Request:
Json Fields Possible value Description
Response :
85
Json Fields Possible value Description
Subscribe Depth
Request :
Number of Acknowledgements for a single subscription will be the same as the number of scrips
mentioned in the key (k) field.
tk 22 Scrip Token
lp LTP
pc Percentage change
v volume
o Open price
h High price
86
l Low price
c Close price
87
sq4 Best Sell Quantity 4
52h 52 week high low in other exchanges, Life time high low in
mcx
52l 52 week high low in other exchanges, Life time high low in
mcx
tk 22 Scrip Token
lp LTP
pc Percentage change
88
v volume
o Open price
h High price
l Low price
c Close price
89
sq1 Best Sell Quantity 1
52h 52 week high low in other exchanges, Life time high low in
mcx
52l 52 week high low in other exchanges, Life time high low in
mcx
Sample Message :
{
"t": "df",
"e": "NSE",
"tk": "22",
"o": "1166.00",
90
"h": "1179.00",
"l": "1145.35",
"c": "1152.65",
"ap": "1159.74",
"v": "819881",
"tbq": "120952",
"tsq": "131730",
"bp1": "1156.00",
"sp1": "1156.50",
"bp2": "1155.80",
"sp2": "1156.55",
"bp3": "1155.75",
"sp3": "1156.65",
"bp4": "1155.70",
"sp4": "1156.70",
"bp5": "1155.65",
"sp5": "1156.75",
"bq1": "4",
"sq1": "10",
"bq2": "67",
"sq2": "63",
"bq3": "83",
"sq3": "1",
"bq4": "139",
"sq4": "53",
"bq5": "393",
"sq5": "94"
}
Unsubscribe Depth
Request:
Json Fields Possible value Description
Response :
91
t udk ‘udk’ represents unsubscribe depth acknowledgement
92
Subscribe Order Update
Request :
Subscription Acknowledgement:
uid User Id
actid Account ID
exch Exchange
prd Product
reporttype Order event for which this message is sent out. (fill,
rejected, canceled)
93
trantype Order transaction type, buy or sell
Response :
94