Skip to main content

Cancel Order

To cancel the order placed across multiple accounts (or single account) linked to a strategy, you can simply send a cancel request using the strefid received from the placeorder function. This action will cancel order across all the linked accounts in which the order was placed using a single api call.

Check the Rest API for cancel here.

You can use the identifier field to modify the order only in a single account. identifier is sent as UCC:Accountname.

Example

spk.cancelorder("strategyName",  
"strefID",
identifier = "", #optional if you want to cancel order only in a single account
)