June 2nd, 2003, 1:06 pm
Since I posted last, I actually had to spend some time building a little direct Bloomberg-to-Access hardware... The thing has been pretty successful, useful, and a hell of a lot faster than fiddling around with Excel. Setup is like this:1) Set up a form with the Blp activex control on there and some other stuff to monitor the connection2) I am actually feeding some parametrized queries into a table in the database from some other sources. So, I have a table which represents a queue of queries to make. Some of these queries are recurring (i.e. 'check the bond price every 10 mins') so they don't ever leave the queue. Anyway, you query the queue for bbg queries you should be making at the current moment, and then process them (see next step).3) You use the standard BLP mechanism for processing the queries. I.e. given the security ID and a list of fields you want to look at, you attach a number to the request and send it through to the activex control.4) When the control has a response to the query, it fires an event which is indexed by the request ID number. You can match that with any other info you already had when you made the call, and populate a record in a table.Believe it or not, this can be done fairly easily in VBA, and it is efficient enough that you can even build equity index monitors that are not exactly real-time but no more than 60 seconds late. I don't happen to have the need for near-real-time vol surfaces or anything like that but I have considered building such a thing. You can also put some junk on your form so that you can click and get other related info, so it's a nice framework. Overnight you can archive your daily data for future research. What's not to like about all that?!?! I think it's been going for a couple of months now, totally reliable. Anyway, what you need to know in order to do it yourself is:1) Access in general2) Event-driven stuff for the BLP controland that's about it.