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 -
@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.
0 -
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
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 250 ETA
- 555 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 643 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛