- Introduction
- Concepts and Design
-
CONFIGURATION
-
SESSION LAYER
- About the Session Layer
-
Session
-
session.Definition
- Definition
-
Definition methods
-
session.desktop.Definition
- Definition
-
Definition methods
-
session.platform.Definition
- Definition
-
Definition methods
-
Functions
- Callback functions
- Session event codes
- Session states
-
ACCESS LAYER
- About the Access Layer
- Configuration
-
Dates and calendars
-
News
-
Functions
- open_session
- close_session
- get_data
- get_history
-
open_pricing_stream
- open_pricing_stream
- PricingStream
- PricingRecorder
-
PricingStream methods
-
PricingRecorder methods
-
CONTENT LAYER
- About the Content Layer
-
Fundamental and Reference
- About Fundamental And Reference
-
Definition
- Definition
-
Definition methods
- RowHeaders
-
Historical Pricing
- About Historical Pricing
-
Events
- About Events
- Definition
-
Definition methods
-
Summaries
- About Summaries
- Definition
-
Definition methods
- Historical pricing event types
- Historical pricing adjustments
- Historical pricing market session
-
News
- About news
-
News headlines
- About news headlines
- Definition
-
Definition methods
- Response
-
News stories
- About news stories
- Definition
-
Definition methods
- Response
-
Top news
- About top news
- Definition
-
Definition methods
- Response
-
hierarchy
- Definition
- TopNewsId
-
Definition methods
-
Online reports
- About online reports
- Definition
-
Definition methods
- Response
-
hierarchy
- Definition
-
Definition methods
-
Images
- About images
- Definition
-
Definition methods
- Response
- News SortOrder
-
Pricing
- About pricing
- Definition
-
Definition methods
-
pricing stream methods
-
pricing.chain
- About pricing.chain
- Definition
-
Definition methods
- Pricing stream states
-
IPA FinancialContracts
- About financial contracts
- Definition
-
Bond
- About bond
- Definition
-
Definition methods
-
Interfaces & Enumerations
- PricingParameters
- RoundingParameters
- BenchmarkYieldSelectionMode
- BusinessDayConvention
- DayCountBasis
- AdjustInterestToPaymentDate
- AmortizationFrequency
- AmortizationItem
- AmortizationType
- Direction
- Frequency
- IndexCompoundingMethod
- InterestType
- StubRule
- PaymentRollConvention
- PriceSide
- ProjectedIndexCalculationMethod
- RedemptionDateType
- Rounding
- RoundingType
- YieldType
- QuoteFallbackLogic
- CreditSpreadType
- DividendType
- VolatilityTermStructureType
- VolatilityType
-
Cap Floor
- About cap_floor
- Definition
-
Definition methods
-
Interfaces & Enumerations
-
CDS
- About cds
- Definition
-
Definition methods
-
Interfaces & Enumerations
-
Fx Cross
- About FX Cross
- Definition
-
Definition methods
-
Interfaces & Enumerations
-
IR Swap
- About Swap
- Definition
-
Definition methods
-
Interfaces & Enumerations
-
Option
- About option
- Definition
-
Definition methods
-
Interfaces & Enumerations
-
Repo
- About repo
- Definition
-
Definition methods
-
Interfaces & Enumerations
-
Swaption
- About swaption
- Definition
-
Definition methods
-
Interfaces & Enumerations
-
Term Deposit
- About term deposit
- termDeposit.Definition
-
Definition methods
-
Interfaces & Enumerations
- Response
-
IPA Curves
- About curves
-
Forward Curves
-
ZcCurves
-
IPA Surfaces
- About Surface
-
Cap
- About cap
- Definition
-
Definition methods
-
Interfaces & Enumerations
-
Eti
-
Fx
- About fx
- Definition
-
Interfaces & Enumerations
-
Swaption
- Definitions
-
Interfaces & Enumerations
- Response
-
Search
- About search
- Definition
-
Definition methods
-
SearchViews
-
SymbolConversion
- About SymbolConversion
- Definition
-
Definition methods
-
Interfaces & Enumerations
-
Estimates
- About Estimates
-
Estimates actual values for reported annual periods
- Definition
-
Definition methods
-
Estimates actual values for reported interim periods
- Definition
-
Definition methods
-
Estimates actual values for KPI Measures for reported annual periods
- Definition
-
Definition methods
-
Estimates actual values for KPI Measures for reported interim periods
- Definition
-
Definition methods
-
Annual estimates summary data for periodic estimates measures
- Definition
-
Definition methods
-
Interim estimates summary data for periodic estimates measures
- Definition
-
Definition methods
-
Estimates monthly historical snapshot value for last 12 months for all annual period estimates measures
- Definition
-
Definition methods
-
Estimates monthly historical snapshot value for last 12 months for all interim period estimates measures
- Definition
-
Definition methods
-
Estimates monthly historical snapshot value for non-periodic estimates measures for the last 12 months
- Definition
-
Definition methods
-
Estimates monthly historical snapshot value for recommendations for the last 12 months
- Definition
-
Definition methods
-
Estimates summary values for KPI measures for annual periods
- Definition
-
Definition methods
-
Estimates summary values for KPI measures for interim periods
- Definition
-
Definition methods
-
Estimates monthly historical snapshot value for all KPI measures for the last 12 months
- Definition
-
Definition methods
-
ESG
- About ESG
-
Definition
- Definition
-
Definition methods
-
full_scores
- Definition
-
Definition methods
-
basic_overview
- Definition
-
Definition methods
-
standard_measures
- Definition
-
esg.standard_measures.Definition methods
-
standard_scores
- Definition
-
Definition methods
-
universe
- Definition
-
Definition methods
-
bulk
- Definition
-
Definition methods
-
PackageManager
- PackageManager
-
PackageManager methods
-
Custom Instruments
- About Custom Instruments
- Definition
-
Definition methods
-
Events
- Definition
-
Definition methods
-
Summaries
- Definition
-
Definition methods
-
Manage methods
- Response
-
DELIVERY LAYER
- About the Delivery Layer
-
Endpoint request
- About endpoint_request
- Definition
-
Definition methods
-
Interfaces & Enumerations
-
OMM stream
- About OMM stream
- Definition
-
Definition methods
-
RDP stream
- About RDP stream
- Definition
-
Definition methods
-
CFS
- About CFS
-
CFS buckets
- About CFS buckets
- Definition
-
Definition methods
-
CFS packages
- About CFS packages
- Definition
-
Definition methods
- Response
-
CFS files
- About CFS files
- Definition
-
Definition methods
- Response
-
CFS file-sets
- About CFS file_sets
- Definition
-
Definition methods
- Response
-
CFS file downloader
- About CFS file downloader
- Definition
-
Definition methods
Built with Pandora
session.platform.Definition object
The session.platform.Definition object allows you to define the platform session you want to create.
Platform sessions can be defined indirectly using the name of a session defined in the configuration file or directly by specifying the other Definition parameters.
Module
lseg.data.session.platform
Syntax
session.platform.Definition(
name, app_key, grant, signon_control,
deployed_platform_host, deployed_platform_username, dacs_position,
dacs_application_id
)
Parameters
| Value | Description | Data Type | Optional | Default value |
|---|---|---|---|---|
| name | Session name | str | Yes | "default" |
| app_key | Application key | str | Yes | None |
| grant | Grants objects containing the credentials used to authenticate the user (or the machine) when connecting to the data platform. Several kind of grant objects can be used GrantPassword is the most common one. | GrantPassword obj. | Yes | None |
| signon_control | Controls the exclusive sign-on behavior when the user account (or computer account) for this session is concurrently used by another application. When this parameter is set to True, opening this session automatically disconnects the other application. When this parameter is set to False, the opening of this session fails preserving the other application. | bool | Yes | True |
| deployed_platform_host | Host name (or IP) and port to be used to connect to Real-Time Distribution System. | str | Yes | None |
| deployed_platform_username | LSEG Real-Time Data Access Control System (DACS) user name identifying the user when to connecting to a Real-Time Distribution System | str | Yes | None |
| dacs_position | Real-Time Data Access Control System (DACS) position identifying the terminal when connecting to a Real-Time Distribution System. | str | Yes | None |
| dacs_application_id | Must contain the Real-Time Data Access Control System (DACS) application ID of the user. For more information, refer to the DACS documentation on MyAccount (formerly MyRefinitiv). | str | Yes | None |
| proxies | Proxies configuration. If string, should be the URL of the proxy (e.g. 'https://proxy.com:8080'). If a dict, the keys are the protocol name (e.g. 'http', 'https') and the values are the proxy URLs. | str | Yes | None |
| app_name | Application name | str | Yes | None |
Returned value
None.
Usage
The following example demonstrates how to create a Definition object for a platform session named “custom-session” and defined in the configuration file of the library.
import lseg.data as ld
definition = ld.session.platform.Definition(name="custom-session")
Related links
None
316 words (1:40 mins)