Can we extract data file via API then download file itself via FTP?

Can we script from specifying TRTH/DSS instrument lists to scheduling via REST API then extract out put file itself via FTP?

My client would like to script request steps until daily schedules with instrument lists and report templates through REST API. They would like to use FTP for the final step i.e. fetching scheduled output files from TRTH/DSS. Please advise if this is possible.

Regards,

Best Answer

  • gteage01
    gteage01 LSEG
    Answer ✓

    @hiroko.goto1

    Hi Hiroko,

    I find it easier to consider the REST API to have 2 separate options to extract data:

    1) The 'physical component' ('Scheduled') option; which is covered by GUI, FTP and REST API; this where a physcial components (list, template, schedule - which goes to ouptut an extraction file), and regardless of which connection method used the changes are visible in a physical form, ie. make a change via GUI, FTP or REST API you can see the change via GUI, FTP or REST API...

    2) The 'virtual' option ('On Demand') via REST API only; you compile the equivlent of a list and template, and submit the request via a call, and instead of getting the data back within a physical extract file users would get the data back in the request's response.

    The screenshot below shows an example where I have created created the physical components via REST API and the components are also reflected in the GUI and FTP locations:

    Best regards,

    Gareth

Answers