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 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
76.8k 239 52 72

@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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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