> ## 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.

# Range / OCO

> Place a paired range or OCO conditional order over WebSocket

> [!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.

```json Request theme={null}
{
  "method": "post",
  "request": {
    "type": "action",
    "payload": {
      "actions": [
        {"rng": {"c": "BTC-USD", "d": true, "sz": 0.5, "pmin": 96000.0, "pmax": 106000.0, "lmin": 95950.0, "lmax": 105950.0, "i": false}}
      ],
      "nonce": "1704067200000000013",
      "account": "FuueqefENiGEW6uMqZQgmwjzgpnb85EgUcZa5Em4PQh7",
      "signer": "FuueqefENiGEW6uMqZQgmwjzgpnb85EgUcZa5Em4PQh7",
      "signature": "5j7s...base58..."
    }
  },
  "id": 13
}
```

```json Response (Resting) theme={null}
{
  "type": "post",
  "id": 13,
  "data": {
    "type": "action",
    "payload": {
      "status": "ok",
      "response": {
        "type": "order",
        "data": {
          "statuses": [{"resting": {"oid": "9nU4oRhHQkIGY8wOrBTiypn1irpd07GiWeBC7Go6RSj9"}}]
        }
      }
    }
  }
}
```

```json Response (Triggered) theme={null}
{
  "type": "post",
  "id": 13,
  "data": {
    "type": "action",
    "payload": {
      "status": "ok",
      "response": {
        "type": "order",
        "data": {
          "statuses": [{"triggered": {"oid": "9nU4oRhHQkIGY8wOrBTiypn1irpd07GiWeBC7Go6RSj9"}}]
        }
      }
    }
  }
}
```

```json Response (Sibling Cancelled) theme={null}
{
  "type": "post",
  "id": 13,
  "data": {
    "type": "action",
    "payload": {
      "status": "ok",
      "response": {
        "type": "order",
        "data": {
          "statuses": [{"siblingCancelled": {"oid": "ABC123..."}}]
        }
      }
    }
  }
}
```

**Range/OCO (`rng`) fields:** `c` (symbol), `d` (position direction: `true` = long collar, `false` = short), `sz` (size), `pmin`/`pmax` (lower/upper trigger), `lmin`/`lmax` (optional limits for each leg), `i` (isolated routing flag).

When one leg triggers, the sibling leg is auto-cancelled with status
`siblingCancelled`. The response examples illustrate possible status rows;
later trigger lifecycle changes are delivered through the account subscription,
not as a guaranteed second response to the original `post` ID.

Market-style execution supports `slSlippage` and `tpSlippage` in basis points. Use the updated SDK signing encoder and see
[conditional slippage overrides](https://docs.bulk.trade/api-reference/placeOrder.md#conditional-slippage-overrides).
The `i` routing flag defaults to `false` and participates in signing; include it
explicitly to make isolated versus base-account routing clear.

## 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.