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:
- Fork the repository to your own GitHub account.
- Clone the repository to your local machine.
- Create a new branch for your changes.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Create a pull request from your forked repository to the original repository.
- Wait for the review and approval of your pull request.
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for argendolar-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce65007bc54cce25b6ba5bb20d4cfbe1427849c416c15929f11e5c5d10174181 |
|
MD5 | c59f69937ae4f489ac49623bfdf89a60 |
|
BLAKE2b-256 | e18d16616fea4799e9652e3b876b9fc8ef8037832c41d014beacd299e09cf0f1 |