Order Cancel Replace Request (Spot only)
The Order Cancel-Replace Request message (MsgType=G) is used by the Client to amend the replaceable fields of working orders which are Quantities and Prices. A successful order replacement request will result in an execution report with the OrdStatus.
- FIX Specification
- Example
MESSAGE BODY
G
Unique identifier of the order. The ID can be one of the following formats:
- Ever-Increasing Positive Numbers : Ever-increasing positive numbers, such as microseconds timestamps, to ensure the uniqueness and sequential nature of the identifiers.
Example : Using the current microsecond timestamp as the ClOrdID, such as1623448294234000
(Max 18 characters) - Timestamp-First v4 UUIDs : A timestamp-first v4 UUID might look like
1b4e28ba-2fa1-11d2-883f-0016d3cca427
, where the initial part (1b4e28ba-2fa1
) of the UUID represents the timestamp. The timestamp granularity to generate the first part need to be 10 microseconds maximum such as162344829423400
.
Side of the order.
- Possible values:
1
: Buy2
: Sell
The execution model of the order.
- Possible values:
1
: market2
: Limit3
: Stop-loss4
: Stop-loss-limitR
: Take-profitT
: Take-profit-limitU
: Trailing-stopV
: Trailing-stop-limit
Time-in-force specifies how long an order remains in effect before being expired.
- Possible values:
1
: GTC (Good till canceled)3
: IOC (Immediate or Cancel)6
: GTD (Good till date)
Limit Price of the order to be placed in the Order Book. This field is denominated in Quote Currency.
Enable clients to place order using the Post-Only safeguard.
- Possible values:
P
: Post-Only - Cancels the order if it will take liquidity on arrival. Post only orders will always be posted passively in the book.
The engine will reject any order entered into the matching engine after this time. This provides extra protection against latency on time sensitive orders. The timestamp should be at least 2 seconds and at most 60 seconds in the future.
8=FIX.4.4|9=181|35=G|34=3|49=damien_dlt|52=20240625-08:57:05.000|56=KRAKEN-TRD|11=1719305825|37=OTHB2F-BNGUH-2CMLPT|38=0.2|40=2|41=1719305784|44=71000|54=1|55=BTC/USD|59=1|60=20240625-08:57:05.113|10=249|