bitshares / bitshares/bitshares-ui
[1] function DataFeed.getBars received wrong resolution for some special interval
- Dominant language
- JavaScript
- Stars
- 520
- Forks
- 575
- Avg merge
- 12h 7m
- Merged PRs (30d)
- 5
Description
problem: When set tradingview interval to 2D~6D, the parameter 'resolution' of DataFeed.getBars is always 'D'.
file location: charting_library/static/bundles/library.19c99ed5d0307c67f071.js
code location: search 'c.host.subscribe(', the second parameter 'r(i)' should be replaced by r(o)
description: The second parameter will be assigned to this._resolution. For example, when I set interval to '2D', the variable i is represent interval's unit 'D', and the variable o is represent interval's value '2D'. So the 'r(i)' will lead to wrong resolution value.
Contributor guide
Research direction
Inspect charting_library/static/bundles/library.19c99ed5d0307c67f071.js and search for `c.host.subscribe(`. Trace how the interval unit and value reach DataFeed.getBars, then verify that TradingView intervals from 2D through 6D preserve their full resolution instead of being reduced to `D`.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100