> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bulk.trade/llms.txt
> Use this file to discover all available pages before exploring further.

# Batch Actions

> Submit multiple actions in a single signed WebSocket transaction

> [!NOTE]
>
> Submit this action through the signed WebSocket `post` envelope. See the
> [request format](https://docs.bulk.trade/api-reference/ws-trading.md#post-request-format) and
> [Transaction Signing](https://docs.bulk.trade/api-reference/signing.md) for nonce, signature, and
> canonical encoding requirements. These examples contain illustrative nonces
> and placeholder signatures; sign the exact payload with a fresh nonce before use.

Multiple actions can be combined in a single transaction (same `nonce`,
`account`, `signer`, `signature`). Result rows correspond to execution events,
not array positions in `actions`: one action can produce multiple rows, and
fill, payment, and on-fill registration events do not add status rows. Use
order IDs and result tags to correlate outcomes.

**Example: cancel one order and place two new limit orders**

```json theme={null}
{
  "method": "post",
  "request": {
    "type": "action",
    "payload": {
      "actions": [
        {"cx": {"c": "BTC-USD", "oid": "old_order_id_base58"}},
        {"l": {"c": "BTC-USD", "b": true, "px": 99900.0, "sz": 0.05, "tif": "GTC", "r": false, "i": false}},
        {"l": {"c": "BTC-USD", "b": false, "px": 100100.0, "sz": 0.05, "tif": "GTC", "r": false, "i": false}}
      ],
      "nonce": "1704067200000000000",
      "account": "FuueqefENiGEW6uMqZQgmwjzgpnb85EgUcZa5Em4PQh7",
      "signer": "FuueqefENiGEW6uMqZQgmwjzgpnb85EgUcZa5Em4PQh7",
      "signature": "5j7s...base58..."
    }
  },
  "id": 7
}
```

## Responses and errors

See the shared [response format](https://docs.bulk.trade/api-reference/ws-trading.md#response-format),
[status types](https://docs.bulk.trade/api-reference/ws-trading.md#status-types), and
[error handling](https://docs.bulk.trade/api-reference/ws-trading.md#error-handling). Follow subsequent
order and fill events through the [account stream](https://docs.bulk.trade/api-reference/ws-account.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.