truedata-nodejs
Advanced tools
Comparing version 1.0.17 to 1.0.18
{ | ||
"name": "truedata-nodejs", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"description": "Truedata's Official Nodejs Package", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -14,3 +14,3 @@ # Documentation for TrueData Nodejs | ||
const { rtConnect, rtDisconnect, rtSubscribe, rtUnsubscribe, rtFeed, historical, formatTime } = require('truedata-nodejs') | ||
const { rtConnect, rtDisconnect, rtSubscribe, rtUnsubscribe, rtFeed, historical, formatTime, isSocketConnected } = require('truedata-nodejs') | ||
@@ -32,3 +32,3 @@ const user = 'your username' | ||
rtFeed.on('heartbeat', heartbeatHandler); // Receives market status messages | ||
rtFeed.on('marketstatus', marketStatusHandler); // Receives marketstatus messages | ||
rtFeed.on('heartbeat', heartbeatHandler); // Receives heartbeat message and time | ||
@@ -68,2 +68,6 @@ | ||
## Check websocket connection status | ||
isSocketConnected() // Check if socket is connected or not. Returns Boolean value | ||
## Subscribe and Unsubscribe symbols dynamically | ||
@@ -87,6 +91,2 @@ | ||
In case you see a Message: 'Authorization has been denied for this request.' then use | ||
historical.auth(user, pwd, force = true); // For force authentication | ||
from = formatTime(2021, 3, 2, 9, 15) // (year, month, date, hour, minute) // hour in 24 hour format | ||
@@ -93,0 +93,0 @@ to = formatTime(2021, 3, 5, 9, 15) // (year, month, date, hour, minute) // hour in 24 hour format |
32933