Skip to content

Commit 6761cf8

Browse files
authored
Merge pull request #318 from dpguthrie/fix/period2
Fix period2 in fundamentals methods
2 parents 7618c68 + 7198d40 commit 6761cf8

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Change Log
22
==========
33

4+
2.4.1
5+
-----
6+
## Fix
7+
- Fix bug related to `period2` in `fundamentals` endpoint
8+
49
2.4.0
510
-----
611
## Update

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "yahooquery"
3-
version = "2.4.0"
3+
version = "2.4.1"
44
description = "Python wrapper for an unofficial Yahoo Finance API"
55
authors = [
66
{name = "Doug Guthrie", email = "[email protected]"}

yahooquery/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Python interface to unofficial Yahoo Finance API endpoints"""
22

33
name = "yahooquery"
4-
__version__ = "2.4.0"
4+
__version__ = "2.4.1"
55

66

77
from .misc import ( # noqa

yahooquery/constants.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import time
2+
13
BROWSERS = {
24
"chrome99": {
35
"sec-ch-ua": '" Not A;Brand";v="99", "Chromium";v="99", "Google Chrome";v="99"',
@@ -742,7 +744,7 @@
742744
"response_field": "timeseries",
743745
"query": {
744746
"period1": {"required": True, "default": 493590046},
745-
"period2": {"required": True, "default": None},
747+
"period2": {"required": True, "default": int(time.time())},
746748
"type": {
747749
"required": True,
748750
"default": None,
@@ -757,7 +759,7 @@
757759
"response_field": "timeseries",
758760
"query": {
759761
"period1": {"required": True, "default": 493590046},
760-
"period2": {"required": True, "default": None},
762+
"period2": {"required": True, "default": int(time.time())},
761763
"type": {
762764
"required": True,
763765
"default": None,

0 commit comments

Comments
 (0)