ccxt 4.2.89__py2.py3-none-any.whl → 4.2.91__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ccxt/__init__.py +1 -1
- ccxt/abstract/bingx.py +2 -0
- ccxt/abstract/bybit.py +2 -0
- ccxt/ascendex.py +1 -0
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ascendex.py +1 -0
- ccxt/async_support/base/exchange.py +13 -1
- ccxt/async_support/binance.py +81 -9
- ccxt/async_support/bingx.py +94 -1
- ccxt/async_support/bitfinex2.py +1 -0
- ccxt/async_support/bitget.py +2 -0
- ccxt/async_support/bitmex.py +1 -0
- ccxt/async_support/bitrue.py +1 -0
- ccxt/async_support/bybit.py +50 -0
- ccxt/async_support/coinbase.py +43 -21
- ccxt/async_support/coinbaseinternational.py +1 -0
- ccxt/async_support/coinex.py +96 -8
- ccxt/async_support/cryptocom.py +1 -0
- ccxt/async_support/delta.py +1 -0
- ccxt/async_support/digifinex.py +1 -0
- ccxt/async_support/exmo.py +1 -0
- ccxt/async_support/gate.py +2 -0
- ccxt/async_support/gemini.py +11 -9
- ccxt/async_support/hitbtc.py +1 -0
- ccxt/async_support/htx.py +1 -0
- ccxt/async_support/hyperliquid.py +1 -0
- ccxt/async_support/kraken.py +11 -8
- ccxt/async_support/kucoin.py +1 -0
- ccxt/async_support/kucoinfutures.py +32 -4
- ccxt/async_support/mexc.py +1 -0
- ccxt/async_support/okx.py +173 -38
- ccxt/async_support/phemex.py +1 -0
- ccxt/async_support/woo.py +1 -0
- ccxt/base/exchange.py +53 -14
- ccxt/base/types.py +1 -0
- ccxt/binance.py +81 -9
- ccxt/bingx.py +94 -1
- ccxt/bitfinex2.py +1 -0
- ccxt/bitget.py +2 -0
- ccxt/bitmex.py +1 -0
- ccxt/bitrue.py +1 -0
- ccxt/bybit.py +50 -0
- ccxt/coinbase.py +43 -21
- ccxt/coinbaseinternational.py +1 -0
- ccxt/coinex.py +96 -8
- ccxt/cryptocom.py +1 -0
- ccxt/delta.py +1 -0
- ccxt/digifinex.py +1 -0
- ccxt/exmo.py +1 -0
- ccxt/gate.py +2 -0
- ccxt/gemini.py +11 -9
- ccxt/hitbtc.py +1 -0
- ccxt/htx.py +1 -0
- ccxt/hyperliquid.py +1 -0
- ccxt/kraken.py +11 -8
- ccxt/kucoin.py +1 -0
- ccxt/kucoinfutures.py +32 -4
- ccxt/mexc.py +1 -0
- ccxt/okx.py +173 -38
- ccxt/phemex.py +1 -0
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/bitmex.py +35 -17
- ccxt/pro/kucoin.py +85 -0
- ccxt/pro/kucoinfutures.py +141 -76
- ccxt/test/test_async.py +15 -1
- ccxt/test/test_sync.py +15 -1
- ccxt/woo.py +1 -0
- {ccxt-4.2.89.dist-info → ccxt-4.2.91.dist-info}/METADATA +4 -4
- {ccxt-4.2.89.dist-info → ccxt-4.2.91.dist-info}/RECORD +71 -71
- {ccxt-4.2.89.dist-info → ccxt-4.2.91.dist-info}/WHEEL +0 -0
- {ccxt-4.2.89.dist-info → ccxt-4.2.91.dist-info}/top_level.txt +0 -0
ccxt/async_support/coinex.py
CHANGED
@@ -93,6 +93,7 @@ class coinex(Exchange, ImplicitAPI):
|
|
93
93
|
'fetchLeverage': 'emulated',
|
94
94
|
'fetchLeverages': True,
|
95
95
|
'fetchLeverageTiers': True,
|
96
|
+
'fetchMarginAdjustmentHistory': True,
|
96
97
|
'fetchMarketLeverageTiers': 'emulated',
|
97
98
|
'fetchMarkets': True,
|
98
99
|
'fetchMarkOHLCV': False,
|
@@ -3967,11 +3968,10 @@ class coinex(Exchange, ImplicitAPI):
|
|
3967
3968
|
# "message":"OK"
|
3968
3969
|
# }
|
3969
3970
|
#
|
3971
|
+
data = self.safe_dict(response, 'data')
|
3970
3972
|
status = self.safe_string(response, 'message')
|
3971
|
-
|
3972
|
-
return self.extend(self.parse_margin_modification(response, market), {
|
3973
|
+
return self.extend(self.parse_margin_modification(data, market), {
|
3973
3974
|
'amount': self.parse_number(amount),
|
3974
|
-
'type': type,
|
3975
3975
|
'status': status,
|
3976
3976
|
})
|
3977
3977
|
|
@@ -4031,13 +4031,34 @@ class coinex(Exchange, ImplicitAPI):
|
|
4031
4031
|
# "user_id": 3620173
|
4032
4032
|
# }
|
4033
4033
|
#
|
4034
|
-
|
4034
|
+
# fetchMarginAdjustmentHistory
|
4035
|
+
#
|
4036
|
+
# {
|
4037
|
+
# bkr_price: '0',
|
4038
|
+
# leverage: '3',
|
4039
|
+
# liq_price: '0',
|
4040
|
+
# margin_amount: '5.33236666666666666666',
|
4041
|
+
# margin_change: '3',
|
4042
|
+
# market: 'XRPUSDT',
|
4043
|
+
# position_amount: '11',
|
4044
|
+
# position_id: '297155652',
|
4045
|
+
# position_type: '2',
|
4046
|
+
# settle_price: '0.6361',
|
4047
|
+
# time: '1711050906.382891',
|
4048
|
+
# type: '1',
|
4049
|
+
# user_id: '3685860'
|
4050
|
+
# }
|
4051
|
+
#
|
4052
|
+
marketId = self.safe_string(data, 'market')
|
4053
|
+
type = self.safe_string(data, 'type')
|
4054
|
+
timestamp = self.safe_integer_product_2(data, 'time', 'update_time', 1000)
|
4035
4055
|
return {
|
4036
4056
|
'info': data,
|
4037
|
-
'symbol': self.safe_symbol(None,
|
4038
|
-
'type':
|
4039
|
-
'
|
4040
|
-
'
|
4057
|
+
'symbol': self.safe_symbol(marketId, market, None, 'swap'),
|
4058
|
+
'type': 'add' if (type == '1') else 'reduce',
|
4059
|
+
'marginMode': 'isolated',
|
4060
|
+
'amount': self.safe_number(data, 'margin_change'),
|
4061
|
+
'total': self.safe_number(data, 'position_amount'),
|
4041
4062
|
'code': market['quote'],
|
4042
4063
|
'status': None,
|
4043
4064
|
'timestamp': timestamp,
|
@@ -4645,6 +4666,7 @@ class coinex(Exchange, ImplicitAPI):
|
|
4645
4666
|
currencyId = self.safe_string(transfer, 'asset')
|
4646
4667
|
currencyCode = self.safe_currency_code(currencyId, currency)
|
4647
4668
|
return {
|
4669
|
+
'info': transfer,
|
4648
4670
|
'id': self.safe_integer(transfer, 'id'),
|
4649
4671
|
'timestamp': timestamp,
|
4650
4672
|
'datetime': self.iso8601(timestamp),
|
@@ -5411,3 +5433,69 @@ class coinex(Exchange, ImplicitAPI):
|
|
5411
5433
|
self.throw_exactly_matched_exception(self.exceptions['exact'], code, feedback)
|
5412
5434
|
raise ExchangeError(feedback)
|
5413
5435
|
return None
|
5436
|
+
|
5437
|
+
async def fetch_margin_adjustment_history(self, symbol: Str = None, type: Str = None, since: Num = None, limit: Num = None, params={}) -> List[MarginModification]:
|
5438
|
+
"""
|
5439
|
+
fetches the history of margin added or reduced from contract isolated positions
|
5440
|
+
:see: https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http046_position_margin_history
|
5441
|
+
:param str [symbol]: unified market symbol
|
5442
|
+
:param str [type]: not used by coinex fetchMarginAdjustmentHistory
|
5443
|
+
:param int [since]: timestamp in ms of the earliest change to fetch
|
5444
|
+
:param int [limit]: the maximum amount of changes to fetch, default=100, max=100
|
5445
|
+
:param dict params: extra parameters specific to the exchange api endpoint
|
5446
|
+
:param int [params.until]: timestamp in ms of the latest change to fetch
|
5447
|
+
*
|
5448
|
+
* EXCHANGE SPECIFIC PARAMETERS
|
5449
|
+
:param int [params.offset]: offset
|
5450
|
+
:returns dict[]: a list of `margin structures <https://docs.ccxt.com/#/?id=margin-loan-structure>`
|
5451
|
+
"""
|
5452
|
+
await self.load_markets()
|
5453
|
+
until = self.safe_integer(params, 'until')
|
5454
|
+
params = self.omit(params, 'until')
|
5455
|
+
if limit is None:
|
5456
|
+
limit = 100
|
5457
|
+
request = {
|
5458
|
+
'market': '',
|
5459
|
+
'position_id': 0,
|
5460
|
+
'offset': 0,
|
5461
|
+
'limit': limit,
|
5462
|
+
}
|
5463
|
+
if symbol is not None:
|
5464
|
+
market = self.market(symbol)
|
5465
|
+
request['market'] = market['id']
|
5466
|
+
if since is not None:
|
5467
|
+
request['start_time'] = since
|
5468
|
+
if until is not None:
|
5469
|
+
request['end_time'] = until
|
5470
|
+
response = await self.v1PerpetualPrivateGetPositionMarginHistory(self.extend(request, params))
|
5471
|
+
#
|
5472
|
+
# {
|
5473
|
+
# code: '0',
|
5474
|
+
# data: {
|
5475
|
+
# limit: '100',
|
5476
|
+
# offset: '0',
|
5477
|
+
# records: [
|
5478
|
+
# {
|
5479
|
+
# bkr_price: '0',
|
5480
|
+
# leverage: '3',
|
5481
|
+
# liq_price: '0',
|
5482
|
+
# margin_amount: '5.33236666666666666666',
|
5483
|
+
# margin_change: '3',
|
5484
|
+
# market: 'XRPUSDT',
|
5485
|
+
# position_amount: '11',
|
5486
|
+
# position_id: '297155652',
|
5487
|
+
# position_type: '2',
|
5488
|
+
# settle_price: '0.6361',
|
5489
|
+
# time: '1711050906.382891',
|
5490
|
+
# type: '1',
|
5491
|
+
# user_id: '3685860'
|
5492
|
+
# }
|
5493
|
+
# ]
|
5494
|
+
# },
|
5495
|
+
# message: 'OK'
|
5496
|
+
# }
|
5497
|
+
#
|
5498
|
+
data = self.safe_dict(response, 'data', {})
|
5499
|
+
records = self.safe_list(data, 'records', [])
|
5500
|
+
modifications = self.parse_margin_modifications(records, None, 'market', 'swap')
|
5501
|
+
return self.filter_by_symbol_since_limit(modifications, symbol, since, limit)
|
ccxt/async_support/cryptocom.py
CHANGED
ccxt/async_support/delta.py
CHANGED
ccxt/async_support/digifinex.py
CHANGED
@@ -3851,6 +3851,7 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3851
3851
|
'info': data,
|
3852
3852
|
'symbol': self.safe_symbol(marketId, market, None, 'swap'),
|
3853
3853
|
'type': 'add' if (rawType == 1) else 'reduce',
|
3854
|
+
'marginMode': 'isolated',
|
3854
3855
|
'amount': self.safe_number(data, 'amount'),
|
3855
3856
|
'total': None,
|
3856
3857
|
'code': market['settle'],
|
ccxt/async_support/exmo.py
CHANGED
ccxt/async_support/gate.py
CHANGED
@@ -139,6 +139,7 @@ class gate(Exchange, ImplicitAPI):
|
|
139
139
|
'fetchLeverages': True,
|
140
140
|
'fetchLeverageTiers': True,
|
141
141
|
'fetchLiquidations': True,
|
142
|
+
'fetchMarginAdjustmentHistory': False,
|
142
143
|
'fetchMarginMode': False,
|
143
144
|
'fetchMarketLeverageTiers': True,
|
144
145
|
'fetchMarkets': True,
|
@@ -5688,6 +5689,7 @@ class gate(Exchange, ImplicitAPI):
|
|
5688
5689
|
'info': data,
|
5689
5690
|
'symbol': market['symbol'],
|
5690
5691
|
'type': None,
|
5692
|
+
'marginMode': 'isolated',
|
5691
5693
|
'amount': None,
|
5692
5694
|
'total': total,
|
5693
5695
|
'code': self.safe_value(market, 'quote'),
|
ccxt/async_support/gemini.py
CHANGED
@@ -122,6 +122,7 @@ class gemini(Exchange, ImplicitAPI):
|
|
122
122
|
# https://github.com/ccxt/ccxt/issues/7874
|
123
123
|
# https://github.com/ccxt/ccxt/issues/7894
|
124
124
|
'web': 'https://docs.gemini.com',
|
125
|
+
'webExchange': 'https://exchange.gemini.com',
|
125
126
|
},
|
126
127
|
'fees': [
|
127
128
|
'https://gemini.com/api-fee-schedule',
|
@@ -444,6 +445,7 @@ class gemini(Exchange, ImplicitAPI):
|
|
444
445
|
# '</tr>'
|
445
446
|
# ]
|
446
447
|
marketId = cells[0].replace('<td>', '')
|
448
|
+
marketId = marketId.replace('*', '')
|
447
449
|
# base = self.safe_currency_code(baseId)
|
448
450
|
minAmountString = cells[1].replace('<td>', '')
|
449
451
|
minAmountParts = minAmountString.split(' ')
|
@@ -630,7 +632,7 @@ class gemini(Exchange, ImplicitAPI):
|
|
630
632
|
quoteId = None
|
631
633
|
settleId = None
|
632
634
|
tickSize = None
|
633
|
-
|
635
|
+
amountPrecision = None
|
634
636
|
minSize = None
|
635
637
|
status = None
|
636
638
|
swap = False
|
@@ -641,9 +643,9 @@ class gemini(Exchange, ImplicitAPI):
|
|
641
643
|
isArray = (isinstance(response, list))
|
642
644
|
if not isString and not isArray:
|
643
645
|
marketId = self.safe_string_lower(response, 'symbol')
|
646
|
+
amountPrecision = self.safe_number(response, 'tick_size') # right, exchange has an imperfect naming and self turns out to be an amount-precision
|
647
|
+
tickSize = self.safe_number(response, 'quote_increment') # self is tick-size actually
|
644
648
|
minSize = self.safe_number(response, 'min_order_size')
|
645
|
-
tickSize = self.safe_number(response, 'tick_size')
|
646
|
-
increment = self.safe_number(response, 'quote_increment')
|
647
649
|
status = self.parse_market_active(self.safe_string(response, 'status'))
|
648
650
|
baseId = self.safe_string(response, 'base_currency')
|
649
651
|
quoteId = self.safe_string(response, 'quote_currency')
|
@@ -654,9 +656,9 @@ class gemini(Exchange, ImplicitAPI):
|
|
654
656
|
marketId = response
|
655
657
|
else:
|
656
658
|
marketId = self.safe_string_lower(response, 0)
|
657
|
-
|
658
|
-
|
659
|
-
|
659
|
+
tickSize = self.parse_number(self.parse_precision(self.safe_string(response, 1))) # priceTickDecimalPlaces
|
660
|
+
amountPrecision = self.parse_number(self.parse_precision(self.safe_string(response, 2))) # quantityTickDecimalPlaces
|
661
|
+
minSize = self.safe_number(response, 3) # quantityMinimum
|
660
662
|
marketIdUpper = marketId.upper()
|
661
663
|
isPerp = (marketIdUpper.find('PERP') >= 0)
|
662
664
|
marketIdWithoutPerp = marketIdUpper.replace('PERP', '')
|
@@ -705,8 +707,8 @@ class gemini(Exchange, ImplicitAPI):
|
|
705
707
|
'strike': None,
|
706
708
|
'optionType': None,
|
707
709
|
'precision': {
|
708
|
-
'price':
|
709
|
-
'amount':
|
710
|
+
'price': tickSize,
|
711
|
+
'amount': amountPrecision,
|
710
712
|
},
|
711
713
|
'limits': {
|
712
714
|
'leverage': {
|
@@ -1708,7 +1710,7 @@ class gemini(Exchange, ImplicitAPI):
|
|
1708
1710
|
apiKey = self.apiKey
|
1709
1711
|
if apiKey.find('account') < 0:
|
1710
1712
|
raise AuthenticationError(self.id + ' sign() requires an account-key, master-keys are not-supported')
|
1711
|
-
nonce = self.nonce()
|
1713
|
+
nonce = str(self.nonce())
|
1712
1714
|
request = self.extend({
|
1713
1715
|
'request': url,
|
1714
1716
|
'nonce': nonce,
|
ccxt/async_support/hitbtc.py
CHANGED
ccxt/async_support/htx.py
CHANGED
@@ -103,6 +103,7 @@ class htx(Exchange, ImplicitAPI):
|
|
103
103
|
'fetchLeverage': False,
|
104
104
|
'fetchLeverageTiers': True,
|
105
105
|
'fetchLiquidations': True,
|
106
|
+
'fetchMarginAdjustmentHistory': False,
|
106
107
|
'fetchMarketLeverageTiers': True,
|
107
108
|
'fetchMarkets': True,
|
108
109
|
'fetchMarkOHLCV': True,
|
@@ -2025,6 +2025,7 @@ class hyperliquid(Exchange, ImplicitAPI):
|
|
2025
2025
|
'info': data,
|
2026
2026
|
'symbol': self.safe_symbol(None, market),
|
2027
2027
|
'type': None,
|
2028
|
+
'marginMode': 'isolated',
|
2028
2029
|
'amount': None,
|
2029
2030
|
'total': None,
|
2030
2031
|
'code': self.safe_string(market, 'settle'),
|
ccxt/async_support/kraken.py
CHANGED
@@ -609,9 +609,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
609
609
|
if currencyId is not None:
|
610
610
|
if len(currencyId) > 3:
|
611
611
|
if (currencyId.find('X') == 0) or (currencyId.find('Z') == 0):
|
612
|
-
if currencyId.find('.') > 0:
|
613
|
-
return super(kraken, self).safe_currency(currencyId, currency)
|
614
|
-
else:
|
612
|
+
if not (currencyId.find('.') > 0):
|
615
613
|
currencyId = currencyId[1:]
|
616
614
|
return super(kraken, self).safe_currency(currencyId, currency)
|
617
615
|
|
@@ -653,8 +651,13 @@ class kraken(Exchange, ImplicitAPI):
|
|
653
651
|
# {
|
654
652
|
# "error": [],
|
655
653
|
# "result": {
|
656
|
-
# "
|
657
|
-
#
|
654
|
+
# "BCH": {
|
655
|
+
# "aclass": "currency",
|
656
|
+
# "altname": "BCH",
|
657
|
+
# "decimals": 10,
|
658
|
+
# "display_decimals": 5
|
659
|
+
# "status": "enabled",
|
660
|
+
# },
|
658
661
|
# ...
|
659
662
|
# },
|
660
663
|
# }
|
@@ -669,15 +672,15 @@ class kraken(Exchange, ImplicitAPI):
|
|
669
672
|
# see: https://support.kraken.com/hc/en-us/articles/201893608-What-are-the-withdrawal-fees-
|
670
673
|
# to add support for multiple withdrawal/deposit methods and
|
671
674
|
# differentiated fees for each particular method
|
672
|
-
code = self.safe_currency_code(
|
675
|
+
code = self.safe_currency_code(id)
|
673
676
|
precision = self.parse_number(self.parse_precision(self.safe_string(currency, 'decimals')))
|
674
677
|
# assumes all currencies are active except those listed above
|
675
|
-
active =
|
678
|
+
active = self.safe_string(currency, 'status') == 'enabled'
|
676
679
|
result[code] = {
|
677
680
|
'id': id,
|
678
681
|
'code': code,
|
679
682
|
'info': currency,
|
680
|
-
'name':
|
683
|
+
'name': self.safe_string(currency, 'altname'),
|
681
684
|
'active': active,
|
682
685
|
'deposit': None,
|
683
686
|
'withdraw': None,
|
ccxt/async_support/kucoin.py
CHANGED
@@ -80,6 +80,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
80
80
|
'fetchL3OrderBook': True,
|
81
81
|
'fetchLedger': True,
|
82
82
|
'fetchLeverageTiers': False,
|
83
|
+
'fetchMarginAdjustmentHistory': False,
|
83
84
|
'fetchMarginMode': False,
|
84
85
|
'fetchMarketLeverageTiers': True,
|
85
86
|
'fetchMarkets': True,
|
@@ -1497,7 +1498,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1497
1498
|
'direction': 'in',
|
1498
1499
|
})
|
1499
1500
|
|
1500
|
-
def parse_margin_modification(self, info, market: Market = None):
|
1501
|
+
def parse_margin_modification(self, info, market: Market = None) -> MarginModification:
|
1501
1502
|
#
|
1502
1503
|
# {
|
1503
1504
|
# "id": "62311d26064e8f00013f2c6d",
|
@@ -1549,14 +1550,18 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1549
1550
|
crossMode = self.safe_value(info, 'crossMode')
|
1550
1551
|
mode = 'cross' if crossMode else 'isolated'
|
1551
1552
|
marketId = self.safe_string(market, 'symbol')
|
1553
|
+
timestamp = self.safe_integer(info, 'currentTimestamp')
|
1552
1554
|
return {
|
1553
1555
|
'info': info,
|
1554
|
-
'
|
1555
|
-
'
|
1556
|
+
'symbol': self.safe_symbol(marketId, market),
|
1557
|
+
'type': None,
|
1558
|
+
'marginMode': mode,
|
1556
1559
|
'amount': None,
|
1560
|
+
'total': None,
|
1557
1561
|
'code': self.safe_currency_code(currencyId),
|
1558
|
-
'symbol': self.safe_symbol(marketId, market),
|
1559
1562
|
'status': None,
|
1563
|
+
'timestamp': timestamp,
|
1564
|
+
'datetime': self.iso8601(timestamp),
|
1560
1565
|
}
|
1561
1566
|
|
1562
1567
|
async def fetch_orders_by_status(self, status, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
@@ -1682,6 +1687,29 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1682
1687
|
return await self.fetch_paginated_call_dynamic('fetchClosedOrders', symbol, since, limit, params)
|
1683
1688
|
return await self.fetch_orders_by_status('done', symbol, since, limit, params)
|
1684
1689
|
|
1690
|
+
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1691
|
+
"""
|
1692
|
+
fetches information on multiple open orders made by the user
|
1693
|
+
:see: https://docs.kucoin.com/futures/#get-order-list
|
1694
|
+
:see: https://docs.kucoin.com/futures/#get-untriggered-stop-order-list
|
1695
|
+
:param str symbol: unified market symbol of the market orders were made in
|
1696
|
+
:param int [since]: the earliest time in ms to fetch orders for
|
1697
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
1698
|
+
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1699
|
+
:param int [params.till]: end time in ms
|
1700
|
+
:param str [params.side]: buy or sell
|
1701
|
+
:param str [params.type]: limit, or market
|
1702
|
+
:param boolean [params.trigger]: set to True to retrieve untriggered stop orders
|
1703
|
+
:param boolean [params.paginate]: default False, when True will automatically paginate by calling self endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
1704
|
+
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1705
|
+
"""
|
1706
|
+
await self.load_markets()
|
1707
|
+
paginate = False
|
1708
|
+
paginate, params = self.handle_option_and_params(params, 'fetchOpenOrders', 'paginate')
|
1709
|
+
if paginate:
|
1710
|
+
return await self.fetch_paginated_call_dynamic('fetchOpenOrders', symbol, since, limit, params)
|
1711
|
+
return await self.fetch_orders_by_status('open', symbol, since, limit, params)
|
1712
|
+
|
1685
1713
|
async def fetch_order(self, id: Str = None, symbol: Str = None, params={}):
|
1686
1714
|
"""
|
1687
1715
|
fetches information on an order made by the user
|
ccxt/async_support/mexc.py
CHANGED