Comparing version 0.1.16 to 0.1.17
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
113898
2966