TRTH help for multiple message request types?

1 view (last 30 days)
Trying to request multiple message types. If I do them separately it works fine, like the following.
messtype = {'Quote'};
tradefields = {'Bid Price','Bid Size','Number of Buyers','Ask Price','Ask Size','Number of Sellers','Qualifiers'};
x2 = fetch(r,sec,tradefields,daterange,reqtype,messtype,exchange,domain);
messtype = {'Trade'};
tradefields = {'Price','Volume','Qualifiers'};
x1 = fetch(r,sec,tradefields,daterange,reqtype,messtype,exchange,domain);
I would however like to do both these requests at the same time so that my request output is nicely formatted already. I thought it might work in the following way but it doesn't.
messtype = {'Trade','Quote'};
tradefields = {'Price','Volume','Qualifiers','Bid Price','Bid Size','Number of Buyers','Ask Price','Ask Size','Number of Sellers','Qualifiers'};
x3 = fetch(r,sec,tradefields,daterange,reqtype,messtype,exchange,domain);
But it does not. How do I do this?

Answers (0)

Community Treasure Hunt

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

Start Hunting!