MCPcopy Create free account
hub / github.com/ccxt/ccxt / edit_order

Method edit_order

python/ccxt/cryptocom.py:1601–1621  ·  view source on GitHub ↗

edit a trade order https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-amend-order :param str id: order id :param str symbol: unified market symbol of the order to edit :param str [type]: not used by cryptocom editOrder :param st

(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={})

Source from the content-addressed store, hash-verified

1599 return self.extend(request, params)
1600
1601 def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}):
1602 """
1603 edit a trade order
1604
1605 https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-amend-order
1606
1607 :param str id: order id
1608 :param str symbol: unified market symbol of the order to edit
1609 :param str [type]: not used by cryptocom editOrder
1610 :param str [side]: not used by cryptocom editOrder
1611 :param float amount:(mandatory) how much of the currency you want to trade in units of the base currency
1612 :param float price:(mandatory) the price for the order, in units of the quote currency, ignored in market orders
1613 :param dict [params]: extra parameters specific to the exchange API endpoint
1614 :param str [params.clientOrderId]: the original client order id of the order to edit, required if id is not provided
1615 :returns dict: an `order structure <https://docs.ccxt.com/?id=order-structure>`
1616 """
1617 self.load_markets()
1618 request = self.edit_order_request(id, symbol, amount, price, params)
1619 response = self.v1PrivatePostPrivateAmendOrder(request)
1620 result = self.safe_dict(response, 'result', {})
1621 return self.parse_order(result)
1622
1623 def edit_order_request(self, id: str, symbol: str, amount: float, price: Num = None, params={}):
1624 request = {}

Callers

nothing calls this directly

Calls 5

edit_order_requestMethod · 0.95
parse_orderMethod · 0.95
safe_dictMethod · 0.80
load_marketsMethod · 0.45

Tested by

no test coverage detected