Retrieving a large amount of RICs
I am trying to extract FX data on different currencies with different maturities. I have a list that contains all the currency pairs and their respective maturities. This means that I have to retrieve a vast amount RICs, over 2000 to be specific. Is there a way to retrieve a large amount of RICs?
Best Answer
-
@benjamin.lian So it depends on the amount of data fields you wish to download per RIC and whether you are using get_timeseries or get_data API calls. Either way information on our API limits can be found here. Usually one would break a large RIC list into chunks using something like:
def chunks(l, n):
for i in range(0,len(l),n):
yield l[i:i+n]rics = list(chunks(list(large_ric_list), 50))
Which could break a large list of RICs into chucks of 50 RICs - which could then be iterated over to stay within API datapoint per call limits. I hope this can help.
0
Answers
-
@jason.ramchandani Thank you for the answer. Correct, I have implemented that solution.
What I am looking for is a way to retrieve the RICs. For instance, suppose I want the price of AUD/CAD tomorrow next. The RIC for this price is AUDCADTN=R. If I have over 2000 of these types of prices that I want, how can I get a list of the correct RICs, e.g. AUDCADTN=R?0 -
@jason.ramchandani Thank you for the answer. Correct, I have implemented that solution.
What I am looking for is a way to retrieve the RICs. For instance, suppose I want the price of AUD/CAD tomorrow next. The RIC for this price is AUDCADTN=R. If I have over 2000 of these types of prices that I want, how can I get a list of the correct RICs, e.g. AUDCADTN=R?
0 -
@benjamin.lian So if you need a list of forward/depos rics you can try some chain RICs such as :
df,err = ek.get_data(['0#GBPF='],['CF_NAME'])
dfWhich can give you a list of instruments across delivery periods. Or once you know the pair and the delivery period you can mechanically build these - using :
and the formula:
I hope this can help.
1 -
This works for some currency pairs, mostly hard currencies. But what if I for instance want the 3 week swap points of THB HUF?
This does not work:
df = ek.get_timeseries(['THBHUF3W=R', start_date = [:], end_date = [:])
I know that the RIC does not show up if I search for it in the desktop app either, but the swap points are calculated in the SPO, so the data should be there?
0 -
It looks like to be a content question.
You can contact the Eikon support team directly via MyRefinitiv, and ask for a formula or RICs in the Eikon Excel which can be used to get the required data.
If the formula is available, we may be able to apply it to the Eikon Data API.
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 中文论坛