Skip to main content

LSEG Analytics SDK for Python

Project description

LSEG Analytics SDK for Python

The LSEG Analytics SDK for Python provides access to LSEG Financials Analytics Services.

Getting Started

$ pip install lseg-analytics

Usage Examples

An example to create a FX Forward Curve.

from lseg_analytics.common import (
    CrossCurrencyInput,
    CurrencyInput,
    TenorType
)

from lseg_analytics.market_data.fx_forward_curves import (
    create_from_fx_forwards,
    IndirectSourcesSwaps
)

create_from_fx_forwards(
    cross_currency=CrossCurrencyInput(code="EURGBP"),
    reference_currency=CurrencyInput(code="USD"),
    sources=IndirectSourcesSwaps(
        base_fx_spot="ICAP",
        base_fx_forwards="ICAP",
        quoted_fx_spot="TTKL",
        quoted_fx_forwards="TTKL",
    ),
    additional_tenor_types=[TenorType.LONG, TenorType.END_OF_MONTH],
)

Modules Structure

  • common - contains models that can be used in different API modules
  • logging - logging configuration
  • exceptions
  • API modules
    • reference_data
      • calendars
    • market_data
      • fx_forward_curves
    • instruments
      • fx_spots
      • fx_forwards

API module structure

  • Each API Module has a main object, which has the same name as a module, but in singular form
    • Examples
      • reference_data.calendars: Calendar
      • market_data.fx_forward_curves: FxForwardCurve
      • instruments.fx_spots: FxSpot
      • instruments.fx_forwards: FxForward
    • Instance of this object represents corresponding resource on the server
  • Each API Module has functions load, search, delete

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

lseg_analytics-1.0.0b2-1-py3-none-any.whl (301.8 kB view details)

Uploaded Python 3

File details

Details for the file lseg_analytics-1.0.0b2-1-py3-none-any.whl.

File metadata

File hashes

Hashes for lseg_analytics-1.0.0b2-1-py3-none-any.whl
Algorithm Hash digest
SHA256 efce338a58e2aa361b5730e01de77060df9f702fa02d915e35fdefebad386eef
MD5 f5365a9767e1f0ff03285bc5e0510e2e
BLAKE2b-256 5e23dd28e8826b77853ec2b83e4afd71c67094563fc27b84672e559d80b0794f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page