1.0.4 • Published 4 years ago

@stoqey/aurum-broker-mille v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Aurum broker API v0.0.8

Broker methods

MethodProgress
init
getAccountSummary
getOpenOrders
getAllPositions
enterPosition
exitPosition
searchSymbol
quoteSymbol
getMarketData
getPriceUpdate

Broker events

MethodProgress
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

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

0.0.9

4 years ago

0.0.5

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago