stop(c,subs,t)
unsubscribes real-time requests associated with
the Bloomberg® connection c and
subscription list subs.
t is the timer associated with
the real-time callback for the subscription
list.
Alternatively, you can connect to the
Bloomberg Server using blpsrv or Bloomberg
B-PIPE® using bpipe.
Retrieve the last trade and volume for the
IBM® security using the event handler
v3stockticker.
v3stockticker requires
the input argument f of
realtime to be
'Last_Trade',
'Volume', or both.
[subs,t] = realtime(c,'IBM US Equity',{'Last_Trade','Volume'},...'v3stockticker');
** IBM US Equity ** 100 @ 181.81 29-Oct-2013 15:48:50
** IBM US Equity ** 100 @ 181.795 29-Oct-2013 15:48:50
** IBM US Equity ** 100 @ 181.8065 29-Oct-2013 15:48:51
...
realtime returns the
stock tick data for the IBM security with the volume and last
trade price.
Stop the real-time data requests for the
IBM security using the Bloomberg subscription subs
and MATLAB® timer object
t.
stop(c,subs,t)
Close the Bloomberg connection.
close(c)
Create the Bloomberg connection.
c = blp;
Alternatively, you can connect to the
Bloomberg Server using blpsrv or Bloomberg
B-PIPE using bpipe.
Retrieve the last trade and volume for the
security list s using the event
handler v3stockticker.
s contains securities for
IBM, Google®, and Ford Motor Company®.
v3stockticker requires
the input argument f of
realtime to be
'Last_Trade',
'Volume', or both.
s = {'IBM US Equity','GOOG US Equity','F US Equity'};
[subs,t] = realtime(c,s,{'Last_Trade','Volume'},'v3stockticker');
** IBM US Equity ** 100 @ 181.81 29-Oct-2013 15:48:50
** IBM US Equity ** 100 @ 181.795 29-Oct-2013 15:48:50
** IBM US Equity ** 100 @ 181.8065 29-Oct-2013 15:48:51
...
realtime returns the
stock tick data for the securities list
s with the volume and last
trade price.
Stop the real-time data requests for the
securities list s using the
Bloomberg subscription
subs.
Bloomberg connection, specified as a connection object
created using blp, blpsrv, or bpipe.
Bloomberg subscription, specified as a
Bloomberg object. For details about this
object, see the Bloomberg API Developer’s Guide
using the WAPI <GO>
option from the Bloomberg terminal.
MATLAB timer, specified as a MATLAB object. For details about this
object, see timer.
Security list, specified as a character vector or string scalar for one security or a cell
array of character vectors or string array for multiple securities. You can
specify the security by name or by CUSIP, and with or without the pricing
source.