1.11.0 • Published 2 months ago

bullmarket v1.11.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

bullmarket

Bull Market Brokers API for Node.js

npm i bullmarket

https://www.bullmarketbrokers.com

Usage

const BullMarket = require('bullmarket')

const broker = new BullMarket({
  email: 'email@gmail.com',
  password: 'p4ssw0rd',
  fingerprint: '<inspect element at /Security/SignIn to find it>'
})

await broker.login()

const stockAccounts = await broker.getStockAccounts()
await broker.setStockAccount(stockAccounts[0].number)

const screen = await broker.getScreen(stockAccounts[0].number)
const orders = await broker.getOrders(stockAccounts[0].number)
const balance = await broker.getAccountBalance(stockAccounts[0].number)
const dollars = await broker.getDollarsPrice()

const stocks1 = await broker.getStockPrices('merval', 'ci')
const stocks2 = await broker.getStockPrices('panel general', 'ci')
const stocks3 = await broker.getStockPrices('opciones', 'ci')
const stocks4 = await broker.getStockPrices('bonos', 'ci')
const stocks5 = await broker.getStockPrices('cedears', 'ci')
const stocks6 = await broker.getStockPrices('cauciones', 'ci')

const stocks7 = await broker.getStockPrices('merval', '48hs')
const stocks8 = await broker.getStockPrices('panel general', '48hs')

const stock = await broker.initializeStockPrice('AAPL', '48hs')
const stocks = await broker.getStockPrice([{ symbol: 'SHOP', term: 'ci' }, { symbol: 'SHOP', term: '48hs' }])

const stockDescription = await broker.getStockDescription('AAPL')

await broker.logout()

License

MIT

1.11.0

2 months ago

1.10.3

2 months ago

1.10.2

2 months ago

1.10.1

2 months ago

1.10.0

3 months ago

1.9.0

3 months ago

1.8.1

3 months ago

1.8.0

3 months ago

1.7.1

3 months ago

1.7.0

3 months ago

1.6.0

3 months ago

1.5.0

3 months ago

1.2.0

3 months ago

1.1.0

3 months ago

1.4.0

3 months ago

1.3.1

3 months ago

1.3.0

3 months ago

1.0.0

7 months ago