LSEG Data Library for Python

get_data

The get_data function sends a request to the Client File Store (CFS) to retrieve the file packages described in the cfs.packages.Definition object.

Module

lseg.data.delivery.cfs.packages

Syntax

get_data(session)

Parameters

Value Description Data type Optional Default value
session Session object. If it's not passed the default session will be used. Session object Yes None

Returned value

Packages response

Usage

The following example demonstrates how to retrieve a package named "VDB", with the "core" type, from the "TICKHISTORY_VBD_LIMITED" bucket.
Where only the 10th page that contains 10 items will be retrieved.

response = cfs.packages.Definition(
    package_name="VBD",
    package_type="core",
    bucket_name="TICKHISTORY_VBD_LIMITED",
    page=10,
    page_size=10,
).get_data()

print(response.data.df.to_string())

This example produces the following output:

Response
            created          contactEmail                      packageName packageType                                                           description              modified                             packageId                bucketNames

0 2020-08-29T16:16:54Z kraken@refinitiv.com VBD_MEX_SYM_5Y core Package for venue MEX with view sym and depth of 5Y 2020-11-23T06:01:11Z 4020-6002-8a707342-be53-88aa6c7e0537 [TICKHISTORY_VBD_LIMITED]
1 2020-08-29T15:08:24Z kraken@refinitiv.com VBD_BRU_REF_DATA_CUSIP_GICS_5Y core Package for venue BRU with view ref-data-cusip-gics and depth of 5Y 2020-11-23T04:15:58Z 4020-ccb5-5e51d1af-bd94-bc99948046d2 [TICKHISTORY_VBD_LIMITED]
2 2020-08-29T15:49:47Z kraken@refinitiv.com VBD_CHE_RAW_MP_5Y core Package for venue CHE with view rawMP and depth of 5Y 2021-11-01T09:55:48Z 4020-df87-9c64817a-9c67-efddebffbf4d [TICKHISTORY_VBD_LIMITED]
3 2021-12-05T04:10:03Z kraken@refinitiv.com VBD_PTX_NORMALISED_MBO_5Y core Package for venue PTX with view normalisedMBO and depth of 5Y 2021-12-05T04:10:03Z 4021-71c8-0b7bb5f8-9d8a-37b8e6be645f [TICKHISTORY_VBD_LIMITED]
4 2020-08-29T16:52:56Z kraken@refinitiv.com VBD_DMX_SYM_CUSIP_SEDOL_GICS_5Y core Package for venue DMX with view sym-cusip-sedol-gics and depth of 5Y 2020-11-23T06:51:39Z 4021-791d-6acc1987-9802-1ac35bf99d10 [TICKHISTORY_VBD_LIMITED]
5 2020-08-29T16:42:08Z kraken@refinitiv.com VBD_SCZ_REF_INIT_SEDOL_5Y core Package for venue SCZ with view ref-init-sedol and depth of 5Y 2020-11-23T06:36:03Z 4022-4ea0-7a90068e-a137-5b833c9d87d3 [TICKHISTORY_VBD_LIMITED]
6 2020-08-29T16:54:04Z kraken@refinitiv.com VBD_TBE_SYM_GICS_5Y core Package for venue TBE with view sym-gics and depth of 5Y 2020-11-23T06:53:20Z 4022-99ba-13b70471-acf4-a75383927f01 [TICKHISTORY_VBD_LIMITED]
7 2020-08-29T15:47:22Z kraken@refinitiv.com VBD_TWA_TREU_SYM_SEDOL_GICS_5Y core Package for venue TWA_TREU with view sym-sedol-gics and depth of 5Y 2020-11-23T05:15:54Z 4022-f047-35cea0f8-9254-f14f034959bf [TICKHISTORY_VBD_LIMITED]
8 2020-08-29T15:48:26Z kraken@refinitiv.com VBD_BCU_REF_INIT_CUSIP_SEDOL_5Y core Package for venue BCU with view ref-init-cusip-sedol and depth of 5Y 2020-11-23T05:17:33Z 4023-67b0-e62e5d64-a88f-1db47a9f8a85 [TICKHISTORY_VBD_LIMITED]
9 2020-08-29T17:07:56Z kraken@refinitiv.com VBD_TAI_REF_DATA_CUSIP_GICS_5Y core Package for venue TAI with view ref-data-cusip-gics and depth of 5Y 2020-11-23T07:14:10Z 4024-2b55-8e247668-b1db-1e6994e2d0bd [TICKHISTORY_VBD_LIMITED]

None.

264 words (1:23 mins)