@stoqey/aurum-broker-ibkr
v1.1.9
Published
<h1 align="center">IBKR LIVE TRADING (AURUM)</h1>
Downloads
29
Readme
Aurum broker API v0.0.7
Broker methods
| Method | Progress | | ----------------- | -------- | | init | ✅ | | getAccountSummary | ✅ | | getOpenOrders | ✅ | | getAllPositions | ✅ | | enterPosition | ✅ | | exitPosition | ✅ | | searchSymbol | ❌ | | quoteSymbol | ❌ | | getMarketData | ✅ | | getPriceUpdate | ✅ |
Broker events
| Method | Progress | | ------------- | -------- | | onReady | ✅ | | onPortfolios | ✅ | | onOrder | ✅ | | onMarketData | ✅ | | onPriceUpdate | ✅ |
Installation
npm i @stoqey/aurum-broker-ibkr
Usage
import { IbkrBroker } from '@stoqey/aurum-broker-ibkr';
const broker = new IbkrBroker();
// register events
broker.when('onReady', async () => {
console.log('IBKR broker is ready');
// Get price updates
broker.getPriceUpdate({ symbol: "AAPL" });
});
broker.when("onPriceUpdate", async ({ symbol, close, ...others }) => {
console.log('on price updates data is', symbol);
});
// start the broker
broker.init();
Other implementations
STOQEY INC