dstream_excel.dstream.workbook package

Submodules

dstream_excel.dstream.workbook.create module

dstream_excel.dstream.workbook.create.create_all_xlsx_with_datastream_command(folder, symbol_list, variables, **dstream_kwargs)[source]

Creates XLSX files containing Datastream functions

The XLSX files will not be populated with data at this point, only the function itself. The files must then be populated, then combined.

Parameters
  • folder (str) – Folder in which to create Excel files

  • symbol_list (Sequence[str]) – Datastream symbols representing companies. Available by selecting a list through filters in Eikon, then getting an output of that list.

  • variables (Sequence[str]) – Time-series variables to download

  • dstream_kwargs – can pass begin, end, or freq. All of these arguments take day, month, and year as D, M, and Y. freq can be set to D, M, or Y. begin and end can be set to just Y but combined with a time modifier, e.g. begin=’-5Y’. Don’t pass end to have the data go up to current.

Returns

None

dstream_excel.dstream.workbook.create.create_xlsx_with_datastream_command(folder, symbol, variables, **dstream_kwargs)[source]

dstream_excel.dstream.workbook.exceptions module

exception dstream_excel.dstream.workbook.exceptions.DatastreamDataErrorException[source]

Bases: Exception

exception dstream_excel.dstream.workbook.exceptions.DatastreamFunctionShouldBeReRunException[source]

Bases: Exception

exception dstream_excel.dstream.workbook.exceptions.WorkbookClosedException[source]

Bases: Exception

dstream_excel.dstream.workbook.filename module

dstream_excel.dstream.workbook.functions module

class dstream_excel.dstream.workbook.functions.DatastreamExcelFunction(symbols)[source]

Bases: object

__init__(symbols)[source]

Initialize self. See help(type(self)) for accurate signature.

static(variables)[source]
time_series(variables, begin='-2Y', end='', freq='D')[source]

dstream_excel.dstream.workbook.populate module

dstream_excel.dstream.workbook.populate.populate_datastream_for_file(filepath, excel, retries_remaining=3, close_workbook=False, index=0)[source]

Private function has main functionality. This is a wrapper to add retries afer com errors

dstream_excel.dstream.workbook.wait module

Module contents