question

Upvotes
Accepted
16 1 0 2

Cancel all syntax to cancel all open orders

I need to sometimes cancel all my orders under a Redi Plus user ID. I can currently cancel via excel VBA and cancel by account symbol. However, if I feed each individual symbol and request a cancel that way, it is too slow. Is there a cancel all and if so, what is the VBA syntax?

redi-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
38.1k 71 35 53

@kris_mcc

In the RediLib.Application class, there is the CancelAllOrders method used to cancel all open orders filtered by side and supervisory scope.

The code looks like:

Dim App As New RediLib.Application
Dim verr, rtnVal
rtnVal = App.CancelAllOrders(“Buy”, 1, verr)

You can refer to the REDI API SPECIFICATION for more information.


application.png (44.9 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea