Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kiteconnect

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kiteconnect - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

2

lib/ticker.js

@@ -545,3 +545,3 @@ var WebSocket = require("ws");

var timestamp = buf2long(bin.slice(28, 32));
if (timestamp) tick.timestamp = new Date(timestamp);
if (timestamp) tick.timestamp = new Date(timestamp * 1000);
}

@@ -548,0 +548,0 @@

{
"name": "kiteconnect",
"version": "3.0.1",
"version": "3.0.2",
"description": "The official JS client library for the Kite Connect trading APIs",

@@ -5,0 +5,0 @@ "main": "./lib/",

@@ -18,23 +18,24 @@ // var KiteConnect = require("./lib/");

var KiteTicker = require("./lib").KiteTicker;
var ticker = new KiteTicker("kitefront", "DV1973", "8a02cc7aa5fbe77bcd6fe21246515656");
ticker.autoReconnect(true, 5, 1)
var ticker = new KiteTicker({
api_key: "kitefront",
access_token: "iP8m4rya2nwOfUEw86tOUUXxZoaZnJMo"
});
ticker.connect();
ticker.on("tick", setTick);
ticker.on("ticks", onTicks);
ticker.on("connect", subscribe);
ticker.on("noreconnect", function() {
console.log("noreconnect")
});
ticker.on("error", onError);
ticker.on("reconnecting", function(reconnect_interval, reconnections) {
console.log("Reconnecting: attempe - ", reconnections, " innterval - ", reconnect_interval);
});
function onTicks(ticks) {
console.log("Ticks", ticks);
}
function setTick(ticks) {
console.log("Ticks");
function onError(err) {
console.log(err)
}
function subscribe() {
console.log("onconnect")
var items = [5097729];
var items = [256265];
ticker.subscribe(items);
ticker.setMode(ticker.modeFull, items);
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc