UtilsData | R Documentation |
Various help data.
findata::DataAbstract
-> UtilsData
new()
Create a new UtilsData object.
UtilsData$new(azure_storage_endpoint = NULL, context_with_config = NULL)
azure_storage_endpoint
Azure storate endpont
context_with_config
AWS S3 Tiledb config
A new 'UtilsData' object.
get_ticker_data()
Get tick data from finam source using QuantTools.
UtilsData$get_ticker_data(symbol)
symbol
Equity symbol
Get investing com ea data.
get_split_factor()
Get split data from the web and calculate split factors.
UtilsData$get_split_factor(ticker)
ticker
Stock ticker
Stock splits
adjust_fm_tiledb()
Adjusted instraday data for splits and dividends
UtilsData$adjust_fm_tiledb( save_uri = "D:/equity-usa-minute-fmpcloud-adjusted", minute_uri = "D:/equity-usa-minute-fmpcloud" )
save_uri
TileDB uri for saving
minute_uri
TileDB uri with unadjusted minute data.
Adjusted data saved to AWS S3 bucket
sp500_history()
Get SP500 stocks for every date.
UtilsData$sp500_history(qc_spy_path)
qc_spy_path
to spy constitues
Data table of Sp500 tickers
get_market_data()
Help function to import clean data from Azureblob.
UtilsData$get_market_data(symbols = c("aapl", "aal"), frequency = "hour")
symbols
Symbols
frequency
Frequency can be hour and minute.
Data table with market prices
adjust_market_data()
adjust market data for splits and/or dividends
UtilsData$adjust_market_data( market_data, factor_files, type = c("all", "dividends", "splits"), cols_adjust = c("o", "h", "l", "c") )
market_data
Market data of OHLCV type.
factor_files
Factor files must contain columns: - symbol - date - price_factor - split_factor
type
Type of adjustment.
cols_adjust
Columns to adjust.
Data table with adjusted market prices.
get_map_files_tiledb()
Help function to get map files.
UtilsData$get_map_files_tiledb( save_uri = "s3://equity-usa-mapfiles", symbol_uri = "https://en.wikipedia.org/wiki/S%26P_100" )
save_uri
TileDB uri.
symbol_uri
TileDB uri for saved files
Maped files.
get_map_files_qc()
Get map files from Quantconnect map_files folder
UtilsData$get_map_files_qc(symbols, path_map_files)
symbols
Symbols
path_map_files
Path to map_files directory
Data table with mapped symbols.
get_factor_files_qc()
Get factor files from Quantconnect factor_files folder
UtilsData$get_factor_files_qc(symbols, path_factor_files)
symbols
Symbols
path_factor_files
Path to factor_files directory
Data table with factor files data for symbol.
adjust_fmp()
Adjust FMP market data
UtilsData$adjust_fmp( file_path, file_path_save, path_map_files, path_factor_files, trading_hours = TRUE, parallel = FALSE )
file_path
File path to parquet file that contains market data.
file_path_save
Path to which save the data.
path_map_files
Path to map files directory
path_factor_files
Path to factor files directory
trading_hours
Should we keep only trading hours in output DT.
parallel
should we use parallle package. If yes set plan.
Data table adjusted market data.
sync()
NAS sync
UtilsData$sync(local_dir, nas_dir, direction = "upload")
local_dir
File path to parquet file that contains market data.
nas_dir
Path to which save the data.
direction
downlaod or upload.
Nothin to return
fundamnetals_agg()
Merged Fundamental data
UtilsData$fundamnetals_agg( balance_sheet, income_statement, cash_flow, financial_growth, financial_metrics, financial_ratios )
balance_sheet
file to balance sheet csv's.
income_statement
file to income statement csv's.
cash_flow
file to cash flow csv's.
financial_growth
file to financial growth csv's.
financial_metrics
file to financial metrics csv's.
financial_ratios
file to financial ratios csv's.
Nothin to return
clone()
The objects of this class are cloneable with this method.
UtilsData$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.