Skip to content

Commit

Permalink
Merge pull request #3 from caps6/dev
Browse files Browse the repository at this point in the history
bump version 0.1.2
  • Loading branch information
caps6 authored Jul 31, 2024
2 parents 693b8f7 + 18fa0cf commit cf02c91
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.1.1
current_version = 0.1.2
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "yfdata"
version = "0.1.1"
version = "0.1.2"
description = "Client for Yahoo Finance data"
authors = ["andrea <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

setup(
name="yf-data",
version="0.1.1",
version="0.1.2",
keywords="yahoo finance data",
description=DESCRIPTION,
packages=packages,
Expand Down
2 changes: 1 addition & 1 deletion yfdata/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cf02c91

Please sign in to comment.