forked from OpenBB-finance/OpenBB
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dividend history from yfinance (OpenBB-finance#1021)
- Loading branch information
Showing
6 changed files
with
130 additions
and
2 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
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
44 changes: 44 additions & 0 deletions
44
website/content/stocks/fundamental_analysis/divs/_index.md
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,44 @@ | ||
``` | ||
usage: divs [-n NUM] [-h] [--export {csv,json,xlsx}] | ||
``` | ||
|
||
Get historical dividends for company | ||
|
||
``` | ||
optional arguments: | ||
-n NUM, --num NUM Number of previous dividends to show (default: 12) | ||
-h, --help show this help message (default: False) | ||
--export {csv,json,xlsx} | ||
Export raw data into csv, json, xlsx (default: ) | ||
``` | ||
|
||
Sample output: | ||
``` | ||
╒════════════╤═══════════════════╤══════════╕ | ||
│ │ Amount Paid ($) │ Change │ | ||
╞════════════╪═══════════════════╪══════════╡ | ||
│ 2021-11-05 │ 0.22 │ 0.00 │ | ||
├────────────┼───────────────────┼──────────┤ | ||
│ 2021-08-06 │ 0.22 │ 0.00 │ | ||
├────────────┼───────────────────┼──────────┤ | ||
│ 2021-05-07 │ 0.22 │ 0.02 │ | ||
├────────────┼───────────────────┼──────────┤ | ||
│ 2021-02-05 │ 0.20 │ 0.00 │ | ||
├────────────┼───────────────────┼──────────┤ | ||
│ 2020-11-06 │ 0.20 │ 0.00 │ | ||
├────────────┼───────────────────┼──────────┤ | ||
│ 2020-08-07 │ 0.20 │ 0.00 │ | ||
├────────────┼───────────────────┼──────────┤ | ||
│ 2020-05-08 │ 0.20 │ 0.01 │ | ||
├────────────┼───────────────────┼──────────┤ | ||
│ 2020-02-07 │ 0.19 │ 0.00 │ | ||
├────────────┼───────────────────┼──────────┤ | ||
│ 2019-11-07 │ 0.19 │ 0.00 │ | ||
├────────────┼───────────────────┼──────────┤ | ||
│ 2019-08-09 │ 0.19 │ 0.00 │ | ||
├────────────┼───────────────────┼──────────┤ | ||
│ 2019-05-10 │ 0.19 │ 0.01 │ | ||
├────────────┼───────────────────┼──────────┤ | ||
│ 2019-02-08 │ 0.18 │ 0.00 │ | ||
╘════════════╧═══════════════════╧══════════╛ | ||
``` |
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