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

Method fetch_order

python/ccxt/exmo.py:1658–1697  ·  view source on GitHub ↗

*spot only* fetches information on an order made by the user https://documenter.getpostman.com/view/10287440/SzYXWKPi#cf27781e-28e5-4b39-a52d-3110f5d22459 # spot :param str id: order id :param str symbol: not used by exmo fetchOrder :param dict [params]: e

(self, id: str, symbol: Str = None, params={})

Source from the content-addressed store, hash-verified

1656 return self.parse_order(response)
1657
1658 def fetch_order(self, id: str, symbol: Str = None, params={}):
1659 """
1660 *spot only* fetches information on an order made by the user
1661
1662 https://documenter.getpostman.com/view/10287440/SzYXWKPi#cf27781e-28e5-4b39-a52d-3110f5d22459 # spot
1663
1664 :param str id: order id
1665 :param str symbol: not used by exmo fetchOrder
1666 :param dict [params]: extra parameters specific to the exchange API endpoint
1667 :returns dict: An `order structure <https://docs.ccxt.com/?id=order-structure>`
1668 """
1669 self.load_markets()
1670 request = {
1671 'order_id': str(id),
1672 }
1673 response = self.privatePostOrderTrades(self.extend(request, params))
1674 #
1675 # {
1676 # "type": "buy",
1677 # "in_currency": "BTC",
1678 # "in_amount": "1",
1679 # "out_currency": "USD",
1680 # "out_amount": "100",
1681 # "trades": [
1682 # {
1683 # "trade_id": 3,
1684 # "date": 1435488248,
1685 # "type": "buy",
1686 # "pair": "BTC_USD",
1687 # "order_id": 12345,
1688 # "quantity": 1,
1689 # "price": 100,
1690 # "amount": 100
1691 # }
1692 # ]
1693 # }
1694 #
1695 order = self.parse_order(response)
1696 order['id'] = str(id)
1697 return order
1698
1699 def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1700 """

Callers

nothing calls this directly

Calls 4

parse_orderMethod · 0.95
load_marketsMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected