Coverage for source/utils/granularity.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.8.0, created at 2025-06-06 12:00 +0000

1# utils/granularity.py 

2 

3from enum import Enum 

4 

5class Granularity(Enum): 

6 """ 

7 Enum representing possible values of time granularity that coinbase API can handle. 

8 Values assigned to particular options represent number of seconds that certain option denotes. 

9 """ 

10 ONE_MINUTE = 60 

11 FIVE_MINUTES = 300 

12 FIFTEEN_MINUTES = 900 

13 THIRTY_MINUTES = 1800 

14 ONE_HOUR = 3600 

15 SIX_HOURS = 21600 

16 ONE_DAY = 86400