OpenBB-finance / OpenBB

Investment Research for Everyone, Everywhere.
https://openbb.co
Other
33.84k stars 3.09k forks source link

[Bug] Broken ETF functionalities #1972

Closed JerBouma closed 2 years ago

JerBouma commented 2 years ago

Seems compare is broken:

2022 Jun 21, 10:02 (🦋) /etf/ $ compare -e VTI VOO
The following args couldn't be interpreted: ['VOO']
Error: 'NoneType' object has no attribute 'string'

Error: list index out of range

2022 Jun 21, 10:02 (🦋) /etf/ $ compare -e VTI,VOO
Error: 'NoneType' object has no attribute 'string'

Error: list index out of range

The command ln always throws this error:

2022 Jun 21, 10:02 (🦋) /etf/ $ ln VOO
Failed to load preferred source from file: /Users/jeroenbouma/Documents/OpenBB Terminal/sources.json.default
[Errno 2] No such file or directory: '/Users/jeroenbouma/Documents/OpenBB Terminal/sources.json.default'
Wrong source choice!

The command overview also has issues with NoneType.

2022 Jun 21, 10:02 (🦋) /etf/ $ overview
Error: 'NoneType' object has no attribute 'string'

Error: list index out of range

Within the disc menu there is no ticker displayed thus you can not load these into the menu. Same for gainers and losers.

2022 Jun 21, 10:04 (🦋) /etf/disc/ $ active

                                   ETF Movers
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━┓
┃                                             ┃ Price  ┃ Chg   ┃ %Chg  ┃ Vol   ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━┩
│ ProShares UltraPro QQQ                      │ 24.70  │ 2.03  │ 8.95  │ 32.3M │
├─────────────────────────────────────────────┼────────┼───────┼───────┼───────┤
│ ProShares UltraPro Short QQQ                │ 58.23  │ -5.73 │ -8.96 │ 14.5M │
├─────────────────────────────────────────────┼────────┼───────┼───────┼───────┤
│ Direxion Daily Semiconductor Bull 3X Shares │ 15.30  │ 1.60  │ 11.68 │ 13.0M │
├─────────────────────────────────────────────┼────────┼───────┼───────┼───────┤
│ Direxion Daily S&P Biotech Bull 3X Shares   │ 5.83   │ 0.61  │ 11.80 │ 11.0M │
├─────────────────────────────────────────────┼────────┼───────┼───────┼───────┤
│ SPDR S&P 500 ETF Trust                      │ 374.85 │ 8.99  │ 2.46  │ 9.2M  │
├─────────────────────────────────────────────┼────────┼───────┼───────┼───────┤
│ Invesco QQQ Trust Series I                  │ 282.37 │ 7.68  │ 2.80  │ 8.3M  │
├─────────────────────────────────────────────┼────────┼───────┼───────┼───────┤
│ ProShares Ultra VIX Short-Term Futures ETF  │ 15.14  │ -1.04 │ -6.45 │ 7.6M  │
├─────────────────────────────────────────────┼────────┼───────┼───────┼───────┤
│ iShares China Large-Cap ETF                 │ 33.05  │ 0.82  │ 2.56  │ 7.1M  │
├─────────────────────────────────────────────┼────────┼───────┼───────┼───────┤
│ Financial Select Sector SPDR ETF            │ 31.51  │ 0.74  │ 2.42  │ 6.2M  │
├─────────────────────────────────────────────┼────────┼───────┼───────┼───────┤
│ ARK Innovation ETF                          │ 41.42  │ 2.62  │ 6.75  │ 5.8M  │
└─────────────────────────────────────────────┴────────┴───────┴───────┴───────┘
soggyomelette commented 2 years ago

Looks like the issue is with extracting stock names from stockanalysis.com. It appears the site's script's been modified and it's no longer extracting any data from the site