Overview
When market data is hosted on a webserver, with a URL, it can be retrieved using standard scripting tools on the davinci platform. For data services that are secured and require user authentication, see user authentication.
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')]
The format of the data retrieved this way will be the split format.