Skip to content

Commit

Permalink
feat(client): update oco-endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmiei committed Nov 19, 2024
1 parent 6866ca5 commit ccd0a3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions binance/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1867,7 +1867,7 @@ def order_market_sell(self, **params):
def create_oco_order(self, **params):
"""Send in a new OCO order
https://binance-docs.github.io/apidocs/spot/en/#new-oco-trade
https://binance-docs.github.io/apidocs/spot/en/#new-order-list-oco-trade
:param symbol: required
:type symbol: str
Expand Down Expand Up @@ -1924,7 +1924,7 @@ def create_oco_order(self, **params):
:raises: BinanceRequestException, BinanceAPIException, BinanceOrderException, BinanceOrderMinAmountException, BinanceOrderMinPriceException, BinanceOrderMinTotalException, BinanceOrderUnknownSymbolException, BinanceOrderInactiveSymbolException
"""
return self._post("order/oco", True, data=params)
return self._post("orderList/oco", True, data=params)

def order_oco_buy(self, **params):
"""Send in a new OCO buy order
Expand Down Expand Up @@ -11143,7 +11143,7 @@ async def order_market_sell(self, **params):
order_market_sell.__doc__ = Client.order_market_sell.__doc__

async def create_oco_order(self, **params):
return await self._post("order/oco", True, data=params)
return await self._post("orderList/oco", True, data=params)

create_oco_order.__doc__ = Client.create_oco_order.__doc__

Expand Down

0 comments on commit ccd0a3a

Please sign in to comment.