TRTH help for multiple message request types?
Afficher commentaires plus anciens
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?
Réponses (0)
Catégories
En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!