-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add minimal quick-start to root Simplify examples/ticker.py Separate Ticker API into more groups in reference/index.rst Fix some duplicate labels
- Loading branch information
1 parent
5d8b444
commit ce8f8a0
Showing
23 changed files
with
311 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
======== | ||
Advanced | ||
======== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
logging | ||
proxy | ||
caching | ||
multi_level_columns |
4 changes: 2 additions & 2 deletions
4
doc/source/user_guide/logging.rst → doc/source/advanced/logging.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...source/user_guide/multi_level_columns.rst → doc/source/advanced/multi_level_columns.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
doc/source/user_guide/proxy.rst → doc/source/advanced/proxy.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
=========== | ||
Development | ||
=============================== | ||
=========== | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,22 @@ | ||
import yfinance as yf | ||
|
||
msft = yf.Ticker("MSFT") | ||
|
||
# get all stock info | ||
msft.info | ||
dat = yf.Ticker("MSFT") | ||
|
||
# get historical market data | ||
hist = msft.history(period="1mo") | ||
|
||
# show meta information about the history (requires history() to be called first) | ||
msft.history_metadata | ||
|
||
# show actions (dividends, splits, capital gains) | ||
msft.actions | ||
msft.dividends | ||
msft.splits | ||
msft.capital_gains # only for mutual funds & etfs | ||
|
||
# show share count | ||
msft.get_shares_full(start="2022-01-01", end=None) | ||
|
||
# show financials: | ||
msft.calendar | ||
msft.sec_filings | ||
# - income statement | ||
msft.income_stmt | ||
msft.quarterly_income_stmt | ||
# - balance sheet | ||
msft.balance_sheet | ||
msft.quarterly_balance_sheet | ||
# - cash flow statement | ||
msft.cashflow | ||
msft.quarterly_cashflow | ||
# see `Ticker.get_income_stmt()` for more options | ||
|
||
# show holders | ||
msft.major_holders | ||
msft.institutional_holders | ||
msft.mutualfund_holders | ||
msft.insider_transactions | ||
msft.insider_purchases | ||
msft.insider_roster_holders | ||
|
||
msft.sustainability | ||
|
||
# show recommendations | ||
msft.recommendations | ||
msft.recommendations_summary | ||
msft.upgrades_downgrades | ||
|
||
# show analysts data | ||
msft.analyst_price_targets | ||
msft.earnings_estimate | ||
msft.revenue_estimate | ||
msft.earnings_history | ||
msft.eps_trend | ||
msft.eps_revisions | ||
msft.growth_estimates | ||
dat.history(period='1mo') | ||
|
||
# Show future and historic earnings dates, returns at most next 4 quarters and last 8 quarters by default. | ||
# Note: If more are needed use msft.get_earnings_dates(limit=XX) with increased limit argument. | ||
msft.earnings_dates | ||
# options | ||
dat.option_chain(dat.options[0]).calls | ||
|
||
# show ISIN code - *experimental* | ||
# ISIN = International Securities Identification Number | ||
msft.isin | ||
# get financials | ||
dat.balance_sheet | ||
dat.quarterly_income_stmt | ||
|
||
# show options expirations | ||
msft.options | ||
# dates | ||
dat.calendar | ||
|
||
# show news | ||
msft.news | ||
# general info | ||
dat.info | ||
|
||
# get option chain for specific expiration | ||
opt = msft.option_chain('YYYY-MM-DD') | ||
# data available via: opt.calls, opt.puts | ||
# analysis | ||
dat.analyst_price_targets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.