Operation
cancelOrders
CancelExecutionReport cancelOrders#cancelOrders ( StringmarketId,List< CancelInstruction >instructions,StringcustomerRef ) throws APINGException
Cancel all bets OR cancel all bets on a market OR fully or partially cancel particular orders on a market. Only LIMIT orders can be cancelled or partially cancelled once placed.
Parameter name | Type | Required | Description |
---|---|---|---|
marketId | String | If not supplied all bets are cancelled | |
instructions | List< CancelInstruction > | All instructions need to be on the same market. If not supplied all bets on the market (if market id is passed) are fully cancelled | |
customerRef | String | Optional parameter allowing the client to pass a unique string (up to 32 chars) that is used to de-dupe mistaken re-submissions. |
Return type | Description |
---|---|
Throws | Description |
---|---|
Generic exception that is thrown if this operation fails for any reason. |
Since 1.0.0