ccxt 3.1.59__py2.py3-none-any.whl → 4.0.3__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/ace.py +6 -6
- ccxt/alpaca.py +4 -4
- ccxt/ascendex.py +14 -14
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +6 -6
- ccxt/async_support/alpaca.py +4 -4
- ccxt/async_support/ascendex.py +14 -14
- ccxt/async_support/base/exchange.py +13 -13
- ccxt/async_support/bigone.py +11 -11
- ccxt/async_support/binance.py +34 -34
- ccxt/async_support/bit2c.py +3 -3
- ccxt/async_support/bitbank.py +5 -5
- ccxt/async_support/bitbns.py +7 -7
- ccxt/async_support/bitfinex.py +13 -13
- ccxt/async_support/bitfinex2.py +11 -11
- ccxt/async_support/bitflyer.py +10 -10
- ccxt/async_support/bitforex.py +6 -6
- ccxt/async_support/bitget.py +18 -18
- ccxt/async_support/bithumb.py +5 -5
- ccxt/async_support/bitmart.py +13 -13
- ccxt/async_support/bitmex.py +15 -15
- ccxt/async_support/bitopro.py +12 -12
- ccxt/async_support/bitpanda.py +12 -12
- ccxt/async_support/bitrue.py +11 -11
- ccxt/async_support/bitso.py +13 -13
- ccxt/async_support/bitstamp.py +12 -12
- ccxt/async_support/bitstamp1.py +2 -2
- ccxt/async_support/bittrex.py +15 -15
- ccxt/async_support/bitvavo.py +11 -11
- ccxt/async_support/bkex.py +12 -12
- ccxt/async_support/bl3p.py +1 -1
- ccxt/async_support/blockchaincom.py +7 -7
- ccxt/async_support/btcalpha.py +10 -10
- ccxt/async_support/btcbox.py +3 -3
- ccxt/async_support/btcmarkets.py +10 -10
- ccxt/async_support/btctradeua.py +2 -2
- ccxt/async_support/btcturk.py +7 -7
- ccxt/async_support/bybit.py +19 -19
- ccxt/async_support/cex.py +7 -7
- ccxt/async_support/coinbase.py +11 -11
- ccxt/async_support/coinbasepro.py +12 -12
- ccxt/async_support/coincheck.py +5 -5
- ccxt/async_support/coinex.py +19 -19
- ccxt/async_support/coinfalcon.py +7 -7
- ccxt/async_support/coinmate.py +5 -5
- ccxt/async_support/coinone.py +6 -6
- ccxt/async_support/coinsph.py +11 -11
- ccxt/async_support/coinspot.py +2 -2
- ccxt/async_support/cryptocom.py +19 -18
- ccxt/async_support/currencycom.py +10 -10
- ccxt/async_support/delta.py +10 -10
- ccxt/async_support/deribit.py +14 -14
- ccxt/async_support/digifinex.py +17 -17
- ccxt/async_support/exmo.py +12 -12
- ccxt/async_support/gate.py +19 -19
- ccxt/async_support/gemini.py +6 -6
- ccxt/async_support/hitbtc.py +8 -8
- ccxt/async_support/hitbtc3.py +18 -18
- ccxt/async_support/hollaex.py +13 -13
- ccxt/async_support/huobi.py +21 -21
- ccxt/async_support/huobijp.py +13 -13
- ccxt/async_support/idex.py +10 -10
- ccxt/async_support/independentreserve.py +5 -5
- ccxt/async_support/indodax.py +5 -5
- ccxt/async_support/kraken.py +14 -14
- ccxt/async_support/krakenfutures.py +3 -3
- ccxt/async_support/kucoin.py +13 -13
- ccxt/async_support/kucoinfutures.py +10 -10
- ccxt/async_support/kuna.py +6 -6
- ccxt/async_support/latoken.py +8 -8
- ccxt/async_support/lbank.py +6 -6
- ccxt/async_support/lbank2.py +12 -12
- ccxt/async_support/luno.py +7 -7
- ccxt/async_support/lykke.py +7 -7
- ccxt/async_support/mercado.py +6 -6
- ccxt/async_support/mexc.py +26 -61
- ccxt/async_support/ndax.py +10 -10
- ccxt/async_support/novadax.py +11 -11
- ccxt/async_support/oceanex.py +10 -10
- ccxt/async_support/okcoin.py +12 -12
- ccxt/async_support/okx.py +23 -23
- ccxt/async_support/paymium.py +2 -2
- ccxt/async_support/phemex.py +16 -16
- ccxt/async_support/poloniex.py +12 -12
- ccxt/async_support/poloniexfutures.py +10 -10
- ccxt/async_support/probit.py +14 -14
- ccxt/async_support/tidex.py +6 -6
- ccxt/async_support/timex.py +10 -10
- ccxt/async_support/tokocrypto.py +12 -12
- ccxt/async_support/upbit.py +10 -10
- ccxt/async_support/wavesexchange.py +9 -9
- ccxt/async_support/wazirx.py +7 -7
- ccxt/async_support/whitebit.py +12 -12
- ccxt/async_support/woo.py +9 -9
- ccxt/async_support/yobit.py +6 -6
- ccxt/async_support/zaif.py +4 -4
- ccxt/async_support/zonda.py +7 -7
- ccxt/base/exchange.py +13 -13
- ccxt/bigone.py +11 -11
- ccxt/binance.py +34 -34
- ccxt/bit2c.py +3 -3
- ccxt/bitbank.py +5 -5
- ccxt/bitbns.py +7 -7
- ccxt/bitfinex.py +13 -13
- ccxt/bitfinex2.py +11 -11
- ccxt/bitflyer.py +10 -10
- ccxt/bitforex.py +6 -6
- ccxt/bitget.py +18 -18
- ccxt/bithumb.py +5 -5
- ccxt/bitmart.py +13 -13
- ccxt/bitmex.py +15 -15
- ccxt/bitopro.py +12 -12
- ccxt/bitpanda.py +12 -12
- ccxt/bitrue.py +11 -11
- ccxt/bitso.py +13 -13
- ccxt/bitstamp.py +12 -12
- ccxt/bitstamp1.py +2 -2
- ccxt/bittrex.py +15 -15
- ccxt/bitvavo.py +11 -11
- ccxt/bkex.py +12 -12
- ccxt/bl3p.py +1 -1
- ccxt/blockchaincom.py +7 -7
- ccxt/btcalpha.py +10 -10
- ccxt/btcbox.py +3 -3
- ccxt/btcmarkets.py +10 -10
- ccxt/btctradeua.py +2 -2
- ccxt/btcturk.py +7 -7
- ccxt/bybit.py +19 -19
- ccxt/cex.py +7 -7
- ccxt/coinbase.py +11 -11
- ccxt/coinbasepro.py +12 -12
- ccxt/coincheck.py +5 -5
- ccxt/coinex.py +19 -19
- ccxt/coinfalcon.py +7 -7
- ccxt/coinmate.py +5 -5
- ccxt/coinone.py +6 -6
- ccxt/coinsph.py +11 -11
- ccxt/coinspot.py +2 -2
- ccxt/cryptocom.py +19 -18
- ccxt/currencycom.py +10 -10
- ccxt/delta.py +10 -10
- ccxt/deribit.py +14 -14
- ccxt/digifinex.py +17 -17
- ccxt/exmo.py +12 -12
- ccxt/gate.py +19 -19
- ccxt/gemini.py +6 -6
- ccxt/hitbtc.py +8 -8
- ccxt/hitbtc3.py +18 -18
- ccxt/hollaex.py +13 -13
- ccxt/huobi.py +21 -21
- ccxt/huobijp.py +13 -13
- ccxt/idex.py +10 -10
- ccxt/independentreserve.py +5 -5
- ccxt/indodax.py +5 -5
- ccxt/kraken.py +14 -14
- ccxt/krakenfutures.py +3 -3
- ccxt/kucoin.py +13 -13
- ccxt/kucoinfutures.py +10 -10
- ccxt/kuna.py +6 -6
- ccxt/latoken.py +8 -8
- ccxt/lbank.py +6 -6
- ccxt/lbank2.py +12 -12
- ccxt/luno.py +7 -7
- ccxt/lykke.py +7 -7
- ccxt/mercado.py +6 -6
- ccxt/mexc.py +26 -61
- ccxt/ndax.py +10 -10
- ccxt/novadax.py +11 -11
- ccxt/oceanex.py +10 -10
- ccxt/okcoin.py +12 -12
- ccxt/okx.py +23 -23
- ccxt/paymium.py +2 -2
- ccxt/phemex.py +16 -16
- ccxt/poloniex.py +12 -12
- ccxt/poloniexfutures.py +10 -10
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +4 -4
- ccxt/pro/ascendex.py +3 -3
- ccxt/pro/binance.py +5 -5
- ccxt/pro/bitfinex.py +2 -2
- ccxt/pro/bitfinex2.py +4 -4
- ccxt/pro/bitget.py +4 -4
- ccxt/pro/bitmart.py +3 -3
- ccxt/pro/bitmex.py +4 -4
- ccxt/pro/bitopro.py +1 -1
- ccxt/pro/bitpanda.py +3 -3
- ccxt/pro/bitrue.py +1 -1
- ccxt/pro/bitstamp.py +2 -2
- ccxt/pro/bittrex.py +4 -4
- ccxt/pro/bitvavo.py +4 -4
- ccxt/pro/blockchaincom.py +3 -3
- ccxt/pro/bybit.py +4 -4
- ccxt/pro/cex.py +5 -5
- ccxt/pro/coinbasepro.py +3 -3
- ccxt/pro/coinex.py +3 -3
- ccxt/pro/cryptocom.py +4 -4
- ccxt/pro/currencycom.py +2 -2
- ccxt/pro/deribit.py +4 -4
- ccxt/pro/exmo.py +2 -2
- ccxt/pro/gate.py +5 -5
- ccxt/pro/gemini.py +3 -3
- ccxt/pro/hitbtc.py +2 -2
- ccxt/pro/hollaex.py +3 -3
- ccxt/pro/huobi.py +4 -4
- ccxt/pro/huobijp.py +2 -2
- ccxt/pro/idex.py +3 -3
- ccxt/pro/independentreserve.py +1 -1
- ccxt/pro/kraken.py +4 -4
- ccxt/pro/krakenfutures.py +6 -6
- ccxt/pro/kucoin.py +4 -4
- ccxt/pro/kucoinfutures.py +2 -2
- ccxt/pro/luno.py +1 -1
- ccxt/pro/mexc.py +4 -4
- ccxt/pro/ndax.py +2 -2
- ccxt/pro/okcoin.py +3 -3
- ccxt/pro/okx.py +3 -3
- ccxt/pro/phemex.py +4 -4
- ccxt/pro/poloniexfutures.py +3 -3
- ccxt/pro/probit.py +2 -2
- ccxt/pro/upbit.py +1 -1
- ccxt/pro/wazirx.py +4 -4
- ccxt/pro/whitebit.py +4 -4
- ccxt/probit.py +14 -14
- ccxt/tidex.py +6 -6
- ccxt/timex.py +10 -10
- ccxt/tokocrypto.py +12 -12
- ccxt/upbit.py +10 -10
- ccxt/wavesexchange.py +9 -9
- ccxt/wazirx.py +7 -7
- ccxt/whitebit.py +12 -12
- ccxt/woo.py +9 -9
- ccxt/yobit.py +6 -6
- ccxt/zaif.py +4 -4
- ccxt/zonda.py +7 -7
- {ccxt-3.1.59.dist-info → ccxt-4.0.3.dist-info}/METADATA +4 -4
- ccxt-4.0.3.dist-info/RECORD +452 -0
- ccxt/async_support/btcex.py +0 -2519
- ccxt/async_support/buda.py +0 -1063
- ccxt/async_support/itbit.py +0 -771
- ccxt/async_support/ripio.py +0 -1102
- ccxt/async_support/stex.py +0 -2508
- ccxt/async_support/xt.py +0 -4420
- ccxt/async_support/zb.py +0 -4127
- ccxt/btcex.py +0 -2519
- ccxt/buda.py +0 -1063
- ccxt/itbit.py +0 -771
- ccxt/ripio.py +0 -1102
- ccxt/stex.py +0 -2508
- ccxt/xt.py +0 -4419
- ccxt/zb.py +0 -4126
- ccxt-3.1.59.dist-info/RECORD +0 -466
- {ccxt-3.1.59.dist-info → ccxt-4.0.3.dist-info}/WHEEL +0 -0
- {ccxt-3.1.59.dist-info → ccxt-4.0.3.dist-info}/top_level.txt +0 -0
ccxt/async_support/mercado.py
CHANGED
@@ -160,7 +160,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
160
160
|
"""
|
161
161
|
retrieves data on all markets for mercado
|
162
162
|
:param dict params: extra parameters specific to the exchange api endpoint
|
163
|
-
:returns [
|
163
|
+
:returns dict[]: an array of objects representing market data
|
164
164
|
"""
|
165
165
|
response = await self.publicGetCoins(params)
|
166
166
|
#
|
@@ -366,7 +366,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
366
366
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
367
367
|
:param int|None limit: the maximum amount of trades to fetch
|
368
368
|
:param dict params: extra parameters specific to the mercado api endpoint
|
369
|
-
:returns [
|
369
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
370
370
|
"""
|
371
371
|
await self.load_markets()
|
372
372
|
market = self.market(symbol)
|
@@ -700,7 +700,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
700
700
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
701
701
|
:param int|None limit: the maximum amount of candles to fetch
|
702
702
|
:param dict params: extra parameters specific to the mercado api endpoint
|
703
|
-
:returns [[
|
703
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
704
704
|
"""
|
705
705
|
await self.load_markets()
|
706
706
|
market = self.market(symbol)
|
@@ -727,7 +727,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
727
727
|
:param int|None since: the earliest time in ms to fetch orders for
|
728
728
|
:param int|None limit: the maximum number of orde structures to retrieve
|
729
729
|
:param dict params: extra parameters specific to the mercado api endpoint
|
730
|
-
:returns [
|
730
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
731
731
|
"""
|
732
732
|
if symbol is None:
|
733
733
|
raise ArgumentsRequired(self.id + ' fetchOrders() requires a symbol argument')
|
@@ -748,7 +748,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
748
748
|
:param int|None since: the earliest time in ms to fetch open orders for
|
749
749
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
750
750
|
:param dict params: extra parameters specific to the mercado api endpoint
|
751
|
-
:returns [
|
751
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
752
752
|
"""
|
753
753
|
if symbol is None:
|
754
754
|
raise ArgumentsRequired(self.id + ' fetchOpenOrders() requires a symbol argument')
|
@@ -770,7 +770,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
770
770
|
:param int|None since: the earliest time in ms to fetch trades for
|
771
771
|
:param int|None limit: the maximum number of trades structures to retrieve
|
772
772
|
:param dict params: extra parameters specific to the mercado api endpoint
|
773
|
-
:returns [
|
773
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
774
774
|
"""
|
775
775
|
if symbol is None:
|
776
776
|
raise ArgumentsRequired(self.id + ' fetchMyTrades() requires a symbol argument')
|
ccxt/async_support/mexc.py
CHANGED
@@ -802,7 +802,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
802
802
|
"""
|
803
803
|
retrieves data on all markets for mexc3
|
804
804
|
:param dict params: extra parameters specific to the exchange api endpoint
|
805
|
-
:returns [
|
805
|
+
:returns dict[]: an array of objects representing market data
|
806
806
|
"""
|
807
807
|
spotMarket = await self.fetch_spot_markets(params)
|
808
808
|
swapMarket = await self.fetch_swap_markets(params)
|
@@ -1108,7 +1108,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
1108
1108
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
1109
1109
|
:param int|None limit: the maximum amount of trades to fetch
|
1110
1110
|
:param dict params: extra parameters specific to the mexc3 api endpoint
|
1111
|
-
:returns [
|
1111
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
1112
1112
|
"""
|
1113
1113
|
await self.load_markets()
|
1114
1114
|
market = self.market(symbol)
|
@@ -1339,7 +1339,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
1339
1339
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
1340
1340
|
:param int|None limit: the maximum amount of candles to fetch
|
1341
1341
|
:param dict params: extra parameters specific to the mexc3 api endpoint
|
1342
|
-
:returns [[
|
1342
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
1343
1343
|
"""
|
1344
1344
|
await self.load_markets()
|
1345
1345
|
market = self.market(symbol)
|
@@ -1415,7 +1415,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
1415
1415
|
async def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
1416
1416
|
"""
|
1417
1417
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
1418
|
-
:param [
|
1418
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1419
1419
|
:param dict params: extra parameters specific to the mexc3 api endpoint
|
1420
1420
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
1421
1421
|
"""
|
@@ -1678,7 +1678,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
1678
1678
|
async def fetch_bids_asks(self, symbols: Optional[List[str]] = None, params={}):
|
1679
1679
|
"""
|
1680
1680
|
fetches the bid and ask price and volume for multiple markets
|
1681
|
-
:param [
|
1681
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
1682
1682
|
:param dict params: extra parameters specific to the mexc3 api endpoint
|
1683
1683
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
1684
1684
|
"""
|
@@ -2006,7 +2006,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
2006
2006
|
:param int|None limit: the maximum number of orde structures to retrieve
|
2007
2007
|
:param dict params: extra parameters specific to the mexc3 api endpoint
|
2008
2008
|
:param str|None params['marginMode']: only 'isolated' is supported, for spot-margin trading
|
2009
|
-
:returns [
|
2009
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
2010
2010
|
"""
|
2011
2011
|
await self.load_markets()
|
2012
2012
|
request = {}
|
@@ -2218,7 +2218,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
2218
2218
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
2219
2219
|
:param dict params: extra parameters specific to the mexc3 api endpoint
|
2220
2220
|
:param str|None params['marginMode']: only 'isolated' is supported, for spot-margin trading
|
2221
|
-
:returns [
|
2221
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
2222
2222
|
"""
|
2223
2223
|
await self.load_markets()
|
2224
2224
|
request = {}
|
@@ -2298,7 +2298,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
2298
2298
|
:param int|None since: the earliest time in ms to fetch orders for
|
2299
2299
|
:param int|None limit: the maximum number of orde structures to retrieve
|
2300
2300
|
:param dict params: extra parameters specific to the mexc3 api endpoint
|
2301
|
-
:returns [
|
2301
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
2302
2302
|
"""
|
2303
2303
|
return await self.fetch_orders_by_state(3, symbol, since, limit, params)
|
2304
2304
|
|
@@ -2426,7 +2426,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
2426
2426
|
async def cancel_orders(self, ids, symbol: Optional[str] = None, params={}):
|
2427
2427
|
"""
|
2428
2428
|
cancel multiple orders
|
2429
|
-
:param [
|
2429
|
+
:param str[] ids: order ids
|
2430
2430
|
:param str|None symbol: unified market symbol, default is None
|
2431
2431
|
:param dict params: extra parameters specific to the mexc3 api endpoint
|
2432
2432
|
:returns dict: an list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -2460,7 +2460,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
2460
2460
|
:param str|None symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
2461
2461
|
:param dict params: extra parameters specific to the mexc3 api endpoint
|
2462
2462
|
:param str|None params['marginMode']: only 'isolated' is supported for spot-margin trading
|
2463
|
-
:returns [
|
2463
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
2464
2464
|
"""
|
2465
2465
|
await self.load_markets()
|
2466
2466
|
market = self.market(symbol) if (symbol is not None) else None
|
@@ -3112,7 +3112,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
3112
3112
|
:param int|None since: the earliest time in ms to fetch trades for
|
3113
3113
|
:param int|None limit: the maximum number of trades structures to retrieve
|
3114
3114
|
:param dict params: extra parameters specific to the mexc3 api endpoint
|
3115
|
-
:returns [
|
3115
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
3116
3116
|
"""
|
3117
3117
|
if symbol is None:
|
3118
3118
|
raise ArgumentsRequired(self.id + ' fetchMyTrades() requires a symbol argument')
|
@@ -3193,7 +3193,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
3193
3193
|
:param int|None since: the earliest time in ms to fetch trades for
|
3194
3194
|
:param int|None limit: the maximum number of trades to retrieve
|
3195
3195
|
:param dict params: extra parameters specific to the mexc3 api endpoint
|
3196
|
-
:returns [
|
3196
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
3197
3197
|
"""
|
3198
3198
|
await self.load_markets()
|
3199
3199
|
request = {}
|
@@ -3471,7 +3471,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
3471
3471
|
:param int|None since: not used by mexc, but filtered internally by ccxt
|
3472
3472
|
:param int|None limit: mexc limit is page_size default 20, maximum is 100
|
3473
3473
|
:param dict params: extra parameters specific to the mexc api endpoint
|
3474
|
-
:returns [
|
3474
|
+
:returns dict[]: a list of `funding rate structures <https://docs.ccxt.com/en/latest/manual.html?#funding-rate-history-structure>`
|
3475
3475
|
"""
|
3476
3476
|
if symbol is None:
|
3477
3477
|
raise ArgumentsRequired(self.id + ' fetchFundingRateHistory() requires a symbol argument')
|
@@ -3530,7 +3530,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
3530
3530
|
async def fetch_leverage_tiers(self, symbols: Optional[List[str]] = None, params={}):
|
3531
3531
|
"""
|
3532
3532
|
retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
3533
|
-
:param [
|
3533
|
+
:param str[]|None symbols: list of unified market symbols
|
3534
3534
|
:param dict params: extra parameters specific to the mexc3 api endpoint
|
3535
3535
|
:returns dict: a dictionary of `leverage tiers structures <https://docs.ccxt.com/#/?id=leverage-tiers-structure>`, indexed by market symbols
|
3536
3536
|
"""
|
@@ -3586,43 +3586,8 @@ class mexc(Exchange, ImplicitAPI):
|
|
3586
3586
|
|
3587
3587
|
def parse_market_leverage_tiers(self, info, market=None):
|
3588
3588
|
"""
|
3589
|
-
@param info
|
3590
|
-
{
|
3591
|
-
"symbol": "BTC_USDT",
|
3592
|
-
"displayName": "BTC_USDT永续",
|
3593
|
-
"displayNameEn": "BTC_USDT SWAP",
|
3594
|
-
"positionOpenType": 3,
|
3595
|
-
"baseCoin": "BTC",
|
3596
|
-
"quoteCoin": "USDT",
|
3597
|
-
"settleCoin": "USDT",
|
3598
|
-
"contractSize": 0.0001,
|
3599
|
-
"minLeverage": 1,
|
3600
|
-
"maxLeverage": 125,
|
3601
|
-
"priceScale": 2,
|
3602
|
-
"volScale": 0,
|
3603
|
-
"amountScale": 4,
|
3604
|
-
"priceUnit": 0.5,
|
3605
|
-
"volUnit": 1,
|
3606
|
-
"minVol": 1,
|
3607
|
-
"maxVol": 1000000,
|
3608
|
-
"bidLimitPriceRate": 0.1,
|
3609
|
-
"askLimitPriceRate": 0.1,
|
3610
|
-
"takerFeeRate": 0.0006,
|
3611
|
-
"makerFeeRate": 0.0002,
|
3612
|
-
"maintenanceMarginRate": 0.004,
|
3613
|
-
"initialMarginRate": 0.008,
|
3614
|
-
"riskBaseVol": 10000,
|
3615
|
-
"riskIncrVol": 200000,
|
3616
|
-
"riskIncrMmr": 0.004,
|
3617
|
-
"riskIncrImr": 0.004,
|
3618
|
-
"riskLevelLimit": 5,
|
3619
|
-
"priceCoefficientVariation": 0.1,
|
3620
|
-
"indexOrigin": ["BINANCE","GATEIO","HUOBI","MXC"],
|
3621
|
-
"state": 0, # 0 enabled, 1 delivery, 2 completed, 3 offline, 4 pause
|
3622
|
-
"isNew": False,
|
3623
|
-
"isHot": True,
|
3624
|
-
"isHidden": False
|
3625
|
-
@param market: CCXT market
|
3589
|
+
@param info {object} Exchange response for 1 market
|
3590
|
+
@param market {object} CCXT market
|
3626
3591
|
"""
|
3627
3592
|
maintenanceMarginRate = self.safe_string(info, 'maintenanceMarginRate')
|
3628
3593
|
initialMarginRate = self.safe_string(info, 'initialMarginRate')
|
@@ -3773,7 +3738,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
3773
3738
|
:param int|None since: the earliest time in ms to fetch deposits for
|
3774
3739
|
:param int|None limit: the maximum number of deposits structures to retrieve
|
3775
3740
|
:param dict params: extra parameters specific to the mexc3 api endpoint
|
3776
|
-
:returns [
|
3741
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
3777
3742
|
"""
|
3778
3743
|
await self.load_markets()
|
3779
3744
|
request = {
|
@@ -3826,7 +3791,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
3826
3791
|
:param int|None since: the earliest time in ms to fetch withdrawals for
|
3827
3792
|
:param int|None limit: the maximum number of withdrawals structures to retrieve
|
3828
3793
|
:param dict params: extra parameters specific to the mexc3 api endpoint
|
3829
|
-
:returns [
|
3794
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
3830
3795
|
"""
|
3831
3796
|
await self.load_markets()
|
3832
3797
|
request = {
|
@@ -4001,9 +3966,9 @@ class mexc(Exchange, ImplicitAPI):
|
|
4001
3966
|
async def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
|
4002
3967
|
"""
|
4003
3968
|
fetch all open positions
|
4004
|
-
:param [
|
3969
|
+
:param str[]|None symbols: list of unified market symbols
|
4005
3970
|
:param dict params: extra parameters specific to the mexc3 api endpoint
|
4006
|
-
:returns [
|
3971
|
+
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
4007
3972
|
"""
|
4008
3973
|
await self.load_markets()
|
4009
3974
|
response = await self.contractPrivateGetPositionOpenPositions(params)
|
@@ -4138,7 +4103,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
4138
4103
|
:param int|None since: the earliest time in ms to fetch transfers for
|
4139
4104
|
:param int|None limit: the maximum number of transfers structures to retrieve
|
4140
4105
|
:param dict params: extra parameters specific to the mexc3 api endpoint
|
4141
|
-
:returns [
|
4106
|
+
:returns dict[]: a list of `transfer structures <https://docs.ccxt.com/#/?id=transfer-structure>`
|
4142
4107
|
"""
|
4143
4108
|
marketType, query = self.handle_market_type_and_params('fetchTransfers', None, params)
|
4144
4109
|
await self.load_markets()
|
@@ -4471,9 +4436,9 @@ class mexc(Exchange, ImplicitAPI):
|
|
4471
4436
|
"""
|
4472
4437
|
fetch deposit and withdrawal fees
|
4473
4438
|
see https://mxcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
|
4474
|
-
:param [
|
4439
|
+
:param str[]|None codes: returns fees for all currencies if None
|
4475
4440
|
:param dict params: extra parameters specific to the mexc3 api endpoint
|
4476
|
-
:returns [
|
4441
|
+
:returns dict[]: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
4477
4442
|
"""
|
4478
4443
|
await self.load_markets()
|
4479
4444
|
response = await self.spotPrivateGetCapitalConfigGetall(params)
|
@@ -4564,9 +4529,9 @@ class mexc(Exchange, ImplicitAPI):
|
|
4564
4529
|
"""
|
4565
4530
|
fetch deposit and withdrawal fees
|
4566
4531
|
see https://mxcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
|
4567
|
-
:param [
|
4532
|
+
:param str[]|None codes: returns fees for all currencies if None
|
4568
4533
|
:param dict params: extra parameters specific to the mexc3 api endpoint
|
4569
|
-
:returns [
|
4534
|
+
:returns dict[]: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
4570
4535
|
"""
|
4571
4536
|
await self.load_markets()
|
4572
4537
|
response = await self.spotPrivateGetCapitalConfigGetall(params)
|
@@ -4668,7 +4633,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
4668
4633
|
marginMode specified by params["marginMode"], self.options["marginMode"], self.options["defaultMarginMode"], params["margin"] = True or self.options["defaultType"] = 'margin'
|
4669
4634
|
:param dict params: extra parameters specific to the exchange api endpoint
|
4670
4635
|
:param bool|None params['margin']: True for trading spot-margin
|
4671
|
-
:returns
|
4636
|
+
:returns array: the marginMode in lowercase
|
4672
4637
|
"""
|
4673
4638
|
defaultType = self.safe_string(self.options, 'defaultType')
|
4674
4639
|
isMargin = self.safe_value(params, 'margin', False)
|
ccxt/async_support/ndax.py
CHANGED
@@ -381,7 +381,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
381
381
|
"""
|
382
382
|
retrieves data on all markets for ndax
|
383
383
|
:param dict params: extra parameters specific to the exchange api endpoint
|
384
|
-
:returns [
|
384
|
+
:returns dict[]: an array of objects representing market data
|
385
385
|
"""
|
386
386
|
omsId = self.safe_integer(self.options, 'omsId', 1)
|
387
387
|
request = {
|
@@ -715,7 +715,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
715
715
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
716
716
|
:param int|None limit: the maximum amount of candles to fetch
|
717
717
|
:param dict params: extra parameters specific to the ndax api endpoint
|
718
|
-
:returns [[
|
718
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
719
719
|
"""
|
720
720
|
omsId = self.safe_integer(self.options, 'omsId', 1)
|
721
721
|
await self.load_markets()
|
@@ -919,7 +919,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
919
919
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
920
920
|
:param int|None limit: the maximum amount of trades to fetch
|
921
921
|
:param dict params: extra parameters specific to the ndax api endpoint
|
922
|
-
:returns [
|
922
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
923
923
|
"""
|
924
924
|
omsId = self.safe_integer(self.options, 'omsId', 1)
|
925
925
|
await self.load_markets()
|
@@ -1363,7 +1363,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
1363
1363
|
:param int|None since: the earliest time in ms to fetch trades for
|
1364
1364
|
:param int|None limit: the maximum number of trades structures to retrieve
|
1365
1365
|
:param dict params: extra parameters specific to the ndax api endpoint
|
1366
|
-
:returns [
|
1366
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
1367
1367
|
"""
|
1368
1368
|
omsId = self.safe_integer(self.options, 'omsId', 1)
|
1369
1369
|
await self.load_markets()
|
@@ -1443,7 +1443,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
1443
1443
|
cancel all open orders
|
1444
1444
|
:param str|None symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
1445
1445
|
:param dict params: extra parameters specific to the ndax api endpoint
|
1446
|
-
:returns [
|
1446
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1447
1447
|
"""
|
1448
1448
|
omsId = self.safe_integer(self.options, 'omsId', 1)
|
1449
1449
|
await self.load_markets()
|
@@ -1510,7 +1510,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
1510
1510
|
:param int|None since: the earliest time in ms to fetch open orders for
|
1511
1511
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
1512
1512
|
:param dict params: extra parameters specific to the ndax api endpoint
|
1513
|
-
:returns [
|
1513
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1514
1514
|
"""
|
1515
1515
|
omsId = self.safe_integer(self.options, 'omsId', 1)
|
1516
1516
|
await self.load_markets()
|
@@ -1585,7 +1585,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
1585
1585
|
:param int|None since: the earliest time in ms to fetch orders for
|
1586
1586
|
:param int|None limit: the maximum number of orde structures to retrieve
|
1587
1587
|
:param dict params: extra parameters specific to the ndax api endpoint
|
1588
|
-
:returns [
|
1588
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1589
1589
|
"""
|
1590
1590
|
omsId = self.safe_integer(self.options, 'omsId', 1)
|
1591
1591
|
await self.load_markets()
|
@@ -1747,7 +1747,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
1747
1747
|
:param int|None since: the earliest time in ms to fetch trades for
|
1748
1748
|
:param int|None limit: the maximum number of trades to retrieve
|
1749
1749
|
:param dict params: extra parameters specific to the ndax api endpoint
|
1750
|
-
:returns [
|
1750
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
1751
1751
|
"""
|
1752
1752
|
omsId = self.safe_integer(self.options, 'omsId', 1)
|
1753
1753
|
await self.load_markets()
|
@@ -1907,7 +1907,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
1907
1907
|
:param int|None since: not used by ndax fetchDeposits
|
1908
1908
|
:param int|None limit: the maximum number of deposits structures to retrieve
|
1909
1909
|
:param dict params: extra parameters specific to the ndax api endpoint
|
1910
|
-
:returns [
|
1910
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
1911
1911
|
"""
|
1912
1912
|
omsId = self.safe_integer(self.options, 'omsId', 1)
|
1913
1913
|
await self.load_markets()
|
@@ -1962,7 +1962,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
1962
1962
|
:param int|None since: the earliest time in ms to fetch withdrawals for
|
1963
1963
|
:param int|None limit: the maximum number of withdrawals structures to retrieve
|
1964
1964
|
:param dict params: extra parameters specific to the ndax api endpoint
|
1965
|
-
:returns [
|
1965
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
1966
1966
|
"""
|
1967
1967
|
omsId = self.safe_integer(self.options, 'omsId', 1)
|
1968
1968
|
await self.load_markets()
|
ccxt/async_support/novadax.py
CHANGED
@@ -232,7 +232,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
232
232
|
"""
|
233
233
|
retrieves data on all markets for novadax
|
234
234
|
:param dict params: extra parameters specific to the exchange api endpoint
|
235
|
-
:returns [
|
235
|
+
:returns dict[]: an array of objects representing market data
|
236
236
|
"""
|
237
237
|
response = await self.publicGetCommonSymbols(params)
|
238
238
|
#
|
@@ -399,7 +399,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
399
399
|
async def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
400
400
|
"""
|
401
401
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
402
|
-
:param [
|
402
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
403
403
|
:param dict params: extra parameters specific to the novadax api endpoint
|
404
404
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
405
405
|
"""
|
@@ -557,7 +557,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
557
557
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
558
558
|
:param int|None limit: the maximum amount of trades to fetch
|
559
559
|
:param dict params: extra parameters specific to the novadax api endpoint
|
560
|
-
:returns [
|
560
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
561
561
|
"""
|
562
562
|
await self.load_markets()
|
563
563
|
market = self.market(symbol)
|
@@ -589,7 +589,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
589
589
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
590
590
|
:param int|None limit: the maximum amount of candles to fetch
|
591
591
|
:param dict params: extra parameters specific to the novadax api endpoint
|
592
|
-
:returns [[
|
592
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
593
593
|
"""
|
594
594
|
await self.load_markets()
|
595
595
|
market = self.market(symbol)
|
@@ -849,7 +849,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
849
849
|
:param int|None since: the earliest time in ms to fetch orders for
|
850
850
|
:param int|None limit: the maximum number of orde structures to retrieve
|
851
851
|
:param dict params: extra parameters specific to the novadax api endpoint
|
852
|
-
:returns [
|
852
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
853
853
|
"""
|
854
854
|
await self.load_markets()
|
855
855
|
request = {
|
@@ -903,7 +903,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
903
903
|
:param int|None since: the earliest time in ms to fetch open orders for
|
904
904
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
905
905
|
:param dict params: extra parameters specific to the novadax api endpoint
|
906
|
-
:returns [
|
906
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
907
907
|
"""
|
908
908
|
request = {
|
909
909
|
'status': 'SUBMITTED,PROCESSING,PARTIAL_FILLED,CANCELING',
|
@@ -917,7 +917,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
917
917
|
:param int|None since: the earliest time in ms to fetch orders for
|
918
918
|
:param int|None limit: the maximum number of orde structures to retrieve
|
919
919
|
:param dict params: extra parameters specific to the novadax api endpoint
|
920
|
-
:returns [
|
920
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
921
921
|
"""
|
922
922
|
request = {
|
923
923
|
'status': 'FILLED,CANCELED,REJECTED',
|
@@ -932,7 +932,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
932
932
|
:param int|None since: the earliest time in ms to fetch trades for
|
933
933
|
:param int|None limit: the maximum number of trades to retrieve
|
934
934
|
:param dict params: extra parameters specific to the novadax api endpoint
|
935
|
-
:returns [
|
935
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
936
936
|
"""
|
937
937
|
await self.load_markets()
|
938
938
|
request = {
|
@@ -1193,7 +1193,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
1193
1193
|
:param int|None since: the earliest time in ms to fetch deposits for
|
1194
1194
|
:param int|None limit: the maximum number of deposits structures to retrieve
|
1195
1195
|
:param dict params: extra parameters specific to the novadax api endpoint
|
1196
|
-
:returns [
|
1196
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
1197
1197
|
"""
|
1198
1198
|
request = {
|
1199
1199
|
'type': 'coin_in',
|
@@ -1207,7 +1207,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
1207
1207
|
:param int|None since: the earliest time in ms to fetch withdrawals for
|
1208
1208
|
:param int|None limit: the maximum number of withdrawals structures to retrieve
|
1209
1209
|
:param dict params: extra parameters specific to the novadax api endpoint
|
1210
|
-
:returns [
|
1210
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
1211
1211
|
"""
|
1212
1212
|
request = {
|
1213
1213
|
'type': 'coin_out',
|
@@ -1352,7 +1352,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
1352
1352
|
:param int|None since: the earliest time in ms to fetch trades for
|
1353
1353
|
:param int|None limit: the maximum number of trades structures to retrieve
|
1354
1354
|
:param dict params: extra parameters specific to the novadax api endpoint
|
1355
|
-
:returns [
|
1355
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
1356
1356
|
"""
|
1357
1357
|
await self.load_markets()
|
1358
1358
|
request = {
|
ccxt/async_support/oceanex.py
CHANGED
@@ -158,7 +158,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
158
158
|
"""
|
159
159
|
retrieves data on all markets for oceanex
|
160
160
|
:param dict params: extra parameters specific to the exchange api endpoint
|
161
|
-
:returns [
|
161
|
+
:returns dict[]: an array of objects representing market data
|
162
162
|
"""
|
163
163
|
request = {'show_details': True}
|
164
164
|
response = await self.publicGetMarkets(self.extend(request, params))
|
@@ -273,7 +273,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
273
273
|
async def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
274
274
|
"""
|
275
275
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
276
|
-
:param [
|
276
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
277
277
|
:param dict params: extra parameters specific to the oceanex api endpoint
|
278
278
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
279
279
|
"""
|
@@ -393,7 +393,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
393
393
|
async def fetch_order_books(self, symbols: Optional[List[str]] = None, limit: Optional[int] = None, params={}):
|
394
394
|
"""
|
395
395
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data for multiple markets
|
396
|
-
:param [
|
396
|
+
:param str[]|None symbols: list of unified market symbols, all symbols fetched if None, default is None
|
397
397
|
:param int|None limit: max number of entries per orderbook to return, default is None
|
398
398
|
:param dict params: extra parameters specific to the oceanex api endpoint
|
399
399
|
:returns dict: a dictionary of `order book structures <https://docs.ccxt.com/#/?id=order-book-structure>` indexed by market symbol
|
@@ -448,7 +448,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
448
448
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
449
449
|
:param int|None limit: the maximum amount of trades to fetch
|
450
450
|
:param dict params: extra parameters specific to the oceanex api endpoint
|
451
|
-
:returns [
|
451
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
452
452
|
"""
|
453
453
|
await self.load_markets()
|
454
454
|
market = self.market(symbol)
|
@@ -643,7 +643,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
643
643
|
:param int|None since: the earliest time in ms to fetch open orders for
|
644
644
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
645
645
|
:param dict params: extra parameters specific to the oceanex api endpoint
|
646
|
-
:returns [
|
646
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
647
647
|
"""
|
648
648
|
request = {
|
649
649
|
'states': ['wait'],
|
@@ -657,7 +657,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
657
657
|
:param int|None since: the earliest time in ms to fetch orders for
|
658
658
|
:param int|None limit: the maximum number of orde structures to retrieve
|
659
659
|
:param dict params: extra parameters specific to the oceanex api endpoint
|
660
|
-
:returns [
|
660
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
661
661
|
"""
|
662
662
|
request = {
|
663
663
|
'states': ['done', 'cancel'],
|
@@ -671,7 +671,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
671
671
|
:param int|None since: the earliest time in ms to fetch orders for
|
672
672
|
:param int|None limit: the maximum number of orde structures to retrieve
|
673
673
|
:param dict params: extra parameters specific to the oceanex api endpoint
|
674
|
-
:returns [
|
674
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
675
675
|
"""
|
676
676
|
if symbol is None:
|
677
677
|
raise ArgumentsRequired(self.id + ' fetchOrders() requires a `symbol` argument')
|
@@ -722,7 +722,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
722
722
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
723
723
|
:param int|None limit: the maximum amount of candles to fetch
|
724
724
|
:param dict params: extra parameters specific to the oceanex api endpoint
|
725
|
-
:returns [[
|
725
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
726
726
|
"""
|
727
727
|
await self.load_markets()
|
728
728
|
market = self.market(symbol)
|
@@ -828,7 +828,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
828
828
|
async def cancel_orders(self, ids, symbol: Optional[str] = None, params={}):
|
829
829
|
"""
|
830
830
|
cancel multiple orders
|
831
|
-
:param [
|
831
|
+
:param str[] ids: order ids
|
832
832
|
:param str|None symbol: not used by oceanex cancelOrders()
|
833
833
|
:param dict params: extra parameters specific to the oceanex api endpoint
|
834
834
|
:returns dict: an list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -843,7 +843,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
843
843
|
cancel all open orders
|
844
844
|
:param str|None symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
845
845
|
:param dict params: extra parameters specific to the oceanex api endpoint
|
846
|
-
:returns [
|
846
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
847
847
|
"""
|
848
848
|
await self.load_markets()
|
849
849
|
response = await self.privatePostOrdersClear(params)
|