Skip to content

Commit ca13773

Browse files
committed
changelog update + version bump
1 parent 824b3d4 commit ca13773

File tree

4 files changed

+29
-10
lines changed

4 files changed

+29
-10
lines changed

CHANGELOG.rst

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

4+
0.1.58
5+
------
6+
- Allow specifying a custom requests session instance
7+
48
0.1.57
59
------
610
- Added Conversion rate hint using 'financialCurrency' property in earnings

README.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,18 @@ If you want to use a proxy server for downloading data, use:
149149
msft.option_chain(..., proxy="PROXY_SERVER")
150150
...
151151
152+
To use a custom ``requests`` session (for example to cache calls to the API
153+
or customize the ``User-agent`` header), pass a ``session=`` argument to the
154+
Ticker constructor:
155+
156+
.. code:: python
157+
import requests_cache
158+
session = requests_cache.CachedSession('yfinance.cache')
159+
session.headers['User-agent'] = 'my-program/1.0'
160+
ticker = yf.Ticker('msft aapl goog', session=session)
161+
# The scraped response will be stored in the cache
162+
ticker.actions
163+
152164
To initialize multiple ``Ticker`` objects, use
153165

154166
.. code:: python
@@ -221,7 +233,7 @@ The following answer on Stack Overflow is for `How to deal with multi-level colu
221233
* ``yfinance`` returns a ``pandas.DataFrame`` with multi-level column names, with a level for the ticker and a level for the stock price data
222234

223235
* The answer discusses:
224-
236+
225237
* How to correctly read the the multi-level columns after saving the dataframe to a csv with ``pandas.DataFrame.to_csv``
226238
* How to download single or multiple tickers into a single dataframe with single level column names and a ticker column
227239

meta.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{% set name = "yfinance" %}
2-
{% set version = "0.1.55" %}
2+
{% set version = "0.1.57" %}
33

44
package:
55
name: "{{ name|lower }}"
66
version: "{{ version }}"
77

88
source:
99
url: "https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz"
10-
sha256: "65d39bccf16bef35f6a08bf0df33650c0515b5ce8ea3c53924601f5fe00590cb"
10+
sha256: "90ea05e08d2760918c227ec9c2a429a444353c7f8ff3340f2166a5c4678feec4"
1111

1212
build:
1313
noarch: python
@@ -16,18 +16,21 @@ build:
1616

1717
requirements:
1818
host:
19+
- pandas >=0.24.0
20+
- numpy >=1.16.5
21+
- requests >=2.21
1922
- multitasking >=0.0.7
20-
- numpy >=1.15
21-
- pandas >=0.24
23+
- lxml >=4.5.1
2224
- pip
2325
- python
24-
- requests >=2.20
26+
2527
run:
28+
- pandas >=0.24.0
29+
- numpy >=1.16.5
30+
- requests >=2.21
2631
- multitasking >=0.0.7
27-
- numpy >=1.15
28-
- pandas >=0.24
32+
- lxml >=4.5.1
2933
- python
30-
- requests >=2.20
3134

3235
test:
3336
imports:

yfinance/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "0.1.57"
1+
version = "0.1.58"

0 commit comments

Comments
 (0)