---
title: "Margin Account New OCO (TRADE)"
method: POST
path: "/sapi/v1/margin/order/oco"
tags: ["Margin"]
---

# Margin Account New OCO (TRADE)

`POST /sapi/v1/margin/order/oco`

Send in a new OCO for a margin account

- Price Restrictions:
  - SELL: Limit Price > Last Price > Stop Price
  - BUY: Limit Price < Last Price < Stop Price
- Quantity Restrictions:
  - Both legs must have the same quantity
  - ICEBERG quantities however do not have to be the same.
- Order Rate Limit
  - OCO counts as 2 orders against the order rate limit.

Weight(UID): 6

## Query parameters

- `symbol` string, required
- `isIsolated` 'TRUE' | 'FALSE'
- `listClientOrderId` string
- `side` 'SELL' | 'BUY', required
- `quantity` number, double, required
- `limitClientOrderId` string
- `price` number, double, required
- `limitIcebergQty` number, double
- `stopClientOrderId` string
- `stopPrice` number, double, required
- `stopLimitPrice` number, double
- `stopIcebergQty` number, double
- `stopLimitTimeInForce` 'GTC' | 'FOK' | 'IOC'
- `newOrderRespType` 'ACK' | 'RESULT' | 'FULL'
- `sideEffectType` 'NO_SIDE_EFFECT' | 'MARGIN_BUY' | 'AUTO_REPAY'
- `selfTradePreventionMode` 'EXPIRE_TAKER' | 'EXPIRE_MAKER' | 'EXPIRE_BOTH' | 'NONE'
- `recvWindow` integer
- `timestamp` integer, required
- `signature` string, required

## Response `200`

New Margin OCO details

- object
  - `orderListId` integer, required
  - `contingencyType` string, required
  - `listStatusType` string, required
  - `listOrderStatus` string, required
  - `listClientOrderId` string, required
  - `transactionTime` integer, required
  - `symbol` string, required
  - `marginBuyBorrowAmount` string, required — will not return if no margin trade happens
  - `marginBuyBorrowAsset` string, required — will not return if no margin trade happens
  - `isIsolated` boolean, required
  - `orders` object[], required
    - `symbol` string, required
    - `orderId` integer, required
    - `clientOrderId` string, required
  - `orderReports` object[], required
    - `symbol` string, required
    - `orderId` integer, required
    - `orderListId` integer, required
    - `clientOrderId` string, required
    - `transactTime` integer, required
    - `price` string, required
    - `origQty` string, required
    - `executedQty` string, required
    - `cummulativeQuoteQty` string, required
    - `status` string, required
    - `timeInForce` string, required
    - `type` string, required
    - `side` string, required
    - `stopPrice` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized Request

---

[API](https://skmtc.net/binance/apis/binance-public-spot-api.md) · [All operations](https://skmtc.net/binance/apis/binance-public-spot-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/binance/binance-public-spot-api/revisions/0dd2f133e12d/schema)
