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 int64 nanosecond timestamps, because integer comparison and numpy.searchsorted() are far cheaper than pandas label lookups on a pandas.DatetimeIndex. Integer division by this constant gives the UTC calendar day of a naive UTC timestamp.