Skip to main content

LSEG Analytics LFA 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-pricing

Migrating from Previous Package Names

Important: This package was previously named lseg-analytics. If you have old package installed, please uninstall it first to avoid conflicts:

# Remove old packages (if installed)
$ pip uninstall lseg-analytics -y

# Install the new package
$ pip install lseg-analytics-pricing

Or in a single command:

$ pip uninstall lseg-analytics -y && pip install lseg-analytics-pricing

What changed:

  • Package name: lseg-analyticslseg-analytics-pricing
  • Import path: from lseg_analytics import ...from lseg_analytics.pricing import ...
  • All functionality and APIs remain compatible

Usage Examples

An example to create a FX Forward Curve.

from lseg_analytics.pricing.common import (
    TenorType
)

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

create_from_fx_forwards(
            cross_currency="EURGBP",
            reference_currency="USD",
            sources=IndirectSourcesSwaps(base_fx_forwards="RFB"),
            additional_tenor_types=[TenorType.LONG, TenorType.END_OF_MONTH],
)

Modules Structure

  • common - contains models that can be used in different API modules
  • helpers - utility functions
  • API modules
    • reference_data
      • calendars
      • floating_rate_indices
    • market_data
      • fx_forward_curves
      • commodities_curves
      • credit_curves
      • eq_volatility
      • fx_volatility
      • inflation_curves
      • interest_rate_curves
      • ipa_interest_rate_curves
      • ircaplet_volatility
      • irswaption_volatility
    • instruments
      • fx_spots
      • fx_forwards
      • bond
      • bond_future
      • cap_floor
      • cds
      • forward_rate_agreement
      • ir_swaps
      • loans
      • options
      • repo
      • structured_products
      • swaption
      • term_deposit
    • templates
      • instrument_templates
    • yield_book_rest

Project details


Download files

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

Source Distribution

lseg_analytics_pricing-1.0.0.tar.gz (4.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lseg_analytics_pricing-1.0.0-py3-none-any.whl (4.7 MB view details)

Uploaded Python 3

File details

Details for the file lseg_analytics_pricing-1.0.0.tar.gz.

File metadata

  • Download URL: lseg_analytics_pricing-1.0.0.tar.gz
  • Upload date:
  • Size: 4.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.8

File hashes

Hashes for lseg_analytics_pricing-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9c52c904fc240299a35642af7a9dcb042587b25aa6eb4a42c675473109f49607
MD5 a17a275a15f5711e93395517eb48944d
BLAKE2b-256 7cc8a0ae6e2f56e3774f41fce78a89d9b2587b45f66470f78e86ee3a6a6bba16

See more details on using hashes here.

File details

Details for the file lseg_analytics_pricing-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lseg_analytics_pricing-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8958d6995a8be2b09cad0c8992ad7791c717885c715f4edf8182934c1d97d82c
MD5 c432f216eecd564e8da2d640b16d5d36
BLAKE2b-256 39e4cf52d87fdbed986cea1967d4c692ca9cd5fc572c674b678952662d7de73b

See more details on using hashes here.

Supported by

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