godwin

Hi,
I am quite new on this platform and I need some assistance.
I currently want to download futures data with the following variables
date
volume
open interest last trading date
time to maturity
ticker symbol
etc
I kindly need assistance on how to go about it
Answers
-
Hi @2570871 ,
I would suggest starting with something like this article that has tutorial videos to walk you through the Datastream Python API.
Do keep in mind however that this article uses an old API; DSWS is not live any more, and it was replaced with DatastreamPy. You can find a QuickStart guide here.
0 -
You posted this question on the Datastream forum. Therefore, I assume that you are using the Datastream product.
The Datastream supports Excel so you can use the Datastream's Excel Add-in to retrieve data.
You can use the Datastream Formula in the Add-in to search for instruments and datatypes.
The Datastream also supports Python via the DatastreamPy lPython library, as mentioned by my colleague. With this tool, you can use the Datastream Navigator to search for instruments and datatypes.
However, if you are using Eikon or LSEG Workspace, you can still use Eikon Excel or Workspace Excel to retrieve data.
Eikon Excel or Workspace Excel provides the Build Formula tool used to generate the Excel's formulas.
Moreover, you can use the LSEG Data Libraries (Python, .NET, and TypeScript) to retrive data via your desktop application. The examples are available on GitHub (Python, .NET, and TypeScript). You can also use the Data Item Browser tool to search for instruments, fields, and parameters available in Eikon or LSEG Workspace.
0 -
Hi Jonathan,
Thank you for your answer.
So I did more study, especially with the codebook and the codes available for a start.
I tried to get the data I want, using the codebook python environment (which I want to fetch, and display before saving in csv format).
I used the code
instruments = ['LBS=F']
fields = ['SETTLE_PRICE'
parameters = {'SDate': '0CY'
# Fetch the data
try:
print("Fetching data...")
f
if err:
print(f"Error: {err}")
else:
# Convert the data to a DataFrame
df = pd.DataFrame(f)
print("Data fetched successfully!")
print(df)
except Exception as e:
print(f"An error occurred: {e}")
but i get this error
ERROR:pyeikon:HTTP request failed: 'NoneType' object has no attribute 'http_request'
Fetching data...
An error occurred: 'NoneType' object has no attribute 'get'
Any advice please.0 -
Hi Wasin,
Thank you for this.
Your reply has been very helpful.
However, I have not yet been able to achieve my goal.
Perhaps because I am new or I am not getting the RIC definitions right.
I am open for further assistance or if there are further documentations or videos I can learn how to get futures data including the RIC.I will be happy to hear back from you.
Kind regards
2570871
0 -
Please share the full runnable code that you are using and paste it in the code block for readability.
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
- 685 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 556 WebSocket API
- 38 FX Venues
- 14 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
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 650 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
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛