| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Datafeed Toolbox |
| Contents | Index |
| Learn more about Datafeed Toolbox |
showtrades(InputList)
| InputList | Fields from which you request real-time data. |
showtrades(InputList) demonstrates the Bloomberg real-time data import functionality, where InputList is an input list of elements as described in the following table:
| InputList(1) = COM.Bloomberg.Data.1 | Bloomberg handle |
| InputList(2) = 1 | Event ID |
| InputList(3) = ('Security') | Security string |
| InputList(4) = 1 | Cookie |
| InputList(5) = 2 | Field number ID |
| InputList(6) = {[43.58]} | Return data for the given tick |
| InputList(7) = 0 | Status |
| InputList(8) | Structure containing the above fields |
| InputList(9) = 'Data' | Event type |
The input argument InputList(8) contains the information required to process real-time events.
Establish a connection, c, to a Bloomberg data server:
c = bloomberg;
Display the most recent Trade, Bid, Ask, and VWAP (volume-weighted adjusted price), and a list of the most recent trades with volumes:
d = fetch(c, 'GOOG US Equity', 'REALTIME', ...
{'Last_Trade','Bid','Ask','Volume','VWAP'},'showtrades');

bloomberg.pricevol, bloomberg.stockticker
![]() | bloomberg.pricevol | bloomberg.stockticker | ![]() |
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-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |