Comparing version 0.1.4 to 0.1.5
@@ -8,2 +8,4 @@ /* | ||
exports.limit = require('./limit'); | ||
exports.market = require('./market'); | ||
exports.stop = require('./stop'); | ||
exports.stopLimit = require('./stopLimit'); |
@@ -11,3 +11,3 @@ /* | ||
function stopLimit(action, quantity, limitPrice, stopPrice) { | ||
function stopLimit(action, quantity, limitPrice, stopPrice, transmitOrder) { | ||
assert(_.isString(action), 'Action must be a string.'); | ||
@@ -17,2 +17,6 @@ assert(_.isNumber(quantity), 'Quantity must be a string.'); | ||
assert(_.isNumber(limitPrice), 'Limit price must be a number.'); | ||
if (transmitOrder === undefined) { | ||
transmitOrder = true; | ||
} | ||
@@ -24,3 +28,4 @@ return { | ||
orderType: 'STP LMT', | ||
totalQuantity: quantity | ||
totalQuantity: quantity, | ||
transmit: transmitOrder | ||
}; | ||
@@ -27,0 +32,0 @@ } |
{ | ||
"name": "ib", | ||
"description": "Interactive Brokers TWS (or IB Gateway) API client library for Node.js", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -171,2 +171,5 @@ [![Logo](https://raw.github.com/pilwon/node-ib/master/logo.jpg)](http://interactivebrokers.com/) | ||
.order.limit(action, quantity, price) | ||
.order.market(action, quantity) | ||
.order.stop(action, quantity, price) | ||
.order.stopLimit(action, quantity, limitPrice, stopPrice) | ||
``` | ||
@@ -173,0 +176,0 @@ |
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
111599
21
2948
218