Skip to Main Content Skip to Search
Product Documentation

blp.realtime - Bloomberg V3 real-time data retrieval

Syntax

d = realtime(c, sec, fields)
[subs, t] = realtime(c, sec, fields, api)

Description

d = realtime(c, sec, fields) returns the data for the given connection, c, security list, sec, and requested fields, fields.

[subs, t] = realtime(c, sec, fields, api) returns the subscription list, subs, and the timer, t, associated with the real-time callback for the subscription list. Given connection c, the realtime function subscribes to a security or securities, sec, and requests fields, fields, to update in real time while running a function, api. For information about an example that demonstrates the data import functionality of realtime, type help v3showtrades at the command line.

Examples

Subscribe to the security ABC US Equity. Request that the fields Last_Trade and Volume update in real time while the function v3stockticker is running:

realtime(c,'ABC US Equity', ...
   {'Last_Trade','Volume'},'v3stockticker')

realtime returns only the most recent event—that is, data for a single security—when you use it in snapshot mode with no callback. To get data for multiple securities, use:

x = getdata(b, {'IBM US Equity', 'AAPL US EQUITY'}, ...
       {'Last_Trade', 'Volume', 'Open', 'High', 'Low'}) 

See Also

blp | blp.history | blp.timeseries

  


Free Interactive Computational Finance CD

View demos and recorded presentations led by industry experts.

Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS