Skip to contents

Print a pulse snapshot context

Usage

# S3 method for class 'ledgr_pulse_context'
print(x, ...)

Arguments

x

A ledgr_pulse_context object.

...

Unused.

Value

The input object, invisibly.

Examples

bars <- data.frame(
  ts_utc = as.POSIXct("2020-01-01", tz = "UTC"),
  instrument_id = "AAA",
  open = 100,
  high = 101,
  low = 99,
  close = 100,
  volume = 1000
)
snapshot <- ledgr_snapshot_from_df(bars)
pulse <- ledgr_pulse_snapshot(snapshot, universe = "AAA", ts_utc = "2020-01-01T00:00:00Z")
print(pulse)
#> ledgr Pulse Snapshot
#> Timestamp: 2020-01-01T00:00:00Z
#> Universe:  AAA
#> Bars:      1
#> Features:  
close(pulse)
ledgr_snapshot_close(snapshot)