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

Stock Api & styling updates #77

Closed
wants to merge 11 commits into from
Closed

Conversation

brett-dot-tech
Copy link
Collaborator

Pushing this to both dev and main(not norm to push right to main, but need to do this as a one-off as the previous stock API has stopped working). The main push also has some small changes brought over from dev as well such as some comment capitalization fixes.

API now supports global markets, crypto, and forex. See default examples for how to use these.
A small thing to be fixed: the current default font does not support the euro or pound symbol for when showing non-NA stocks, so i just use "EUR/GBP" as a placeholder. Once we address fonts this will be an easy thing to swap out.

Also removed some unused wokwi/display driver code in main now that we're all on the same hardware

Code is poorly commented & formatted,. sorry lol

brett-dot-tech and others added 10 commits October 3, 2024 14:17
With this method the widgets can be identified and during startup we can now display which widget is loading (and potentially see which one is taking a long time or crashing or...)
Spelling (didget -> digit), also Widgets now have a getName() method
Cleanup of comment capitalization and typos
Pushing this to both dev and main(not norm to push right to main, but need to do this as a one-off as the previous stock API has stopped working).

API now supports global markets, crypto,  and forex. See default examples for how to use these.

A small thing to be fixed: the current default font does not support the euro or pound symbol for when showing non-NA stocks, so i just use "EUR/GBP" as a placeholder. Once we adress fonts this will be an easy thing to swap out.

Also removed some unused wokwi/display driver code in main now that we're all on the same hardware

Code is poorly commented & formated,. sorry lol
Copy link
Collaborator

@ericthelin ericthelin left a comment

Choose a reason for hiding this comment

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

Generally looks good but the styling changes should be a separate PR

float m_currentPrice = 0.0;
float m_volume = 0.0;
float m_HP = 0.0;
float m_LP = 0.0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe m_highPrice and m_lowPrice?




display.fillRect(0,70, screenWidth, 49, TFT_WHITE); // rgb565 colors
Copy link
Collaborator

Choose a reason for hiding this comment

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

extra whitespace should be removed and the formatting on the comment is off

Fixing bad formatting & varible naming. Moved currency symbol logic to the datamodel
@brett-dot-tech brett-dot-tech deleted the stock-api-&-styling-updates branch November 26, 2024 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants