Registry / http-networking / lseg-data

lseg-data

JSON →
library2.1.1pypypi✓ verified 80d ago

A Python client library for accessing the London Stock Exchange Group (LSEG) Data Platform APIs, including real-time and historical data. Current version: 2.1.1. Released under the Apache-2.0 license with regular updates.

pip install lseg-data
INSTALL
IMPORT
SIG · LSEG-DATA
L
lseg-data
http-networkingpythonv2.1.1
Install
15.6s avg
Import
Disk
332MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.1.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 327.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 15.6s · import 0.000s · 314MB
332MB installed
● package 332MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

extend_path
from lseg import extend_path
from lseg.data import LsegData

Initialize LSEG Data client with app key and fetch historical prices.

import os from lseg.data import LsegData from lseg.data.auth import Credentials creds = Credentials(app_key=os.environ.get('LSEG_APP_KEY', '')) client = LsegData(credentials=creds) df = client.get_history( instruments=['IBM.N'], fields=['TR.PriceClose'], start_date='2025-01-01', end_date='2025-01-31' ) print(df.head())
Debug
Known issues
breakingIn v2.0.0, the credential class moved from `lseg.data.credentials` to `lseg.data.auth`. Old imports will break.
fix
Use `from lseg.data.auth import Credentials` instead of `from lseg.data.credentials import Credentials`.
affects: >=2.0.0
breakingThe `get_history()` method no longer accepts `instrument` (singular) parameter; use `instruments` (list) only.
fix
Pass a list to 'instruments' even for a single instrument, e.g., `instruments=['AAPL.O']`.
affects: >=2.0.0
gotchaThe library requires Python >=3.9. Using older Python versions will raise ImportError.
fix
Upgrade Python to 3.9 or later.
affects: >=2.0.0
gotchaAPI keys must be granted appropriate entitlements; otherwise requests return authorization errors.
fix
Verify your LSEG app key has access to the requested data products.
affects: all
Upgrade
Version history
2.1.1latest on PyPI · released Apr 4, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
18
Resources
lseg-data — pip install lseg-data · libregistry