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

# Changes to Margin Account New Order (TRADE)

`POST /sapi/v1/margin/order`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 2 of 26 revisions.

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

## Changes

- **2023-09-02** `6622e0c15100` — 1 breaking, 1 info
  - added the new required `query` request parameter `autoRepayAtCancel`
  - added the new optional `query` request parameter `selfTradePreventionMode`
- **2021-10-25** `a484ce871a72` — 3 breaking, 47 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`
  - the `oneOf[#/components/schemas/marginOrderResponseFull]/marginBuyBorrowAmount` response's property type/format changed from `number`/`float` to `number`/`double` for status `200`
  - for the `query` request parameter `icebergQty`, 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 `quoteOrderQty`, 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 `msg` became required for the status `400`
  - the response property `msg` became required for the status `401`
  - the response property `oneOf[#/components/schemas/marginOrderResponseAck]/clientOrderId` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseAck]/isIsolated` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseAck]/orderId` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseAck]/symbol` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseAck]/transactTime` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseFull]/clientOrderId` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseFull]/cummulativeQuoteQty` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseFull]/executedQty` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseFull]/fills` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseFull]/fills/items/commission` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseFull]/fills/items/commissionAsset` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseFull]/fills/items/price` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseFull]/fills/items/qty` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseFull]/isIsolated` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseFull]/marginBuyBorrowAmount` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseFull]/marginBuyBorrowAsset` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseFull]/orderId` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseFull]/origQty` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseFull]/price` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseFull]/side` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseFull]/status` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseFull]/symbol` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseFull]/timeInForce` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseFull]/transactTime` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseFull]/type` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseResult]/clientOrderId` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseResult]/cummulativeQuoteQty` became required for the status `200`
  - the response property `oneOf[#/components/schemas/marginOrderResponseResult]/executedQty` became required for the status `200`
  - …10 more

---

[Operation](https://skmtc.dev/binance/apis/binance-public-spot-api/docs/sapi/v1/margin/order/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/post)
