newOB: Create or Get Order Book Environment

View source: R/envir_utils.R

newOBR Documentation

Create or Get Order Book Environment

Description

Create or Get Order Book Environment

Usage

newOB(ob = ".ob", envir = .GlobalEnv)

getOB(ob = NULL, envir = NULL)

Arguments

ob

string naming the order book environment, or an environment, default '.ob'

envir

environment to use as the parent for the order book, default .GlobalEnv

Value

pointer to the order book environment

Examples


.ob <- newOB()
is.environment(.ob)
# TRUE

.ob <- getOB()
is.environment(.ob)
#TRUE


jmazar/obmodeling documentation built on March 27, 2022, 12:55 a.m.