New Order Single
To submit a new order, the client needs to send a NewOrderSingle message. All orders are submitted from the client’s perspective to Kraken exchange to place bid/offer on the Kraken Order book. A range of order types, Time-In-Force (TIF) and order flags can be specified by the parameters below.
The supported order types are:
market
: The full order quantity executes immediately at the best available price in the order book.limit
: The full order quantity is placed immediately with a limit price restriction to only trade at this price or better.limitallin
: The limit order price and quantity includes the fees.
- FIX Specification
- Example
MESSAGE BODY
D
The specific account for this order.
Unique identifier for Order as assigned by the client. Must be <= 36 characters
. UUIDs are recommended.
The symbol of the currency pair to place an order on in the format BASE-QUOTE
.
Side of the order.
- Possible values:
1
: Buy2
: Sell
The execution model of the order.
- Possible values:
1
: market2
: LimitA
: LimitAllIn
Order quantity in terms of the base asset.
The currency the quantity is specified in. If not specified, defaults to the base currency for the symbol.
Limit price of the order to be placed in the Order Book.
Specifies how long the order remains in effect.
- Possible values:
1
: GTC (Good till canceled)3
: IOC (Immediate or Cancel)4
: Fill Or Kill (FOK)
Business timestamp for this request.
Optional expiration time for the order. Only valid on orders with TimeInForce=1 (GTC).
Time at which this order will activate and begin sending orders to the market.
Allows Specifying an Order Strategy Type.
- Possible values:
StopLimit
: This strategy will only place the order once the specified stop price has been met. For a Buy StopLimit order, the stop price must be above the current market price. For a Sell StopLimit order, the stop price must be below the current market price.TakeProfitLimit
: This strategy will only place the order once the specified take profit price has been met. For a Buy TakeProfitLimit order, the take profit price must be below the current market price. For a Sell TakeProfitLimit order, the take profit price must be above the current market price.
The number of strategy parameter repeating groups
The name of the StrategyParameter being set
The value for the StrategyParameter being set
Y
, N
] Y
Whether or not this order should be canceled when this session is disconnected.
8=FIX.4.4|9=147|35=D|34=2|49=CUSTOMER|52=20220915-18:30:01.335|56={{ Customer }}|11=id-220912164936074-1152|38=1|40=2|44=1630.123|54=2|55=ETH-USD|59=1|60=20220915-14:30:01|10=228|