From 516e8001e379dd53e3e7aee27f7e0e414853d125 Mon Sep 17 00:00:00 2001 From: andrea Date: Wed, 31 Jul 2024 12:39:44 +0200 Subject: [PATCH 1/2] fix: added support for ETFs --- yfdata/parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yfdata/parsing.py b/yfdata/parsing.py index 77d6fec..9fbe1ed 100644 --- a/yfdata/parsing.py +++ b/yfdata/parsing.py @@ -22,7 +22,7 @@ def parse_prices_or_rates(body: dict, ticker_or_pair: str) -> DataFrame: data = body["chart"]["result"][0] metadata = data["meta"] - if metadata["instrumentType"] == "EQUITY": + if metadata["instrumentType"] == "EQUITY" or metadata["instrumentType"] == "ETF": code_name = "ticker" elif metadata["instrumentType"] == "CURRENCY": code_name = "pair" From 18fa0cf47c01b2675aab810320d049abd43b8b73 Mon Sep 17 00:00:00 2001 From: andrea Date: Wed, 31 Jul 2024 12:39:54 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Bump=20version:=200.1.1=20=E2=86=92=200.1.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bumpversion.cfg | 2 +- README.md | 2 +- pyproject.toml | 2 +- setup.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index af409fa..fb41de1 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.1.1 +current_version = 0.1.2 commit = True tag = True diff --git a/README.md b/README.md index c805e1e..ecf12eb 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A simple-but-working python module that returns data from Yahoo Finance. -Current Version: 0.1.1 +Current Version: 0.1.2 ### Features diff --git a/pyproject.toml b/pyproject.toml index c9d930d..f0956ba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yfdata" -version = "0.1.1" +version = "0.1.2" description = "Client for Yahoo Finance data" authors = ["andrea "] license = "MIT" diff --git a/setup.py b/setup.py index e40ba30..5c1a6dd 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ setup( name="yf-data", - version="0.1.1", + version="0.1.2", keywords="yahoo finance data", description=DESCRIPTION, packages=packages,