Creating an Object of Class Orderbook

Share:

Description

Create an orderbook object from input data.

Usage

1

Arguments

file

Object of class "character" specifying the location of the data file.

Details

This function should be used to initially create the orderbook function. If you have an orderbook data.frame from a previous session, you can load it and begin from there. If you want to create an empty orderbook, just specify the file (see example).

Value

Return an object of class orderbook

Examples

1
2
3
4
library(orderbook)
filename <- system.file("extdata", "sample.txt",
                        package = "orderbook")
ob <- orderbook(file = filename)