mtapi icon indicating copy to clipboard operation
mtapi copied to clipboard

Create batch requests.

Open darcome opened this issue 6 years ago • 1 comments

I don't know how easy this would be... both to implement and for the user to use it, but...

Do you think it would be possible to have batch requests so that it will take less time to get the result for all the requests? That's because there will only be one request and response from the EA rather than a request and response for every command...

The implementation? Something like this: mtApi.StartBatchRequests(); mtapi.AccountBalance(); mtapi.iMA(); ... ... List<MtApiResult> results = mtApi.EndBatchRequests();

Where MTApiResult would contains the commandType and the result for each request.

What do you think?

Thanks in advance!

darcome avatar Mar 25 '19 17:03 darcome

Hi, It is interesting idea. I will think about possibility of implementation. And if it will take good profit in time of execution functions in batch I will add it into release of MtApi.

vdemydiuk avatar Mar 30 '19 20:03 vdemydiuk