MATLAB: Problems retreiving realtime data V3 bloomberg

bloombergdatafeedDatafeed Toolbox

i am running real time data retreival via bloomberg v3 like this
>> [subs,t] = realtime(c,{'IBM US Equity','F US Equity'}), {'Last_Trade','Volume'},'v3stockticker') Error using blp/realtime (line 32) Not enough input arguments.
I do not understand the error in line 32. The corresponding line is posted below:
if ischar(f)

Best Answer

There is an additional bracket in your line of code
[subs,t] = realtime(c,{'IBM US Equity','F US Equity'}), ...
{'Last_Trade','Volume'},'v3stockticker')
Note the close bracket after {'IBM US Equity','F US Equity'} which means that the realtime function inputs are limited to just c and {'IBM US Equity','F US Equity'}
[subs,t] = realtime(c,{'IBM US Equity','F US Equity'})
and the last two inputs are ignored..which means that not enough inputs are supplied and so the error message makes sense.
Just remove that unneeded bracket, replacing your line of code with
[subs,t] = realtime(c,{'IBM US Equity','F US Equity'}, ...
{'Last_Trade','Volume'},'v3stockticker')
Try the above and see what happens!