API Reference

Create New Order <D>

FIX message ‘New Order – Single (D)’ is used to submit orders to the HashKey PRO Trading system and available only in Trading Gateway

TagField NameRequiredComments
Standard HeaderYesMsgType <35> = D
1AccountNo**Required for sessions that route to multiple sub-accounts
11CIOrderIDYesID originated by the client. Uniqueness must be guaranteed by session
55SymbolYesCurrency-pair. e.g. BTC-USDC, ETH-BTC, ETH-USDC
18ExecInstNo*Required to specify the order as Post only
Valid values:|

‘6’ = Participate don’t initiate
38OrderQtyNo*Quantity to trade
*Required for Limit order
152CashOrdQtyNo*Cash Amount to trade in quote currency
*Required for Market order
44PriceYes*Price of limit order

*Required for OrdType <40> is ‘2’ = Limit
40OrdTypeYes*Valid values:

‘1’ = Market Order
‘2’ = Limit Order
54SideYesValid values:

‘1’ – Buy
‘2’ – Sell
59TimeInForceNoSpecific how long the orders remains in effect

‘1’ Good Till Cancel (GTC)
‘3’ Immediate or Cancel (IOC)
60TransactTimeYesTime of order creation/execution (Expressed in UTC) i.e. YYYYMMDD-HH:MM:SS.sss
453NoPartyIDsNoA repeating group which should contain unique combinations of below tags: PartyIDs <448>, PartyIDSource <447>, PartyRole <452> (Currently not in use)
448PartyIDNoParty Identifier/Code. (Currently not in use)
447PartyIDSourceNoIdentifies class or source of the PartyID <448> value (Currently not in use)
452PartyRoleNoIdentifies the type or role of the Party ID <448>
(Currently not in use)
Standard trailerYes

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