OpenBB-finance / OpenBB

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

[Bug] Stocks/sia/vis not working as intended with certain tickers #2013

Closed JerBouma closed 2 years ago

JerBouma commented 2 years ago

See the following (from #1514):

2022 Jun 29, 08:03 (๐Ÿฆ‹) /stocks/ $ load AAL

Loading Daily AAL stock with starting period 2019-06-24 for analysis.

Datetime: 2022 Jun 29 08:04
Timezone: America/New_York
Currency: USD
Market:   OPEN
Company:  American Airlines Group, Inc.

                                           AAL Performance
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”“
โ”ƒ 1 Day   โ”ƒ 1 Week โ”ƒ 1 Month  โ”ƒ 1 Year   โ”ƒ YTD     โ”ƒ Volatility (1Y) โ”ƒ Volume (10D avg) โ”ƒ Last Price โ”ƒ
โ”กโ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ฉ
โ”‚ -2.88 % โ”‚ 3.53 % โ”‚ -21.69 % โ”‚ -36.89 % โ”‚ -28.0 % โ”‚ 79.2 %          โ”‚ 45.03 M          โ”‚ 13.50      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

2022 Jun 29, 08:04 (๐Ÿฆ‹) /stocks/ $ sia/clear country/vis re
2022 Jun 29, 08:04 (๐Ÿฆ‹) /stocks/ $ sia
2022 Jun 29, 08:04 (๐Ÿฆ‹) /stocks/sia/ $ clear country

2022 Jun 29, 08:04 (๐Ÿฆ‹) /stocks/sia/ $ vis re
 48%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‰                                                                                            | 12/25 [00:08<00:08,  1.45it/s]
Error: Can only use .str accessor with string values!

Error: list indices must be integers or slices, not str

Error: not enough values to unpack (expected 2, got 0)

2022 Jun 29, 08:04 (๐Ÿฆ‹) /stocks/sia/ $

Furthermore, there still exists a print statement that shouldn't be there (loaded ticker is TSLA):

2022 Jun 29, 08:05 (๐Ÿฆ‹) /stocks/ $ sia
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Stocks - Sector and Industry Analysis โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚                                                                                                                                                                                                                    โ”‚
โ”‚     load               load a specific ticker and all it's corresponding parameters                                                                                                                                โ”‚
โ”‚                                                                                                                                                                                                                    โ”‚
โ”‚     clear              clear all or one of industry, sector, country and market cap parameters                                                                                                                     โ”‚
โ”‚     industry           see existing industries, or set industry if arg specified                                                                                                                                   โ”‚
โ”‚     sector             see existing sectors, or set sector if arg specified                                                                                                                                        โ”‚
โ”‚     country            see existing countries, or set country if arg specified                                                                                                                                     โ”‚
โ”‚     mktcap             set mktcap between nano, micro, small, mid, large or mega                                                                                                                                   โ”‚
โ”‚     exchange           revert exclude international exchanges flag                                                                                                                                                 โ”‚
โ”‚     period             set period between annual, quarterly or trailing                [StockAnalysis]                                                                                                             โ”‚
โ”‚                                                                                                                                                                                                                    โ”‚
โ”‚ Industry          : Auto Manufacturers                                                                                                                                                                             โ”‚
โ”‚ Sector            : Consumer Cyclical                                                                                                                                                                              โ”‚
โ”‚ Country           : United States                                                                                                                                                                                  โ”‚
โ”‚ Market Cap        : Mega                                                                                                                                                                                           โ”‚
โ”‚ Exclude Exchanges : True                                                                                                                                                                                           โ”‚
โ”‚ Period            : Annual                                                                                                                                                                                         โ”‚
โ”‚                                                                                                                                                                                                                    โ”‚
โ”‚ Statistics:                                                                                                                                                                                                        โ”‚
โ”‚     cps                companies per Sector based on Country (and Market Cap)                                                                                                                                      โ”‚
โ”‚     cpic               companies per Industry based on Country (and Market Cap)                                                                                                                                    โ”‚
โ”‚     cpis               companies per Industry based on Sector (and Market Cap)                                                                                                                                     โ”‚
โ”‚     cpcs               companies per Country based on Sector (and Market Cap)                                                                                                                                      โ”‚
โ”‚     cpci               companies per Country based on Industry (and Market Cap)                                                                                                                                    โ”‚
โ”‚                                                                                                                                                                                                                    โ”‚
โ”‚ Financials - loaded data (fast mode):                                                                                                                                                                              โ”‚
โ”‚     sama               see all metrics available                                       [Yahoo Finance]                                                                                                             โ”‚
โ”‚     metric             visualize financial metric across filters selected              [Yahoo Finance]                                                                                                             โ”‚
โ”‚     satma              see all metrics available over time                             [StockAnalysis]                                                                                                             โ”‚
โ”‚     vis                visualize financial metric across filters selected              [StockAnalysis]                                                                                                             โ”‚
โ”‚                                                                                                                                                                                                                    โ”‚
โ”‚ Returned tickers:                                                                                                                                                                                                  โ”‚
โ”‚ >   ca                 take these to comparison analysis menu                                                                                                                                                      โ”‚
โ”‚                                                                                                                                                                                                                    โ”‚
โ”‚                                                                                                                                                                                                                    โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ OpenBB Terminal v1.5.0 (https://openbb.co) โ”€โ•ฏ
2022 Jun 29, 08:05 (๐Ÿฆ‹) /stocks/sia/ $ vis re
dict_keys(['AYRO', 'BLBD', 'CSBI', 'ELCR', 'ELIO', 'F', 'FSR', 'GACR', 'GKIT', 'GM', 'GOEV', 'LMWW', 'NKLA', 'RIDE', 'TSLA', 'WKHS'])
No information is available for the selected market cap.

2022 Jun 29, 08:05 (๐Ÿฆ‹) /stocks/sia/ $
DidierRLopes commented 2 years ago

I had fixed that print, but was reintroduced by someone a couple of weeks ago by accident.

Am on it.