devcartel / pyrfa

Open sourced Python API for Refinitiv (Thomson Reuters) Enterprise Platform.
http://devcartel.com/pyrfa
MIT License
50 stars 15 forks source link

login error - how does RFA authentication work? #37

Open ZmeiGorynych opened 6 years ago

ZmeiGorynych commented 6 years ago

Hi,

when trying to run the example on your front page, I'm getting an authentication error (using my real login name of course, here replaced by "my_real_login_name@my_company.com":

---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
<ipython-input-3-bcda0141cc71> in <module>()
      4 p.acquireSession("Session1")
      5 p.createOMMConsumer()
----> 6 p.login()
      7 p.directoryRequest()
      8 p.dictionaryRequest()

Exception: [Pyrfa::login] Login failed. Please check data permission. (username: my_real_login_name@my_company.com)

The pyrfa.cfg is below.

How does the RFA authentication work, actually? Do I need to register my IP somehow, or enter my password in the cfg file, or have a Reuters UI running?

Thanks a lot!

\pyrfa\debug = false

\Logger\AppLogger\useInternalLogStrings  = true
\Logger\AppLogger\windowsLoggerEnabled   = false
\Logger\AppLogger\fileLoggerEnabled      = true
\Logger\AppLogger\fileLoggerFilename     = "./pyrfa.log"

\Connections\Connection_RSSL1\rsslPort = "14002"
\Connections\Connection_RSSL1\ServerList = "127.0.0.1"
\Connections\Connection_RSSL1\connectionType = "RSSL"
\Connections\Connection_RSSL1\logEnabled = true
\Connections\Connection_RSSL1\UserName = "my_real_login_name@my_company.com"
\Connections\Connection_RSSL1\InstanceId = "1"
\Connections\Connection_RSSL1\ApplicationId = "180"
\Connections\Connection_RSSL1\Position = "127.0.0.1"
\Connections\Connection_RSSL1\ServiceName = "IDN_SELECTFEED"
\Connections\Connection_RSSL1\fieldDictionaryFilename = "../etc/RDM/RDMFieldDictionary"
\Connections\Connection_RSSL1\enumTypeFilename  = "../etc/RDM/enumtype.def"
\Connections\Connection_RSSL1\downloadDataDict = false

\Sessions\Session1\connectionList = "Connection_RSSL1"

\ServiceGroups\SG1\serviceList = "SERVICE1, SERVICE2"
\Sessions\Session1\serviceGroupList = "SG1"
wiwat-tharateeraparb commented 6 years ago

Hi there,

PyRFA is meant to connect to TREP-RT servers e.g. ADH, ADS, ATS or Elektron for high-speed real-time data. The username here is set at DACS. The username you used looks like an Eikon login. Eikon is a client terminal. It gets the data from TREP the same way PyRFA gets the data from.

If you need to use PyRFA to get the data, please contact Thomson Reuters for “API access” they will then assign a username for you along with the port and IP address.

-- Wiwat Tharateeraparb www.devcartel.com | wiwat.t@devcartel.com +66 89 500 9810

On 19 Dec 2017, at 23:15, Egor Kraev notifications@github.com wrote:

Hi,

when trying to run the example on your front page, I'm getting an authentication error (using my real login name of course, here replaced by "my_real_login_name@my_company.com":


Exception Traceback (most recent call last)

in () 4 p.acquireSession("Session1") 5 p.createOMMConsumer() ----> 6 p.login() 7 p.directoryRequest() 8 p.dictionaryRequest() Exception: [Pyrfa::login] Login failed. Please check data permission. (username: my_real_login_name@my_company.com) The pyrfa.cfg is below. How does the RFA authentication work, actually? Do I need to register my IP somehow, or enter my password in the cfg file, or have a Reuters UI running? Thanks a lot! \pyrfa\debug = false \Logger\AppLogger\useInternalLogStrings = true \Logger\AppLogger\windowsLoggerEnabled = false \Logger\AppLogger\fileLoggerEnabled = true \Logger\AppLogger\fileLoggerFilename = "./pyrfa.log" \Connections\Connection_RSSL1\rsslPort = "14002" \Connections\Connection_RSSL1\ServerList = "127.0.0.1" \Connections\Connection_RSSL1\connectionType = "RSSL" \Connections\Connection_RSSL1\logEnabled = true \Connections\Connection_RSSL1\UserName = "my_real_login_name@my_company.com" \Connections\Connection_RSSL1\InstanceId = "1" \Connections\Connection_RSSL1\ApplicationId = "180" \Connections\Connection_RSSL1\Position = "127.0.0.1" \Connections\Connection_RSSL1\ServiceName = "IDN_SELECTFEED" \Connections\Connection_RSSL1\fieldDictionaryFilename = "../etc/RDM/RDMFieldDictionary" \Connections\Connection_RSSL1\enumTypeFilename = "../etc/RDM/enumtype.def" \Connections\Connection_RSSL1\downloadDataDict = false \Sessions\Session1\connectionList = "Connection_RSSL1" \ServiceGroups\SG1\serviceList = "SERVICE1, SERVICE2" \Sessions\Session1\serviceGroupList = "SG1" — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.