softwarespartan / IB4m

Interactive Brokers API for Matlab
GNU General Public License v2.0
62 stars 21 forks source link

How to cancel (all) orders #144

Closed nerdtotherescue closed 2 years ago

nerdtotherescue commented 2 years ago

It would be very handy to be able to cancel all open orders via IB4M routines. Is there anyone that knows how?

Despair2000 commented 2 years ago

Very easy: session.eClientSocket.reqGlobalCancel

nerdtotherescue commented 2 years ago

Awesome! Thanks a lot!

On Tue, Dec 28, 2021 at 12:42 PM Despair2000 @.***> wrote:

Very easy: session.eClientSocket.reqGlobalCancel

— Reply to this email directly, view it on GitHub https://github.com/softwarespartan/IB4m/issues/144#issuecomment-1002046535, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXCK3ROAUVCE5BKJVG6RFVLUTGPCTANCNFSM5K37TVGQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>