-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathexample.py
45 lines (32 loc) · 943 Bytes
/
example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#%%
import mfinancials as mf
#%% Apple, Inc.
aapl = mf.Ticker("aapl")
#%% financials from http://financials.morningstar.com/ratios/r.html?t=aapl
aapl.financials
#%% key ratios from from http://financials.morningstar.com/ratios/r.html?t=aapl
aapl.keyRatios
#%% estimates from financials.morningstar.com/valuation/earnings-estimates.html?t=AAPL
aapl.estimates
#%% display like morningstar website
aapl.financials.T
aapl.keyRatios.T
aapl.estimates.T
#%% get urls to view data on morningstar website
aapl.url_estimates
aapl.url_financials
#%% LVMH Moët Hennessy – Louis Vuitton SE
lvmh = mf.Ticker("mc", mic="XPAR")
#%% Samsung Electronics Co., Ltd.
smsng = mf.Ticker("005930", country="South Korea")
#%% list supported countries
smsng.countries
#%% Alibaba Group Holding Limited
baba = mf.Ticker("baba")
baba.financials
baba.estimates
baba.estimatesConv
#%% access currencies
baba.currency_estimates
baba.currency_financials
# %%