Dukascopy | R Documentation |
Get data data from Dukascopy.
findata::DataAbstract
-> Dukascopy
new()
Create a new Dukascopy object.
Dukascopy$new(azure_storage_endpoint = NULL, context_with_config = NULL)
azure_storage_endpoint
Azure storate endpont
context_with_config
AWS S3 Tiledb config
A new 'Dukascopy' object.
get_symbols()
Get all symbols from Dukascopy
Dukascopy$get_symbols(tag = "us")
tag
url tag option. See here: https://www.dukascopy-node.app/instruments
Vector of symbols.
download_raw()
IB GET object
Dukascopy$download_raw( save_path = "F:/equity/usa/tick/quotes", symbols = "spyususd", start_date = as.Date("2017-01-01"), end_date = Sys.Date() - 1 )
save_path
Saving directory.
symbols
Sybmols to scrap.
start_date
Start date.
end_date
End date.
GET response.
raw_to_dt()
Parse Dukascopy data and convert to data.table format
Dukascopy$raw_to_dt(files)
files
Bin files (lzma files) downlaoded from Dukascopy and saved localy.
Data.table with ask and bid prices and volumes.
dukascopy_node_get()
Get Dukascopy data using https://github.com/Leo4815162342/dukascopy-node
Dukascopy$dukascopy_node_get( dir_location, instrument, from, to = "now", timeframe = "tick", volumes = "true", format = "csv", batch_size = 5, batch_pause = 2500, cache = "true" )
dir_location
Location where files are saved.
instrument
Instrument.
from
Date from.
to
Date to.
timeframe
Timeframe aggregation (tick, s1, m1, m5, m15, m30, h1, h4, d1, mn1).
volumes
Include volumes.
format
Output format (csv, json, array).
batch_size
Batch size.
batch_pause
Batch pause.
cache
Use cache.
NULL or error.
clone()
The objects of this class are cloneable with this method.
Dukascopy$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.