knox hat die Gist bearbeitet . Zu Änderung gehen
1 file changed, 18 insertions
yfinance-4.py(Datei erstellt)
@@ -0,0 +1,18 @@ | |||
1 | + | import yfinance as yf | |
2 | + | spy = yf.Ticker('SPY') | |
3 | + | data = spy.funds_data | |
4 | + | ||
5 | + | # show fund description | |
6 | + | data.description | |
7 | + | ||
8 | + | # show operational information | |
9 | + | data.fund_overview | |
10 | + | data.fund_operations | |
11 | + | ||
12 | + | # show holdings related information | |
13 | + | data.asset_classes | |
14 | + | data.top_holdings | |
15 | + | data.equity_holdings | |
16 | + | data.bond_holdings | |
17 | + | data.bond_ratings | |
18 | + | data.sector_weightings |
Neuer
Älter