Description Usage Arguments Details Value Author(s) Examples
Imports and performs preprocessing of limit order data contained in a CSV.
1 | processData(csv.file, price.digits = 2, volume.digits = 8)
|
csv.file |
Location of CSV file to import |
price.digits |
an integer indicating the number of decimal places in 'price' column of the CSV file |
volume.digits |
an integer indicating the number of decimal places in 'volume' column of the CSV file |
The CSV file is expected to contain 7 columns:
Numeric limit order unique identifier
Time in milliseconds when event received locally
Time in milliseconds when order first created on the exchange
Price level of order event. It will be rounded by round(price, price.digits)
Remaining order volume. It will be rounded by round(price, volume.digits)
Event type (see below)
Side of order book (bid or ask)
action describes the limit order life-cycle:
The limit order has been created
The limit order has been modified (partial fill)
The limit order was deleted. If the remaining volume is 0, the order has been filled.
An example dataset returned from this function can be seen in
lob.data
which is the result of processing the example data
included in the inst/extdata
directory of this package.
A list containing 4 data frames:
Limit order events.
Inferred trades (executions).
Order book price level depth through time.
Limit order book summary statistics.
phil
1 2 3 4 5 6 | ## Not run:
csv.file <- system.file("extdata", "orders.csv.xz", package="obAnalytics")
lob.data <- processData(csv.file)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.