NANOSECONDS_PER_DAY
Documentation for eth_defi.research.vault_metrics.NANOSECONDS_PER_DAY data.
- NANOSECONDS_PER_DAY = 86400000000000
Nanoseconds in one calendar day, the unit of the integer timestamps below.
The metric helpers work on
int64nanosecond timestamps, because integer comparison andnumpy.searchsorted()are far cheaper than pandas label lookups on apandas.DatetimeIndex. Integer division by this constant gives the UTC calendar day of a naive UTC timestamp.