spread_bookdepth: Calculate price and volume spread from order book / tick data

Description Usage Arguments Value

View source: R/bookdepth.R

Description

dt is changed by reference

Usage

1
spread_bookdepth(dt, book_depth = 5L, reorder = TRUE)

Arguments

dt

order book or tick data

book_depth

max book depth

reorder

whether to reorder columns

Value

a data.table, dt is changed by reference


imlijunda/tswbench documentation built on June 12, 2021, 12:45 p.m.