Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

stop

Unsubscribe real-time requests for Bloomberg connection V3

Syntax

stop(c,subs,t)
stop(c,subs,[],s)

Description

example

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.

example

stop(c,subs,[],s) unsubscribes real-time requests for each security s on the subscription list subs. The timer input is empty.

Examples

collapse all

Unsubscribe to real-time data for one security.

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 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.

stop(c,subs,[],s)

Close the Bloomberg connection.

close(c)

Input Arguments

collapse all

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 for one security or a cell array of character vectors for multiple securities. You can specify the security by name or by CUSIP, and with or without the pricing source.

Data Types: char | cell

Introduced in R2010a

Was this topic helpful?