Cannot retrieve data

Hi Team,
Please can someone check the below and provide resolution.
*** EXTERNAL EMAIL ***
Very good Denis – we’re definitely one step closer now. I’ve changed the password and…
import lseg.data as ld
APP_KEY = "ee1aca4f4d86445bb6d980c533b95686d86716b4"
RDP_LOGIN = "cip@vitol.com"
RDP_PASSWORD = "..."
session = ld.session.platform.Definition(
app_key = APP_KEY,
grant = ld.session.platform.GrantPassword(
username = RDP_LOGIN,
password = RDP_PASSWORD,
),
signon_control=True,
).get_session()
session.open()
ld.open_session()
df = ld.get_history(
universe="GOOG.O",
fields=["BID", "ASK", "TR.Revenue"],
interval="1Y",
start="2015-01-01",
end="2019-10-01",
)
I had to add signon_control=True as I was getting a Session quota error otherwise.
The session now has has an “opened” state and I see no errors anymore:
However, the data frame that ld.get_history returns is empty. I’ve taken the example snippet from pypi. I’m not sure which datasets I’m permissioned to query – perhaps there is something universal like FX that we could try to test?
CORPORATE
Hi Cornelius,
Glad your session is now connected. Could you try EUR= or GBP= for FX. For Energy you can try the front month ice brent contract LCOc1. Let me know if you’re able to pull history.
Thanks,Denis
*** EXTERNAL EMAIL ***
Hm, no luck unfortunately. This is what I’ve done:
df = ld.get_history(
universe="EUR=",
fields=["BID"],
interval="1Y",
start="2015-01-01",
end="2019-10-01",
)
And the error message I receive back is
in get_history(universe, fields, interval, start, end, adjustments, count, parameters, header_type)
210 if exceptions and all(exceptions):
211 except_msg = "\n\n".join(exceptions)
--> 212 raise LDError(message=except_msg)
214 if not any({adc_data, hp_data, cust_inst_data}):
215 return DataFrame()
LDError: No data to return, please check errors: ERROR: No successful response.
(404, Not found)
Answers
-
Its better to get the client to directly interact with us on these forums.
The code snippet above is correct and should provide a valid dataframe with results. Please ask the client to enable debugging for LD Library as described in this example.
{ "logs": { "level": "debug", "transports": { "console": { "enabled": false }, "file": { "enabled": false, "name": "lseg-data-lib.log" } } },…
The only change I did to the original code is to set the opened session as the default for the library:
… signon_control=True, ).get_session() session.open() ld.session.set_default(session) df = ld.get_history(…
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 688 Datastream
- 1.4K DSS
- 625 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 558 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 277 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 1.9K Refinitiv Data Platform
- 695 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 92 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛