@stoqey/aurum-broker-mille
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

MILLE PAPER TRADING (AURUM)

NPM

A broker implementation for aurum using Mille paper trading

Aurum broker API v0.0.8

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 { 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();

Other implementations

STOQEY INC

Readme

Keywords

none

Package Sidebar

Install

npm i @stoqey/aurum-broker-mille

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

106 kB

Total Files

36

Last publish

Collaborators

  • ceddy