# setup block that doesn't show up in the output
knitr::opts_chunk$set(echo = FALSE)
#knitr::opts_chunk$set(cache = TRUE)
require(obmodeling)
require(quantstrat)
require(knitr)
require(pander)
panderOptions("digits", 2)
Sys.setenv(TZ='GMT')

Introduction

obmodeling is an R package which uses xts time series objects to manipulate and analyze:

Setup

# load the data here, ob_trades & ob_quotes

load.quotes(system.file('extdata/ob_quotes.csv',package = 'obmodeling'))
load.trades(system.file('extdata/ob_trades.csv',package = 'obmodeling'))

Calling Functions

head(effective.spread('ESH6', store=TRUE),2)
ob <- getOB()
names(ob$ESH6)

Current Functions

Visualize Order Book

chart.depth('ESH6')

Future Visalizations

Orderbook through time{width=50%}

Future Analysis

Thanks

Thank You for Your Attention

find it on github at: https://github.com/jmazar/obmodeling

install via:

install_github('jmazar/obmodeling')

Patches and contributions welcome!

References {.smaller}



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