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/huobi.py
CHANGED
@@ -1415,7 +1415,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
1415
1415
|
"""
|
1416
1416
|
retrieves data on all markets for huobi
|
1417
1417
|
:param dict params: extra parameters specific to the exchange api endpoint
|
1418
|
-
:returns [
|
1418
|
+
:returns dict[]: an array of objects representing market data
|
1419
1419
|
"""
|
1420
1420
|
options = self.safe_value(self.options, 'fetchMarkets', {})
|
1421
1421
|
types = self.safe_value(options, 'types', {})
|
@@ -1891,7 +1891,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
1891
1891
|
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-get-a-batch-of-market-data-overview
|
1892
1892
|
see https://huobiapi.github.io/docs/dm/v1/en/#get-a-batch-of-market-data-overview
|
1893
1893
|
see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-a-batch-of-market-data-overview-v2
|
1894
|
-
:param [
|
1894
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1895
1895
|
:param dict params: extra parameters specific to the huobi api endpoint
|
1896
1896
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
1897
1897
|
"""
|
@@ -2243,7 +2243,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
2243
2243
|
:param int|None since: the earliest time in ms to fetch trades for
|
2244
2244
|
:param int|None limit: the maximum number of trades to retrieve
|
2245
2245
|
:param dict params: extra parameters specific to the huobi api endpoint
|
2246
|
-
:returns [
|
2246
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
2247
2247
|
"""
|
2248
2248
|
market = None
|
2249
2249
|
if symbol is not None:
|
@@ -2272,7 +2272,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
2272
2272
|
:param int|None since: the earliest time in ms to fetch trades for
|
2273
2273
|
:param int|None limit: the maximum number of trades structures to retrieve
|
2274
2274
|
:param dict params: extra parameters specific to the huobi api endpoint
|
2275
|
-
:returns [
|
2275
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
2276
2276
|
"""
|
2277
2277
|
await self.load_markets()
|
2278
2278
|
market = None
|
@@ -2414,7 +2414,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
2414
2414
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
2415
2415
|
:param int|None limit: the maximum amount of trades to fetch
|
2416
2416
|
:param dict params: extra parameters specific to the huobi api endpoint
|
2417
|
-
:returns [
|
2417
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
2418
2418
|
"""
|
2419
2419
|
await self.load_markets()
|
2420
2420
|
market = self.market(symbol)
|
@@ -2508,7 +2508,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
2508
2508
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
2509
2509
|
:param int|None limit: the maximum amount of candles to fetch
|
2510
2510
|
:param dict params: extra parameters specific to the huobi api endpoint
|
2511
|
-
:returns [[
|
2511
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
2512
2512
|
"""
|
2513
2513
|
await self.load_markets()
|
2514
2514
|
market = self.market(symbol)
|
@@ -3591,7 +3591,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
3591
3591
|
:param dict params: extra parameters specific to the huobi api endpoint
|
3592
3592
|
:param bool|None params['stop']: *contract only* if the orders are stop trigger orders or not
|
3593
3593
|
:param bool|None params['stopLossTakeProfit']: *contract only* if the orders are stop-loss or take-profit orders
|
3594
|
-
:returns [
|
3594
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
3595
3595
|
"""
|
3596
3596
|
await self.load_markets()
|
3597
3597
|
market = None
|
@@ -3618,7 +3618,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
3618
3618
|
:param int|None since: the earliest time in ms to fetch orders for
|
3619
3619
|
:param int|None limit: the maximum number of orde structures to retrieve
|
3620
3620
|
:param dict params: extra parameters specific to the huobi api endpoint
|
3621
|
-
:returns [
|
3621
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
3622
3622
|
"""
|
3623
3623
|
await self.load_markets()
|
3624
3624
|
market = None
|
@@ -3644,7 +3644,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
3644
3644
|
:param dict params: extra parameters specific to the huobi api endpoint
|
3645
3645
|
:param bool|None params['stop']: *contract only* if the orders are stop trigger orders or not
|
3646
3646
|
:param bool|None params['stopLossTakeProfit']: *contract only* if the orders are stop-loss or take-profit orders
|
3647
|
-
:returns [
|
3647
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
3648
3648
|
"""
|
3649
3649
|
await self.load_markets()
|
3650
3650
|
market = None
|
@@ -4627,7 +4627,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
4627
4627
|
async def cancel_orders(self, ids, symbol: Optional[str] = None, params={}):
|
4628
4628
|
"""
|
4629
4629
|
cancel multiple orders
|
4630
|
-
:param [
|
4630
|
+
:param str[] ids: order ids
|
4631
4631
|
:param str|None symbol: unified market symbol, default is None
|
4632
4632
|
:param dict params: extra parameters specific to the huobi api endpoint
|
4633
4633
|
:param bool|None params['stop']: *contract only* if the orders are stop trigger orders or not
|
@@ -4777,7 +4777,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
4777
4777
|
:param dict params: extra parameters specific to the huobi api endpoint
|
4778
4778
|
:param bool|None params['stop']: *contract only* if the orders are stop trigger orders or not
|
4779
4779
|
:param bool|None params['stopLossTakeProfit']: *contract only* if the orders are stop-loss or take-profit orders
|
4780
|
-
:returns [
|
4780
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
4781
4781
|
"""
|
4782
4782
|
await self.load_markets()
|
4783
4783
|
market = None
|
@@ -4981,7 +4981,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
4981
4981
|
:param int|None since: the earliest time in ms to fetch deposits for
|
4982
4982
|
:param int|None limit: the maximum number of deposits structures to retrieve
|
4983
4983
|
:param dict params: extra parameters specific to the huobi api endpoint
|
4984
|
-
:returns [
|
4984
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
4985
4985
|
"""
|
4986
4986
|
if limit is None or limit > 100:
|
4987
4987
|
limit = 100
|
@@ -5034,7 +5034,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
5034
5034
|
:param int|None since: the earliest time in ms to fetch withdrawals for
|
5035
5035
|
:param int|None limit: the maximum number of withdrawals structures to retrieve
|
5036
5036
|
:param dict params: extra parameters specific to the huobi api endpoint
|
5037
|
-
:returns [
|
5037
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
5038
5038
|
"""
|
5039
5039
|
if limit is None or limit > 100:
|
5040
5040
|
limit = 100
|
@@ -5472,7 +5472,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
5472
5472
|
:param int|None since: not used by huobi, but filtered internally by ccxt
|
5473
5473
|
:param int|None limit: not used by huobi, but filtered internally by ccxt
|
5474
5474
|
:param dict params: extra parameters specific to the huobi api endpoint
|
5475
|
-
:returns [
|
5475
|
+
:returns dict[]: a list of `funding rate structures <https://docs.ccxt.com/en/latest/manual.html?#funding-rate-history-structure>`
|
5476
5476
|
"""
|
5477
5477
|
self.check_required_symbol('fetchFundingRateHistory', symbol)
|
5478
5478
|
await self.load_markets()
|
@@ -5610,7 +5610,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
5610
5610
|
async def fetch_funding_rates(self, symbols: Optional[List[str]] = None, params={}):
|
5611
5611
|
"""
|
5612
5612
|
fetch the funding rate for multiple markets
|
5613
|
-
:param [
|
5613
|
+
:param str[]|None symbols: list of unified market symbols
|
5614
5614
|
:param dict params: extra parameters specific to the huobi api endpoint
|
5615
5615
|
:returns dict: a dictionary of `funding rates structures <https://docs.ccxt.com/#/?id=funding-rates-structure>`, indexe by market symbols
|
5616
5616
|
"""
|
@@ -5659,7 +5659,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
5659
5659
|
:param int|None since: the earliest time in ms to fetch borrrow interest for
|
5660
5660
|
:param int|None limit: the maximum number of structures to retrieve
|
5661
5661
|
:param dict params: extra parameters specific to the huobi api endpoint
|
5662
|
-
:returns [
|
5662
|
+
:returns dict[]: a list of `borrow interest structures <https://docs.ccxt.com/#/?id=borrow-interest-structure>`
|
5663
5663
|
"""
|
5664
5664
|
await self.load_markets()
|
5665
5665
|
marginMode = None
|
@@ -6151,9 +6151,9 @@ class huobi(Exchange, ImplicitAPI):
|
|
6151
6151
|
async def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
|
6152
6152
|
"""
|
6153
6153
|
fetch all open positions
|
6154
|
-
:param [
|
6154
|
+
:param str[]|None symbols: list of unified market symbols
|
6155
6155
|
:param dict params: extra parameters specific to the huobi api endpoint
|
6156
|
-
:returns [
|
6156
|
+
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
6157
6157
|
"""
|
6158
6158
|
await self.load_markets()
|
6159
6159
|
symbols = self.market_symbols(symbols)
|
@@ -6642,7 +6642,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
6642
6642
|
async def fetch_leverage_tiers(self, symbols: Optional[List[str]] = None, params={}):
|
6643
6643
|
"""
|
6644
6644
|
retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
6645
|
-
:param [
|
6645
|
+
:param str[]|None symbols: list of unified market symbols
|
6646
6646
|
:param dict params: extra parameters specific to the huobi api endpoint
|
6647
6647
|
:returns dict: a dictionary of `leverage tiers structures <https://docs.ccxt.com/#/?id=leverage-tiers-structure>`, indexed by market symbols
|
6648
6648
|
"""
|
@@ -7261,9 +7261,9 @@ class huobi(Exchange, ImplicitAPI):
|
|
7261
7261
|
"""
|
7262
7262
|
fetch deposit and withdraw fees
|
7263
7263
|
see https://huobiapi.github.io/docs/spot/v1/en/#get-all-supported-currencies-v2
|
7264
|
-
:param [
|
7264
|
+
:param str[]|None codes: list of unified currency codes
|
7265
7265
|
:param dict params: extra parameters specific to the huobi api endpoint
|
7266
|
-
:returns [
|
7266
|
+
:returns dict[]: a list of `fees structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
7267
7267
|
"""
|
7268
7268
|
await self.load_markets()
|
7269
7269
|
response = await self.spotPublicGetV2ReferenceCurrencies(params)
|
ccxt/async_support/huobijp.py
CHANGED
@@ -422,7 +422,7 @@ class huobijp(Exchange, ImplicitAPI):
|
|
422
422
|
"""
|
423
423
|
retrieves data on all markets for huobijp
|
424
424
|
:param dict params: extra parameters specific to the exchange api endpoint
|
425
|
-
:returns [
|
425
|
+
:returns dict[]: an array of objects representing market data
|
426
426
|
"""
|
427
427
|
method = self.options['fetchMarketsMethod']
|
428
428
|
response = await getattr(self, method)(params)
|
@@ -697,7 +697,7 @@ class huobijp(Exchange, ImplicitAPI):
|
|
697
697
|
async def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
698
698
|
"""
|
699
699
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
700
|
-
:param [
|
700
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
701
701
|
:param dict params: extra parameters specific to the huobijp api endpoint
|
702
702
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
703
703
|
"""
|
@@ -805,7 +805,7 @@ class huobijp(Exchange, ImplicitAPI):
|
|
805
805
|
:param int|None since: the earliest time in ms to fetch trades for
|
806
806
|
:param int|None limit: the maximum number of trades to retrieve
|
807
807
|
:param dict params: extra parameters specific to the huobijp api endpoint
|
808
|
-
:returns [
|
808
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
809
809
|
"""
|
810
810
|
await self.load_markets()
|
811
811
|
request = {
|
@@ -821,7 +821,7 @@ class huobijp(Exchange, ImplicitAPI):
|
|
821
821
|
:param int|None since: the earliest time in ms to fetch trades for
|
822
822
|
:param int|None limit: the maximum number of trades structures to retrieve
|
823
823
|
:param dict params: extra parameters specific to the huobijp api endpoint
|
824
|
-
:returns [
|
824
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
825
825
|
"""
|
826
826
|
await self.load_markets()
|
827
827
|
market = None
|
@@ -844,7 +844,7 @@ class huobijp(Exchange, ImplicitAPI):
|
|
844
844
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
845
845
|
:param int|None limit: the maximum amount of trades to fetch
|
846
846
|
:param dict params: extra parameters specific to the huobijp api endpoint
|
847
|
-
:returns [
|
847
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
848
848
|
"""
|
849
849
|
await self.load_markets()
|
850
850
|
market = self.market(symbol)
|
@@ -918,7 +918,7 @@ class huobijp(Exchange, ImplicitAPI):
|
|
918
918
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
919
919
|
:param int|None limit: the maximum amount of candles to fetch
|
920
920
|
:param dict params: extra parameters specific to the huobijp api endpoint
|
921
|
-
:returns [[
|
921
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
922
922
|
"""
|
923
923
|
await self.load_markets()
|
924
924
|
market = self.market(symbol)
|
@@ -1135,7 +1135,7 @@ class huobijp(Exchange, ImplicitAPI):
|
|
1135
1135
|
:param int|None since: the earliest time in ms to fetch orders for
|
1136
1136
|
:param int|None limit: the maximum number of orde structures to retrieve
|
1137
1137
|
:param dict params: extra parameters specific to the huobijp api endpoint
|
1138
|
-
:returns [
|
1138
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1139
1139
|
"""
|
1140
1140
|
return await self.fetch_orders_by_states('pre-submitted,submitted,partial-filled,filled,partial-canceled,canceled', symbol, since, limit, params)
|
1141
1141
|
|
@@ -1146,7 +1146,7 @@ class huobijp(Exchange, ImplicitAPI):
|
|
1146
1146
|
:param int|None since: the earliest time in ms to fetch open orders for
|
1147
1147
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
1148
1148
|
:param dict params: extra parameters specific to the huobijp api endpoint
|
1149
|
-
:returns [
|
1149
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1150
1150
|
"""
|
1151
1151
|
method = self.safe_string(self.options, 'fetchOpenOrdersMethod', 'fetch_open_orders_v1')
|
1152
1152
|
return await getattr(self, method)(symbol, since, limit, params)
|
@@ -1163,7 +1163,7 @@ class huobijp(Exchange, ImplicitAPI):
|
|
1163
1163
|
:param int|None since: the earliest time in ms to fetch orders for
|
1164
1164
|
:param int|None limit: the maximum number of orde structures to retrieve
|
1165
1165
|
:param dict params: extra parameters specific to the huobijp api endpoint
|
1166
|
-
:returns [
|
1166
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1167
1167
|
"""
|
1168
1168
|
return await self.fetch_orders_by_states('filled,partial-canceled,canceled', symbol, since, limit, params)
|
1169
1169
|
|
@@ -1401,7 +1401,7 @@ class huobijp(Exchange, ImplicitAPI):
|
|
1401
1401
|
async def cancel_orders(self, ids, symbol: Optional[str] = None, params={}):
|
1402
1402
|
"""
|
1403
1403
|
cancel multiple orders
|
1404
|
-
:param [
|
1404
|
+
:param str[] ids: order ids
|
1405
1405
|
:param str|None symbol: not used by huobijp cancelOrders()
|
1406
1406
|
:param dict params: extra parameters specific to the huobijp api endpoint
|
1407
1407
|
:returns dict: an list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1454,7 +1454,7 @@ class huobijp(Exchange, ImplicitAPI):
|
|
1454
1454
|
cancel all open orders
|
1455
1455
|
:param str|None symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
1456
1456
|
:param dict params: extra parameters specific to the huobijp api endpoint
|
1457
|
-
:returns [
|
1457
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1458
1458
|
"""
|
1459
1459
|
await self.load_markets()
|
1460
1460
|
request = {
|
@@ -1527,7 +1527,7 @@ class huobijp(Exchange, ImplicitAPI):
|
|
1527
1527
|
:param int|None since: the earliest time in ms to fetch deposits for
|
1528
1528
|
:param int|None limit: the maximum number of deposits structures to retrieve
|
1529
1529
|
:param dict params: extra parameters specific to the huobijp api endpoint
|
1530
|
-
:returns [
|
1530
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
1531
1531
|
"""
|
1532
1532
|
if limit is None or limit > 100:
|
1533
1533
|
limit = 100
|
@@ -1554,7 +1554,7 @@ class huobijp(Exchange, ImplicitAPI):
|
|
1554
1554
|
:param int|None since: the earliest time in ms to fetch withdrawals for
|
1555
1555
|
:param int|None limit: the maximum number of withdrawals structures to retrieve
|
1556
1556
|
:param dict params: extra parameters specific to the huobijp api endpoint
|
1557
|
-
:returns [
|
1557
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
1558
1558
|
"""
|
1559
1559
|
if limit is None or limit > 100:
|
1560
1560
|
limit = 100
|
ccxt/async_support/idex.py
CHANGED
@@ -202,7 +202,7 @@ class idex(Exchange, ImplicitAPI):
|
|
202
202
|
"""
|
203
203
|
retrieves data on all markets for idex
|
204
204
|
:param dict params: extra parameters specific to the exchange api endpoint
|
205
|
-
:returns [
|
205
|
+
:returns dict[]: an array of objects representing market data
|
206
206
|
"""
|
207
207
|
response = await self.publicGetMarkets(params)
|
208
208
|
#
|
@@ -360,7 +360,7 @@ class idex(Exchange, ImplicitAPI):
|
|
360
360
|
async def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
361
361
|
"""
|
362
362
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
363
|
-
:param [
|
363
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
364
364
|
:param dict params: extra parameters specific to the idex api endpoint
|
365
365
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
366
366
|
"""
|
@@ -439,7 +439,7 @@ class idex(Exchange, ImplicitAPI):
|
|
439
439
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
440
440
|
:param int|None limit: the maximum amount of candles to fetch
|
441
441
|
:param dict params: extra parameters specific to the idex api endpoint
|
442
|
-
:returns [[
|
442
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
443
443
|
"""
|
444
444
|
await self.load_markets()
|
445
445
|
market = self.market(symbol)
|
@@ -494,7 +494,7 @@ class idex(Exchange, ImplicitAPI):
|
|
494
494
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
495
495
|
:param int|None limit: the maximum amount of trades to fetch
|
496
496
|
:param dict params: extra parameters specific to the idex api endpoint
|
497
|
-
:returns [
|
497
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
498
498
|
"""
|
499
499
|
await self.load_markets()
|
500
500
|
market = self.market(symbol)
|
@@ -801,7 +801,7 @@ class idex(Exchange, ImplicitAPI):
|
|
801
801
|
:param int|None since: the earliest time in ms to fetch trades for
|
802
802
|
:param int|None limit: the maximum number of trades structures to retrieve
|
803
803
|
:param dict params: extra parameters specific to the idex api endpoint
|
804
|
-
:returns [
|
804
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
805
805
|
"""
|
806
806
|
self.check_required_credentials()
|
807
807
|
await self.load_markets()
|
@@ -871,7 +871,7 @@ class idex(Exchange, ImplicitAPI):
|
|
871
871
|
:param int|None since: the earliest time in ms to fetch open orders for
|
872
872
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
873
873
|
:param dict params: extra parameters specific to the idex api endpoint
|
874
|
-
:returns [
|
874
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
875
875
|
"""
|
876
876
|
request = {
|
877
877
|
'closed': False,
|
@@ -885,7 +885,7 @@ class idex(Exchange, ImplicitAPI):
|
|
885
885
|
:param int|None since: the earliest time in ms to fetch orders for
|
886
886
|
:param int|None limit: the maximum number of orde structures to retrieve
|
887
887
|
:param dict params: extra parameters specific to the idex api endpoint
|
888
|
-
:returns [
|
888
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
889
889
|
"""
|
890
890
|
request = {
|
891
891
|
'closed': True,
|
@@ -1313,7 +1313,7 @@ class idex(Exchange, ImplicitAPI):
|
|
1313
1313
|
cancel all open orders
|
1314
1314
|
:param str|None symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
1315
1315
|
:param dict params: extra parameters specific to the idex api endpoint
|
1316
|
-
:returns [
|
1316
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1317
1317
|
"""
|
1318
1318
|
self.check_required_credentials()
|
1319
1319
|
await self.load_markets()
|
@@ -1414,7 +1414,7 @@ class idex(Exchange, ImplicitAPI):
|
|
1414
1414
|
:param int|None since: the earliest time in ms to fetch deposits for
|
1415
1415
|
:param int|None limit: the maximum number of deposits structures to retrieve
|
1416
1416
|
:param dict params: extra parameters specific to the idex api endpoint
|
1417
|
-
:returns [
|
1417
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
1418
1418
|
"""
|
1419
1419
|
params = self.extend({
|
1420
1420
|
'method': 'privateGetDeposits',
|
@@ -1458,7 +1458,7 @@ class idex(Exchange, ImplicitAPI):
|
|
1458
1458
|
:param int|None since: the earliest time in ms to fetch withdrawals for
|
1459
1459
|
:param int|None limit: the maximum number of withdrawals structures to retrieve
|
1460
1460
|
:param dict params: extra parameters specific to the idex api endpoint
|
1461
|
-
:returns [
|
1461
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
1462
1462
|
"""
|
1463
1463
|
params = self.extend({
|
1464
1464
|
'method': 'privateGetWithdrawals',
|
@@ -142,7 +142,7 @@ class independentreserve(Exchange, ImplicitAPI):
|
|
142
142
|
"""
|
143
143
|
retrieves data on all markets for independentreserve
|
144
144
|
:param dict params: extra parameters specific to the exchange api endpoint
|
145
|
-
:returns [
|
145
|
+
:returns dict[]: an array of objects representing market data
|
146
146
|
"""
|
147
147
|
baseCurrencies = await self.publicGetGetValidPrimaryCurrencyCodes(params)
|
148
148
|
# ['Xbt', 'Eth', 'Usdt', ...]
|
@@ -460,7 +460,7 @@ class independentreserve(Exchange, ImplicitAPI):
|
|
460
460
|
:param int|None since: the earliest time in ms to fetch open orders for
|
461
461
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
462
462
|
:param dict params: extra parameters specific to the independentreserve api endpoint
|
463
|
-
:returns [
|
463
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
464
464
|
"""
|
465
465
|
await self.load_markets()
|
466
466
|
request = self.ordered({})
|
@@ -484,7 +484,7 @@ class independentreserve(Exchange, ImplicitAPI):
|
|
484
484
|
:param int|None since: the earliest time in ms to fetch orders for
|
485
485
|
:param int|None limit: the maximum number of orde structures to retrieve
|
486
486
|
:param dict params: extra parameters specific to the independentreserve api endpoint
|
487
|
-
:returns [
|
487
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
488
488
|
"""
|
489
489
|
await self.load_markets()
|
490
490
|
request = self.ordered({})
|
@@ -508,7 +508,7 @@ class independentreserve(Exchange, ImplicitAPI):
|
|
508
508
|
:param int|None since: the earliest time in ms to fetch trades for
|
509
509
|
:param int|None limit: the maximum number of trades structures to retrieve
|
510
510
|
:param dict params: extra parameters specific to the independentreserve api endpoint
|
511
|
-
:returns [
|
511
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
512
512
|
"""
|
513
513
|
await self.load_markets()
|
514
514
|
pageIndex = self.safe_integer(params, 'pageIndex', 1)
|
@@ -568,7 +568,7 @@ class independentreserve(Exchange, ImplicitAPI):
|
|
568
568
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
569
569
|
:param int|None limit: the maximum amount of trades to fetch
|
570
570
|
:param dict params: extra parameters specific to the independentreserve api endpoint
|
571
|
-
:returns [
|
571
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
572
572
|
"""
|
573
573
|
await self.load_markets()
|
574
574
|
market = self.market(symbol)
|
ccxt/async_support/indodax.py
CHANGED
@@ -198,7 +198,7 @@ class indodax(Exchange, ImplicitAPI):
|
|
198
198
|
"""
|
199
199
|
retrieves data on all markets for indodax
|
200
200
|
:param dict params: extra parameters specific to the exchange api endpoint
|
201
|
-
:returns [
|
201
|
+
:returns dict[]: an array of objects representing market data
|
202
202
|
"""
|
203
203
|
response = await self.publicGetPairs(params)
|
204
204
|
#
|
@@ -440,7 +440,7 @@ class indodax(Exchange, ImplicitAPI):
|
|
440
440
|
"""
|
441
441
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
442
442
|
see https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#ticker-all
|
443
|
-
:param [
|
443
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
444
444
|
:param dict params: extra parameters specific to the indodax api endpoint
|
445
445
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
446
446
|
"""
|
@@ -490,7 +490,7 @@ class indodax(Exchange, ImplicitAPI):
|
|
490
490
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
491
491
|
:param int|None limit: the maximum amount of trades to fetch
|
492
492
|
:param dict params: extra parameters specific to the indodax api endpoint
|
493
|
-
:returns [
|
493
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
494
494
|
"""
|
495
495
|
await self.load_markets()
|
496
496
|
market = self.market(symbol)
|
@@ -608,7 +608,7 @@ class indodax(Exchange, ImplicitAPI):
|
|
608
608
|
:param int|None since: the earliest time in ms to fetch open orders for
|
609
609
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
610
610
|
:param dict params: extra parameters specific to the indodax api endpoint
|
611
|
-
:returns [
|
611
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
612
612
|
"""
|
613
613
|
await self.load_markets()
|
614
614
|
market = None
|
@@ -642,7 +642,7 @@ class indodax(Exchange, ImplicitAPI):
|
|
642
642
|
:param int|None since: the earliest time in ms to fetch orders for
|
643
643
|
:param int|None limit: the maximum number of orde structures to retrieve
|
644
644
|
:param dict params: extra parameters specific to the indodax api endpoint
|
645
|
-
:returns [
|
645
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
646
646
|
"""
|
647
647
|
if symbol is None:
|
648
648
|
raise ArgumentsRequired(self.id + ' fetchClosedOrders() requires a symbol argument')
|
ccxt/async_support/kraken.py
CHANGED
@@ -372,7 +372,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
372
372
|
"""
|
373
373
|
retrieves data on all markets for kraken
|
374
374
|
:param dict params: extra parameters specific to the exchange api endpoint
|
375
|
-
:returns [
|
375
|
+
:returns dict[]: an array of objects representing market data
|
376
376
|
"""
|
377
377
|
response = await self.publicGetAssetPairs(params)
|
378
378
|
#
|
@@ -763,7 +763,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
763
763
|
async def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
764
764
|
"""
|
765
765
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
766
|
-
:param [
|
766
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
767
767
|
:param dict params: extra parameters specific to the kraken api endpoint
|
768
768
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
769
769
|
"""
|
@@ -839,7 +839,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
839
839
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
840
840
|
:param int|None limit: the maximum amount of candles to fetch
|
841
841
|
:param dict params: extra parameters specific to the kraken api endpoint
|
842
|
-
:returns [[
|
842
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
843
843
|
"""
|
844
844
|
await self.load_markets()
|
845
845
|
market = self.market(symbol)
|
@@ -1105,7 +1105,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
1105
1105
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
1106
1106
|
:param int|None limit: the maximum amount of trades to fetch
|
1107
1107
|
:param dict params: extra parameters specific to the kraken api endpoint
|
1108
|
-
:returns [
|
1108
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
1109
1109
|
"""
|
1110
1110
|
await self.load_markets()
|
1111
1111
|
market = self.market(symbol)
|
@@ -1595,7 +1595,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
1595
1595
|
:param int|None since: the earliest time in ms to fetch trades for
|
1596
1596
|
:param int|None limit: the maximum number of trades to retrieve
|
1597
1597
|
:param dict params: extra parameters specific to the kraken api endpoint
|
1598
|
-
:returns [
|
1598
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
1599
1599
|
"""
|
1600
1600
|
orderTrades = self.safe_value(params, 'trades')
|
1601
1601
|
tradeIds = []
|
@@ -1680,7 +1680,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
1680
1680
|
:param int|None since: the earliest time in ms to fetch trades for
|
1681
1681
|
:param int|None limit: the maximum number of trades structures to retrieve
|
1682
1682
|
:param dict params: extra parameters specific to the kraken api endpoint
|
1683
|
-
:returns [
|
1683
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
1684
1684
|
"""
|
1685
1685
|
await self.load_markets()
|
1686
1686
|
request = {
|
@@ -1754,7 +1754,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
1754
1754
|
async def cancel_orders(self, ids, symbol: Optional[str] = None, params={}):
|
1755
1755
|
"""
|
1756
1756
|
cancel multiple orders
|
1757
|
-
:param [
|
1757
|
+
:param str[] ids: open orders transaction ID(txid) or user reference(userref)
|
1758
1758
|
:param str symbol: unified market symbol
|
1759
1759
|
:param dict params: extra parameters specific to the kraken api endpoint
|
1760
1760
|
:returns dict: an list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1778,7 +1778,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
1778
1778
|
cancel all open orders
|
1779
1779
|
:param str|None symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
1780
1780
|
:param dict params: extra parameters specific to the kraken api endpoint
|
1781
|
-
:returns [
|
1781
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1782
1782
|
"""
|
1783
1783
|
await self.load_markets()
|
1784
1784
|
return await self.privatePostCancelAll(params)
|
@@ -1790,7 +1790,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
1790
1790
|
:param int|None since: the earliest time in ms to fetch open orders for
|
1791
1791
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
1792
1792
|
:param dict params: extra parameters specific to the kraken api endpoint
|
1793
|
-
:returns [
|
1793
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1794
1794
|
"""
|
1795
1795
|
await self.load_markets()
|
1796
1796
|
request = {}
|
@@ -1816,7 +1816,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
1816
1816
|
:param int|None since: the earliest time in ms to fetch orders for
|
1817
1817
|
:param int|None limit: the maximum number of orde structures to retrieve
|
1818
1818
|
:param dict params: extra parameters specific to the kraken api endpoint
|
1819
|
-
:returns [
|
1819
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1820
1820
|
"""
|
1821
1821
|
await self.load_markets()
|
1822
1822
|
request = {}
|
@@ -2004,7 +2004,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
2004
2004
|
:param int|None since: the earliest time in ms to fetch deposits for
|
2005
2005
|
:param int|None limit: the maximum number of deposits structures to retrieve
|
2006
2006
|
:param dict params: extra parameters specific to the kraken api endpoint
|
2007
|
-
:returns [
|
2007
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
2008
2008
|
"""
|
2009
2009
|
# https://www.kraken.com/en-us/help/api#deposit-status
|
2010
2010
|
if code is None:
|
@@ -2057,7 +2057,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
2057
2057
|
:param int|None since: the earliest time in ms to fetch withdrawals for
|
2058
2058
|
:param int|None limit: the maximum number of withdrawals structures to retrieve
|
2059
2059
|
:param dict params: extra parameters specific to the kraken api endpoint
|
2060
|
-
:returns [
|
2060
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
2061
2061
|
"""
|
2062
2062
|
# https://www.kraken.com/en-us/help/api#withdraw-status
|
2063
2063
|
if code is None:
|
@@ -2235,9 +2235,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
2235
2235
|
async def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
|
2236
2236
|
"""
|
2237
2237
|
fetch all open positions
|
2238
|
-
:param [
|
2238
|
+
:param str[]|None symbols: not used by kraken fetchPositions()
|
2239
2239
|
:param dict params: extra parameters specific to the kraken api endpoint
|
2240
|
-
:returns [
|
2240
|
+
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
2241
2241
|
"""
|
2242
2242
|
await self.load_markets()
|
2243
2243
|
request = {
|
@@ -1520,9 +1520,9 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
1520
1520
|
"""
|
1521
1521
|
see https://docs.futures.kraken.com/#http-api-trading-v3-api-market-data-get-tickers
|
1522
1522
|
fetch the current funding rates
|
1523
|
-
:param [
|
1523
|
+
:param str[] symbols: unified market symbols
|
1524
1524
|
:param dict params: extra parameters specific to the krakenfutures api endpoint
|
1525
|
-
:returns [
|
1525
|
+
:returns dict[]: an array of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|
1526
1526
|
"""
|
1527
1527
|
await self.load_markets()
|
1528
1528
|
marketIds = self.market_ids(symbols)
|
@@ -1636,7 +1636,7 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
1636
1636
|
async def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
|
1637
1637
|
"""
|
1638
1638
|
Fetches current contract trading positions
|
1639
|
-
:param [
|
1639
|
+
:param str[] symbols: List of unified symbols
|
1640
1640
|
:param dict params: Not used by krakenfutures
|
1641
1641
|
:returns: Parsed exchange response for positions
|
1642
1642
|
"""
|