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 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.2.0b2
- Added more workflow samples for Structured Products.
- Added/updated below helper functions for Pandas DataFrame conversion
in module
helpers. Updated the samples to use the helper functions.valuation_to_dfrisk_to_dfcashflows_to_dfget_nested_attrsort_by_tenorsurface_to_dftemplates_to_df
- Integrate with PriceIt v0.2.1
- Added
x-ap-sdk-operationand changed User Agent in request headers to support Telemetry
2.2.0b1
- Support Telemetry in request headers.
- Added new module
priceitfor structured product payoff definitions.
2.1.0
- Added samples
Inflation Swaps ValuationandCapped Floored Swaps Valuationforinstruments.ir_swaps. - Added sample
Structured Notesforinstruments.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_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 from 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lseg_analytics_pricing-2.2.0b2.tar.gz.
File metadata
- Download URL: lseg_analytics_pricing-2.2.0b2.tar.gz
- Upload date:
- Size: 5.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34e783b3d75e1df9bdb9219f72ee5901fe3a97d3f02bb25fe89f0d9802461bec
|
|
| MD5 |
5b3febcd055881bf6bfa2dd4a1d52e41
|
|
| BLAKE2b-256 |
2eea5aef8ca3e48f08dd16636d13842cfd2c5945b337f11bf8d5cc0b8a65fe2a
|
File details
Details for the file lseg_analytics_pricing-2.2.0b2-py3-none-any.whl.
File metadata
- Download URL: lseg_analytics_pricing-2.2.0b2-py3-none-any.whl
- Upload date:
- Size: 5.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a10ca35064cc46c9e0afb64278ec1f97b5b2a922b1d9afcada631a98024cea7
|
|
| MD5 |
a8a0d5a599655f5b841d7a71a5eaa782
|
|
| BLAKE2b-256 |
aed26af20cf22baf884f716c73c84cc040c29e9c06f9bb9c6fa68784dc34a58c
|