Socket
Socket
Sign inDemoInstall

ibapi

Package Overview
Dependencies
3
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.2 to 2.5.0

StdAfx.cpp

2

examples/atsExample.js

@@ -133,3 +133,3 @@ // In this example, we will implement a simple currency trading application

var connected = api.connect('127.0.0.1',7496,11);
var connected = api.connect('127.0.0.1', 7496, 11, false);

@@ -136,0 +136,0 @@ if (connected) {

@@ -54,3 +54,3 @@ // This file shows you one example of a barebones program that handles

// Connect to the TWS client or IB Gateway
var connected = api.connect('127.0.0.1', 7496, 0);
var connected = api.connect('127.0.0.1', 7496, 0, false);

@@ -57,0 +57,0 @@ // Once connected, start processing incoming and outgoing messages

@@ -67,3 +67,3 @@ // In this example, we will request and receive a historical market data

var connected = api.connect('127.0.0.1', 7496, 0);
var connected = api.connect('127.0.0.1', 7496, 0, false);

@@ -70,0 +70,0 @@ if (connected) {

@@ -79,3 +79,3 @@ // In this example, we will try to submit a market data subscription

var connected = api.connect('127.0.0.1', 7496, 0);
var connected = api.connect('127.0.0.1', 7496, 0, false);

@@ -82,0 +82,0 @@ if (connected) {

@@ -79,3 +79,3 @@ // In this example, we will try to place a limit order and to

var connected = api.connect('127.0.0.1', 7496, 0);
var connected = api.connect('127.0.0.1', 7496, 0, false);

@@ -82,0 +82,0 @@ if (connected) {

@@ -133,3 +133,3 @@ // In this example, we will submit orders with different methods

var connected = api.connect('127.0.0.1', 7496, 0);
var connected = api.connect('127.0.0.1', 7496, 0, false);

@@ -136,0 +136,0 @@ if (connected) {

@@ -76,3 +76,3 @@ // In this example, we will try to submit a realtimeBar request

// Connect to the TWS client or IB Gateway
var connected = api.connect('127.0.0.1', 7496, 0);
var connected = api.connect('127.0.0.1', 7496, 0, false);

@@ -79,0 +79,0 @@ // Once connected, start processing incoming and outgoing messages

@@ -59,3 +59,3 @@ // In this example, we will request a scanner subscription and receive the

var connected = api.connect('127.0.0.1', 7496, 0);
var connected = api.connect('127.0.0.1', 7496, 0, false);

@@ -62,0 +62,0 @@ if (connected) {

@@ -36,3 +36,2 @@ 'use strict'

_processMessage: function (next) {
this.client.checkMessages();
this.client.processMsg();

@@ -64,5 +63,6 @@ var message = this.client.getInboundMsg();

* @param {int} clientId -
* @param {bool} extraAuth -
*/
connect: function (host, port, clientId) {
return this.client.connect(host, port, clientId);
connect: function (host, port, clientId, extraAuth) {
return this.client.connect(host, port, clientId, extraAuth);
},

@@ -103,12 +103,2 @@

/**
* Returns the version of the TWS instance to which the API application is
* connected. See
* interactivebrokers.com/en/software/api/apiguide/c/serverversion.htm
* @memberof NodeIbapi
*/
serverVersion: function () {
return this.client.serverVersion();
},
/**
* Returns the time the API application made a connection to TWS. See

@@ -244,12 +234,2 @@ * interactivebrokers.com/en/software/api/apiguide/c/twsconnectiontime.htm

/**
* This function should be called frequently (every 1 second) to check for
* messages received from TWS. In NodeIbapi, this is automatically called See
* interactivebrokers.com/en/software/api/apiguide/c/checkmessages.htm
* @memberof NodeIbapi
*/
checkMessages: function () {
this.doAction( function () { this.client.checkMessages(); });
},
/**
* Call this function to download all details for a particular underlying.

@@ -730,2 +710,85 @@ * The contract details will be received via the contractDetails() function

/**
* See
* https://interactivebrokers.github.io/tws-api/classIBApi_1_1EClient.html#a4fa2744c3459f9f6cf695980267608c3
* @memberof NodeIbapi
* @param {int} reqId -
* @param {string} account -
* @param {string} modelCode -
*/
reqPositionsMulti: function (reqId, account, modelCode) {
this.doAction( function () {
this.client.reqPositionsMulti(reqId, account, modelCode);
});
},
/**
* See
* https://interactivebrokers.github.io/tws-api/classIBApi_1_1EClient.html#ae919658c15bceba6b6cf2a1336d0acbf
* @memberof NodeIbapi
* @param {int} reqId -
*/
cancelPositionsMulti: function (reqId) {
this.doAction( function () {
this.client.cancelPositionsMulti(reqId);
});
},
/**
* See
* https://interactivebrokers.github.io/tws-api/classIBApi_1_1EClient.html#a7233f67c6c69f3057994b6b97a366dfb
* @memberof NodeIbapi
* @param {int} reqId -
* @param {string} account -
* @param {string} modelCode -
* @param {bool} ledgerAndNLV -
*/
reqAccountUpdatesMulti: function (reqId, account, modelCode, ledgerAndNLV) {
this.doAction( function () {
this.client.reqAccountUpdatesMulti(reqId, account, modelCode, ledgerAndNLV);
});
},
/**
* See
* https://interactivebrokers.github.io/tws-api/classIBApi_1_1EClient.html#aff0d1003f82436d8bd1ba2e5a1cf09d5
* @memberof NodeIbapi
* @param {int} reqId -
*/
cancelAccountUpdatesMulti: function (reqId) {
this.doAction( function () {
this.client.cancelAccountUpdatesMulti(reqId);
});
},
/**
* See
* https://interactivebrokers.github.io/tws-api/classIBApi_1_1EClient.html#adb17b291044d2f8dcca5169b2c6fd690
* @memberof NodeIbapi
* @param {int} reqId -
* @param {string} underlyingSymbol -
* @param {string} futFopExchange -
* @param {string} underlyingSecType -
* @param {int} underlyingConId -
*/
reqSecDefOptParams: function (reqId, underlyingSymbol, futFopExchange,
underlyingSecType, underlyingConId) {
this.doAction( function () {
this.client.reqSecDefOptParams(reqId, underlyingSymbol, futFopExchange,
underlyingSecType, underlyingConId);
});
},
/**
* See
* https://interactivebrokers.github.io/tws-api/classIBApi_1_1EClient.html#a3a187b45bb69f801b1c67bdf3fb66a88
* @memberof NodeIbapi
* @param {int} reqId -
*/
reqSoftDollarTiers: function (reqId) {
this.doAction( function () {
this.client.reqSoftDollarTiers(reqId);
});
},
/**
* Call this function to request from TWS the next valid ID that can be used

@@ -732,0 +795,0 @@ * when placing an order. After calling this function, the nextValidId()

@@ -48,5 +48,12 @@ var messageIds = {

disconnected: 'disconnected',
currentTime: 'currentTime'
currentTime: 'currentTime',
positionMulti: 'positionMulti',
positionMultiEnd: 'positionMultiEnd',
accountUpdateMulti: 'accountUpdateMulti',
accountUpdateMultiEnd: 'accountUpdateMultiEnd',
securityDefinitionOptionalParameter: 'securityDefinitionOptionalParameter',
securityDefinitionOptionalParameterEnd: 'securityDefinitionOptionalParameterEnd',
softDollarTiers: 'softDollarTiers'
};
module.exports = messageIds;
{
"name": "ibapi",
"version": "2.4.2",
"version": "2.5.0",
"description": "Interactive Brokers API addon for NodeJS ",

@@ -15,7 +15,7 @@ "main": "ibapi.js",

"type": "git",
"url": "https://gitlord.com/r/~dchem/node-ibapi-addon.git"
"url": "git://github.com/dchem/node-ibapi-addon.git"
},
"dependencies": {
"async": "0.9.0",
"limiter": "1.0.5"
"async": "^2.4.1",
"limiter": "^1.1.0"
},

@@ -62,3 +62,2 @@ "keywords": [

},
"homepage": "https://gitlord.com/summary/~dchem%2Fnode-ibapi-addon.git",
"devDependencies": {

@@ -65,0 +64,0 @@ "node-gyp": "^1.0.2"

node-ibapi-addon
================
[![Build Status](https://leeroy.gitlord.com/buildStatus/icon?job=node-ibapi-addon-n4.2.1-release)](https://leeroy.gitlord.com/job/node-ibapi-addon-n4.2.1-release)
[![Build Status](https://leeroy.gitlord.com/buildStatus/icon?job=node-ibapi-addon-n6.11.0-release)](https://leeroy.gitlord.com/job/node-ibapi-addon-n6.11.0-release)
Interactive Brokers API addon for Node.js compatible with IB API 9.71
Interactive Brokers API addon for Node.js compatible with IB API 9.72

@@ -27,2 +27,3 @@ This addon uses the latest stable Interactive Brokers POSIX C++ API.

* YYYY-MM-DD - SEMVER - Notes
* 2017-06-10 - 2.5.0 - Supports API 9.72
* 2015-11-21 - 2.4.0 - Fixes server error message handling

@@ -165,3 +166,3 @@ * 2015-06-27 - 2.3.3 - Fixes build (removes sourceforge)

// Connect to the TWS client or IB Gateway
var connected = api.connect('127.0.0.1', 7496, 0);
var connected = api.connect('127.0.0.1', 7496, 0, false);

@@ -214,3 +215,2 @@ // Once connected, start processing incoming and outgoing messages

.reqIds(num) // only accepts 1 for the time being (9.71)
.checkMessages()
.reqContractDetails(reqId, contract)

@@ -254,2 +254,8 @@ .reqMktDepth(tickerId, contract, numRows )

.unsubscribeFromGroupEvents( reqId )
.reqPositionsMulti(reqId, account, modelCode)
.cancelPositionsMulti(reqId)
.reqAccountUpdatesMulti(reqId, account, modelCode, ledgerAndNLV)
.cancelAccountUpdatesMulti(reqId)
.reqSecDefOptParams(reqId, underlyingSymbol, futFopExchange, underlyingSecType, underlyingConId)
.reqSoftDollarTiers(reqId)
```

@@ -307,2 +313,9 @@

disconnected
positionMulti
positionMultiEnd
accountUpdateMulti
accountUpdateMultiEnd
securityDefinitionOptionalParameter
securityDefinitionOptionalParameterEnd
softDollarTiers
```

@@ -317,2 +330,2 @@

### License
Copyright (c) 2016 Jae Yang. See LICENSE file for license rights and limitations (MIT).
Copyright (c) 2017 Jae Yang. See LICENSE file for license rights and limitations (MIT).

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc