stop(c,潜艇,t)unsubscribes real-time requests associated with the Bloomberg®connectioncand subscription list潜艇.tis the timer associated with the real-time callback for the subscription list.
Retrieve the last trade and volume for the security listsusing the event handlerv3stockticker.scontains securities for IBM, Google®, and Ford Motor Company®.
v3stocktickerrequires the input argumentfofrealtimeto 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 ...
realtimereturns the stock tick data for the securities listswith the volume and last trade price.
Stop the real-time data requests for the securities listsusing the Bloomberg subscription潜艇.
Bloomberg connection, specified as a connection object created usingblp,blpsrv, orbpipe.
潜艇—Bloomberg subscription object
Bloomberg subscription, specified as a Bloomberg object. For details about this object, see theBloomberg API Developer’s Guideusing theWAPI option from the Bloomberg terminal.
t—MATLAB timer object
MATLAB timer, specified as a MATLAB object. For details about this object, seetimer.
s—Security list character vector|string scalar|cell array of character vectors|string array
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.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.