Error when trying to pull Datastream time series in R
@Shadab Hussain @chavalit_jintamalit Here's the code
tkrs <- tkrTbl[which(tkrTbl$Field=="A12PE"),"RawTicker"]
datatype <- c("A12PE")
x.period <- "D"
mydsws <- dsws$new()
data <- mydsws$timeSeriesRequest(tkrs[1], datatype, startDate = DSStDate,
endDate = eDate,
frequency = x.period)
Error snippet:
Best Answer
Answers
-
Hi @soham.sen1 ,
Have you used datastream in R successfully before?
If yes: have you had any machine update since? Maybe an anty-virus update that might now stop your code to connect to local ports (specifically the eikon one, normally number 9000)?
0 -
Thanks @jonathan.legrand . Yes, I run this daily and this is the first time I've faced this issue. Am not aware of a machine / anti-virus update; working on the firm's VM- what is the workaround?
0 -
Hi @soham.sen1 ,
If your anti-virus is blocking your code access to local ports, then several other Refinitiv APIs would fail too, such as the Eikon Data API (EDAPI) available in R. Are you using this API too? And if so: does it fail? If it does not, then it's unlikely to be an anti-virus issue.
Failing the above, if the issue is indeed to do with local ports being out of reach for your code because of an anti-virus, a work around would be to run this code in another environment (e.g.: in another machine).
A solution would be to contact your IT to see if there has indeed been an anti-virus update, and white list local ports (9000).
In order to check if this is not a permission issue, would you mind checking your credentials by logging into the Datastream navigator?
0 -
Hi @jonathan.legrand , I don't use the R API above and I'm able to login to DataStream. This worked fine yesterday but I'm facing the same problem today- so I don't think there's any anti-virus or system update that is causing this issue
0 -
Please run the sessionInfo() command to check the versions of R and DatastreamDSWS2R.
1 -
@Jirapongse @jonathan.legrand it's solved now- this was an issue of monthly data limit being maxed out
2 -
We can check our usage statistics by using the following code.
myStat <- mydsws$snapshotRequest(instrument = "STATS",
datatype = "DS.USERSTATS",
requestDate = Sys.Date())
myStat0
Categories
- All Categories
- 6 AHS
- 38 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛