Giter Site home page Giter Site logo

bullmarket's Introduction

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 protected]',
  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

bullmarket's People

Contributors

lukks avatar brunovivas avatar dysphie avatar

Watchers

 avatar

bullmarket's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.