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

ib

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ib - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

lib/order/stopLimit.js

4

lib/contract/future.js

@@ -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)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc