npm-cotacoes

    1.0.2 • Public • Published

    npm-cotacoes

    The npm-cotacoes will help you get financial data more.

    Getting Started

    Installation

    To use npm-cotacoes in your project, run:

    npm i npm-cotacoes
    # or "yarn add npm-cotacoes"

    Usage

    For quotes you will use the following code:

    const {cotacoes} = require('npm-cotacoes')
    
    (async () => {
      const petrobras = await cotacoes('petr4'); //Pass the parameter of the quote you want to obtain
      console.log(petrobras)
    })();

    For exchange you will use the following code:

    const {cambio} = require('npm-cotacoes')
    
    (async () => {
      const moedas = await cambio();
      console.log(moedas)
    })();

    Quotation parameters

    Petrobras: petr4,

    Vale: vale3,

    Itaú: itub4,

    Ambev: abev3,

    Gerdau: ggbr4,

    Ibovespa: ibove,

    Bitcoin: btc,

    Índice de fundos de investimentos imobiliários: ifix

    Magazine Luiza: mglu3

    For exchange you don't need parameters

    Exchange Return Dollar, Euro, Yen, Swiss Franc, Peso, British Pound:

    Help us maintain the project: donate.

    Install

    npm i npm-cotacoes

    DownloadsWeekly Downloads

    4

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    8.05 kB

    Total Files

    3

    Last publish

    Collaborators

    • hallex-abreu