Skip to contents

Summarize a snapshot

Usage

# S3 method for class 'ledgr_snapshot'
summary(object, ...)

Arguments

object

A ledgr_snapshot object.

...

Unused.

Value

The input snapshot, invisibly.

Examples

bars <- data.frame(
  ts_utc = as.POSIXct("2020-01-01", tz = "UTC") + 86400 * 0:1,
  instrument_id = "AAA",
  open = c(100, 101),
  high = c(101, 102),
  low = c(99, 100),
  close = c(100, 101),
  volume = 1000
)
snapshot <- ledgr_snapshot_from_df(bars)
if (interactive()) summary(snapshot)
ledgr_snapshot_close(snapshot)