Bloomberg Live Price/Value

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

kszynkar
Posts: 45
Joined: Tue Feb 02, 2016 1:15 am
Location: Switzerland

Bloomberg Live Price/Value

Postby kszynkar » Wed May 11, 2016 4:55 am

Hi,
I was wondering if it's possible to get a single live value from Bloomberg. Currently, using "fetch" I would get the whole time series.

EViews Jason
EViews Developer
Posts: 870
Joined: Tue Sep 16, 2008 3:50 pm

Re: Bloomberg Live Price/Value

Postby EViews Jason » Wed May 11, 2016 8:08 am

Unfortunately you have to fetch the entire series.

You could fetch the series, set the sample to 1 observation, and then create a series equal to the fetched series. This will create a series with one value

Code: Select all

fetch abc
smpl 1970 1970
series x = abc


Alternatively, you can create a scalar equal to the single value

Code: Select all

fetch abc
scalar y = @elem(abc,"1970")


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 30 guests