Skip to main content

WebSocket

Description

It will create a web socket connection

URL

wss://giga.gwcindia.in/NorenWSTP/

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.
  3. ATO price is sent as “42949672.95”.

Connect

REQUEST ATTRIBUTES

JSON FieldsPossible ValueDescription
tcc represents connect task
uidUser ID
actidAccount ID
sourceAPISource should be same as login request
susertokenUser Session Token

RESPONSE ATTRIBUTES

JSON FieldsPossible ValueDescription
tckck represents connect acknowledgement
uidUser ID
sOk or Not_Ok(in case of invalid user id or session id)

Subscribe Touchline

REQUEST ATTRIBUTES

JSON FieldsPossible ValueDescription
tt't' represents touchline task
kOne or more scriplist for subscription. Example NSE|22#BSE|508123#NSE| NIFTY

RESPONSE ATTRIBUTES(Subscription Acknowledgement)

Number of Acknowledgements for a single subscription will be the same as the number of scrips mentioned in the key (k) field.

JSON FieldPossible ValueDescription
ttk'tk' represents touchline acknowledgement
eNSE, BSE, NFO...Exchange name
tk22Scrip Token
pp2 for NSE/BSE, 4 for CDS USDINRPrice precision
tsTrading Symbol
tiTick size
lsLot size
lpLast Traded Price (LTP)
pcPercentage change
vVolume
oOpen price
hHigh price
lLow price
cClose price
apAverage trade price
oiOpen interest
poiPrevious day's closing Open Interest
toiTotal open interest for underlying
bq1Best Buy Quantity 1
bp1Best Buy Price 1
sq1Best Sell Quantity 1
sp1Best Sell Price 1
ftFeed time

RESPONSE ATTRIBUTES(TouchLine Subscription Updates)

Accept for t, e, and tk other fields may / may not be present.

JSON FieldPossible ValueDescription
ttf'tf' represents touchline feed
eNSE, BSE, NFO...Exchange name
tk22Scrip Token
lpLast Traded Price (LTP)
pcPercentage change
vVolume
oOpen price
hHigh price
lLow price
cClose price
apAverage trade price
oiOpen interest
poiPrevious day's closing Open Interest
toiTotal open interest for underlying
bq1Best Buy Quantity 1
bp1Best Buy Price 1
sq1Best Sell Quantity 1
sp1Best Sell Price 1
ftFeed time

Unsubscribe Touchline

REQUEST ATTRIBUTES

JSON FieldPossible ValueDescription
tu'u' represents Unsubscribe Touchline
kOne or more scriplist for unsubscription (e.g., NSE| 22#BSE| 508123)

RESPONSE ATTRIBUTES

JSON FieldPossible ValueDescription
tuk'uk' represents Unsubscribe Touchline acknowledgement
kOne or more scriplist for unsubscription. Example: NSE| 22#BSE| 508123

Subscribe Depth

REQUEST ATTRIBUTES

JSON FieldPossible ValueDescription
td'd' represents depth subscription
kOne or more scriplist for subscription. Example: NSE| 22#BSE| 508123

RESPONSE ATTRIBUTES(Subscription Depth Acknowledgement)

Number of Acknowledgements for a single subscription will be the same as the number of scrips mentioned in the key (k) field.

JSON FieldPossible ValueDescription
tdk'dk' represents depth acknowledgement
eNSE, BSE, NFO..Exchange name
tk22Scrip Token
lpLTP
pcPercentage change
vVolume
oOpen price
hHigh price
lLow price
cClose price
apAverage trade price
lttLast trade time
ltqLast trade quantity
tbqTotal Buy Quantity
tsqTotal Sell Quantity
bq1Best Buy Quantity 1
bq2Best Buy Quantity 2
bq3Best Buy Quantity 3
bq4Best Buy Quantity 4
bq5Best Buy Quantity 5
bp1Best Buy Price 1
bp2Best Buy Price 2
bp3Best Buy Price 3
bp4Best Buy Price 4
bp5Best Buy Price 5
bo1Best Buy Orders 1
bo2Best Buy Orders 2
bo3Best Buy Orders 3
bo4Best Buy Orders 4
bo5Best Buy Orders 5
sq1Best Sell Quantity 1
sq2Best Sell Quantity 2
sq3Best Sell Quantity 3
sq4Best Sell Quantity 4
sq5Best Sell Quantity 5
sp1Best Sell Price 1
sp2Best Sell Price 2
sp3Best Sell Price 3
sp4Best Sell Price 4
sp5Best Sell Price 5
so1Best Sell Orders 1
so2Best Sell Orders 2
so3Best Sell Orders 3
so4Best Sell Orders 4
so5Best Sell Orders 5
lcLower Circuit Limit
ucUpper Circuit Limit
52h52 week high low in other exchanges, Life time high low in mcx
52l52 week high low in other exchanges, Life time high low in mcx
oiOpen interest
poiPrevious day closing Open Interest
toiTotal open interest for underlying
ftFeed time

RESPONSE ATTRIBUTES(Depth subscription Updates)

JSON FieldPossible ValueDescription
tdf'df' represents depth feed
eNSE, BSE, NFO..Exchange name
tk22Scrip Token
lpLast Traded Price (LTP)
pcPercentage change
vVolume
oOpen price
hHigh price
lLow price
cClose price
apAverage trade price
lttLast trade time
ltqLast trade quantity
tbqTotal Buy Quantity
tsqTotal Sell Quantity
bq1–bq5Best Buy Quantities 1 to 5
bp1–bp5Best Buy Prices 1 to 5
bo1–bo5Best Buy Orders 1 to 5
sq1–sq5Best Sell Quantities 1 to 5
sp1–sp5Best Sell Prices 1 to 5
so1–so5Best Sell Orders 1 to 5
lcLower Circuit Limit
ucUpper Circuit Limit
52h52-week high in other exchanges / Lifetime high in MCX
52l52-week low in other exchanges / Lifetime low in MCX
oiOpen interest
poiPrevious day closing Open Interest
toiTotal open interest for underlying
ftFeed time

Unsubscribe Depth

REQUEST ATTRIBUTES

JSON FieldPossible ValueDescription
tud'ud' represents Unsubscribe Depth
kOne or more scriplist for unsubscription. Example: NSE|22#BSE|508123

RESPONSE ATTRIBUTES

JSON FieldPossible ValueDescription
tudk'udk' represents unsubscribe depth acknowledgement
k-One or more scriplist for unsubscription. Example: NSE|22#BSE|508123

Subscribe Order Update

REQUEST ATTRIBUTES

JSON FieldPossible ValueDescription
to'o' represents order update subscription task
actid-Account ID based on which order updates will be sent

RESPONSE ATTRIBUTES(Subscription Acknowledgement)

JSON FieldPossible ValueDescription
tok'ok' represents order update subscription acknowledgement

RESPONSE ATTRIBUTES(Order Update subscription Updates)

JSON FieldPossible ValueDescription
tom'om' represents touchline feed
norenordnoNoren Order Number
uidUser ID
actidAccount ID
exchExchange
tsymTrading Symbol
prcOrder Price
prdProduct
statusOrder status (New, Replaced, Complete, Rejected etc.)
reporttypeOrder event (Fill, Rejected, Canceled)
trantypeOrder transaction type (Buy/Sell)
prctypOrder price type (LMT, MKT, SL-LMT, SL-MKT)
retOrder retention type (DAY, EOS, IOC, etc.)
fillsharesTotal filled shares for this order
avgprcAverage fill price
fltmFill Time (present only when reporttype is Fill)
flidFill ID (present only when reporttype is Fill)
flqtyFill Quantity (present only when reporttype is Fill)
flprcFill Price (present only when reporttype is Fill)
rejreasonRejection reason, if order is rejected
exchordidExchange Order ID
cancelqtyCanceled quantity (in case of canceled order)
remarksUser-added tag while placing the order
dscqtyDisclosed quantity
trgprcTrigger price for SL orders
snonumPresent for child orders in cover/bracket; needed during exit
snoordtIndicates whether the child order is profit or stoploss
blprcDifferential stop loss trigger (cover/bracket parent orders)
bpprcDifferential profit price (bracket parent order)
trailprcRequired if trailing ticks are enabled (cover/bracket parent orders)
exch_tmExchange update time (dd-mm-YYYY hh:MM:SS)
amoPresent if After Market Order. Value is “Yes”
tmTimestamp
kididKid ID
sno_fillidBO Sequence ID

Unsubscribe Order Update

REQUEST ATTRIBUTES

JSON FieldPossible ValueDescription
tuo'uo' represents Unsubscribe Order update

RESPONSE ATTRIBUTES

JSON FieldPossible ValueDescription
tuok'uok' represents Unsubscribe Order update acknowledgement
Web socket url
wss://giga.gwcindia.in/NorenWSTP/
Request example(To connect to websocket)
{
"t": "c",
"uid": "GQ1A0007",
"actid": "GQ1A0007",
"source": "API",
"susertoken": "3279379865"

}
Request example
{
"t": "t",
"k": "NSE|22#BSE|508123#NSE|NIFTY"
}
Request example
{
"t": "u",
"k": "NSE|22#BSE|508123"
}
Request example
{
"t": "d",
"k": "NSE|22#BSE|508123"
}
Request example
{
"t": "ud",
"k": "NSE|22#BSE|508123"
}
Request example
{
"t": "o",
"actid": "GQ1A0007"
}
Request example
{
"t": "uo"
}