Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the etf compare command #2394

Merged
merged 4 commits into from
Aug 23, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openbb_terminal/etf/stockanalysis_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_all_names_symbols() -> Tuple[List[str], List[str]]:
soup2 = bs(r.text, "html.parser")
script = soup2.find("script", {"type": "application/json"})

etfs = pd.DataFrame(json.loads(script.string)["data"])
etfs = pd.DataFrame(json.loads(script.string)[1]["data"])
etf_symbols = etfs.s.to_list()
etf_names = etfs.n.to_list()
return etf_symbols, etf_names
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
,ARKQ,ARKW
Assets,$1.22B,$1.38B
NAV,$51.58,$50.72
Assets,$1.26B,$1.59B
NAV,$58.22,$59.63
Expense Ratio,0.75%,0.83%
PE Ratio,28.59,50.48
Shares Out,23.70M,27.30M
Shares Out,21.60M,26.60M
Dividend (ttm),$0.61,$3.12
Dividend Yield,1.17%,5.74%
Volume,"108,090","1,297,050"
Open,64.31,51.64
Previous Close,51.48,51.13
Dividend Yield,1.13%,5.75%
Volume,"108,090","850,975"
Open,64.31,54.65
Previous Close,56.08,56.01
52-Week Low,56.88,45.10
52-Week High,90.28,162.04
Beta,1.31,1.43
Holdings,39,36
Beta,1.32,1.56
Holdings,38,32
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
,ARKK,ARKF
Assets,$7.55B,$815.79M
NAV,$40.45,$15.93
Assets,$9.84B,$1.03B
NAV,$47.50,$19.76
Expense Ratio,0.75%,0.75%
PE Ratio,n/a,43.05
Shares Out,186.70M,51.20M
Shares Out,207.10M,52.30M
Dividend (ttm),$0.26,n/a
Dividend Yield,0.59%,n/a
Volume,"33,040,871","1,344,180"
Open,41.63,16.21
Previous Close,41.11,16.02
Volume,"23,253,292","1,014,758"
Open,43.96,17.96
Previous Close,44.69,18.47
52-Week Low,35.10,14.64
52-Week High,132.50,55.28
Beta,1.60,1.29
Holdings,36,31
52-Week High,126.32,55.28
Beta,1.68,1.48
Holdings,35,32
Original file line number Diff line number Diff line change
@@ -1,40 +1,39 @@
Symbol,% Of Etf,Shares
TSLA,9.73%,155386
KTOS,7.84%,6403572
TRMB,7.32%,1412011
PATH,6.70%,3951824
KMTUY,5.39%,2676674
IRDM,5.30%,1623932
DE,4.65%,160399
AVAV,4.63%,637782
ACHR,3.25%,8020688
TER,2.94%,365158
BLDE,2.69%,5884128
DDD,2.48%,2894336
XPEV,2.47%,933920
BYDDY,2.44%,359834
ESLT.TA,2.35%,133597
GOOG,2.22%,11232
MKFG,1.90%,9755762
TSP,1.90%,2948109
NNDM,1.88%,6902236
MG.TO,1.86%,371434
VUZI,1.80%,3053436
CAT,1.76%,101737
NIU,1.74%,2434228
PRLB,1.73%,431661
SSYS,1.59%,960731
U,1.49%,452025
SNPS,1.37%,51517
MTLS,1.26%,1048578
TDY,1.17%,36553
VLD,1.14%,7180737
ANSS,1.05%,50531
LMT,1.04%,28098
NIO,0.77%,383431
ISRG,0.76%,44252
TWOU,0.50%,656109
GM,0.43%,149031
MTTR,0.33%,936228
n/a,0.13%,1434529
ONVO,0.02%,92838
TSLA,11.02%,151503
TRMB,8.40%,1468672
KTOS,8.19%,6649840
PATH,6.00%,3853020
IRDM,5.81%,1583327
AVAV,5.18%,621833
DE,4.61%,156387
TER,3.45%,426763
KMTUY,3.11%,1824910
VLD,2.73%,7006651
BLDE,2.65%,5737014
DDD,2.64%,2821974
ACHR,2.44%,7820162
MKFG,2.43%,10538276
TSP,2.16%,3248748
ESLT.TA,2.14%,125226
U,2.06%,502042
GOOG,2.03%,210050
BYDDY,2.03%,350834
VUZI,2.01%,2776186
NNDM,1.86%,6729671
MG.TO,1.83%,362146
XPEV,1.61%,910567
CAT,1.57%,99192
PRLB,1.53%,420866
SSYS,1.24%,820355
NIU,1.18%,2373365
SNPS,1.16%,38699
TDY,1.15%,35640
ANSS,1.10%,49266
MTLS,1.04%,1022361
ISRG,1.03%,56004
LMT,0.96%,27394
NIO,0.60%,373841
GM,0.45%,145302
TWOU,0.42%,639702
n/a,0.17%,2138626
ONVO,0.02%,90512
Original file line number Diff line number Diff line change
@@ -1,37 +1,33 @@
Symbol,% Of Etf,Shares
ZM,9.32%,1111489
ROKU,9.14%,1393999
TSLA,8.07%,154124
COIN,6.12%,1445502
GBTC,5.98%,6016411
SQ,5.85%,1311674
TWLO,5.08%,809977
PATH,4.60%,3244371
SHOP,4.53%,187484
TDOC,4.12%,1775430
DKNG,3.84%,4280168
RBLX,3.39%,1554102
U,2.87%,1041899
SPOT,2.70%,361725
PD,2.68%,1486161
SE,2.26%,420512
HOOD,2.13%,3833256
VUZI,2.07%,4193424
MNDY,1.93%,246311
MELI,1.59%,32838
CRWD,1.45%,119236
NNDM,1.36%,5992316
KIND,1.29%,5037976
NVDA,1.25%,102435
VCYT,1.22%,948087
ADYEY,1.13%,1143342
NET,1.03%,319262
GENI,0.99%,5213031
TWOU,0.74%,1160499
EDR,0.69%,468617
NU,0.45%,1586870
n/a,0.14%,1844091
OKTA,0.01%,1609
DIS,0.01%,1456
TWTR,0.00%,241
PTON,0.00%,1795
TSLA,8.72%,153236
ROKU,7.40%,1516645
ZM,7.19%,1111499
COIN,6.65%,1271551
SQ,6.42%,1284725
GBTC,5.46%,6016447
DKNG,5.25%,4280185
SHOP,4.79%,2075605
TWLO,4.59%,908016
RBLX,4.46%,1577851
TDOC,4.17%,1900186
PATH,3.96%,3244392
U,3.59%,1119524
SPOT,2.59%,361720
PD,2.56%,1486167
HOOD,2.44%,3833284
VUZI,2.26%,3989062
MNDY,2.07%,246316
MELI,2.01%,32838
NVDA,1.76%,149685
GENI,1.51%,5213063
NET,1.46%,319262
VCYT,1.36%,948098
NNDM,1.30%,5992352
ADYEY,1.28%,1143349
KIND,1.09%,5038004
CRWD,1.05%,85681
SE,0.76%,174081
EDR,0.71%,468625
TWOU,0.59%,1160509
NU,0.50%,1586876
n/a,0.06%,896693
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
,ARKQ
Assets,$1.22B
NAV,$51.58
Assets,$1.26B
NAV,$58.22
Expense Ratio,0.75%
PE Ratio,28.59
Shares Out,23.70M
Shares Out,21.60M
Dividend (ttm),$0.61
Dividend Yield,1.17%
Dividend Yield,1.13%
Volume,"108,090"
Open,64.31
Previous Close,51.48
Previous Close,56.08
52-Week Low,56.88
52-Week High,90.28
Beta,1.31
Holdings,39
Beta,1.32
Holdings,38
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
,ARKW
Assets,$1.38B
NAV,$50.72
Assets,$1.59B
NAV,$59.63
Expense Ratio,0.83%
PE Ratio,50.48
Shares Out,27.30M
Shares Out,26.60M
Dividend (ttm),$3.12
Dividend Yield,5.74%
Volume,"1,297,050"
Open,51.64
Previous Close,51.13
Dividend Yield,5.75%
Volume,"850,975"
Open,54.65
Previous Close,56.01
52-Week Low,45.10
52-Week High,162.04
Beta,1.43
Holdings,36
Beta,1.56
Holdings,32
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@
0,BNO,United States Brent Oil Fund
1,CRAK,VanEck Vectors Oil Refiners ETF
2,DBO,Invesco DB Oil Fund
3,DDG,ProShares Short Oil & Gas
4,DIG,ProShares Ultra Oil & Gas
5,DRIP,Direxion Daily S&P Oil & Gas Exp. & Prod. Bear 2X Shares
6,DUG,ProShares UltraShort Oil & Gas
7,FTXN,First Trust Nasdaq Oil & Gas ETF
8,GUSH,Direxion Daily S&P Oil & Gas Exp. & Prod. Bull 2X Shares
9,IEO,iShares U.S. Oil & Gas Exploration & Production ETF
10,IEZ,iShares U.S. Oil Equipment & Services ETF
11,OIH,VanEck Vectors Oil Services ETF
12,OILK,ProShares K-1 Free Crude Oil Strategy ETF
13,ONG,Direxion Daily Oil Services Bull 2X Shares
14,PXJ,Invesco Dynamic Oil & Gas Services ETF
15,SCO,ProShares UltraShort Bloomberg Crude Oil
16,UCO,ProShares Ultra Bloomberg Crude Oil
17,USL,United States 12 Month Oil Fund
18,USO,United States Oil Fund
19,XES,SPDR S&P Oil & Gas Equipment & Services ETF
20,XOP,SPDR S&P Oil & Gas Exploration & Production ETF
3,DIG,ProShares Ultra Oil & Gas
4,DRIP,Direxion Daily S&P Oil & Gas Exp. & Prod. Bear 2X Shares
5,DUG,ProShares UltraShort Oil & Gas
6,FTXN,First Trust Nasdaq Oil & Gas ETF
7,GUSH,Direxion Daily S&P Oil & Gas Exp. & Prod. Bull 2X Shares
8,IEO,iShares U.S. Oil & Gas Exploration & Production ETF
9,IEZ,iShares U.S. Oil Equipment & Services ETF
10,OIH,VanEck Vectors Oil Services ETF
11,OILK,ProShares K-1 Free Crude Oil Strategy ETF
12,ONG,Direxion Daily Oil Services Bull 2X Shares
13,PXJ,Invesco Dynamic Oil & Gas Services ETF
14,SCO,ProShares UltraShort Bloomberg Crude Oil
15,UCO,ProShares Ultra Bloomberg Crude Oil
16,USL,United States 12 Month Oil Fund
17,USO,United States Oil Fund
18,XES,SPDR S&P Oil & Gas Equipment & Services ETF
19,XOP,SPDR S&P Oil & Gas Exploration & Production ETF

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
ARKQ ARKF
Assets $1.22B $815.79M
NAV $51.58 $15.93
Assets $1.26B $1.03B
NAV $58.22 $19.76
Expense Ratio 0.75% 0.75%
PE Ratio 28.59 43.05
Shares Out 23.70M 51.20M
Shares Out 21.60M 52.30M
Dividend (ttm) $0.61 n/a
Dividend Yield 1.17% n/a
Volume 108,090 1,344,180
Open 64.31 16.21
Previous Close 51.48 16.02
Dividend Yield 1.13% n/a
Volume 108,090 1,014,758
Open 64.31 17.96
Previous Close 56.08 18.47
52-Week Low 56.88 14.64
52-Week High 90.28 55.28
Beta 1.31 1.29
Holdings 39 31
Beta 1.32 1.48
Holdings 38 32
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
ARKW ARKK
Assets $1.38B $7.55B
NAV $50.72 $40.45
Expense Ratio 0.83% 0.75%
PE Ratio 50.48 n/a
Shares Out 27.30M 186.70M
Dividend (ttm) $3.12 $0.26
Dividend Yield 5.74% 0.59%
Volume 1,297,050 33,040,871
Open 51.64 41.63
Previous Close 51.13 41.11
52-Week Low 45.10 35.10
52-Week High 162.04 132.50
Beta 1.43 1.60
Holdings 36 36
ARKW ARKK
Assets $1.59B $9.84B
NAV $59.63 $47.50
Expense Ratio 0.83% 0.75%
PE Ratio 50.48 n/a
Shares Out 26.60M 207.10M
Dividend (ttm) $3.12 $0.26
Dividend Yield 5.75% 0.59%
Volume 850,975 23,253,292
Open 54.65 43.96
Previous Close 56.01 44.69
52-Week Low 45.10 35.10
52-Week High 162.04 126.32
Beta 1.56 1.68
Holdings 32 35
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% Of Etf Shares
Symbol
TSLA 9.73% 155386
KTOS 7.84% 6403572
TRMB 7.32% 1412011
PATH 6.70% 3951824
KMTUY 5.39% 2676674
TSLA 11.02% 151503
TRMB 8.40% 1468672
KTOS 8.19% 6649840
PATH 6.00% 3853020
IRDM 5.81% 1583327
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% Of Etf Shares
Symbol
ZM 9.32% 1111489
ROKU 9.14% 1393999
TSLA 8.07% 154124
COIN 6.12% 1445502
GBTC 5.98% 6016411
TSLA 8.72% 153236
ROKU 7.40% 1516645
ZM 7.19% 1111499
COIN 6.65% 1271551
SQ 6.42% 1284725
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
ARKQ
Assets $1.22B
NAV $51.58
Assets $1.26B
NAV $58.22
Expense Ratio 0.75%
PE Ratio 28.59
Shares Out 23.70M
Shares Out 21.60M
Dividend (ttm) $0.61
Dividend Yield 1.17%
Dividend Yield 1.13%
Volume 108,090
Open 64.31
Previous Close 51.48
Previous Close 56.08
52-Week Low 56.88
52-Week High 90.28
Beta 1.31
Holdings 39
Beta 1.32
Holdings 38
Loading