edit a trade order https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-an-existing-order-and-send-a-new-order-trade https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order https://deve
(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={})
| 5437 | return self.parse_order(response, market) |
| 5438 | |
| 5439 | def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}): |
| 5440 | """ |
| 5441 | edit a trade order |
| 5442 | |
| 5443 | https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-an-existing-order-and-send-a-new-order-trade |
| 5444 | https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order |
| 5445 | https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Order |
| 5446 | |
| 5447 | :param str id: cancel order id |
| 5448 | :param str symbol: unified symbol of the market to create an order in |
| 5449 | :param str type: 'market' or 'limit' |
| 5450 | :param str side: 'buy' or 'sell' |
| 5451 | :param float amount: how much of currency you want to trade in units of base currency |
| 5452 | :param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders |
| 5453 | :param dict [params]: extra parameters specific to the exchange API endpoint |
| 5454 | :returns dict: an `order structure <https://docs.ccxt.com/?id=order-structure>` |
| 5455 | """ |
| 5456 | self.load_markets() |
| 5457 | market = self.market(symbol) |
| 5458 | if market['option']: |
| 5459 | raise NotSupported(self.id + ' editOrder() does not support ' + market['type'] + ' orders') |
| 5460 | if market['spot']: |
| 5461 | return self.edit_spot_order(id, symbol, type, side, amount, price, params) |
| 5462 | else: |
| 5463 | return self.edit_contract_order(id, symbol, type, side, amount, price, params) |
| 5464 | |
| 5465 | def edit_orders(self, orders: List[OrderRequest], params={}): |
| 5466 | """ |
nothing calls this directly
no test coverage detected