ccxt 4.0.75__py2.py3-none-any.whl → 4.0.77__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.
Potentially problematic release.
This version of ccxt might be problematic. Click here for more details.
- ccxt/__init__.py +1 -1
- ccxt/abstract/bingx.py +2 -0
- ccxt/abstract/coinsph.py +5 -0
- ccxt/abstract/gate.py +24 -0
- ccxt/abstract/gateio.py +24 -0
- ccxt/ace.py +2 -2
- ccxt/alpaca.py +1 -1
- ccxt/ascendex.py +3 -3
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +2 -2
- ccxt/async_support/alpaca.py +1 -1
- ccxt/async_support/ascendex.py +3 -3
- ccxt/async_support/base/exchange.py +3 -3
- ccxt/async_support/bigone.py +2 -2
- ccxt/async_support/binance.py +5 -5
- ccxt/async_support/bingx.py +72 -21
- ccxt/async_support/bit2c.py +2 -2
- ccxt/async_support/bitbank.py +2 -2
- ccxt/async_support/bitbns.py +2 -2
- ccxt/async_support/bitfinex.py +2 -2
- ccxt/async_support/bitfinex2.py +4 -4
- ccxt/async_support/bitflyer.py +2 -2
- ccxt/async_support/bitforex.py +2 -2
- ccxt/async_support/bitget.py +5 -5
- ccxt/async_support/bithumb.py +2 -2
- ccxt/async_support/bitmart.py +2 -2
- ccxt/async_support/bitmex.py +5 -5
- ccxt/async_support/bitopro.py +3 -3
- ccxt/async_support/bitpanda.py +2 -2
- ccxt/async_support/bitrue.py +3 -3
- ccxt/async_support/bitso.py +2 -2
- ccxt/async_support/bitstamp.py +2 -2
- ccxt/async_support/bitstamp1.py +2 -2
- ccxt/async_support/bittrex.py +3 -3
- ccxt/async_support/bitvavo.py +3 -3
- ccxt/async_support/bkex.py +4 -4
- ccxt/async_support/bl3p.py +2 -2
- ccxt/async_support/blockchaincom.py +1 -1
- ccxt/async_support/btcalpha.py +2 -2
- ccxt/async_support/btcbox.py +2 -2
- ccxt/async_support/btcmarkets.py +2 -2
- ccxt/async_support/btctradeua.py +2 -2
- ccxt/async_support/btcturk.py +2 -2
- ccxt/async_support/bybit.py +6 -6
- ccxt/async_support/cex.py +2 -2
- ccxt/async_support/coinbase.py +3 -3
- ccxt/async_support/coinbasepro.py +2 -2
- ccxt/async_support/coincheck.py +2 -2
- ccxt/async_support/coinex.py +6 -6
- ccxt/async_support/coinfalcon.py +2 -2
- ccxt/async_support/coinmate.py +2 -2
- ccxt/async_support/coinone.py +2 -2
- ccxt/async_support/coinsph.py +7 -2
- ccxt/async_support/coinspot.py +2 -2
- ccxt/async_support/cryptocom.py +5 -5
- ccxt/async_support/currencycom.py +2 -2
- ccxt/async_support/delta.py +2 -2
- ccxt/async_support/deribit.py +3 -3
- ccxt/async_support/digifinex.py +4 -4
- ccxt/async_support/exmo.py +2 -2
- ccxt/async_support/gate.py +46 -4
- ccxt/async_support/gemini.py +3 -3
- ccxt/async_support/hitbtc.py +4 -4
- ccxt/async_support/hollaex.py +3 -3
- ccxt/async_support/huobi.py +5 -5
- ccxt/async_support/huobijp.py +2 -2
- ccxt/async_support/idex.py +2 -2
- ccxt/async_support/independentreserve.py +2 -2
- ccxt/async_support/indodax.py +2 -2
- ccxt/async_support/kraken.py +2 -2
- ccxt/async_support/kucoin.py +4 -4
- ccxt/async_support/kucoinfutures.py +5 -5
- ccxt/async_support/kuna.py +2 -2
- ccxt/async_support/latoken.py +2 -2
- ccxt/async_support/lbank.py +2 -2
- ccxt/async_support/lbank2.py +2 -2
- ccxt/async_support/luno.py +2 -2
- ccxt/async_support/lykke.py +2 -2
- ccxt/async_support/mercado.py +2 -2
- ccxt/async_support/mexc.py +6 -3
- ccxt/async_support/ndax.py +2 -2
- ccxt/async_support/novadax.py +2 -2
- ccxt/async_support/oceanex.py +2 -2
- ccxt/async_support/okcoin.py +2 -2
- ccxt/async_support/okx.py +4 -4
- ccxt/async_support/paymium.py +2 -2
- ccxt/async_support/phemex.py +2 -2
- ccxt/async_support/poloniex.py +149 -68
- ccxt/async_support/poloniexfutures.py +2 -2
- ccxt/async_support/probit.py +2 -2
- ccxt/async_support/tidex.py +2 -2
- ccxt/async_support/timex.py +2 -2
- ccxt/async_support/tokocrypto.py +2 -2
- ccxt/async_support/upbit.py +2 -2
- ccxt/async_support/wavesexchange.py +3 -3
- ccxt/async_support/wazirx.py +2 -2
- ccxt/async_support/whitebit.py +4 -3
- ccxt/async_support/woo.py +2 -2
- ccxt/async_support/yobit.py +2 -2
- ccxt/async_support/zaif.py +2 -2
- ccxt/async_support/zonda.py +2 -2
- ccxt/base/exchange.py +3 -3
- ccxt/bigone.py +2 -2
- ccxt/binance.py +5 -5
- ccxt/bingx.py +72 -21
- ccxt/bit2c.py +2 -2
- ccxt/bitbank.py +2 -2
- ccxt/bitbns.py +2 -2
- ccxt/bitfinex.py +2 -2
- ccxt/bitfinex2.py +4 -4
- ccxt/bitflyer.py +2 -2
- ccxt/bitforex.py +2 -2
- ccxt/bitget.py +5 -5
- ccxt/bithumb.py +2 -2
- ccxt/bitmart.py +2 -2
- ccxt/bitmex.py +5 -5
- ccxt/bitopro.py +3 -3
- ccxt/bitpanda.py +2 -2
- ccxt/bitrue.py +3 -3
- ccxt/bitso.py +2 -2
- ccxt/bitstamp.py +2 -2
- ccxt/bitstamp1.py +2 -2
- ccxt/bittrex.py +3 -3
- ccxt/bitvavo.py +3 -3
- ccxt/bkex.py +4 -4
- ccxt/bl3p.py +2 -2
- ccxt/blockchaincom.py +1 -1
- ccxt/btcalpha.py +2 -2
- ccxt/btcbox.py +2 -2
- ccxt/btcmarkets.py +2 -2
- ccxt/btctradeua.py +2 -2
- ccxt/btcturk.py +2 -2
- ccxt/bybit.py +6 -6
- ccxt/cex.py +2 -2
- ccxt/coinbase.py +3 -3
- ccxt/coinbasepro.py +2 -2
- ccxt/coincheck.py +2 -2
- ccxt/coinex.py +6 -6
- ccxt/coinfalcon.py +2 -2
- ccxt/coinmate.py +2 -2
- ccxt/coinone.py +2 -2
- ccxt/coinsph.py +7 -2
- ccxt/coinspot.py +2 -2
- ccxt/cryptocom.py +5 -5
- ccxt/currencycom.py +2 -2
- ccxt/delta.py +2 -2
- ccxt/deribit.py +3 -3
- ccxt/digifinex.py +4 -4
- ccxt/exmo.py +2 -2
- ccxt/gate.py +46 -4
- ccxt/gemini.py +3 -3
- ccxt/hitbtc.py +4 -4
- ccxt/hollaex.py +3 -3
- ccxt/huobi.py +5 -5
- ccxt/huobijp.py +2 -2
- ccxt/idex.py +2 -2
- ccxt/independentreserve.py +2 -2
- ccxt/indodax.py +2 -2
- ccxt/kraken.py +2 -2
- ccxt/kucoin.py +4 -4
- ccxt/kucoinfutures.py +5 -5
- ccxt/kuna.py +2 -2
- ccxt/latoken.py +2 -2
- ccxt/lbank.py +2 -2
- ccxt/lbank2.py +2 -2
- ccxt/luno.py +2 -2
- ccxt/lykke.py +2 -2
- ccxt/mercado.py +2 -2
- ccxt/mexc.py +6 -3
- ccxt/ndax.py +2 -2
- ccxt/novadax.py +2 -2
- ccxt/oceanex.py +2 -2
- ccxt/okcoin.py +2 -2
- ccxt/okx.py +4 -4
- ccxt/paymium.py +2 -2
- ccxt/phemex.py +2 -2
- ccxt/poloniex.py +149 -68
- ccxt/poloniexfutures.py +2 -2
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/ascendex.py +2 -2
- ccxt/pro/binance.py +6 -6
- ccxt/pro/bitfinex.py +1 -1
- ccxt/pro/bitfinex2.py +2 -2
- ccxt/pro/bitget.py +2 -2
- ccxt/pro/bitmart.py +1 -1
- ccxt/pro/bitmex.py +2 -2
- ccxt/pro/bitopro.py +2 -2
- ccxt/pro/bitpanda.py +6 -6
- ccxt/pro/bitrue.py +1 -1
- ccxt/pro/bitstamp.py +1 -1
- ccxt/pro/bittrex.py +2 -2
- ccxt/pro/bitvavo.py +1 -1
- ccxt/pro/blockchaincom.py +5 -5
- ccxt/pro/bybit.py +1 -1
- ccxt/pro/cex.py +4 -4
- ccxt/pro/coinbase.py +5 -5
- ccxt/pro/coinbasepro.py +1 -1
- ccxt/pro/coinex.py +2 -2
- ccxt/pro/cryptocom.py +3 -3
- ccxt/pro/currencycom.py +2 -2
- ccxt/pro/deribit.py +3 -3
- ccxt/pro/exmo.py +3 -3
- ccxt/pro/gate.py +2 -2
- ccxt/pro/gemini.py +1 -1
- ccxt/pro/hitbtc.py +1 -1
- ccxt/pro/hollaex.py +2 -2
- ccxt/pro/huobi.py +2 -2
- ccxt/pro/huobijp.py +1 -1
- ccxt/pro/idex.py +1 -1
- ccxt/pro/independentreserve.py +1 -1
- ccxt/pro/kraken.py +6 -6
- ccxt/pro/krakenfutures.py +5 -5
- ccxt/pro/kucoin.py +2 -2
- ccxt/pro/kucoinfutures.py +3 -2
- ccxt/pro/luno.py +1 -1
- ccxt/pro/mexc.py +6 -6
- ccxt/pro/ndax.py +1 -1
- ccxt/pro/okcoin.py +2 -2
- ccxt/pro/okx.py +10 -7
- ccxt/pro/phemex.py +2 -2
- ccxt/pro/poloniex.py +6 -6
- ccxt/pro/poloniexfutures.py +5 -5
- ccxt/pro/probit.py +6 -6
- ccxt/pro/upbit.py +1 -1
- ccxt/pro/wazirx.py +3 -3
- ccxt/pro/whitebit.py +2 -2
- ccxt/probit.py +2 -2
- ccxt/tidex.py +2 -2
- ccxt/timex.py +2 -2
- ccxt/tokocrypto.py +2 -2
- ccxt/upbit.py +2 -2
- ccxt/wavesexchange.py +3 -3
- ccxt/wazirx.py +2 -2
- ccxt/whitebit.py +4 -3
- ccxt/woo.py +2 -2
- ccxt/yobit.py +2 -2
- ccxt/zaif.py +2 -2
- ccxt/zonda.py +2 -2
- {ccxt-4.0.75.dist-info → ccxt-4.0.77.dist-info}/METADATA +4 -4
- ccxt-4.0.77.dist-info/RECORD +456 -0
- ccxt-4.0.75.dist-info/RECORD +0 -456
- {ccxt-4.0.75.dist-info → ccxt-4.0.77.dist-info}/WHEEL +0 -0
- {ccxt-4.0.75.dist-info → ccxt-4.0.77.dist-info}/top_level.txt +0 -0
ccxt/async_support/hollaex.py
CHANGED
@@ -591,7 +591,7 @@ class hollaex(Exchange, ImplicitAPI):
|
|
591
591
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
592
592
|
:param int [limit]: the maximum amount of trades to fetch
|
593
593
|
:param dict [params]: extra parameters specific to the hollaex api endpoint
|
594
|
-
:returns Trade[]: a list of `trade structures <https://
|
594
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
595
595
|
"""
|
596
596
|
await self.load_markets()
|
597
597
|
market = self.market(symbol)
|
@@ -815,7 +815,7 @@ class hollaex(Exchange, ImplicitAPI):
|
|
815
815
|
"""
|
816
816
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
817
817
|
:param dict [params]: extra parameters specific to the hollaex api endpoint
|
818
|
-
:returns dict: a `balance structure <https://
|
818
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
819
819
|
"""
|
820
820
|
await self.load_markets()
|
821
821
|
response = await self.privateGetUserBalance(params)
|
@@ -1688,7 +1688,7 @@ class hollaex(Exchange, ImplicitAPI):
|
|
1688
1688
|
see https://apidocs.hollaex.com/#constants
|
1689
1689
|
:param str[]|None codes: list of unified currency codes
|
1690
1690
|
:param dict [params]: extra parameters specific to the hollaex api endpoint
|
1691
|
-
:returns dict: a list of `fee structures <https://
|
1691
|
+
:returns dict: a list of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
1692
1692
|
"""
|
1693
1693
|
response = await self.publicGetConstants(params)
|
1694
1694
|
#
|
ccxt/async_support/huobi.py
CHANGED
@@ -2420,7 +2420,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
2420
2420
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
2421
2421
|
:param int [limit]: the maximum amount of trades to fetch
|
2422
2422
|
:param dict [params]: extra parameters specific to the huobi api endpoint
|
2423
|
-
:returns Trade[]: a list of `trade structures <https://
|
2423
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
2424
2424
|
"""
|
2425
2425
|
await self.load_markets()
|
2426
2426
|
market = self.market(symbol)
|
@@ -2822,7 +2822,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
2822
2822
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
2823
2823
|
:param dict [params]: extra parameters specific to the huobi api endpoint
|
2824
2824
|
:param bool [params.unified]: provide self parameter if you have a recent account with unified cross+isolated margin account
|
2825
|
-
:returns dict: a `balance structure <https://
|
2825
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
2826
2826
|
"""
|
2827
2827
|
await self.load_markets()
|
2828
2828
|
type = None
|
@@ -4324,7 +4324,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
4324
4324
|
:param float amount: how much of currency you want to trade in units of base currency
|
4325
4325
|
:param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
4326
4326
|
:param dict params: extra parameters specific to the huobi api endpoint
|
4327
|
-
:returns dict: an `order structure <https://
|
4327
|
+
:returns dict: an `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
4328
4328
|
"""
|
4329
4329
|
await self.load_markets()
|
4330
4330
|
await self.load_accounts()
|
@@ -4443,7 +4443,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
4443
4443
|
:param float amount: how much of currency you want to trade in units of base currency
|
4444
4444
|
:param float [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
4445
4445
|
:param dict params: extra parameters specific to the huobi api endpoint
|
4446
|
-
:returns dict: an `order structure <https://
|
4446
|
+
:returns dict: an `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
4447
4447
|
"""
|
4448
4448
|
market = self.market(symbol)
|
4449
4449
|
request = {
|
@@ -5529,7 +5529,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
5529
5529
|
:param int [since]: not used by huobi, but filtered internally by ccxt
|
5530
5530
|
:param int [limit]: not used by huobi, but filtered internally by ccxt
|
5531
5531
|
:param dict [params]: extra parameters specific to the huobi api endpoint
|
5532
|
-
:returns dict[]: a list of `funding rate structures <https://
|
5532
|
+
:returns dict[]: a list of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure>`
|
5533
5533
|
"""
|
5534
5534
|
self.check_required_symbol('fetchFundingRateHistory', symbol)
|
5535
5535
|
await self.load_markets()
|
ccxt/async_support/huobijp.py
CHANGED
@@ -842,7 +842,7 @@ class huobijp(Exchange, ImplicitAPI):
|
|
842
842
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
843
843
|
:param int [limit]: the maximum amount of trades to fetch
|
844
844
|
:param dict [params]: extra parameters specific to the huobijp api endpoint
|
845
|
-
:returns Trade[]: a list of `trade structures <https://
|
845
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
846
846
|
"""
|
847
847
|
await self.load_markets()
|
848
848
|
market = self.market(symbol)
|
@@ -1070,7 +1070,7 @@ class huobijp(Exchange, ImplicitAPI):
|
|
1070
1070
|
"""
|
1071
1071
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1072
1072
|
:param dict [params]: extra parameters specific to the huobijp api endpoint
|
1073
|
-
:returns dict: a `balance structure <https://
|
1073
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
1074
1074
|
"""
|
1075
1075
|
await self.load_markets()
|
1076
1076
|
await self.load_accounts()
|
ccxt/async_support/idex.py
CHANGED
@@ -494,7 +494,7 @@ class idex(Exchange, ImplicitAPI):
|
|
494
494
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
495
495
|
:param int [limit]: the maximum amount of trades to fetch
|
496
496
|
:param dict [params]: extra parameters specific to the idex api endpoint
|
497
|
-
:returns Trade[]: a list of `trade structures <https://
|
497
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
498
498
|
"""
|
499
499
|
await self.load_markets()
|
500
500
|
market = self.market(symbol)
|
@@ -761,7 +761,7 @@ class idex(Exchange, ImplicitAPI):
|
|
761
761
|
"""
|
762
762
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
763
763
|
:param dict [params]: extra parameters specific to the idex api endpoint
|
764
|
-
:returns dict: a `balance structure <https://
|
764
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
765
765
|
"""
|
766
766
|
self.check_required_credentials()
|
767
767
|
await self.load_markets()
|
@@ -232,7 +232,7 @@ class independentreserve(Exchange, ImplicitAPI):
|
|
232
232
|
"""
|
233
233
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
234
234
|
:param dict [params]: extra parameters specific to the independentreserve api endpoint
|
235
|
-
:returns dict: a `balance structure <https://
|
235
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
236
236
|
"""
|
237
237
|
await self.load_markets()
|
238
238
|
response = await self.privatePostGetAccounts(params)
|
@@ -568,7 +568,7 @@ class independentreserve(Exchange, ImplicitAPI):
|
|
568
568
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
569
569
|
:param int [limit]: the maximum amount of trades to fetch
|
570
570
|
:param dict [params]: extra parameters specific to the independentreserve api endpoint
|
571
|
-
:returns Trade[]: a list of `trade structures <https://
|
571
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
572
572
|
"""
|
573
573
|
await self.load_markets()
|
574
574
|
market = self.market(symbol)
|
ccxt/async_support/indodax.py
CHANGED
@@ -313,7 +313,7 @@ class indodax(Exchange, ImplicitAPI):
|
|
313
313
|
"""
|
314
314
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
315
315
|
:param dict [params]: extra parameters specific to the indodax api endpoint
|
316
|
-
:returns dict: a `balance structure <https://
|
316
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
317
317
|
"""
|
318
318
|
await self.load_markets()
|
319
319
|
response = await self.privatePostGetInfo(params)
|
@@ -490,7 +490,7 @@ class indodax(Exchange, ImplicitAPI):
|
|
490
490
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
491
491
|
:param int [limit]: the maximum amount of trades to fetch
|
492
492
|
:param dict [params]: extra parameters specific to the indodax api endpoint
|
493
|
-
:returns Trade[]: a list of `trade structures <https://
|
493
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
494
494
|
"""
|
495
495
|
await self.load_markets()
|
496
496
|
market = self.market(symbol)
|
ccxt/async_support/kraken.py
CHANGED
@@ -1108,7 +1108,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
1108
1108
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1109
1109
|
:param int [limit]: the maximum amount of trades to fetch
|
1110
1110
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
1111
|
-
:returns Trade[]: a list of `trade structures <https://
|
1111
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
1112
1112
|
"""
|
1113
1113
|
await self.load_markets()
|
1114
1114
|
market = self.market(symbol)
|
@@ -1171,7 +1171,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
1171
1171
|
"""
|
1172
1172
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1173
1173
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
1174
|
-
:returns dict: a `balance structure <https://
|
1174
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
1175
1175
|
"""
|
1176
1176
|
await self.load_markets()
|
1177
1177
|
response = await self.privatePostBalance(params)
|
ccxt/async_support/kucoin.py
CHANGED
@@ -1170,7 +1170,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1170
1170
|
see https://docs.kucoin.com/#get-withdrawal-quotas
|
1171
1171
|
:param str code: unified currency code
|
1172
1172
|
:param dict params: extra parameters specific to the kucoin api endpoint
|
1173
|
-
:returns dict: a `fee structure <https://
|
1173
|
+
:returns dict: a `fee structure <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
1174
1174
|
"""
|
1175
1175
|
await self.load_markets()
|
1176
1176
|
currency = self.currency(code)
|
@@ -2442,7 +2442,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2442
2442
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
2443
2443
|
:param int [limit]: the maximum amount of trades to fetch
|
2444
2444
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
2445
|
-
:returns Trade[]: a list of `trade structures <https://
|
2445
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
2446
2446
|
"""
|
2447
2447
|
await self.load_markets()
|
2448
2448
|
market = self.market(symbol)
|
@@ -2947,7 +2947,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2947
2947
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
2948
2948
|
:param dict [params.marginMode]: 'cross' or 'isolated', margin type for fetching margin balance
|
2949
2949
|
:param dict [params.type]: extra parameters specific to the kucoin api endpoint
|
2950
|
-
:returns dict: a `balance structure <https://
|
2950
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
2951
2951
|
"""
|
2952
2952
|
await self.load_markets()
|
2953
2953
|
code = self.safe_string(params, 'code')
|
@@ -3767,7 +3767,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
3767
3767
|
see https://docs.kucoin.com/#get-currencies
|
3768
3768
|
:param str[]|None codes: list of unified currency codes
|
3769
3769
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
3770
|
-
:returns dict: a list of `fee structures <https://
|
3770
|
+
:returns dict: a list of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
3771
3771
|
"""
|
3772
3772
|
await self.load_markets()
|
3773
3773
|
response = await self.publicGetCurrencies(params)
|
@@ -843,7 +843,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
843
843
|
fetch data on an open position
|
844
844
|
:param str symbol: unified market symbol of the market the position is held in
|
845
845
|
:param dict [params]: extra parameters specific to the kucoinfutures api endpoint
|
846
|
-
:returns dict: a `position structure <https://
|
846
|
+
:returns dict: a `position structure <https://github.com/ccxt/ccxt/wiki/Manual#position-structure>`
|
847
847
|
"""
|
848
848
|
await self.load_markets()
|
849
849
|
market = self.market(symbol)
|
@@ -1709,7 +1709,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1709
1709
|
"""
|
1710
1710
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1711
1711
|
:param dict [params]: extra parameters specific to the kucoinfutures api endpoint
|
1712
|
-
:returns dict: a `balance structure <https://
|
1712
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
1713
1713
|
"""
|
1714
1714
|
await self.load_markets()
|
1715
1715
|
# only fetches one balance at a time
|
@@ -1871,7 +1871,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1871
1871
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1872
1872
|
:param int [limit]: the maximum amount of trades to fetch
|
1873
1873
|
:param dict [params]: extra parameters specific to the kucoinfutures api endpoint
|
1874
|
-
:returns Trade[]: a list of `trade structures <https://
|
1874
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
1875
1875
|
"""
|
1876
1876
|
await self.load_markets()
|
1877
1877
|
market = self.market(symbol)
|
@@ -2198,9 +2198,9 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
2198
2198
|
fetches historical funding rate prices
|
2199
2199
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
2200
2200
|
:param int [since]: not used by kucuoinfutures
|
2201
|
-
:param int [limit]: the maximum amount of `funding rate structures <https://
|
2201
|
+
:param int [limit]: the maximum amount of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure>` to fetch
|
2202
2202
|
:param dict [params]: extra parameters specific to the okx api endpoint
|
2203
|
-
:returns dict[]: a list of `funding rate structures <https://
|
2203
|
+
:returns dict[]: a list of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure>`
|
2204
2204
|
"""
|
2205
2205
|
if symbol is None:
|
2206
2206
|
raise ArgumentsRequired(self.id + ' fetchFundingRateHistory() requires a symbol argument')
|
ccxt/async_support/kuna.py
CHANGED
@@ -502,7 +502,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
502
502
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
503
503
|
:param int [limit]: the maximum amount of trades to fetch
|
504
504
|
:param dict [params]: extra parameters specific to the kuna api endpoint
|
505
|
-
:returns Trade[]: a list of `trade structures <https://
|
505
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
506
506
|
"""
|
507
507
|
await self.load_markets()
|
508
508
|
market = self.market(symbol)
|
@@ -630,7 +630,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
630
630
|
"""
|
631
631
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
632
632
|
:param dict [params]: extra parameters specific to the kuna api endpoint
|
633
|
-
:returns dict: a `balance structure <https://
|
633
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
634
634
|
"""
|
635
635
|
await self.load_markets()
|
636
636
|
response = await self.privateGetMembersMe(params)
|
ccxt/async_support/latoken.py
CHANGED
@@ -471,7 +471,7 @@ class latoken(Exchange, ImplicitAPI):
|
|
471
471
|
"""
|
472
472
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
473
473
|
:param dict [params]: extra parameters specific to the latoken api endpoint
|
474
|
-
:returns dict: a `balance structure <https://
|
474
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
475
475
|
"""
|
476
476
|
await self.load_markets()
|
477
477
|
response = await self.privateGetAuthAccount(params)
|
@@ -744,7 +744,7 @@ class latoken(Exchange, ImplicitAPI):
|
|
744
744
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
745
745
|
:param int [limit]: the maximum amount of trades to fetch
|
746
746
|
:param dict [params]: extra parameters specific to the latoken api endpoint
|
747
|
-
:returns Trade[]: a list of `trade structures <https://
|
747
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
748
748
|
"""
|
749
749
|
await self.load_markets()
|
750
750
|
market = self.market(symbol)
|
ccxt/async_support/lbank.py
CHANGED
@@ -383,7 +383,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
383
383
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
384
384
|
:param int [limit]: the maximum amount of trades to fetch
|
385
385
|
:param dict [params]: extra parameters specific to the lbank api endpoint
|
386
|
-
:returns Trade[]: a list of `trade structures <https://
|
386
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
387
387
|
"""
|
388
388
|
await self.load_markets()
|
389
389
|
market = self.market(symbol)
|
@@ -476,7 +476,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
476
476
|
"""
|
477
477
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
478
478
|
:param dict [params]: extra parameters specific to the lbank api endpoint
|
479
|
-
:returns dict: a `balance structure <https://
|
479
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
480
480
|
"""
|
481
481
|
await self.load_markets()
|
482
482
|
response = await self.privatePostUserInfo(params)
|
ccxt/async_support/lbank2.py
CHANGED
@@ -885,7 +885,7 @@ class lbank2(Exchange, ImplicitAPI):
|
|
885
885
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
886
886
|
:param int [limit]: the maximum amount of trades to fetch
|
887
887
|
:param dict [params]: extra parameters specific to the lbank2 api endpoint
|
888
|
-
:returns Trade[]: a list of `trade structures <https://
|
888
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
889
889
|
"""
|
890
890
|
await self.load_markets()
|
891
891
|
market = self.market(symbol)
|
@@ -1125,7 +1125,7 @@ class lbank2(Exchange, ImplicitAPI):
|
|
1125
1125
|
see https://www.lbank.info/en-US/docs/index.html#account-information
|
1126
1126
|
see https://www.lbank.info/en-US/docs/index.html#get-all-coins-information
|
1127
1127
|
:param dict [params]: extra parameters specific to the lbank2 api endpoint
|
1128
|
-
:returns dict: a `balance structure <https://
|
1128
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
1129
1129
|
"""
|
1130
1130
|
await self.load_markets()
|
1131
1131
|
method = self.safe_string(params, 'method')
|
ccxt/async_support/luno.py
CHANGED
@@ -299,7 +299,7 @@ class luno(Exchange, ImplicitAPI):
|
|
299
299
|
"""
|
300
300
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
301
301
|
:param dict [params]: extra parameters specific to the luno api endpoint
|
302
|
-
:returns dict: a `balance structure <https://
|
302
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
303
303
|
"""
|
304
304
|
await self.load_markets()
|
305
305
|
response = await self.privateGetBalance(params)
|
@@ -648,7 +648,7 @@ class luno(Exchange, ImplicitAPI):
|
|
648
648
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
649
649
|
:param int [limit]: the maximum amount of trades to fetch
|
650
650
|
:param dict [params]: extra parameters specific to the luno api endpoint
|
651
|
-
:returns Trade[]: a list of `trade structures <https://
|
651
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
652
652
|
"""
|
653
653
|
await self.load_markets()
|
654
654
|
market = self.market(symbol)
|
ccxt/async_support/lykke.py
CHANGED
@@ -603,7 +603,7 @@ class lykke(Exchange, ImplicitAPI):
|
|
603
603
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
604
604
|
:param int [limit]: the maximum amount of trades to fetch
|
605
605
|
:param dict [params]: extra parameters specific to the lykke api endpoint
|
606
|
-
:returns Trade[]: a list of `trade structures <https://
|
606
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
607
607
|
"""
|
608
608
|
await self.load_markets()
|
609
609
|
market = self.market(symbol)
|
@@ -660,7 +660,7 @@ class lykke(Exchange, ImplicitAPI):
|
|
660
660
|
"""
|
661
661
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
662
662
|
:param dict [params]: extra parameters specific to the lykke api endpoint
|
663
|
-
:returns dict: a `balance structure <https://
|
663
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
664
664
|
"""
|
665
665
|
await self.load_markets()
|
666
666
|
response = await self.privateGetBalance(params)
|
ccxt/async_support/mercado.py
CHANGED
@@ -366,7 +366,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
366
366
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
367
367
|
:param int [limit]: the maximum amount of trades to fetch
|
368
368
|
:param dict [params]: extra parameters specific to the mercado api endpoint
|
369
|
-
:returns Trade[]: a list of `trade structures <https://
|
369
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
370
370
|
"""
|
371
371
|
await self.load_markets()
|
372
372
|
market = self.market(symbol)
|
@@ -403,7 +403,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
403
403
|
"""
|
404
404
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
405
405
|
:param dict [params]: extra parameters specific to the mercado api endpoint
|
406
|
-
:returns dict: a `balance structure <https://
|
406
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
407
407
|
"""
|
408
408
|
await self.load_markets()
|
409
409
|
response = await self.privatePostGetAccountInfo(params)
|
ccxt/async_support/mexc.py
CHANGED
@@ -21,6 +21,7 @@ from ccxt.base.errors import InsufficientFunds
|
|
21
21
|
from ccxt.base.errors import InvalidAddress
|
22
22
|
from ccxt.base.errors import InvalidOrder
|
23
23
|
from ccxt.base.errors import NotSupported
|
24
|
+
from ccxt.base.errors import OnMaintenance
|
24
25
|
from ccxt.base.errors import InvalidNonce
|
25
26
|
from ccxt.base.errors import AuthenticationError
|
26
27
|
from ccxt.base.decimal_to_precision import TICK_SIZE
|
@@ -731,6 +732,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
731
732
|
'2003': InvalidOrder,
|
732
733
|
'2005': InsufficientFunds,
|
733
734
|
'400': BadRequest, # {"msg":"The start time cannot be earlier than 90 days","code":400}
|
735
|
+
# '500': OnMaintenance, # {"code": 500,"message": "Under maintenance, please try again later","announcement": "https://www.mexc.com/support/articles/17827791510263"}
|
734
736
|
'600': BadRequest,
|
735
737
|
'70011': PermissionDenied, # {"code":70011,"msg":"Pair user ban trade apikey."}
|
736
738
|
'88004': InsufficientFunds, # {"msg":"超出最大可借,最大可借币为:18.09833211","code":88004}
|
@@ -825,6 +827,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
825
827
|
'Bid price is great than max allow price': InvalidOrder, # code:2003
|
826
828
|
'Invalid symbol.': BadSymbol, # code:-1121
|
827
829
|
'Param error!': BadRequest, # code:600
|
830
|
+
'maintenance': OnMaintenance, # {"code": 500,"message": "Under maintenance, please try again later","announcement": "https://www.mexc.com/support/articles/17827791510263"}
|
828
831
|
},
|
829
832
|
},
|
830
833
|
})
|
@@ -1340,7 +1343,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
1340
1343
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1341
1344
|
:param int [limit]: the maximum amount of trades to fetch
|
1342
1345
|
:param dict [params]: extra parameters specific to the mexc3 api endpoint
|
1343
|
-
:returns Trade[]: a list of `trade structures <https://
|
1346
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
1344
1347
|
"""
|
1345
1348
|
await self.load_markets()
|
1346
1349
|
market = self.market(symbol)
|
@@ -3222,7 +3225,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
3222
3225
|
see https://mxcdevelop.github.io/apidocs/spot_v3_en/#isolated-account
|
3223
3226
|
:param dict [params]: extra parameters specific to the mexc3 api endpoint
|
3224
3227
|
:param str [params.symbols]: # required for margin, market id's separated by commas
|
3225
|
-
:returns dict: a `balance structure <https://
|
3228
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
3226
3229
|
"""
|
3227
3230
|
await self.load_markets()
|
3228
3231
|
marketType = None
|
@@ -3703,7 +3706,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
3703
3706
|
:param int [since]: not used by mexc, but filtered internally by ccxt
|
3704
3707
|
:param int [limit]: mexc limit is page_size default 20, maximum is 100
|
3705
3708
|
:param dict [params]: extra parameters specific to the mexc api endpoint
|
3706
|
-
:returns dict[]: a list of `funding rate structures <https://
|
3709
|
+
:returns dict[]: a list of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure>`
|
3707
3710
|
"""
|
3708
3711
|
if symbol is None:
|
3709
3712
|
raise ArgumentsRequired(self.id + ' fetchFundingRateHistory() requires a symbol argument')
|
ccxt/async_support/ndax.py
CHANGED
@@ -929,7 +929,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
929
929
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
930
930
|
:param int [limit]: the maximum amount of trades to fetch
|
931
931
|
:param dict [params]: extra parameters specific to the ndax api endpoint
|
932
|
-
:returns Trade[]: a list of `trade structures <https://
|
932
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
933
933
|
"""
|
934
934
|
omsId = self.safe_integer(self.options, 'omsId', 1)
|
935
935
|
await self.load_markets()
|
@@ -1001,7 +1001,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
1001
1001
|
"""
|
1002
1002
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1003
1003
|
:param dict [params]: extra parameters specific to the ndax api endpoint
|
1004
|
-
:returns dict: a `balance structure <https://
|
1004
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
1005
1005
|
"""
|
1006
1006
|
omsId = self.safe_integer(self.options, 'omsId', 1)
|
1007
1007
|
await self.load_markets()
|
ccxt/async_support/novadax.py
CHANGED
@@ -563,7 +563,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
563
563
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
564
564
|
:param int [limit]: the maximum amount of trades to fetch
|
565
565
|
:param dict [params]: extra parameters specific to the novadax api endpoint
|
566
|
-
:returns Trade[]: a list of `trade structures <https://
|
566
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
567
567
|
"""
|
568
568
|
await self.load_markets()
|
569
569
|
market = self.market(symbol)
|
@@ -686,7 +686,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
686
686
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
687
687
|
see https://doc.novadax.com/en-US/#get-account-balance
|
688
688
|
:param dict [params]: extra parameters specific to the novadax api endpoint
|
689
|
-
:returns dict: a `balance structure <https://
|
689
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
690
690
|
"""
|
691
691
|
await self.load_markets()
|
692
692
|
response = await self.privateGetAccountGetBalance(params)
|
ccxt/async_support/oceanex.py
CHANGED
@@ -454,7 +454,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
454
454
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
455
455
|
:param int [limit]: the maximum amount of trades to fetch
|
456
456
|
:param dict [params]: extra parameters specific to the oceanex api endpoint
|
457
|
-
:returns Trade[]: a list of `trade structures <https://
|
457
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
458
458
|
"""
|
459
459
|
await self.load_markets()
|
460
460
|
market = self.market(symbol)
|
@@ -589,7 +589,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
589
589
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
590
590
|
see https://api.oceanex.pro/doc/v1/#account-info-post
|
591
591
|
:param dict [params]: extra parameters specific to the oceanex api endpoint
|
592
|
-
:returns dict: a `balance structure <https://
|
592
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
593
593
|
"""
|
594
594
|
await self.load_markets()
|
595
595
|
response = await self.privateGetMembersMe(params)
|
ccxt/async_support/okcoin.py
CHANGED
@@ -1422,7 +1422,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
1422
1422
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1423
1423
|
:param int [limit]: the maximum amount of trades to fetch
|
1424
1424
|
:param dict [params]: extra parameters specific to the okcoin api endpoint
|
1425
|
-
:returns Trade[]: a list of `trade structures <https://
|
1425
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
1426
1426
|
"""
|
1427
1427
|
await self.load_markets()
|
1428
1428
|
market = self.market(symbol)
|
@@ -1781,7 +1781,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
1781
1781
|
"""
|
1782
1782
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1783
1783
|
:param dict [params]: extra parameters specific to the okcoin api endpoint
|
1784
|
-
:returns dict: a `balance structure <https://
|
1784
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
1785
1785
|
"""
|
1786
1786
|
defaultType = self.safe_string_2(self.options, 'fetchBalance', 'defaultType')
|
1787
1787
|
type = self.safe_string(params, 'type', defaultType)
|
ccxt/async_support/okx.py
CHANGED
@@ -1902,7 +1902,7 @@ class okx(Exchange, ImplicitAPI):
|
|
1902
1902
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1903
1903
|
:param int [limit]: the maximum amount of trades to fetch
|
1904
1904
|
:param dict [params]: extra parameters specific to the okx api endpoint
|
1905
|
-
:returns Trade[]: a list of `trade structures <https://
|
1905
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
1906
1906
|
"""
|
1907
1907
|
await self.load_markets()
|
1908
1908
|
market = self.market(symbol)
|
@@ -2065,9 +2065,9 @@ class okx(Exchange, ImplicitAPI):
|
|
2065
2065
|
fetches historical funding rate prices
|
2066
2066
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
2067
2067
|
:param int [since]: timestamp in ms of the earliest funding rate to fetch
|
2068
|
-
:param int [limit]: the maximum amount of `funding rate structures <https://
|
2068
|
+
:param int [limit]: the maximum amount of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure>` to fetch
|
2069
2069
|
:param dict [params]: extra parameters specific to the okx api endpoint
|
2070
|
-
:returns dict[]: a list of `funding rate structures <https://
|
2070
|
+
:returns dict[]: a list of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure>`
|
2071
2071
|
"""
|
2072
2072
|
if symbol is None:
|
2073
2073
|
raise ArgumentsRequired(self.id + ' fetchFundingRateHistory() requires a symbol argument')
|
@@ -2234,7 +2234,7 @@ class okx(Exchange, ImplicitAPI):
|
|
2234
2234
|
"""
|
2235
2235
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
2236
2236
|
:param dict [params]: extra parameters specific to the okx api endpoint
|
2237
|
-
:returns dict: a `balance structure <https://
|
2237
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
2238
2238
|
"""
|
2239
2239
|
await self.load_markets()
|
2240
2240
|
marketType, query = self.handle_market_type_and_params('fetchBalance', None, params)
|
ccxt/async_support/paymium.py
CHANGED
@@ -136,7 +136,7 @@ class paymium(Exchange, ImplicitAPI):
|
|
136
136
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
137
137
|
see https://paymium.github.io/api-documentation/#tag/User/paths/~1user/get
|
138
138
|
:param dict [params]: extra parameters specific to the paymium api endpoint
|
139
|
-
:returns dict: a `balance structure <https://
|
139
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
140
140
|
"""
|
141
141
|
await self.load_markets()
|
142
142
|
response = await self.privateGetUser(params)
|
@@ -273,7 +273,7 @@ class paymium(Exchange, ImplicitAPI):
|
|
273
273
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
274
274
|
:param int [limit]: the maximum amount of trades to fetch
|
275
275
|
:param dict [params]: extra parameters specific to the paymium api endpoint
|
276
|
-
:returns Trade[]: a list of `trade structures <https://
|
276
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
277
277
|
"""
|
278
278
|
await self.load_markets()
|
279
279
|
market = self.market(symbol)
|
ccxt/async_support/phemex.py
CHANGED
@@ -1340,7 +1340,7 @@ class phemex(Exchange, ImplicitAPI):
|
|
1340
1340
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1341
1341
|
:param int [limit]: the maximum amount of trades to fetch
|
1342
1342
|
:param dict [params]: extra parameters specific to the phemex api endpoint
|
1343
|
-
:returns Trade[]: a list of `trade structures <https://
|
1343
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
1344
1344
|
"""
|
1345
1345
|
await self.load_markets()
|
1346
1346
|
market = self.market(symbol)
|
@@ -1726,7 +1726,7 @@ class phemex(Exchange, ImplicitAPI):
|
|
1726
1726
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1727
1727
|
see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#query-account-positions
|
1728
1728
|
:param dict [params]: extra parameters specific to the phemex api endpoint
|
1729
|
-
:returns dict: a `balance structure <https://
|
1729
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
1730
1730
|
"""
|
1731
1731
|
await self.load_markets()
|
1732
1732
|
type = None
|