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")
Best Answer
-
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:
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.
0
Answers
-
<DELETED>
0 -
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.
0 -
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.
0
Categories
- All Categories
- 6 AHS
- 37 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 中文论坛