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.4 to 0.1.5

lib/order/market.js

2

lib/order/index.js

@@ -8,2 +8,4 @@ /*

exports.limit = require('./limit');
exports.market = require('./market');
exports.stop = require('./stop');
exports.stopLimit = require('./stopLimit');

9

lib/order/stopLimit.js

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

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