pyEscoAPI 0.0.9__tar.gz → 0.0.10__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyEscoAPI
3
- Version: 0.0.9
3
+ Version: 0.0.10
4
4
  Summary: Python client for Esco API (Esco bolsa)
5
5
  Author-email: Codetria <hola@codetria.com>
6
6
  License: MIT License
@@ -507,6 +507,17 @@ class EscoAPI:
507
507
  request_method=HTTPMethod.POST
508
508
  )
509
509
 
510
+ def get_cotizaciones_monedas(self):
511
+ """
512
+ Devuelve la cotización de cada moneda.
513
+ """
514
+ self.__pre_connection()
515
+ return self.__make_request(
516
+ request_endpoint="/get-cotizaciones-monedas",
517
+ request_body={},
518
+ request_method=HTTPMethod.GET
519
+ )
520
+
510
521
  def get_monedas(self):
511
522
  """
512
523
  Devuelve la lista de Monedas habilitadas.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyEscoAPI
3
- Version: 0.0.9
3
+ Version: 0.0.10
4
4
  Summary: Python client for Esco API (Esco bolsa)
5
5
  Author-email: Codetria <hola@codetria.com>
6
6
  License: MIT License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = 'pyEscoAPI'
7
- version = "0.0.9"
7
+ version = "0.0.10"
8
8
  license = {text = "MIT License"}
9
9
  authors = [
10
10
  { name="Codetria", email="hola@codetria.com" },
@@ -103,6 +103,13 @@ def test_get_cotizaciones_cierre_search(api_client):
103
103
  assert result[0]["monedaAbreviatura"] == "ARS"
104
104
 
105
105
 
106
+ def test_get_cotizaciones_monedas(api_client):
107
+ result = api_client.get_cotizaciones_monedas()
108
+ assert len(result) > 0
109
+ assert "iso" in result[0]
110
+ assert "cotizacion" in result[0]
111
+
112
+
106
113
  def test_get_instrumento(api_client):
107
114
  instrumento = "COME"
108
115
  result = api_client.get_instrumento(abreviatura=instrumento)
File without changes
File without changes