Incorrect Nifty 50 data from sockets
-
Hello,
I have subscribed to websocket 2.0 and converting data from binary using nodejs buffer library, so far data is appropriate but for nifty 50 index, data (open,high,low) is not proper, and 52 week low for all instruments is 0, attaching decrypted data for reference, (ignore market depth) please check.{
subscriptionMode: 3,
exchangeType: 1,
token: '26000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00',
sequenceNumber: 9622957,
exchangeTimeStamp: '06/02/2023, 13:48:37',
LTP: '17,751.4',
LTQ: '0',
averagePrice: '0',
volume: '0',
totalBuyQuantity: '0',
totalSellQuantity: '0',
open: '16,798.05',
high: '17,187.1',
low: '16,747.7',
previousClose: '17,854.05',
lastTradedTimestamp: 1970-01-01T00:00:00.000Z,
openIntrest: '9,81,35,450',
upperCircuitLimit: '0',
lowerCircuitLimit: '0',
high_52_week: '17,642.15',
low_52_week: '0',
marketDepth: [
{ flag: 1, quantity: '0', price: '0', ordersNo: '0' },
{ flag: 1, quantity: '0', price: '0', ordersNo: '0' },
{ flag: 1, quantity: '0', price: '0', ordersNo: '0' },
{ flag: 1, quantity: '0', price: '0', ordersNo: '0' },
{ flag: 1, quantity: '0', price: '0', ordersNo: '0' },
{ flag: 0, quantity: '0', price: '0', ordersNo: '0' },
{ flag: 0, quantity: '0', price: '0', ordersNo: '0' },
{ flag: 0, quantity: '0', price: '0', ordersNo: '0' },
{ flag: 0, quantity: '0', price: '0', ordersNo: '0' },
{ flag: 0, quantity: '0', price: '0', ordersNo: '0' }
]
} -
@pratikpopat92 @admin Any update on this? Close value of Nifty and Bank nifty today also was not proper.
{
subscriptionMode: 3,
exchangeType: 1,
token: '99926000'
sequenceNumber: 0,
exchangeTimeStamp: '3/13/2023, 3:31:25 PM',
LTP: '17,154.3',
LTQ: '0',
averagePrice: '0',
volume: '0',
totalBuyQuantity: '0',
totalSellQuantity: '0',
open: '17,421.9',
high: '17,529.9',
low: '17,113.45',
previousClose: '17,589.6',
lastTradedTimestamp: 1970-01-01T00:00:00.000Z,
openIntrest: '0',
upperCircuitLimit: '0',
lowerCircuitLimit: '0',
high_52_week: '0',
low_52_week: '0',
}{
subscriptionMode: 3,
exchangeType: 1,
token: '99926009',
sequenceNumber: 0,
exchangeTimeStamp: '3/13/2023, 3:31:23 PM',
LTP: '39,564.7',
LTQ: '0',
averagePrice: '0',
volume: '0',
totalBuyQuantity: '0',
totalSellQuantity: '0',
open: '40,356.1',
high: '40,690.05',
low: '39,454.6',
previousClose: '41,577.1',
lastTradedTimestamp: 1970-01-01T00:00:00.000Z,
openIntrest: '0',
upperCircuitLimit: '0',
lowerCircuitLimit: '0',
high_52_week: '0',
low_52_week: '0',}