Refinitiv Data Library for Python

get_session

This method creates and returns the session defined by the session.desktop.Definition object.

Module

refinitiv.data.session.desktop

Syntax

get_session()

Parameters

None.

Returned value

The desktop session instance.

Usage

The following example demonstrates how to get the desktop session named “custom-session” and defined in the configuration file of the library.

import refinitiv.data as rd

desktop_session = rd.session.desktop.Definition(name="custom-session").get_session()

None