Socket
Socket
Sign inDemoInstall

truedata-nodejs

Package Overview
Dependencies
11
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.17 to 1.0.18

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc