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

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

  • async_handler - contains models for asynchronous handling
  • 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_notes
      • structured_products
      • swaption
      • term_deposit
    • job_manager
    • templates
      • instrument_templates
    • yield_book_rest

Changelog

2.2.0b1

  • Support Telemetry in request headers.
  • Added new module priceit for structured product payoff definitions.

2.1.0

  • Added samples Inflation Swaps Valuation and Capped Floored Swaps Valuation for instruments.ir_swaps.
  • Added sample Structured Notes for instruments.structured_notes.

2.0.0

  • [Breaking Change] Removed Python 3.8 support.
  • [BREAKING CHANGE] Integrate with QPS API IrSwap and Loan 1.0.11810 with following changes:
    • Removed functions solve_polling and value_polling from module instruments.ir_swaps and class IrSwap, added new functions solve_result and value_result
    • Removed functions price_polling and value_polling from module instruments.loans and class Loan, added new functions price_result and value_result
  • Added new module async_handler with the new async classes AsyncRequestResponse and AsyncPollingResponse that originally in the lseg-analytics-core package
  • Integrate with QPS API Job Manager 1.0.11816, added new module job_manager for polling async request status
  • Integrate with QPS API Floating Rate Index 1.0.11469
  • Integrate with QPS API Structured Note 1.0.11162, added new module instruments.structured_notes

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 from 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-2.2.0b1.tar.gz (5.0 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-2.2.0b1-py3-none-any.whl (5.4 MB view details)

Uploaded Python 3

File details

Details for the file lseg_analytics_pricing-2.2.0b1.tar.gz.

File metadata

  • Download URL: lseg_analytics_pricing-2.2.0b1.tar.gz
  • Upload date:
  • Size: 5.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for lseg_analytics_pricing-2.2.0b1.tar.gz
Algorithm Hash digest
SHA256 5b7c52ffe2e65924b5920226ba25d4d7bf5def571aac7a1076aa3ddb5bd55bb5
MD5 bc44179774c9cfcc2da79bdcdae278a1
BLAKE2b-256 05068d4598cc6cd12d9305767d1505bb4d0dcab786a1a6044ea2645b9cc0291c

See more details on using hashes here.

File details

Details for the file lseg_analytics_pricing-2.2.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for lseg_analytics_pricing-2.2.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 4651cb65a8c6dfa103c61ed93759bfecdc7c1299f7c392482f00595786e30e61
MD5 3e2d671e48fdea022fd714544032e0ea
BLAKE2b-256 33b2fb0ab48be0c88c42c7d8bf537d527db96a85cfb8447c1a91726f00020176

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