New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@stoqey/ibkr

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoqey/ibkr

NodeJS Interactive Brokers wrapper & utilities

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

IBKR - NodeJS Interactive Brokers wrapper & utilities

npm Commitizen friendly TypeScript compatible

Run IBKR in style

This is an event-based ibkr client for node

  • Accounts
  • Portfolios
  • Orders/Trades
  • Historical Data + Realtime price updates
  • Contracts

1. Install

npm i @stoqey/ibkr

2. Usage

import ibkr, { AccountSummary, APPEVENTS, AppEvents, HistoryData, PortFolioUpdate } from '@stoqey/ibkr';

const ibkrEvents = AppEvents.Instance;

ibkr().then(started => {
  
    if(!started){
          // Error IBKR has not started
          console.log('error cannot start ibkr');
        //   Not to proceed if not connected with interactive brokers
          return process.exit(1);
    }

    // Register listners
    console.log('IBKR App has started', AccountSummary.Instance.AccountId);
    
    //  Portfolios
    ibkrEvents.on(APPEVENTS.PORTFOLIOS, (porfolios: PortFolioUpdate) => {
      // use porfolios here
    })

     //  Market data
     ibkrEvents.on(APPEVENTS.ON_MARKET_DATA, ({ symbol, marketData }) => {
      //  Use the data here
    })

})


see any .test.ts file for examples

Keywords

FAQs

Package last updated on 23 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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