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

# Changes to Margin Account New OCO (TRADE)

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

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 2 of 26 revisions.

- **2023-09-02** `6622e0c15100` — 1 info
- **2021-10-25** `a484ce871a72` — 2 breaking, 39 info

## Changes

- **2023-09-02** `6622e0c15100` — 1 info
  - added the new optional `query` request parameter `selfTradePreventionMode`
- **2021-10-25** `a484ce871a72` — 2 breaking, 39 info
  - for the `query` request parameter `recvWindow`, the type/format was changed from `integer`/`` to `integer`/`int64`
  - for the `query` request parameter `timestamp`, the type/format was changed from `integer`/`` to `integer`/`int64`
  - for the `query` request parameter `limitIcebergQty`, the type/format was generalized from `number`/`float` to `number`/`double`
  - for the `query` request parameter `price`, the type/format was generalized from `number`/`float` to `number`/`double`
  - for the `query` request parameter `quantity`, the type/format was generalized from `number`/`float` to `number`/`double`
  - for the `query` request parameter `stopIcebergQty`, the type/format was generalized from `number`/`float` to `number`/`double`
  - for the `query` request parameter `stopLimitPrice`, the type/format was generalized from `number`/`float` to `number`/`double`
  - for the `query` request parameter `stopPrice`, the type/format was generalized from `number`/`float` to `number`/`double`
  - the response property `code` became required for the status `400`
  - the response property `code` became required for the status `401`
  - the response property `contingencyType` became required for the status `200`
  - the response property `isIsolated` became required for the status `200`
  - the response property `listClientOrderId` became required for the status `200`
  - the response property `listOrderStatus` became required for the status `200`
  - the response property `listStatusType` became required for the status `200`
  - the response property `marginBuyBorrowAmount` became required for the status `200`
  - the response property `marginBuyBorrowAsset` became required for the status `200`
  - the response property `msg` became required for the status `400`
  - the response property `msg` became required for the status `401`
  - the response property `orderListId` became required for the status `200`
  - the response property `orderReports` became required for the status `200`
  - the response property `orderReports/items/clientOrderId` became required for the status `200`
  - the response property `orderReports/items/cummulativeQuoteQty` became required for the status `200`
  - the response property `orderReports/items/executedQty` became required for the status `200`
  - the response property `orderReports/items/orderId` became required for the status `200`
  - the response property `orderReports/items/orderListId` became required for the status `200`
  - the response property `orderReports/items/origQty` became required for the status `200`
  - the response property `orderReports/items/price` became required for the status `200`
  - the response property `orderReports/items/side` became required for the status `200`
  - the response property `orderReports/items/status` became required for the status `200`
  - the response property `orderReports/items/stopPrice` became required for the status `200`
  - the response property `orderReports/items/symbol` became required for the status `200`
  - the response property `orderReports/items/timeInForce` became required for the status `200`
  - the response property `orderReports/items/transactTime` became required for the status `200`
  - the response property `orderReports/items/type` became required for the status `200`
  - the response property `orders` became required for the status `200`
  - the response property `orders/items/clientOrderId` became required for the status `200`
  - the response property `orders/items/orderId` became required for the status `200`
  - the response property `orders/items/symbol` became required for the status `200`
  - the response property `symbol` became required for the status `200`
  - …1 more

---

[Operation](https://skmtc.dev/binance/apis/binance-public-spot-api/docs/sapi/v1/margin/order/oco/post.md) · [API](https://skmtc.dev/binance/apis/binance-public-spot-api.md) · [Page](https://skmtc.dev/binance/apis/binance-public-spot-api/changes/sapi/v1/margin/order/oco/post)
