-
DSWS API returns invalid data
Hi, When I execute the following via the DSWS API I receive the following data: ds.get_data(tickers = '8857RL', fields = ['DSCD','ENAME','ISIN','RIC','T1C','LEI',] ,kind = 0) When I use the same DSCD in the web portal, the ISIN is correct. When I try to search the web portal for the ISIN returned by the API, I receive no…
-
Python- workspace excel implementation
Hi Team, Can you please answer two questions below? 1) Will new workflow (Python-Excel) implementation require additional payable data access licensing (for instance to data API licenses). If yes – then where can we find pricing? 2) Is there a way (please share some sample python file or reference) to initiate some…
-
Getting Module Error
How to fix this issue
-
Error using Datastream in R
addpkg('DatastreamDSWS2R', '1.9.7') library("DatastreamDSWS2R") options(Datastream.Username = " ZXXX000") options(Datastream.Password = " PASSWORD123") mydsws <- dsws$new() Error in rjson::fromJSON(myTokenResponse) : no data to parse
-
How to mimic the Eikon TR.RecMedianLabel in Datastream using the RECMED value
Hi, How do I mimic the Eikon TR.RecMedianLabel in Datastream using the RECMED value? In Eikon, the logic used to determine the label is as per below: In Datastream the logic used to determine the label: Therefore, if DSWS returns a value of 4 for the field RECMED, based on the above translation, the label would be “UPRF”.…
-
Viewing DSWS Usage stats in DSWS desktop
Hi all, I have a client who is using desktop DSWS and is trying to use the code ds.get_data(tickers='STATS', fields=['DS.USERSTATS'], kind=0) to view his user stats. Unfortunately this doesn't work for him : Exception Traceback (most recent call last) Cell In[21], line 1 ----> 1 ds.get_data(tickers='STATS',…
-
Downloading Historical Equities data
Hi, I have a fairly heavy task and the LSEG help desk recommended that I put this question here in the dev community. My team and I need to search and download data on equities (outstanding shares, price, dividend yield, etc.) traded on exchanges in 15-20 countries stemming back to the 1970's-present. My gut tells me that…
-
How do I get the Eikon equivalent of calcdate in dsws API?
How do I get the Eikon equivalent of calcdate in dsws API? The Eikon API call is: =@TR(';ASX300 List'!J3:J500,"TR.RecMean.calcdate;TR.NumOfRecommendations;TR.NumOfStrongSell;TR.NumOfSell;TR.NumOfHold;TR.NumOfBuy;TR.NumOfStrongBuy;TR.PriceTargetMean;TR.RecMedian;TR.RecMedianLabel","SDate=1D CH=Fd RH=IN",$AB$1) DSWS API…
-
My question relates to the Eikon API in python
I have a combination of RIC and a timestamps called let's say 'time' from 2024-05-27 to 2024-06-07. The combination represent trades for which I want to pulled data. I tried using the get_history() function from the RD library and find historic BID and ASK prices at 1 minutes interval. Since I have close to 10K unique RIC…
-
Import csv list of DSCodes in DSWS API
Hi, I'm trying to run DSWS request using a list of dscodes from a csv vile, but the code I'm using adds "[]" before and after the list, it's returning error. Here's my code instruments= [] with open('DSCD list1.csv') as csvDataFile: csvReader = csv.reader(csvDataFile) for row in csvReader: for ticker in row:…
-
How to search for a stock using ISIN and ISOMIC combination in DSWS
How do I search for a stock using ISIN and ISOMIC combination in DSWS so I can retrieve stock on a specific exchange? E.g. DE0005810055 XETR
-
Getting error trying to install DatastreamDSWS2R in R Studio
R studio - DatastreamDSWS2R error 2.pngR studio - DatastreamDSWS2R error.pngI cannot seem to install DatastreamDSWS2R package into R Studio, and when trying to run below code, i get error. pls assist. First attachment is what i see when trying to install dsws package. Second attachement is when trying to run a sample code,…
-
Querying DatastreamDSWS2R with RICs
Hi, Is it possible to query DSWS via R using package DatastreamDSWS2R with RICs instead of DS codes as identifiers? I tried the following but it won't work because it requires DS code @AAPL instead of AAPL.OQ. If this is not possible, can you suggest a workaround to get the DS codes from a list of RICs? cheers…
-
Datastream API is intermittently giving a Read Timed Out error
We have a number of jobs that use the Datastream API at the same time. They will each pull data (sometimes the same data) to calculate different models. We will intermittently get a "Read Timed Out" error: ``` requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='product.datastream.com', port=443): Read timed out.…
-
Expired option RIC request via Datastream and Eikon APIs
I am using this code to get price data on expired option NDXb1921A5075.U^B21: df5 = ds.get_data(tickers="<NDXb1921A5075.U^B21>", fields=['MP'], start = '2021-01-01', end = '2021-09-18', freq= 'D' ) According to the RIC rules this option should have been expired on February 19, 2021, however the code above returns price…