FIX message ‘New Order – Single (D)’ is used to submit orders to the HashKey PRO Trading system and available only in Trading Gateway
| Tag | Field Name | Required | Comments |
|---|---|---|---|
| Standard Header | Yes | MsgType <35> = D | |
| 1 | Account | No* |
|
| 11 | CIOrderID | Yes | ID originated by the client. Uniqueness must be guaranteed by session |
| 55 | Symbol | Yes | Currency-pair. e.g. BTC-USDC, ETH-BTC, ETH-USDC |
| 18 | ExecInst | No |
|
| 38 | OrderQty | No* | Quantity to trade
|
| 152 | CashOrdQty | No* | Cash Amount to trade in quote currency
|
| 44 | Price | Yes* | Price of limit order
|
| 40 | OrdType | Yes* | Valid values: ‘1’ = Market Order |
| 54 | Side | Yes | Valid values: ‘1’ – Buy |
| 59 | TimeInForce | No | Specific how long the orders remains in effect ‘1’ Good Till Cancel (GTC) |
| 60 | TransactTime | Yes | Time of order creation/execution (Expressed in UTC) i.e. YYYYMMDD-HH:MM:SS.sss |
| 453 | NoPartyIDs | No | A repeating group which should contain unique combinations of below tags: PartyIDs <448>, PartyIDSource <447>, PartyRole <452> (Currently not in use) |
| 448 | PartyID | No | Party Identifier/Code. (Currently not in use) |
| 447 | PartyIDSource | No | Identifies class or source of the PartyID <448> value (Currently not in use) |
| 452 | PartyRole | No | Identifies the type or role of the Party ID <448> (Currently not in use) |
| Standard trailer | Yes |
Sample message:
Limit order: Buy 1 of BTC-USDC at 51800 price
RAW
8=FIX.4.4|9=135|35=D|49=JOSEPH|56=TradingGateway|34=6|52=20240218-15:40:29|11=1981400108|55=BTC-USDC|54=2|60=20240218-15:40:29|40=2|44=51800|38=1|10=067|
HEADER
8 BeginString: FIX 4.4
9 BodyLength: 135
35 MsgType: NewOrderSingle (D)
49 SenderCompID: JOSEPH
56 TargetCompID: TradingGateway
34 MsgSeqNum: 6
52 SendingTime: 20240218-15:40:29
BODY
11 ClOrdID: 1981400108
55 Symbol: BTC-USDC
54 Side: 2
60 TransactTime: 20240218-15:40:29
40 OrdType: 2
44 Price: 51800
38 OrderQty: 1
TRAILER
10 CheckSum: 067
Market order: Sell 2 of ETH-USD at market price
RAW
8=FIX.4.4|9=126|35=D|49=JOSEPH|56=TradingGateway|34=28|52=20240218-15:51:10|11=1981400109|55=ETH-USD|54=2|60=20240218-15:51:10|40=1|38=2|10=137 |
HEADER
8 BeginString: FIX 4.4
9 BodyLength: 126
35 MsgType: NewOrderSingle (D)
49 SenderCompID: JOSEPH
56 TargetCompID: TradingGateway
34 MsgSeqNum: 28
52 SendingTime: 20240218-15:51:10
BODY
11 ClOrdID: 1981400109
55 Symbol: ETH-USD
54 Side: 2
60 TransactTime: 20240218-15:51:10
40 OrdType: 1
38 OrderQty: 2
TRAILER
10 CheckSum: 137