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

ib

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ib - npm Package Compare versions

Comparing version 0.1.17 to 0.1.18

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

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

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

transmit: transmitOrder || true,
parentId: parentId || 0
parentId: parentId || 0,
tif: tif || 'DAY'
};
};

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

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

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

transmit: transmitOrder || true,
parentId: parentId || 0
parentId: parentId || 0,
tif: tif || 'DAY'
};
};
{
"name": "ib",
"description": "Interactive Brokers TWS (or IB Gateway) API client library for Node.js",
"version": "0.1.17",
"version": "0.1.18",
"license": "MIT",

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