Skip to content

Google Apps Script implementation to retrieve exchange data from the Brazilian Central Bank API.

License

Notifications You must be signed in to change notification settings

rmottanet/bacenptax-gas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bacenptax-gas

ctrl+s ✌️

BacenPtax is a JavaScript library for Google Apps Script to obtain currency quotes from the Central Bank of Brazil (Bacen) via the PTAX system. This library makes it easy to integrate your projects with the most up-to-date exchange rate data, allowing you to build customized solutions for your needs.

Features:

  • Quotation retrieval: Retrieves the quotations of various currencies on a specific date.
  • Date formatting: Formats dates to meet the requirements of the Bacen API.
  • Endpoint construction: Automatically generates endpoints for HTTP requests.
  • Ease of use: Simple and intuitive interface for interacting with the Bacen API.

How to use:

To use BacenPtax in your Google Apps Script, follow these steps:

  1. Open the Google Apps Script script where you want to use the library.
  2. Go to Library > Add libraries.
  3. Paste the project ID:
1mu3XX24jnB9iIr5Zwfse4BGwPYxn0YQR_ChnrvuXu6BaHdqW_RnUych6

Exemple:

function getDollarQuote() {

  var code = 'usd';
  var quote = BacenPtax.getPriceQuote(code, '10/22/2024');

  Logger.log(quote);
  
}

Thank you for considering the BacenPtax for your needs. If you have any questions or need further assistance, please don't hesitate to reach out.



Static Badge Static Badge Static Badge Static Badge

About

Google Apps Script implementation to retrieve exchange data from the Brazilian Central Bank API.

Topics

Resources

License

Stars

Watchers

Forks