Comparing version 0.1.3 to 0.1.4
@@ -11,3 +11,3 @@ /* | ||
function future(symbol, expiry, currency) { | ||
function future(symbol, expiry, currency, exchange) { | ||
assert(_.isString(symbol), 'Symbol must be a string.'); | ||
@@ -18,3 +18,3 @@ assert(_.isString(expiry), 'Expiry must be a string.'); | ||
currency: currency || 'USD', | ||
exchange: 'ONE', | ||
exchange: exchange || 'ONE', | ||
expiry: expiry, | ||
@@ -21,0 +21,0 @@ secType: 'FUT', |
@@ -8,1 +8,2 @@ /* | ||
exports.limit = require('./limit'); | ||
exports.stopLimit = require('./stopLimit'); |
@@ -11,3 +11,3 @@ /* | ||
function limit(action, quantity, price) { | ||
function limit(action, quantity, price, transmitOrder) { | ||
assert(_.isString(action), 'Action must be a string.'); | ||
@@ -17,2 +17,6 @@ assert(_.isNumber(quantity), 'Quantity must be a string.'); | ||
if (transmitOrder === undefined) { | ||
transmitOrder = true; | ||
} | ||
return { | ||
@@ -22,3 +26,4 @@ action: action, | ||
orderType: 'LMT', | ||
totalQuantity: quantity | ||
totalQuantity: quantity, | ||
transmit: transmitOrder | ||
}; | ||
@@ -25,0 +30,0 @@ } |
{ | ||
"name": "ib", | ||
"description": "Interactive Brokers TWS (or IB Gateway) API client library for Node.js", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -165,3 +165,3 @@ [![Logo](https://raw.github.com/pilwon/node-ib/master/logo.jpg)](http://interactivebrokers.com/) | ||
.contract.forex(symbol, currency) | ||
.contract.future(symbol, expiry, currency) | ||
.contract.future(symbol, expiry, currency, exchange) | ||
.contract.option(symbol, expiry, strike, right, exchange, currency) | ||
@@ -168,0 +168,0 @@ .contract.stock(symbol, exchange, currency) |
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
110109
19
2898