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

Changelog

1.1.0

  • [BREAKING CHANGE] Integrate with QPS API Instrument Templates 1.0.11376 with following breaking changes:
    • Added new mandatory property underlying_spot_date to class StirFutureDefinition in module instrument_templates
  • Integrate with QPS API IrSwap and Loan 1.0.11406 to support async. The async return model will change in next release
  • Added authentication examples in HTML documentation for service account, user account, user provided token and proxy server
  • Added more API fundamental and workflows examples
  • Added helper functions for Pandas DataFrame conversion in module helpers
    • description_to_df
    • valuation_to_df
    • risk_to_df
    • cashflows_to_df
  • Fixed duplicated structured products examples in HTML documentation
  • Removed unnecessary libraries in dependencies

1.0.0

  • Added 4 new functions request_bond_search_async_get, request_bond_search_async_post, request_bond_search_sync_get and request_bond_search_sync_post in module yield_book_rest for Yield Book Rest APIs
  • Supported sorted samples categories and sorted samples of each category for samples meta json file
  • Integrated with QPS API FinancialContract 1.0.11382
  • Added more fundamental and workflows samples and updated existing samples
  • Package created to support QPS and Yield Book Rest only APIs based on Python SDK 2.1.0b5

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.1.0.tar.gz (4.8 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.1.0-py3-none-any.whl (5.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lseg_analytics_pricing-1.1.0.tar.gz
  • Upload date:
  • Size: 4.8 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.1.0.tar.gz
Algorithm Hash digest
SHA256 9c27f064762151d9b944992ac5a08e4ec08d8269841fc72a4e97222ddc0efb59
MD5 b89cea5183783e2447975377e0e4fa82
BLAKE2b-256 43814a7a03f48406067c0b1bc6b732d0bce41bc1c45aeffba1dc91e422bba839

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lseg_analytics_pricing-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3dbbddd18175df9a4344da51d36e4a81f7e5364f1ec3afd3caf9088f231e6beb
MD5 9c8e2cdf92085371b4933b5119503d43
BLAKE2b-256 8af01ba811a613761852c0c6c409391967e70968aea2ba2952df0dd5faf8f54b

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