Markets - Ability to show only today's price action in the sparkline chart
- Dominant language
- Go
- Stars
- 37.1k
- Forks
- 1.5k
- Avg merge
- 1h 11m
- Merged PRs (30d)
- 1
Description
### Description
**What problem would this feature solve?**
The default of a 21-day chart caters towards those checking their dashboards on a weekly basis as, on average, 1 day of trading blends into the last 21 days of trading. It is also somewhat arbitrary as 21 day measurements are not a traditional timeframe for market analysis
Since most people are checking their dashboards daily (if not multiple times a day) a sparkline chart based on what is happening/has happened in the current day's trading will be more in-line w/ the traditional defaults
**Are there any potential downsides to this feature?**
People used to the current setup might prefer the original settings. This can be resolved by keeping 21 days as an option, or keeping the current default and making the one-day/intraday line chart an option that can be selected.
**If applicable, what would the configuration for this feature look like?**
It would be a main property that extends to all listed symbols:
- `chart duration: intraday` I think intraday/1D vs 21D will cover most use cases if it's easier to hard-code a solution. If there's interest in more nuanced options, then it can be revisited down the road.
**Are there any existing examples of this feature in other software?**
This [screenshot](https://cdn.shortpixel.ai/spai/q_lossy+w_1460+to_webp+ret_img/algotrading101.com/learn/wp-content/uploads/2020/05/rapidapi_15languages.png) from [this article](https://algotrading101.com/learn/yahoo-finance-api-guide/) suggests that there's a `get_spark` option that I think is configurable and applicable.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the markets widget and the code that builds its sparkline chart, then trace where the current 21-day duration is selected. Determine how an intraday or 1D duration could be configured while preserving 21D as an option. Done means the chart can show today's price action for all listed symbols without removing the existing timeframe.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100