Comparing version 0.1.20 to 0.1.21
@@ -5,3 +5,3 @@ var assert = require('assert'); | ||
module.exports = function (action, quantity, transmitOrder) { | ||
module.exports = function (action, quantity, transmitOrder, goodAfterTime, goodTillDate) { | ||
assert(_.isString(action), 'Action must be a string.'); | ||
@@ -14,2 +14,10 @@ assert(_.isNumber(quantity), 'Quantity must be a string.'); | ||
if ( goodAfterTime === undefined ) { | ||
goodAfterTime = ''; | ||
} | ||
if ( goodTillDate === undefined ) { | ||
goodTillDate = ''; | ||
} | ||
return { | ||
@@ -19,4 +27,6 @@ action: action, | ||
totalQuantity: quantity, | ||
transmit: transmitOrder | ||
transmit: transmitOrder, | ||
goodAfterTime: goodAfterTime, | ||
goodTillDate: goodTillDate | ||
}; | ||
}; |
{ | ||
"name": "ib", | ||
"description": "Interactive Brokers TWS (or IB Gateway) API client library for Node.js", | ||
"version": "0.1.20", | ||
"version": "0.1.21", | ||
"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
114215
2977