lazytrade (version 0.4.0)

import_data: Import Data file with Trade Logs to R.

Description

Function is capable to import file with executed trades log. Files do not have column headers hence function will take care to name columns as well as to perform relevant cleansing

Usage

import_data(path_terminal, trade_log_file, demo_mode = FALSE)

Arguments

path_terminal

- path of the Trading Terminal where the file with data is written

trade_log_file

- File name where the order results are written

demo_mode

- When true function uses data stored in the package data folder

Value

Function will return the dataframe with trade data and automatically set proper column types

Examples

Run this code
# NOT RUN {
library(lazytrade)
library(dplyr)
library(readr)
library(lubridate)
DFT1 <- import_data(trade_log_file = system.file("extdata",
                                                 "OrdersResultsT1.csv",
                                                 package = "lazytrade"),
                    demo_mode = TRUE)



# }

Run the code above in your browser using DataLab