Skip to main content

Module historical_pnl

Module historical_pnl 

Source

Structsยง

HistoricalPnlSnapshotTask
Background task that periodically snapshots wallet equity into the database.
HistoricalPnlTaskConfig
Configuration for the historical equity snapshot background task.

Constantsยง

INTERVAL_1D_MS
INTERVAL_1H_MS
INTERVAL_5M_MS

Functionsยง

align_timestamp_ms ๐Ÿ”’
aligned_interval ๐Ÿ”’
next_bucket_start_ms ๐Ÿ”’
now_timestamp_ms ๐Ÿ”’