Skip to main content

A package to get the exchange rates of the different types of dollars and others currencies in Argentina.

Project description

Argendolar Package

Description

This package is used to get the exchange rate between the Argentine Peso and the US Dollar and other currencies (Euro, Real, Peso Chileno y Peso Uruguayo). For this, it uses the Dolar API and the ArgentinaDatos API and then it converts the obtained data to a Pandas DataFrame for further analysis.

Installation

To install the package, you can use the following command:

pip install argendolar

Usage

To use the package, you can import the Argendolar class and create an instance of it.

from argendolar import Argendolar, TipoDivisas

# Create an instance of Argendolar
argendolar = Argendolar()

Methods

The Argendolar class has the following methods:

  • get_dolar(): Get all the dollars exchange rates: official, blue, mep, ccl, tarjeta, mayorista, etc.
  • get_oficial(): Get the official dollar exchange rate.
  • get_blue(): Get the blue dollar exchange rate.
  • get_mep(): Get the MEP dollar exchange rate.
  • get_ccl(): Get the CCL dollar exchange rate.
  • get_tarjeta(): Get the dollar exchange rate for credit cards.
  • get_mayorista(): Get the dollar exchange rate for wholesale.
  • get_cripo(): Get the dollar exchange rate for cripto.
  • get_euro(): Get the euro exchange rate.
  • get_real(): Get the real exchange rate.
  • get_chileno(): Get the peso chileno exchange rate.
  • get_uruguayo(): Get the peso uruguayo exchange rate.
  • get_dolar_historico(): Get the historical dollar exchange rate for a specific date and Dollar Type (TipoDivisa.OFICIAL, TipoDivisa.BLUE, TipoDivisa.MEP, TipoDivisa.CCL, TipoDivisa.TARJETA, TipoDivisa.MAYORISTA, TipoDivisa.CRIPTO)
  • get_dolar_historia_completa(): Get the complete historical dollar exchange rate since 2011.

Examples

Here are some examples of how to use the package:

from argendolar import Argendolar

# Create an instance of Argendolar
argendolar = Argendolar()

# Get the official dollar exchange rate
official = argendolar.get_oficial()

# Get the blue dollar exchange rate
blue = argendolar.get_blue()

# Get the MEP dollar exchange rate
mep = argendolar.get_mep()

# Get the CCL dollar exchange rate
ccl = argendolar.get_ccl()

# Get the dollar exchange rate for credit cards
tarjeta = argendolar.get_tarjeta()

# Get the dollar exchange rate for wholesale
mayorista = argendolar.get_mayorista()

# Get the dollar exchange rate for cripto
cripto = argendolar.get_cripo()

# Get the euro exchange rate
euro = argendolar.get_euro()

# Get the real exchange rate
real = argendolar.get_real()

# Get the peso chileno exchange rate
chileno = argendolar.get_chileno()

# Get the peso uruguayo exchange rate
uruguayo = argendolar.get_uruguayo()

# Get the historical dollar exchange rate for a specific date
historico = argendolar.get_dolar_historico(tipo: TipoDivisas.MEP, fecha='2022-01-01')

# Get the complete historical dollar exchange rate since 2011
historia_completa = argendolar.get_dolar_historia_completa()

Contributing

If you want to contribute to this project, you can follow the steps below:

  1. Fork the repository to your own GitHub account.
  2. Clone the repository to your local machine.
  3. Create a new branch for your changes.
  4. Make your changes and commit them.
  5. Push your changes to your forked repository.
  6. Create a pull request from your forked repository to the original repository.
  7. Wait for the review and approval of your pull request.
  8. Once your pull request is approved, your changes will be merged into the main branch of the original repository.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contact

If you have any questions or suggestions, you can contact me at Mariano Gobea Alcoba or Mariano Gobea Alcoba.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

argendolar-1.1.2.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

argendolar-1.1.2-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page