Info

This question is closed. Reopen it to edit or answer.

Using Bloomberg RealTime function

1 view (last 30 days)
David
David on 9 Jan 2012
Closed: MATLAB Answer Bot on 20 Aug 2021
I am trying to bring realtime data in matlab from bloomberg, and having trouble with the function. Here is my code:
t = timer('StartDelay', 4,'Period', 4,'TasksToExecute', ... 2,'ExecutionMode','fixedRate');
d = realtime(c,'SPY US ... Equity','LAST_PRICE','my_bloombergplot_fcn');
t.TimerFcn = { @my_bloombergplot_fcn,d};
start(t)
and
function my_bloombergplot_fcn(obj,event,Series)
Series.LAST_PRICE
end
All I'm trying to do here is initialze the structure that will contain the data, and start a time that prints out thhe last price. When I run it I get a stream of lines saying 'Not enough input arguments'
Thanks for your help.
  2 Comments
Sean de Wolski
Sean de Wolski on 9 Jan 2012
(as thew first input to realtime() )?

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!