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

9 statements  

« prev     ^ index     » next       coverage.py v7.8.0, created at 2025-07-27 17:11 +0000

1# utils/granularity.py 

2 

3# global imports 

4from enum import Enum 

5 

6# local imports 

7 

8class Granularity(Enum): 

9 """ 

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

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

12 """ 

13 

14 ONE_MINUTE = 60 

15 FIVE_MINUTES = 300 

16 FIFTEEN_MINUTES = 900 

17 THIRTY_MINUTES = 1800 

18 ONE_HOUR = 3600 

19 SIX_HOURS = 21600 

20 ONE_DAY = 86400