Quantcast

Documentation Center

  • Trial Software
  • Product Updates

stop

Unsubscribe real-time requests for Bloomberg V3

Syntax

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

Description

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.

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

Examples

expand all

Stop Real-Time Requests

Unsubscribe to real-time data for one security.

Create the Bloomberg connection.

c = blp;

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);

Stop Real-Time Requests for a Security List

Create the Bloomberg connection.

c = blp;

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

expand all

c — Bloomberg connectionconnection object

Bloomberg connection, specified as a connection object created using blp.

subs — Bloomberg subscriptionobject

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.

t — MATLAB timerobject

MATLAB timer, specified as a MATLAB object. For details about this object, see timer.

s — Security liststring | cell array

Security list, specified as a string for one security or a cell array for multiple securities. You can specify the security by name or by CUSIP, and with or without the pricing source.

Data Types: char | cell

See Also

| | | |

Was this topic helpful?