Skip to main content
{
    "method": "batch_add",
    "params": {
        "deadline": "2022-06-13T08:09:10.123456Z",
        "orders": [
            {
                "limit_price": 1010.10,
                "order_qty": 0.123456789,
                "order_type": "limit",
                "order_userref": 1,
                "side": "buy"
            },
            {
                "limit_price": 2020.20,
                "order_qty": 0.987654321,
                "order_type": "limit",
                "order_userref": 2,
                "side": "sell",
                "stp_type": "cancel_both"
            }
        ],
        "symbol": "BTC/USD",
        "token": "TxxxxxxxxxOxxxxxxxxxxKxxxxxxxExxxxxxxxN",
        "validate": false
    },
    "req_id": 1234567890
}

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.

WSSws-auth.kraken.com/v2batch_add
Sends a collection of orders (minimum of 2 and maximum 15):
  • Validation is performed on the whole batch prior to submission to the engine. If an order fails validation, the whole batch will be rejected.
  • On submission to the engine, if an order fails pre-match checks (i.e. funding), then the individual order will be rejected and remainder of the batch will be processed.
  • All orders in batch are limited to a single pair.
method
string
required
Value: batch_add
params
object
req_id
integer
Optional client originated request identifier sent as acknowledgment in the response.