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

ib

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ib - npm Package Compare versions

Comparing version 0.1.16 to 0.1.17

9

lib/order/stop.js

@@ -5,3 +5,3 @@ var assert = require('assert');

module.exports = function (action, quantity, price, transmitOrder) {
module.exports = function (action, quantity, price, transmitOrder, parentId) {
assert(_.isString(action), 'Action must be a string.');

@@ -11,6 +11,2 @@ assert(_.isNumber(quantity), 'Quantity must be a number.');

if (transmitOrder === undefined) {
transmitOrder = true;
}
return {

@@ -21,4 +17,5 @@ action: action,

totalQuantity: quantity,
transmit: transmitOrder
transmit: transmitOrder || true,
parentId: parentId || 0
};
};

@@ -5,3 +5,3 @@ var assert = require('assert');

module.exports = function (action, quantity, limitPrice, stopPrice, transmitOrder) {
module.exports = function (action, quantity, limitPrice, stopPrice, transmitOrder, parentId) {
assert(_.isString(action), 'Action must be a string.');

@@ -12,6 +12,2 @@ assert(_.isNumber(quantity), 'Quantity must be a string.');

if (transmitOrder === undefined) {
transmitOrder = true;
}
return {

@@ -23,4 +19,5 @@ action: action,

totalQuantity: quantity,
transmit: transmitOrder
transmit: transmitOrder || true,
parentId: parentId || 0
};
};

@@ -5,3 +5,3 @@ var assert = require('assert');

module.exports = function (action, quantity, auxPrice, tif, transmitOrder) {
module.exports = function (action, quantity, auxPrice, tif, transmitOrder, parentId) {
assert(_.isString(action), 'Action must be a string.');

@@ -17,4 +17,5 @@ assert(_.isNumber(quantity), 'Quantity must be a number.');

tif: tif, // note - TRAIL orders are only triggered during the trading hours of the contract
transmit: transmitOrder || true
transmit: transmitOrder || true,
parentId: parentId || 0
};
};
{
"name": "ib",
"description": "Interactive Brokers TWS (or IB Gateway) API client library for Node.js",
"version": "0.1.16",
"version": "0.1.17",
"license": "MIT",

@@ -6,0 +6,0 @@ "author": {

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