Description Value Methods Author(s)
Pooling historical data from Indodax server and clean it up.
Object of type data_pooler
indodax_crypto_pooler()
Method to pool historical data from Indodax server
data_pooler$indodax_crypto_pooler( date_range, pair, resolution = c(1, 5, 15, 60, 240, "D"), url, sleep = 4, type = c("initial", "getter"), direct = FALSE )
date_range:
character vector of start date and end date we want to pool the data out
pair:
the pair in coin_idr format. It must be a single coin for each data.
resolution:
The time frame we are wanted to pull out. It must be a single time frame.
url:
The url to fetch data
sleep:
Since indodax only allow open API to be hit by 18 times per minute, then we need to set sleep to meet this limitation.
type:
Getter type only used when we are fixing missing data.
direct:
TRUE is only used when we are fixing missing data.
object of type data_pooler
when it is initial and non direct type. A data frame when it is getter and direct type.
indodax_data_fixer()
Method to fix historical data fetched from Indodax server
data_pooler$indodax_data_fixer( asset_name, resolution, interval, data, type = "getter", direct = TRUE, ... )
asset_name:
the pair in coin_idr format. It must be a single coin for each data.
resolution:
The time frame we are wanted to pull out. It must be a single time frame.
type:
Getter type only used when we are fixing missing data.
direct:
TRUE is only used when we are fixing missing data.
interval:
Second unit for time frame.
data:
data that we want to be fixed
...:
Arguments to be implemented to indodax_crypto_pooler()
object of type data_pooler
.
push_data()
Method to push our data into database
data_pooler$push_data( db_name, table_name, .fun, name_fun = deparse(substitute(.fun)), ... )
db_name:
The database name where we want to store our data.
table_name:
The table name where we want to store our data.
.fun:
It can be SQLite()
or Any other database driver.
name_fun:
The name of the database driver we want to use.
...:
Additional arguments to be added to our .fun()
object of type data_pooler
.
print()
Method to print out our data_pooler class specifically
data_pooler$print()
String to print about the object information.
clone()
The objects of this class are cloneable with this method.
data_pooler$clone(deep = FALSE)
deep
Whether to make a deep clone.
Suberlin Sinaga @2021
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.