Client is using Jupyter API

I'm not able to download date using this code. This was possible a couple of months ago.
importrefinitiv.data as rd
rd.open_session()
st="JPUSTOSR21M=TTKL"
dt1="2025-07-06"
dt2="2025-07-09"
start_dt = dt1 +"T00:00:00" end_dt = dt2 +"T20:59:59" df =rd.get_history(st, fields=['BID','ASK'], interval="tick", start =start_dt, end = end_dt)
Client encountered an error:
---------------------------------------------------------------------------
RDError Traceback (most recent call last)
Cell In[3], line 3
1 import refinitiv.data as rd
2 rd.open_session()---->
3 rd.get_history(
4 universe='JPUSTOSR21M=TTKL',
5 fields=["BID", "ASK",],
6 interval="tick",
7 start="2025-07-06" +'T00:00:00',
8 end="2025-07-09" +'T20:59:59',
9 )
File ~\AppData\Local\anaconda3\Lib\site-packages\refinitiv\data\_access_layer\get_history_func.py:206, in
get_history(universe, fields, interval, start, end, adjustments, count,
use_field_names_in_headers, parameters)
204 if exceptions and all(exceptions):
205 except_msg = "\n\n".join(exceptions)
--> 206 raise RDError(-1, except_msg)
208 if not any({adc_data, hp_data, cust_inst_data}):
209 return DataFrame()
RDError: Error code -1 | 'dict' object has no attribute 'url'
Please help. Thank you
Answers
-
Hello @RALPHPAOLO.NAVARRO
The instrument JPUSTOSR21M=TTKL seems to be invalid. I can't find it or get any data for it. Please reach out to content specialist at LSEG MyAccount, to get the correct symbol.
1 -
@Gurpreet can you try using EUR1YOIS=FMD please. thank you so much
0 -
Hi @RALPHPAOLO.NAVARRO ,
I can retrieve data properly with the RIC you provided
0 -
hello team. @Gurpreet @raksina.samasiri
Client followed up, I tried to execute this code:
# Start session with your App Key
from IPython.display import HTML
import pandas as pd
import refinitiv.data as rd
session= rd.open_session(app_key=xxxxxxxxx)
print(session)
I got this message:
DesktopSession
name = 'workspace'
connection = DesktopConnection
stream_auto_reconnection = True
handshake_url = http://localhost:9000/api/handshake
state = OpenState.Pending
session_id = 0
logger_name = sessions.desktop.workspace.0
As you can see, the state is Pending.
Can you please assist to fix this?
Thank you
0 -
The error (Error code -1 | 'dict' object has no attribute url') is similar to this discussion.
The client should migrate the application to use the LSEG Data Library for Python instead. The examples are available on GitHub.
To migrate the application, please refer to this Essential Guide to the Data Libraries - Generations of Python library (EDAPI, RDP, RD, LD) article.
1
Categories
- All Categories
- 3 Polls
- 6 AHS
- 37 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 697 Datastream
- 1.5K DSS
- 633 Eikon COM
- 5.2K Eikon Data APIs
- 14 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 6 Trading API
- 2.9K Elektron
- 1.5K EMA
- 256 ETA
- 564 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
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 283 Open PermID
- 47 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2.1K Refinitiv Data Platform
- 775 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
- 122 Open DACS
- 1.1K RFA
- 107 UPA
- 194 TREP Infrastructure
- 231 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 98 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛