# G (Order cancel/replace request)

The **`G` (Order Cancel/Replace Request)** message is used to request the replacement of an existing order with a new order. 
It works as an atomic cancellation and placement of the new order.

- If the existing order is not active, for example, it was filled or previously cancelled, the new order will not be placed.
- If the existing order is found but partially filled, the new order will be placed with full **38** `OrderQty`, without any adjustment.

| Tag      | Name             | Type             | Required                                                                                                        | Description                                                                                                              |
| -------- | ---------------- | ---------------- | --------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| **41**   | `OrigClOrdID`    | `UUID`           | **yes**                                                                                                         | **11** `ClOrdID` of the previous non-rejected order when canceling an order. Used for reference only.                    |
| **11**   | `ClOrdID`        | `UUID`           | **yes**                                                                                                         | Unique identifier of the cancel request, as assigned by the client.                                                      |
| **55**   | `Symbol`         | `CurrencyPair`   | **yes**                                                                                                         | Currency pair.                                                                                                           |
| **54**   | `Side`           | `Char`           | **yes**                                                                                                         | Side of order. <br/><br/>Supported values: <br/> <ul><li> `1` - `BUY`</li><li>`2` - `SELL`</li></ul>                     |
| **37**   | `OrderID`        | `UUID`           | **yes, by Revolut FIX Gateway**                                                                                 | Unique identifier of the order in the Revolut Crypto Exchange. This ID will be used to find the order to be cancelled.   |
| **38**   | `OrderQty`       | `Qty`            | **yes**                                                                                                         | Quantity ordered.                                                                                                        |
| **60**   | `TransactTime`   | `UTCTimestamp`   | **yes, by [FIX 4.4](https://www.onixs.biz/fix-dictionary/4.4/index.html)**                                      | Timestamp provided by the client.                                                                                        |
| **40**   | `OrdType`        | `Char`           | **yes**                                                                                                         | Order type. <br/><br/>Supported values: <br/><ul><li> `1` - `MARKET`</li><li>`2` - `LIMIT`</li></ul>                     |

For more details, see [`FIX 4.4 : Order Cancel/Replace Request <G> message` in the FIX 4.4 documentation](https://www.onixs.biz/fix-dictionary/4.4/msgType_G_71.html).