Socket
Socket
Sign inDemoInstall

bmfbovespa-ajuste

Package Overview
Dependencies
155
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bmfbovespa-ajuste

scrape table content of bmf bovespa assets


Version published
Maintainers
1
Install size
13.0 MB
Created

Readme

Source

bmfbovespa-ajuste

This module get daily assets adjustment from Ajustes do pregão

PT_BR: Desenvolvi esse módulo para facilitar a vida de quem precisa pegar a lista de todos os ajustes diários dos ativos da bolsa.

installation

$ npm install bmfbovespa-ajuste

Usage

const getAssetList = require('bmfbovespa-ajuste')
const util = require('util')

;(async () => {
  const result = await getAssetList()
  console.log(util.inspect(result, { depth: 4, colors: true, compact: 3 }))
})()

Result

{
    date: '04/08/2019', //date of the last adjstment
    list: [
	{ asset: 'ZAR - RANDE DA ÁFRICA DO SUL',
       assetCode: 'ZAR',
       vtc:
        [ { code: 'V19',
            beforePrice: '2.761,8520',
            currentPrice: '2.765,3990',
            variation: '3,5470',
            valueOfAdjustmentPerContract: '124,14' }
            ...
         ]
		...
	]
  }

Promise => getAssetList({ url, selector })

you can change default params if url of page or html change

  getAssetList({
    url: 'URL-OF-PAGE-TO-BE-SCRAPED', // default is 'http://www2.bmf.com.br/pages/portal/bmfbovespa/lumis/lum-ajustes-do-pregao-ptBR.asp'
    selector: 'CSS-SELECTOR-OF-TRS-OF-TABLE' //default is '#tblDadosAjustes tr'
  })

Keywords

FAQs

Last updated on 16 Sep 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc