search for: last_price

Displaying 7 results from an estimated 7 matches for "last_price".

2005 Mar 24
5
Bloomberg data import
Dear R Folks, I know that Enrique Bengoechea ( Credit Suisse ) had posted some code snippets for importing Bloomberg historical data into R. I found them to be very useful. Has anyone succeeded in getting the below items from Bloomberg to R? (a) historical economic release data, (b) tick/intra-day data (c) bulk data such as Index membership info, etc. If someone is willing to share their code
2006 Nov 22
1
RBloomberg Multi-ticker problem
...m trying to download data from Bloomberg through R. If I try to download intraday data for multiple tickers and only one field, I get the error, written below in red. How do I get rid of this error? > dat<-blpGetData(conn, c("NOK1V FH Equity","AUA AV Equity"), "LAST_PRICE", start=as.chron(as.Date("2006-9-13","%Y-%m-%d")),barfields="VOLUME", barsize=10,retval="data.frame") Error in if (typ[n] == "character") { : missing value where TRUE/FALSE needed * blpDisconnect(conn) Thank you, Shubha. [[alter...
2006 Nov 13
1
Fetching Intraday data from Bloomberg
...ownloading intraday Bloomberg data from R. The code I give is: library(zoo) library(chron) library(RBloomberg) conn<-blpConnect(show.days="trading",na.action="previous.days",periodici ty="daily") dat<-blpGetData(conn, "VG1 Index", c("LAST_PRICE"), start=as.chron(as.Date("2006-9-01", "%Y-%m-%d")),barfields="OPEN", barsize=10,retval="data.frame") blpDisconnect(conn) write.table(dat,"Z:\h1.csv",sep=",",row.names=F,col.names=T) Now, though I give show.days="trading...
2006 Jun 09
3
using a variable as substitute for a method
...orry if this is obvious but I couldn''t find the answer in the Ruby/Rails docs. How do I use a variable as a substitute for a method/field, so that I can call the object with the variable that contains the method name. For example, say I have the object Product, that has methods Price, Last_Price, Average_Price. I want to be able to return the value of either of those three fields based on the user selection. Ie, user selection is stored in params[:foo], which I assign to variable field_to_show, and I want to be able to call: Product.field_to_show which should output Product.Price (if...
2006 Dec 13
0
Problem in Converting Zoo Objects to Dataframes
...bb. " library(zoo) library(chron) library(RDCOMClient) library(RBloomberg) conn<-blpConnect(show.days="trading",na.action="previous.days",periodici ty="daily") intra<-blpGetData(conn, c("NOK1V FH Equity","AUA AV Equity"), "LAST_PRICE", start=as.chron(as.Date("10/11/2006", "%m/%d/%Y")),end=as.chron(as.Date("12/5/2006","%m/%d/%Y")),barfields="VO LUME", barsize=10) bb=as.data.frame(intra) blpDisconnect(conn) " But there is some problem in converting "intra&...
2012 Apr 04
1
read.socket utils package : somthing is going wrong
Hi everyone, I'd appreciate if someone could help me to understand what is happening. I'm attempting to connect R to the broker platform using tcp on localhost 5333. Just to learn how use make.socket, write.socket, ..functions I wrote simple code: #prepare string command to subscribe ask and bid price on Italian stock #this should be a push stream like: #First stream:
2006 Jun 09
0
Re: Rails Digest, Vol 21, Issue 195
...(var) Method calls are just messages send to objects, so you can use the #send method to do that. In ActiveRecords''s case, there''s a special convenience method that should work: ar_instance[var] > > For example, say I have the object Product, that has methods Price, > Last_Price, Average_Price. > > I want to be able to return the value of either of those three fields > based on the user selection. Ie, user selection is stored in > params[:foo], which I assign to variable field_to_show, and I want to be > able to call: > > Product.field_to_show > &gt...