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

@stoqey/ib

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoqey/ib - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

1

dist/config.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IB_HOST = exports.IB_PORT = exports.forceLog = exports.isDev = void 0;
require('dotenv').config();

@@ -5,0 +4,0 @@ var env = process.env;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EXERCISE_ACTION = exports.TICK_TYPE = exports.LOG_LEVEL = exports.FA_DATA_TYPE = exports.BAG_SEC_TYPE = exports.MIN_SERVER_VER = exports.OUTGOING = exports.INCOMING = exports.SERVER_VERSION = exports.CLIENT_VERSION = exports.MAX_REQ_PER_SECOND = exports.DEFAULT_CLIENT_ID = exports.DEFAULT_PORT = exports.DEFAULT_HOST = exports.VERSION = void 0;
exports.VERSION = 'twsapi_macunix.970.01';

@@ -5,0 +4,0 @@ exports.DEFAULT_HOST = '127.0.0.1';

6

dist/contract/cfd.d.ts

@@ -0,1 +1,7 @@

/**
* CFD contract
* @param symbol
* @param currency
* @param exchange
*/
export declare function cfd(symbol: string, currency?: string, exchange?: string): {

@@ -2,0 +8,0 @@ currency: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.cfd = void 0;
/**
* CFD contract
* @param symbol
* @param currency
* @param exchange
*/
function cfd(symbol, currency, exchange) {

@@ -5,0 +10,0 @@ return {

@@ -0,1 +1,7 @@

/**
* Combo
* @param symbol
* @param currency
* @param exchange
*/
export declare function combo(symbol: string, currency?: string, exchange?: string): {

@@ -2,0 +8,0 @@ currency: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.combo = void 0;
/**
* Combo
* @param symbol
* @param currency
* @param exchange
*/
function combo(symbol, currency, exchange) {

@@ -5,0 +10,0 @@ return {

@@ -0,1 +1,11 @@

/**
* FOP contract
* @param symbol
* @param expiry
* @param strike
* @param right
* @param multiplier
* @param exchange
* @param currency
*/
export declare function fop(symbol: string, expiry: string, strike: string, right: string, multiplier?: number, exchange?: string, currency?: string): {

@@ -2,0 +12,0 @@ currency: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fop = void 0;
/**
* FOP contract
* @param symbol
* @param expiry
* @param strike
* @param right
* @param multiplier
* @param exchange
* @param currency
*/
function fop(symbol, expiry, strike, right, multiplier, exchange, currency) {

@@ -5,0 +14,0 @@ return {

export declare const CURRENCIES: string[];
/**
* Forex contract
* @param symbol
* @param currency
*/
export declare function forex(symbol: string, currency: string): {

@@ -3,0 +8,0 @@ currency: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.forex = exports.CURRENCIES = void 0;
// Between two currencies,

@@ -13,2 +12,7 @@ // Whatever currency comes first should be in "symbol" and the other one must be in "currency".

];
/**
* Forex contract
* @param symbol
* @param currency
*/
function forex(symbol, currency) {

@@ -15,0 +19,0 @@ var temp;

@@ -1,8 +0,16 @@

export declare function future(symbol: any, expiry: any, currency: any, exchange: any, multiplier: any): {
/**
* Future contract
* @param symbol
* @param expiry
* @param currency
* @param exchange
* @param multiplier
*/
export declare function future(symbol: string, expiry: string, currency?: string, exchange?: string, multiplier?: number): {
secType: string;
symbol: any;
expiry: any;
currency: any;
exchange: any;
multiplier: any;
symbol: string;
expiry: string;
currency: string;
exchange: string;
multiplier: number;
};
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.future = void 0;
var assert_1 = __importDefault(require("assert"));
var lodash_1 = __importDefault(require("lodash"));
/**
* Future contract
* @param symbol
* @param expiry
* @param currency
* @param exchange
* @param multiplier
*/
function future(symbol, expiry, currency, exchange, multiplier) {
assert_1.default(lodash_1.default.isString(symbol), 'Symbol must be a string.');
assert_1.default(lodash_1.default.isString(expiry), 'Expiry must be a string.');
return {

@@ -13,0 +13,0 @@ secType: 'FUT',

@@ -0,1 +1,7 @@

/**
* Index contract
* @param symbol
* @param currency
* @param exchange
*/
export declare function index(symbol: string, currency?: string, exchange?: string): {

@@ -2,0 +8,0 @@ currency: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.index = void 0;
/**
* Index contract
* @param symbol
* @param currency
* @param exchange
*/
function index(symbol, currency, exchange) {

@@ -5,0 +10,0 @@ return {

@@ -17,4 +17,4 @@ import { fop } from "./fop";

forex: typeof forex;
index: typeof index;
ind: typeof index;
};
export default _default;

@@ -19,4 +19,4 @@ "use strict";

forex: forex_1.forex,
index: ind_1.index
ind: ind_1.index
};
//# sourceMappingURL=index.js.map

@@ -1,10 +0,19 @@

export declare function option(symbol: any, expiry: any, strike: any, right: any, exchange: any, currency: any): {
currency: any;
exchange: any;
expiry: any;
/**
* Option contact
* @param symbol
* @param expiry
* @param strike
* @param right
* @param exchange
* @param currency
*/
export declare function option(symbol: string, expiry: string, strike: string, right: string, exchange?: string, currency?: string): {
currency: string;
exchange: string;
expiry: string;
multiplier: number;
right: any;
right: string;
secType: string;
strike: any;
symbol: any;
strike: string;
symbol: string;
};
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.option = void 0;
var assert_1 = __importDefault(require("assert"));
var lodash_1 = __importDefault(require("lodash"));
/**
* Option contact
* @param symbol
* @param expiry
* @param strike
* @param right
* @param exchange
* @param currency
*/
function option(symbol, expiry, strike, right, exchange, currency) {
assert_1.default(lodash_1.default.isString(right), 'Right must be a string.');
assert_1.default(lodash_1.default.isString(symbol), 'Symbol must be a string.');
assert_1.default(lodash_1.default.isString(expiry), 'Expiry must be a string.');
assert_1.default(lodash_1.default.isNumber(strike), 'Strike must be a number.');
return {

@@ -15,0 +14,0 @@ currency: currency || 'USD',

@@ -0,1 +1,7 @@

/**
* Stock contract
* @param symbol
* @param exchange
* @param currency
*/
export declare function stock(symbol: string, exchange?: string, currency?: string): {

@@ -2,0 +8,0 @@ currency: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.stock = void 0;
/**
* Stock contract
* @param symbol
* @param exchange
* @param currency
*/
function stock(symbol, exchange, currency) {
return {
currency: currency || 'USD',
exchange: exchange || 'CBOE',
exchange: exchange || 'SMART',
secType: 'STK',

@@ -9,0 +14,0 @@ symbol: symbol

@@ -13,3 +13,3 @@ /// <reference types="node" />

forex: typeof import("./contract/forex").forex;
index: typeof import("./contract/ind").index;
ind: typeof import("./contract/ind").index;
};

@@ -16,0 +16,0 @@ order: {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.limit = void 0;
function limit(action, quantity, price, transmitOrder) {

@@ -5,0 +4,0 @@ if (transmitOrder === undefined) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.market = void 0;
function market(action, quantity, transmitOrder, goodAfterTime, goodTillDate) {

@@ -5,0 +4,0 @@ if (transmitOrder === undefined) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.marketClose = void 0;
function marketClose(action, quantity, transmitOrder) {

@@ -5,0 +4,0 @@ if (transmitOrder === undefined) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.stop = void 0;
function stop(action, quantity, price, transmitOrder, parentId, tif) {

@@ -5,0 +4,0 @@ return {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.stopLimit = void 0;
function stopLimit(action, quantity, limitPrice, stopPrice, transmitOrder, parentId, tif) {

@@ -5,0 +4,0 @@ return {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.trailingStop = void 0;
function trailingStop(action, quantity, auxPrice, tif, transmitOrder, parentId) {

@@ -5,0 +4,0 @@ return {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.tickTypeToString = exports.outgoingToString = exports.numberToString = exports.incomingToString = exports._findKeyForValue = void 0;
var constants_1 = require("./constants");

@@ -5,0 +4,0 @@ function _findKeyForValue(object, value) {

{
"name": "@stoqey/ib",
"private": false,
"version": "0.0.1",
"version": "0.0.2",
"description": "Interactive Brokers TWS/IB Gateway API client library for Node.js (TS)",

@@ -6,0 +6,0 @@ "main": "dist/index.js",

<p align="center">
<h1 align="center">[WIP] Interactive Brokers Typescript</h1>
<h1 align="center">Interactive Brokers Typescript</h1>
</p>

@@ -5,0 +5,0 @@

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

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

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc