Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Datastream /
avatar image
Question by steffen.fuchs · May 02, 2019 at 10:04 AM · eikon-data-apieikon-com-apidatastream-apidsws-api

Eikon Python API - excel 'GRLS' function for annualized growth rate for share

Hi,

is there a way to retrieve the value for the excel api's GRLS function for a time span?

Many thanks,

Steffen

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

4 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Alex Putkov.1 · May 02, 2019 at 04:47 PM

I assume you're asking about the equivalent to the following Excel formula that uses Datastream add-in

=DSGRID("U:TRI","GRLS#(X,2Y)","Latest Value")
If this is what you're looking to replicate in Python, then you need to use Datastream Web Service API.
Here's an example Python code that implements the equivalent to the above request
import PyDSWS
import datetime as dt ds = PyDSWS.Datastream('your Datastream Child ID', 'your Datastream password') ds.get_data('U:TRI', ['GRLS#(X,2Y)'], date=dt.date.today())
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by steffen.fuchs · May 06, 2019 at 08:09 AM

Thanks Alex.

When trying to connect to DSWS, I get the following error when executing line "ds = PyDSWS("....

ConnectionError: HTTPConnectionPool(host='product.datastream.com', port=80): Max retries exceeded with url:

/DSWSClient/V1/DSService.svc/rest/Token?username=***&password=***

(Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000000000C274C18>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by Alex Putkov.1 · May 06, 2019 at 02:58 PM

@steffen.fuchs
I think it's likely due to your Internet proxy. Try explicitly specifying the proxy as suggested on this thread discussing similar issue.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by steffen.fuchs · May 13, 2019 at 06:58 AM

works. Thanks, Alex

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
7 People are following this question.

Related Questions

Refresh DSGRID functions in excel from VBA sub and wait for refresh to be finished before continuing with the code execution

Hi, dear all. Can someone help with automatizarion download files from Codebook invironment into my PC?

Converting Mnemonic to RIC and getting timeseries data (RI and NR) with EIKON Data API

Where to get historical data for Eikon fields not supporting SDate?

MSCTRY field not possibe via Eikon API

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges