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

Fix trading hours bringing ticker in #2038

Merged
merged 4 commits into from
Jul 5, 2022
Merged

Fix trading hours bringing ticker in #2038

merged 4 commits into from
Jul 5, 2022

Conversation

DidierRLopes
Copy link
Collaborator

Fixes #1834

Screenshot 2022-07-03 at 13 35 27

Copy link
Contributor

@JerBouma JerBouma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something off?

2022 Jul 04, 03:25 (🦋) /stocks/ $ th
Error: local variable 'result' referenced before assignment

Error: 'builtin_function_or_method' object has no attribute 'values'

2022 Jul 04, 03:25 (🦋) /stocks/ $

Maybe due to market closed?

2022 Jul 04, 03:25 (🦋) /stocks/ $ load TSLA

Loading Daily TSLA stock with starting period 2019-07-01 for analysis.

Datetime: 2022 Jul 04 03:25
Timezone: America/New_York
Currency: USD
Market:   CLOSED
Company:  Tesla, Inc.


                                          TSLA Performance                                           
┏━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ 1 Day   ┃ 1 Week  ┃ 1 Month ┃ 1 Year ┃ YTD      ┃ Volatility (1Y) ┃ Volume (10D avg) ┃ Last Price ┃
┡━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ -0.54 % │ -7.51 % │ -7.91 % │ 0.57 % │ -43.17 % │ 74.49 %         │ 33.5 M           │ 681.79     │
└─────────┴─────────┴─────────┴────────┴──────────┴─────────────────┴──────────────────┴────────────┘

2022 Jul 04, 03:25 (🦋) /stocks/ $ th

Error: local variable 'result' referenced before assignment

Error: 'builtin_function_or_method' object has no attribute 'values'

2022 Jul 04, 03:25 (🦋) /stocks/ $

@DidierRLopes
Copy link
Collaborator Author

@JerBouma there were some conditions that were unaccounted for. Glad you tested it when you did because on the weekend this didn't occu

Screenshot 2022-07-04 at 10 06 59

@Chavithra Chavithra self-requested a review July 4, 2022 15:07
@DidierRLopes DidierRLopes merged commit ac4820c into main Jul 5, 2022
@colin99d colin99d deleted the 1834 branch July 23, 2022 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fix bug
Projects
None yet
2 participants