Eikon Excel mnemonic for value of an economic series
Hi, I'm trying to retrieve the value of the economic series "aUSCPI/A", but TR.PriceClose doesn't have a value. What Mnemonic should I use to retrieve the monthly CPI level? Thanks, Robby
Best Answer
-
Hi, I am trying to get the ten year yield now. Can you suggest why it may not be working with the code below? I'm assuming that .WithView() should not be ECONOMIC. What view should I use? Thanks.
request = timeSeries.SetupDataRequest("91282CAE1=")
.WithView("ECONOMIC")
.WithAllFields()
.WithInterval(CommonInterval.Monthly)
.WithNumberOfPoints(1000)
.OnDataReceived(DataReceivedCallback)
.OnStatusUpdated(OnStatusUpdated)
.CreateAndSend();
0
Answers
-
To retrieve timeseries of economic indicator values into Excel use =RHistory function.
=RHistory("aUSCPI/A","ECONOMIC.Timestamp;ECONOMIC.Value","INTERVAL:1MO",,"CH:Fd")
0 -
Awesome, thx!
0 -
I'm actually trying to download the data via the COM interface using C#
When I create the rdata Com object, and subscribe, My OnUpdate() method receives the following error:
"The formula must contain at least one field or function."
instrumentList = "aUSCPI/A"
fieldsList = "ECONOMIC.Timestamp;ECONOMIC.Value"
requestParametersList = "INTERVAL:1MO"
displayParametersList = "CH:Fd"
Am I able to get RHistory() data through the COM interface? If so, could I see some sample code?
Thanks,
Robby
0 -
RHistory COM API can only be used in Excel process with Eikon Excel add-in loaded. If you're creating a custom .NET application, use Eikon .NET API instead. See the Time Series tutorial for an example of using this API for the retrieval of timeseries.
0 -
I have downloaded the DataApiUsageExampleTimeseriesData solution.
I modified the code to look up CPI data.
Console.WriteLine("[2] Time series request example");
Console.WriteLine("");
request = timeSeries.SetupDataRequest("aUSCPI/A")
//.WithView("BID")
//.WithAllFields()
//.WithInterval(CommonInterval.Monthly)
//.WithNumberOfPoints(10)
.OnDataReceived(DataReceivedCallback)
.OnStatusUpdated(OnStatusUpdated)
.CreateAndSend();
}
private void OnStatusUpdated(IRequestStatus obj)
{
throw new NotImplementedException();
}
If I run it, the OnStatusUpdated method gets fired and obj.Error = "unspecified" and DataReceivedCallBack never gets fired.
If I put back the ticker as the example had it, "EUR=", it works great.
Is my call correct for an Econ time series?
Thanks!
Robby
0 -
When setting up the request you should use .WithInterval(CommonInterval.Monthly) because the default interval is daily. And you should use .WithView("ECONOMIC") .
0 -
First, Thank you for your swift responses.
Second, This is my new Launch() method and it still fires the same "OnStatusUpdated" event rather than "DataReceivedCallback" event
public void Launch()
{
Console.WriteLine("[2] Time series request example");
Console.WriteLine("");
request = timeSeries.SetupDataRequest("aUSCPI/A")
.WithView("ECONOMIC")
.WithAllFields()
.WithInterval(CommonInterval.Monthly)
.WithNumberOfPoints(10)
.OnDataReceived(DataReceivedCallback)
.OnStatusUpdated(OnStatusUpdated)
.CreateAndSend();
}
Thanks in advance.
Robby
0 -
I just tried it on my end and reproduced the same behavior you experienced. The code should work. However, It looks like there's a problem with the backend for economic indicator timeseries at the moment. RHistory Excel function I provided at the top of this thread now returns "The time series server does not have enough resources to complete the request for: aUSCPI/A". The chart object in Eikon cannot display charts for economic indicators either.
I raised support case #09321086 on your behalf with Refinitiv Helpdesk. The Helpdesk will investigate the issue and will reach out to you when they have any update.
0 -
Thanks! I hope I didn't break it
Robby
0 -
When asking a new question, please always start a new thread.
To answer your question, ECONOMIC view does not exist for bond RICs. To retrieve native bid yield for US Treasury notes and bonds you can use the default view or BID_YIELD view. For more info see "Views and intervals" section of "Time series" tutorial for Eikon .NET APIs.0 -
I used RDP.HistoricalPricing
It worked. Thanks.
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 中文论坛