Backtesting - Retrieving the Dataset
Overview
Retrieving Data
When running a script in the browser, retrieving data is generally a matter of making
an url call to the webserver that hosts the data. Within the davinci platform,
this is done with the
$url function.
let data = await $url('/server/ibm.json');
Typically, asset price data will be retrieved separately for each asset.
To combine all records into a single array can be accomplished easilty with the
Javascript
spread operator.
let data = [...await $url('/server/ibm.json'),...await $url('/server/msft.json')]
When data is conbined in this fashion, the format will be the split format mentioned above.