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

Method fetch_closed_orders

python/ccxt/xt.py:3112–3129  ·  view source on GitHub ↗

fetches information on multiple closed orders made by the user https://doc.xt.com/#orderhistoryOrderGet https://doc.xt.com/#futures_ordergetOrders https://doc.xt.com/#futures_entrustgetPlan https://doc.xt.com/#futures_entrustgetProfit :param str [sy

(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})

Source from the content-addressed store, hash-verified

3110 return self.fetch_orders_by_status('open', symbol, since, limit, params)
3111
3112 def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
3113 """
3114 fetches information on multiple closed orders made by the user
3115
3116 https://doc.xt.com/#orderhistoryOrderGet
3117 https://doc.xt.com/#futures_ordergetOrders
3118 https://doc.xt.com/#futures_entrustgetPlan
3119 https://doc.xt.com/#futures_entrustgetProfit
3120
3121 :param str [symbol]: unified market symbol of the market the orders were made in
3122 :param int [since]: timestamp in ms of the earliest order
3123 :param int [limit]: the maximum number of order structures to retrieve
3124 :param dict params: extra parameters specific to the xt api endpoint
3125 :param bool [params.trigger]: if the order is a trigger order or not
3126 :param bool [params.stopLossTakeProfit]: if the order is a stop-loss or take-profit order
3127 :returns dict[]: a list of `order structures <https://docs.ccxt.com/en/latest/manual.html#order-structure>`
3128 """
3129 return self.fetch_orders_by_status('closed', symbol, since, limit, params)
3130
3131 def fetch_canceled_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
3132 """

Callers 7

example_1Function · 0.45
latoken-example.pyFile · 0.45
loadFunction · 0.45
exampleFunction · 0.45

Calls 1

Tested by

no test coverage detected