This endpoint allows sending a limit, stop, take profit or immediate-or-cancel order for a currently listed Futures contract.
curl --request POST \
--url https://futures.kraken.com/derivatives/api/v3/sendorder \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>'{
"result": "success",
"sendStatus": {
"order_id": "179f9af8-e45e-469d-b3e9-2fd4675cb7d0",
"status": "placed",
"receivedTime": "2019-09-05T16:33:50.734Z",
"orderEvents": [
{
"type": "PLACE",
"order": {
"orderId": "179f9af8-e45e-469d-b3e9-2fd4675cb7d0",
"type": "lmt",
"symbol": "PF_XBTUSD",
"side": "buy",
"quantity": 10000,
"filled": 0,
"limitPrice": 9400,
"reduceOnly": false,
"timestamp": "2019-09-05T16:33:50.734Z",
"lastUpdateTimestamp": "2019-09-05T16:33:50.734Z"
}
}
]
},
"serverTime": "2019-09-05T16:33:50.734Z"
}Documentation Index
Fetch the complete documentation index at: https://kraken-sandbox.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
General API key with full access
Authentication string
The time before which the request should be processed, otherwise it is rejected.
The order type:
lmt - a limit order
post - a post-only limit order
mkt - an immediate-or-cancel order with 1% price protection
stp - a stop order
take_profit - a take profit order
ioc - an immediate-or-cancel order
trailing_stop - a trailing stop order
fok - fill or kill order
The order type:
lmt - a limit order
post - a post-only limit order
mkt - an immediate-or-cancel order with 1% price protection
stp - a stop order
take_profit - a take profit order
ioc - an immediate-or-cancel order
trailing_stop - a trailing stop order
fok - fill-or-kill order
lmt, post, ioc, mkt, stp, take_profit, trailing_stop, fok The symbol of the Futures
The direction of the order.
buy, sell The size associated with the order. Note that different Futures have different contract sizes.
The limit price associated with the order. Note that for stop orders, limitPrice denotes the worst price at
which the stp or take_profit order can get filled at. If no limitPrice is
provided the stp or take_profit order will trigger a market order. If placing a trailing_stop order then leave undefined.
The stop price associated with a stop or take profit order.
Required if orderType is stp or take_profit, but if placing a trailing_stop then
leave undefined. Note that for stop orders, limitPrice denotes the worst price at
which the stp or take_profit order can get filled at. If no limitPrice is
provided the stp or take_profit order will trigger a market order.
The order identity that is specified from the user. It must be globally unique.
100If placing a stp, take_profit or trailing_stop, the signal used for trigger.
mark - the mark priceindex - the index pricelast - the last executed trademark, index, last Set as true if you wish the order to only reduce an existing position.
Any order which increases an existing position will be rejected. Default false.
Required if the order type is trailing_stop. Maximum value of 50%, minimum value of 0.1% for 'PERCENT' 'maxDeviationUnit'.
Is the maximum distance the trailing stop's trigger price may trail behind the requested trigger signal. It defines the threshold at which the trigger price updates.
0.1 <= x <= 50Required if the order type is trailing_stop.
This defines how the trailing trigger price is calculated from the requested trigger signal. For example, if the max deviation is set to 10, the unit is 'PERCENT', and the underlying order is a sell, then the trigger price will never be more then 10% below the trigger signal. Similarly, if the deviation is 100, the unit is 'QUOTE_CURRENCY', the underlying order is a sell, and the contract is quoted in USD, then the trigger price will never be more than $100 below the trigger signal.
PERCENT, QUOTE_CURRENCY Can only be set for triggers, e.g. order types take_profit, stop and trailing_stop.
If set, limitPriceOffsetUnit must be set as well.
This defines a relative limit price depending on the trigger stopPrice. The price is determined
when the trigger is activated by the triggerSignal. The offset can be positive or negative, there
might be restrictions on the value depending on the limitPriceOffsetUnit.
Can only be set together with limitPriceOffsetValue.
This defines the unit for the relative limit price distance from the trigger's stopPrice.
QUOTE_CURRENCY, PERCENT Valid Broker identifier on whose behalf the order is sent.
Note: This is currently available exclusively in the Kraken Futures DEMO environment.
100curl --request POST \
--url https://futures.kraken.com/derivatives/api/v3/sendorder \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>'{
"result": "success",
"sendStatus": {
"order_id": "179f9af8-e45e-469d-b3e9-2fd4675cb7d0",
"status": "placed",
"receivedTime": "2019-09-05T16:33:50.734Z",
"orderEvents": [
{
"type": "PLACE",
"order": {
"orderId": "179f9af8-e45e-469d-b3e9-2fd4675cb7d0",
"type": "lmt",
"symbol": "PF_XBTUSD",
"side": "buy",
"quantity": 10000,
"filled": 0,
"limitPrice": 9400,
"reduceOnly": false,
"timestamp": "2019-09-05T16:33:50.734Z",
"lastUpdateTimestamp": "2019-09-05T16:33:50.734Z"
}
}
]
},
"serverTime": "2019-09-05T16:33:50.734Z"
}