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 handlingcommon- contains models that can be used in different API moduleshelpers- utility functions- API modules
reference_datacalendarsfloating_rate_indices
market_datafx_forward_curvescommodities_curvescredit_curveseq_volatilityfx_volatilityinflation_curvesinterest_rate_curvesipa_interest_rate_curvesircaplet_volatilityirswaption_volatility
instrumentsfx_spotsfx_forwardsbondbond_futurecap_floorcdsforward_rate_agreementir_swapsloansoptionsrepostructured_notesstructured_productsswaptionterm_deposit
job_managertemplatesinstrument_templates
yield_book_rest
Changelog
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_pollingandvalue_pollingfrom moduleinstruments.ir_swapsand classIrSwap, added new functionssolve_resultandvalue_result - Removed functions
price_pollingandvalue_pollingfrom moduleinstruments.loansand classLoan, added new functionsprice_resultandvalue_result
- Removed functions
- Added new module
async_handlerwith the new async classesAsyncRequestResponseandAsyncPollingResponsethat originally in thelseg-analytics-corepackage - Integrate with QPS API Job Manager 1.0.11816, added new module
job_managerfor 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_dateto classStirFutureDefinitionin moduleinstrument_templates
- Added new mandatory property
- 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
helpersdescription_to_dfvaluation_to_dfrisk_to_dfcashflows_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_getandrequest_bond_search_sync_postin moduleyield_book_restfor 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
Metadata
Release files for lseg-analytics-pricing 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lseg_analytics_pricing-2.1.0.tar.gz | 4.9 MB | Without provenance | Details for lseg_analytics_pricing-2.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lseg_analytics_pricing-2.1.0-py3-none-any.whl | Python 3 | none | any | Details for lseg_analytics_pricing-2.1.0-py3-none-any.whl |
Total release size: 10.2 MB
Release files / lseg_analytics_pricing-2.1.0.tar.gz
| Download URL | lseg_analytics_pricing-2.1.0.tar.gz |
|---|---|
| Size | 4.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c5ec99c5e45be2a0f14c818518cbf9bbe2376c79105c5f715b87526a9c6d3ea
|
|
BLAKE2b-256 checksum How to use checksums |
9c2431579b7f4321cef87b13e950561f5bfd0ea7a567985a2aad06bc731cb331
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.8
|
Release files / lseg_analytics_pricing-2.1.0-py3-none-any.whl
| Download URL | lseg_analytics_pricing-2.1.0-py3-none-any.whl |
|---|---|
| Size | 5.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9570b177dd1f009dc9be9400fea78984c2a594704eedf1fb3bd8c9e2340e10a2
|
|
BLAKE2b-256 checksum How to use checksums |
9ee3a111f5bd72f14f88bad5c7079867ac4669a28b32ff29b6b7c82fe81aca86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.8
|
Security for lseg-analytics-pricing 2.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.