IBKR - NodeJS Interactive Brokers wrapper & utilities

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){
console.log('error cannot start ibkr');
return process.exit(1);
}
console.log('IBKR App has started', AccountSummary.Instance.AccountId);
ibkrEvents.on(APPEVENTS.PORTFOLIOS, (porfolios: PortFolioUpdate) => {
})
ibkrEvents.on(APPEVENTS.ON_MARKET_DATA, ({ symbol, marketData }) => {
})
})
see any .test.ts
file for examples