Skip to main content

Module market_stats

Module market_stats 

Source
Expand description

Market statistics cache for 24h volume and open interest.

Structsยง

InstrumentStats ๐Ÿ”’
Statistics for a single instrument
MarketStatsCache
Cache for market statistics (volume_24h and open_interest)

Constantsยง

DAY_MS ๐Ÿ”’
HOURLY_BUCKETS ๐Ÿ”’
Number of hourly buckets for 24h rolling volume
UNIX_MS_THRESHOLD ๐Ÿ”’

Functionsยง

fill_notional_volume ๐Ÿ”’
market_stats_cutoff_timestamp ๐Ÿ”’
timestamp_to_seconds ๐Ÿ”’