Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Refinitiv Data Platform /
avatar image
Question by melarbi · Nov 06, 2020 at 05:01 PM · currencyrdp api

Resolve Currency code in RDP

Hi I am using RDP .Net API to retrieve real time prices and the currency ( CF_LAST, CF_CURR ) on a bunch of stocks / futures ( e.g. "VOD.L", "FFIZ0" ). The returned value on CF_CURR is a number ( I guess it is a currency code ). How can I get the string currency code from this number ? Is there a way that the function call returns a string rather this digital currency code ?

StreamingPrices.Definition("FFIZ0", "VOD.L").Fields("DSPLY_NAME", "CF_CURR", "CF_LOTSIZE", "CF_LAST")


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.

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by zoya.farberov · Nov 07, 2020 at 12:30 AM

Hello @melarbi,

To my best knowledge, at this time, there is no way to get string via number with RDP Library.

If you would like to look up the value's meaning, attached next please find enumType.def dictionary:

enumtype.def.zip

Currency field values with meanings are defined starting at line 367:

...
! VALUE      DISPLAY   MEANING
! -----      -------   -------
      0        "   "   Not allocated
      4        "AFA"   Afghanistan afghani (from 1925 until 2003)
      8        "ALL"   Albanian lek
     12        "DZD"   Algerian dinar
     20        "ADP"   Andorran peseta
     24        "AON"   Angolan new kwanza
     32        "ARS"   Argentine peso
     36        "AUD"   Australian dollar
     37        "AUc"   Australian cent (deprecated)
     40        "ATS"   Austrian schilling
     44        "BSD"   Bahamian dollar
     48        "BHD"   Bahraini dinar
     50        "BDT"   Bangladesh taka
     51        "AMD"   Armenian Dram
     52        "BBD"   Barbados dollar
...

You may also wish to review this related discussion.


enumtypedef.zip (215.0 KiB)
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 melarbi · Nov 08, 2020 at 11:36 AM

HI, With all due respect, this looks like a hack. The API should provide a way to resolve these instruments IDs or rather Currency IDs centrally. The file enumtype.def is clearly very useful and will definitely help but what happens if that file changes ? and if you add new items to it ? the user needs to keep in synch with new versions of this file etc...

Clearly this should and could easily be handled centrally by the API. Is there any hope that this gets resolved any time soon ?

Best

Mahmoud.

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 zoya.farberov · Nov 09, 2020 at 07:34 PM

Hello Mahmoud @melarbi,

I, personally (I am with developer advocacy, rather then with Eikon product development) tend to agree this may not be the optimal approach. However, this is the approach that is available for use today, if you need this info within your application at present.

In addition, as a Refinitiv customer, you can also submit a Product Enhancement Request on Eikon Data API via Product Feedback -> "Share New Idea", providing all the pertaining details. This will allow Refinitiv not only to capture the full details of your suggestion, but to have it fully evaluated by the team responsible for the development of the Refinitiv Workspace, the next generation of Eikon product, and with other customer requests received, aggregated and prioritized. The more customers are asking for the same, the higher the aggregated priority of the request, and the sooner we can potentially expect the feature to be actualized.

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 >
10 People are following this question.

Related Questions

Why am I getting an error when I run the exact same code in my stand-alone python environment, while it works using RDP API in the Codebook application in Workspace?

Currency feeds from Reuters API Pull vs pushed how to use..

RDP Plataform identify ODD lot Trades

problem about accessing the fund properties

RDP WebSocket hanging when connecting

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • 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
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • 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
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges