A broker implementation for aurum using Mille paper trading
Method | Progress |
---|---|
init | ✅ |
getAccountSummary | ✅ |
getOpenOrders | ✅ |
getAllPositions | ✅ |
enterPosition | ✅ |
exitPosition | ✅ |
searchSymbol | ❌ |
quoteSymbol | ✅ |
getMarketData | ✅ |
getPriceUpdate | ✅ |
Method | Progress |
---|---|
onReady | ✅ |
onPortfolios | ✅ |
onOrder | ✅ |
onMarketData | ✅ |
onPriceUpdate | ✅ |
npm i @stoqey/aurum-broker-ibkr
import { MilleBroker } from '@stoqey/aurum-broker-mille';
const broker = new MilleBroker(new Date("2020-03-10 09:30:00"));
// register events
broker.when('onReady', async () => {
console.log('Mille 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();
STOQEY INC