I used "modeFull" instead of "modeFULL" and its working now . I am getting the timestamp now.
But for nifty bank index , the timestamp is not correct at all. Please find below. [ { tradable: false, mode: 'full', instrument_token: 260105, last_price: 29180.65, ohlc: { high: 29261.3, low: 29147.5, open: 29261.3, close: 29288.2 }, change: -0.36721273413866085, timestamp: 1970-01-19T00:34:47.537Z } ]
Below is the data I am getting.
[ { tradable: true,
mode: 'quote',
instrument_token: 54489351,
last_price: 4322,
last_quantity: 3,
average_price: 4310.87,
volume: 159,
buy_quantity: 571,
sell_quantity: 580,
ohlc: { open: 4339, high: 4339, low: 4306, close: 4346 },
change: -0.5522319374137138 } ]
ticker.connect();
ticker.on("ticks", onTicks);
ticker.on("connect", subscribe);
function onTicks(ticks) {
console.log(ticks)
}
function subscribe() {
var items = [54489351];
ticker.subscribe(items);
ticker.setMode(ticker.modeFULL, items);
}
I used "modeFull" instead of "modeFULL" and its working now . I am getting the timestamp now.
But for nifty bank index , the timestamp is not correct at all. Please find below.
[ { tradable: false,
mode: 'full',
instrument_token: 260105,
last_price: 29180.65,
ohlc:
{ high: 29261.3, low: 29147.5, open: 29261.3, close: 29288.2 },
change: -0.36721273413866085,
timestamp: 1970-01-19T00:34:47.537Z } ]
Could you please correct this issue at your end
Did you get a chance to look into this issue
Any updates ???
Its working fine now