tdex-network / tdex-analytics

Analytics and Historical data feed about TDEX Network
MIT License
0 stars 6 forks source link

New LAST_YEAR predefined period #55

Closed altafan closed 1 year ago

altafan commented 1 year ago

We are missing a predefined period to for the last year. Currently, we have only YEAR_TO_DATE which covers the period from the beginning of the year to the current date, but it's not really the same thing.

sekulicd commented 1 year ago

Currently we have bellow predefined time ranges:

LAST_HOUR = 1;
LAST_DAY = 2;
LAST_MONTH = 3;
LAST_3_MONTHS = 4;
YEAR_TO_DATE = 5;
ALL = 6;

Do we need new one LAST_YEAR considering we have:

message CustomPeriod {
  // start_date in RFC3339 format
  string start_date = 1;
  // end_date in RFC3339 format
  string end_date = 2;
}

@tiero @altafan ?