tdex-network / tdex-daemon

Go implementation of the TDEX Beta Daemon
https://tdex.network
MIT License
11 stars 13 forks source link

[v1] GetMarketReport 1 year timeframe is wrong #695

Closed Janaka-Steph closed 1 year ago

Janaka-Steph commented 1 year ago

Start date should be now - 1 year

Screenshot 2023-04-04 at 18 51 51
altafan commented 1 year ago

Year timeframe returns the frame for the past year, so at the time of writing would be the whole 2022. YearToDate returns the frame [startOfCurrentYear, now].

You can use a custom period to cover the period [now, now - 1 year].