LSEG Analytics 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
Usage Examples
An example to create a FX Forward Curve.
from lseg_analytics.common import (
CrossCurrencyInput,
CurrencyInput,
TenorType
)
from lseg_analytics.market_data.fx_forward_curves import (
create_from_fx_forwards,
IndirectSourcesSwaps
)
create_from_fx_forwards(
cross_currency=CrossCurrencyInput(code="EURGBP"),
reference_currency=CurrencyInput(code="USD"),
sources=IndirectSourcesSwaps(
base_fx_spot="ICAP",
base_fx_forwards="ICAP",
quoted_fx_spot="TTKL",
quoted_fx_forwards="TTKL",
),
additional_tenor_types=[TenorType.LONG, TenorType.END_OF_MONTH],
)
Modules Structure
common
- contains models that can be used in different API moduleslogging
- logging configurationexceptions
- API modules
reference_data
calendars
market_data
fx_forward_curves
instruments
fx_spots
fx_forwards
API module structure
- Each API Module has a main object, which has the same name as a module, but in singular form
- Examples
reference_data.calendars
:Calendar
market_data.fx_forward_curves
:FxForwardCurve
instruments.fx_spots
:FxSpot
instruments.fx_forwards
:FxForward
- Instance of this object represents corresponding resource on the server
- Examples
- Each API Module has functions
load
,search
,delete
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file lseg_analytics-1.0.0b2-1-py3-none-any.whl
.
File metadata
- Download URL: lseg_analytics-1.0.0b2-1-py3-none-any.whl
- Upload date:
- Size: 301.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | efce338a58e2aa361b5730e01de77060df9f702fa02d915e35fdefebad386eef |
|
MD5 | f5365a9767e1f0ff03285bc5e0510e2e |
|
BLAKE2b-256 | 5e23dd28e8826b77853ec2b83e4afd71c67094563fc27b84672e559d80b0794f |