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/binance.py
CHANGED
@@ -1904,7 +1904,7 @@ class binance(Exchange, ImplicitAPI):
|
|
1904
1904
|
see https://binance-docs.github.io/apidocs/delivery/en/#exchange-information # future
|
1905
1905
|
see https://binance-docs.github.io/apidocs/voptions/en/#exchange-information # option
|
1906
1906
|
:param dict params: extra parameters specific to the exchange api endpoint
|
1907
|
-
:returns [
|
1907
|
+
:returns dict[]: an array of objects representing market data
|
1908
1908
|
"""
|
1909
1909
|
promisesRaw = []
|
1910
1910
|
rawFetchMarkets = self.safe_value(self.options, 'fetchMarkets', ['spot', 'linear', 'inverse'])
|
@@ -2395,7 +2395,7 @@ class binance(Exchange, ImplicitAPI):
|
|
2395
2395
|
:param dict params: extra parameters specific to the binance api endpoint
|
2396
2396
|
:param str|None params['type']: 'future', 'delivery', 'savings', 'funding', or 'spot'
|
2397
2397
|
:param str|None params['marginMode']: 'cross' or 'isolated', for margin trading, uses self.options.defaultMarginMode if not passed, defaults to None/None/None
|
2398
|
-
:param [
|
2398
|
+
:param str[]|None params['symbols']: unified market symbols, only used in isolated margin mode
|
2399
2399
|
:returns dict: a `balance structure <https://docs.ccxt.com/en/latest/manual.html?#balance-structure>`
|
2400
2400
|
"""
|
2401
2401
|
await self.load_markets()
|
@@ -2937,7 +2937,7 @@ class binance(Exchange, ImplicitAPI):
|
|
2937
2937
|
see https://binance-docs.github.io/apidocs/spot/en/#symbol-order-book-ticker # spot
|
2938
2938
|
see https://binance-docs.github.io/apidocs/futures/en/#symbol-order-book-ticker # swap
|
2939
2939
|
see https://binance-docs.github.io/apidocs/delivery/en/#symbol-order-book-ticker # future
|
2940
|
-
:param [
|
2940
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
2941
2941
|
:param dict params: extra parameters specific to the binance api endpoint
|
2942
2942
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
2943
2943
|
"""
|
@@ -2967,7 +2967,7 @@ class binance(Exchange, ImplicitAPI):
|
|
2967
2967
|
see https://binance-docs.github.io/apidocs/spot/en/#symbol-price-ticker # spot
|
2968
2968
|
see https://binance-docs.github.io/apidocs/future/en/#symbol-price-ticker # swap
|
2969
2969
|
see https://binance-docs.github.io/apidocs/delivery/en/#symbol-price-ticker # future
|
2970
|
-
:param [
|
2970
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the last prices
|
2971
2971
|
:param dict params: extra parameters specific to the binance api endpoint
|
2972
2972
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
2973
2973
|
"""
|
@@ -3067,7 +3067,7 @@ class binance(Exchange, ImplicitAPI):
|
|
3067
3067
|
see https://binance-docs.github.io/apidocs/futures/en/#24hr-ticker-price-change-statistics # swap
|
3068
3068
|
see https://binance-docs.github.io/apidocs/delivery/en/#24hr-ticker-price-change-statistics # future
|
3069
3069
|
see https://binance-docs.github.io/apidocs/voptions/en/#24hr-ticker-price-change-statistics # option
|
3070
|
-
:param [
|
3070
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
3071
3071
|
:param dict params: extra parameters specific to the binance api endpoint
|
3072
3072
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
3073
3073
|
"""
|
@@ -3166,7 +3166,7 @@ class binance(Exchange, ImplicitAPI):
|
|
3166
3166
|
:param dict params: extra parameters specific to the binance api endpoint
|
3167
3167
|
:param str|None params['price']: "mark" or "index" for mark price and index price candles
|
3168
3168
|
:param int|None params['until']: timestamp in ms of the latest candle to fetch
|
3169
|
-
:returns [[
|
3169
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
3170
3170
|
"""
|
3171
3171
|
await self.load_markets()
|
3172
3172
|
market = self.market(symbol)
|
@@ -3464,7 +3464,7 @@ class binance(Exchange, ImplicitAPI):
|
|
3464
3464
|
*
|
3465
3465
|
* EXCHANGE SPECIFIC PARAMETERS
|
3466
3466
|
:param int|None params['fromId']: trade id to fetch from, default gets most recent trades, not used when fetchTradesMethod is 'publicGetTrades', 'fapiPublicGetTrades', 'dapiPublicGetTrades', or 'eapiPublicGetTrades'
|
3467
|
-
:returns [
|
3467
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
3468
3468
|
"""
|
3469
3469
|
await self.load_markets()
|
3470
3470
|
market = self.market(symbol)
|
@@ -4302,7 +4302,7 @@ class binance(Exchange, ImplicitAPI):
|
|
4302
4302
|
:param int|None limit: the maximum number of order structures to retrieve
|
4303
4303
|
:param dict params: extra parameters specific to the binance api endpoint
|
4304
4304
|
:param str|None params['marginMode']: 'cross' or 'isolated', for spot margin trading
|
4305
|
-
:returns [
|
4305
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
4306
4306
|
"""
|
4307
4307
|
self.check_required_symbol('fetchOrders', symbol)
|
4308
4308
|
await self.load_markets()
|
@@ -4413,7 +4413,7 @@ class binance(Exchange, ImplicitAPI):
|
|
4413
4413
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
4414
4414
|
:param dict params: extra parameters specific to the binance api endpoint
|
4415
4415
|
:param str|None params['marginMode']: 'cross' or 'isolated', for spot margin trading
|
4416
|
-
:returns [
|
4416
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
4417
4417
|
"""
|
4418
4418
|
await self.load_markets()
|
4419
4419
|
market = None
|
@@ -4466,7 +4466,7 @@ class binance(Exchange, ImplicitAPI):
|
|
4466
4466
|
:param int|None since: the earliest time in ms to fetch orders for
|
4467
4467
|
:param int|None limit: the maximum number of order structures to retrieve
|
4468
4468
|
:param dict params: extra parameters specific to the binance api endpoint
|
4469
|
-
:returns [
|
4469
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
4470
4470
|
"""
|
4471
4471
|
orders = await self.fetch_orders(symbol, since, limit, params)
|
4472
4472
|
return self.filter_by(orders, 'status', 'closed')
|
@@ -4481,7 +4481,7 @@ class binance(Exchange, ImplicitAPI):
|
|
4481
4481
|
:param int|None since: the earliest time in ms to fetch orders for
|
4482
4482
|
:param int|None limit: the maximum number of order structures to retrieve
|
4483
4483
|
:param dict params: extra parameters specific to the binance api endpoint
|
4484
|
-
:returns [
|
4484
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
4485
4485
|
"""
|
4486
4486
|
self.check_required_symbol('fetchCanceledOrders', symbol)
|
4487
4487
|
await self.load_markets()
|
@@ -4546,7 +4546,7 @@ class binance(Exchange, ImplicitAPI):
|
|
4546
4546
|
:param str symbol: unified market symbol of the market to cancel orders in
|
4547
4547
|
:param dict params: extra parameters specific to the binance api endpoint
|
4548
4548
|
:param str|None params['marginMode']: 'cross' or 'isolated', for spot margin trading
|
4549
|
-
:returns [
|
4549
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
4550
4550
|
"""
|
4551
4551
|
self.check_required_symbol('cancelAllOrders', symbol)
|
4552
4552
|
await self.load_markets()
|
@@ -4582,7 +4582,7 @@ class binance(Exchange, ImplicitAPI):
|
|
4582
4582
|
:param int|None since: the earliest time in ms to fetch trades for
|
4583
4583
|
:param int|None limit: the maximum number of trades to retrieve
|
4584
4584
|
:param dict params: extra parameters specific to the binance api endpoint
|
4585
|
-
:returns [
|
4585
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
4586
4586
|
"""
|
4587
4587
|
if symbol is None:
|
4588
4588
|
raise ArgumentsRequired(self.id + ' fetchOrderTrades() requires a symbol argument')
|
@@ -4604,7 +4604,7 @@ class binance(Exchange, ImplicitAPI):
|
|
4604
4604
|
:param int|None since: the earliest time in ms to fetch trades for
|
4605
4605
|
:param int|None limit: the maximum number of trades structures to retrieve
|
4606
4606
|
:param dict params: extra parameters specific to the binance api endpoint
|
4607
|
-
:returns [
|
4607
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
4608
4608
|
"""
|
4609
4609
|
await self.load_markets()
|
4610
4610
|
request = {}
|
@@ -4727,7 +4727,7 @@ class binance(Exchange, ImplicitAPI):
|
|
4727
4727
|
:param int|None since: the earliest time in ms to fetch my dust trades for
|
4728
4728
|
:param int|None limit: the maximum number of dust trades to retrieve
|
4729
4729
|
:param dict params: extra parameters specific to the binance api endpoint
|
4730
|
-
:returns [
|
4730
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
4731
4731
|
"""
|
4732
4732
|
#
|
4733
4733
|
# Binance provides an opportunity to trade insignificant(i.e. non-tradable and non-withdrawable)
|
@@ -4857,7 +4857,7 @@ class binance(Exchange, ImplicitAPI):
|
|
4857
4857
|
:param dict params: extra parameters specific to the binance api endpoint
|
4858
4858
|
:param bool params['fiat']: if True, only fiat deposits will be returned
|
4859
4859
|
:param int|None params['until']: the latest time in ms to fetch deposits for
|
4860
|
-
:returns [
|
4860
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
4861
4861
|
"""
|
4862
4862
|
await self.load_markets()
|
4863
4863
|
currency = None
|
@@ -4948,7 +4948,7 @@ class binance(Exchange, ImplicitAPI):
|
|
4948
4948
|
:param int|None limit: the maximum number of withdrawals structures to retrieve
|
4949
4949
|
:param dict params: extra parameters specific to the binance api endpoint
|
4950
4950
|
:param bool params['fiat']: if True, only fiat withdrawals will be returned
|
4951
|
-
:returns [
|
4951
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
4952
4952
|
"""
|
4953
4953
|
await self.load_markets()
|
4954
4954
|
legalMoney = self.safe_value(self.options, 'legalMoney', {})
|
@@ -5374,7 +5374,7 @@ class binance(Exchange, ImplicitAPI):
|
|
5374
5374
|
:param int|None since: the earliest time in ms to fetch transfers for
|
5375
5375
|
:param int|None limit: the maximum number of transfers structures to retrieve
|
5376
5376
|
:param dict params: extra parameters specific to the binance api endpoint
|
5377
|
-
:returns [
|
5377
|
+
:returns dict[]: a list of `transfer structures <https://docs.ccxt.com/#/?id=transfer-structure>`
|
5378
5378
|
"""
|
5379
5379
|
await self.load_markets()
|
5380
5380
|
currency = None
|
@@ -5491,9 +5491,9 @@ class binance(Exchange, ImplicitAPI):
|
|
5491
5491
|
async def fetch_transaction_fees(self, codes=None, params={}):
|
5492
5492
|
"""
|
5493
5493
|
*DEPRECATED* please use fetchDepositWithdrawFees instead
|
5494
|
-
:param [
|
5494
|
+
:param str[]|None codes: not used by binance fetchTransactionFees()
|
5495
5495
|
:param dict params: extra parameters specific to the binance api endpoint
|
5496
|
-
:returns [
|
5496
|
+
:returns dict[]: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
5497
5497
|
"""
|
5498
5498
|
await self.load_markets()
|
5499
5499
|
response = await self.sapiGetCapitalConfigGetall(params)
|
@@ -5600,9 +5600,9 @@ class binance(Exchange, ImplicitAPI):
|
|
5600
5600
|
async def fetch_deposit_withdraw_fees(self, codes: Optional[List[str]] = None, params={}):
|
5601
5601
|
"""
|
5602
5602
|
fetch deposit and withdraw fees
|
5603
|
-
:param [
|
5603
|
+
:param str[]|None codes: not used by binance fetchDepositWithdrawFees()
|
5604
5604
|
:param dict params: extra parameters specific to the binance api endpoint
|
5605
|
-
:returns [
|
5605
|
+
:returns dict[]: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
5606
5606
|
"""
|
5607
5607
|
await self.load_markets()
|
5608
5608
|
response = await self.sapiGetCapitalConfigGetall(params)
|
@@ -6027,7 +6027,7 @@ class binance(Exchange, ImplicitAPI):
|
|
6027
6027
|
:param int|None limit: the maximum amount of `funding rate structures <https://docs.ccxt.com/en/latest/manual.html?#funding-rate-history-structure>` to fetch
|
6028
6028
|
:param dict params: extra parameters specific to the binance api endpoint
|
6029
6029
|
:param int|None params['until']: timestamp in ms of the latest funding rate
|
6030
|
-
:returns [
|
6030
|
+
:returns dict[]: a list of `funding rate structures <https://docs.ccxt.com/en/latest/manual.html?#funding-rate-history-structure>`
|
6031
6031
|
"""
|
6032
6032
|
await self.load_markets()
|
6033
6033
|
request = {}
|
@@ -6082,7 +6082,7 @@ class binance(Exchange, ImplicitAPI):
|
|
6082
6082
|
async def fetch_funding_rates(self, symbols: Optional[List[str]] = None, params={}):
|
6083
6083
|
"""
|
6084
6084
|
fetch the funding rate for multiple markets
|
6085
|
-
:param [
|
6085
|
+
:param str[]|None symbols: list of unified market symbols
|
6086
6086
|
:param dict params: extra parameters specific to the binance api endpoint
|
6087
6087
|
:returns dict: a dictionary of `funding rates structures <https://docs.ccxt.com/#/?id=funding-rates-structure>`, indexe by market symbols
|
6088
6088
|
"""
|
@@ -6558,7 +6558,7 @@ class binance(Exchange, ImplicitAPI):
|
|
6558
6558
|
async def fetch_leverage_tiers(self, symbols: Optional[List[str]] = None, params={}):
|
6559
6559
|
"""
|
6560
6560
|
retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
6561
|
-
:param [
|
6561
|
+
:param str[]|None symbols: list of unified market symbols
|
6562
6562
|
:param dict params: extra parameters specific to the binance api endpoint
|
6563
6563
|
:returns dict: a dictionary of `leverage tiers structures <https://docs.ccxt.com/#/?id=leverage-tiers-structure>`, indexed by market symbols
|
6564
6564
|
"""
|
@@ -6698,9 +6698,9 @@ class binance(Exchange, ImplicitAPI):
|
|
6698
6698
|
"""
|
6699
6699
|
see https://binance-docs.github.io/apidocs/voptions/en/#option-position-information-user_data
|
6700
6700
|
fetch data on open options positions
|
6701
|
-
:param [
|
6701
|
+
:param str[]|None symbols: list of unified market symbols
|
6702
6702
|
:param dict params: extra parameters specific to the binance api endpoint
|
6703
|
-
:returns [
|
6703
|
+
:returns dict[]: a list of `position structures <https://docs.ccxt.com/#/?id=position-structure>`
|
6704
6704
|
"""
|
6705
6705
|
await self.load_markets()
|
6706
6706
|
symbols = self.market_symbols(symbols)
|
@@ -6805,9 +6805,9 @@ class binance(Exchange, ImplicitAPI):
|
|
6805
6805
|
async def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
|
6806
6806
|
"""
|
6807
6807
|
fetch all open positions
|
6808
|
-
:param [
|
6808
|
+
:param str[]|None symbols: list of unified market symbols
|
6809
6809
|
:param dict params: extra parameters specific to the binance api endpoint
|
6810
|
-
:returns [
|
6810
|
+
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
6811
6811
|
"""
|
6812
6812
|
defaultMethod = self.safe_string(self.options, 'fetchPositions', 'positionRisk')
|
6813
6813
|
if defaultMethod == 'positionRisk':
|
@@ -6822,7 +6822,7 @@ class binance(Exchange, ImplicitAPI):
|
|
6822
6822
|
async def fetch_account_positions(self, symbols: Optional[List[str]] = None, params={}):
|
6823
6823
|
"""
|
6824
6824
|
fetch account positions
|
6825
|
-
:param [
|
6825
|
+
:param str[]|None symbols: list of unified market symbols
|
6826
6826
|
:param dict params: extra parameters specific to the binance api endpoint
|
6827
6827
|
:returns dict: data on account positions
|
6828
6828
|
"""
|
@@ -6851,7 +6851,7 @@ class binance(Exchange, ImplicitAPI):
|
|
6851
6851
|
async def fetch_positions_risk(self, symbols: Optional[List[str]] = None, params={}):
|
6852
6852
|
"""
|
6853
6853
|
fetch positions risk
|
6854
|
-
:param [
|
6854
|
+
:param str[]|None symbols: list of unified market symbols
|
6855
6855
|
:param dict params: extra parameters specific to the binance api endpoint
|
6856
6856
|
:returns dict: data on the positions risk
|
6857
6857
|
"""
|
@@ -7098,7 +7098,7 @@ class binance(Exchange, ImplicitAPI):
|
|
7098
7098
|
:param int since: timestamp in ms
|
7099
7099
|
:param int limit: number of records, default 100, max 100
|
7100
7100
|
:param dict params: exchange specific params
|
7101
|
-
:returns [
|
7101
|
+
:returns dict[]: a list of [settlement history objects]
|
7102
7102
|
"""
|
7103
7103
|
await self.load_markets()
|
7104
7104
|
market = None if (symbol is None) else self.market(symbol)
|
@@ -7575,7 +7575,7 @@ class binance(Exchange, ImplicitAPI):
|
|
7575
7575
|
:param int|None since: timestamp for the earliest borrow rate
|
7576
7576
|
:param int|None limit: the maximum number of `borrow rate structures <https://docs.ccxt.com/#/?id=borrow-rate-structure>` to retrieve
|
7577
7577
|
:param dict params: extra parameters specific to the exchange api endpoint
|
7578
|
-
:returns [
|
7578
|
+
:returns dict[]: an array of `borrow rate structures <https://docs.ccxt.com/#/?id=borrow-rate-structure>`
|
7579
7579
|
"""
|
7580
7580
|
await self.load_markets()
|
7581
7581
|
if limit is None:
|
@@ -7723,7 +7723,7 @@ class binance(Exchange, ImplicitAPI):
|
|
7723
7723
|
:param int|None since: the earliest time in ms to fetch borrrow interest for
|
7724
7724
|
:param int|None limit: the maximum number of structures to retrieve
|
7725
7725
|
:param dict params: extra parameters specific to the binance api endpoint
|
7726
|
-
:returns [
|
7726
|
+
:returns dict[]: a list of `borrow interest structures <https://docs.ccxt.com/#/?id=borrow-interest-structure>`
|
7727
7727
|
"""
|
7728
7728
|
await self.load_markets()
|
7729
7729
|
request = {}
|
ccxt/async_support/bit2c.py
CHANGED
@@ -323,7 +323,7 @@ class bit2c(Exchange, ImplicitAPI):
|
|
323
323
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
324
324
|
:param int|None limit: the maximum amount of trades to fetch
|
325
325
|
:param dict params: extra parameters specific to the bit2c api endpoint
|
326
|
-
:returns [
|
326
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
327
327
|
"""
|
328
328
|
await self.load_markets()
|
329
329
|
market = self.market(symbol)
|
@@ -439,7 +439,7 @@ class bit2c(Exchange, ImplicitAPI):
|
|
439
439
|
:param int|None since: the earliest time in ms to fetch open orders for
|
440
440
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
441
441
|
:param dict params: extra parameters specific to the bit2c api endpoint
|
442
|
-
:returns [
|
442
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
443
443
|
"""
|
444
444
|
if symbol is None:
|
445
445
|
raise ArgumentsRequired(self.id + ' fetchOpenOrders() requires a symbol argument')
|
@@ -597,7 +597,7 @@ class bit2c(Exchange, ImplicitAPI):
|
|
597
597
|
:param int|None since: the earliest time in ms to fetch trades for
|
598
598
|
:param int|None limit: the maximum number of trades structures to retrieve
|
599
599
|
:param dict params: extra parameters specific to the bit2c api endpoint
|
600
|
-
:returns [
|
600
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
601
601
|
"""
|
602
602
|
await self.load_markets()
|
603
603
|
market = None
|
ccxt/async_support/bitbank.py
CHANGED
@@ -164,7 +164,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
164
164
|
"""
|
165
165
|
retrieves data on all markets for bitbank
|
166
166
|
:param dict params: extra parameters specific to the exchange api endpoint
|
167
|
-
:returns [
|
167
|
+
:returns dict[]: an array of objects representing market data
|
168
168
|
"""
|
169
169
|
response = await self.marketsGetSpotPairs(params)
|
170
170
|
#
|
@@ -357,7 +357,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
357
357
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
358
358
|
:param int|None limit: the maximum amount of trades to fetch
|
359
359
|
:param dict params: extra parameters specific to the bitbank api endpoint
|
360
|
-
:returns [
|
360
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
361
361
|
"""
|
362
362
|
await self.load_markets()
|
363
363
|
market = self.market(symbol)
|
@@ -451,7 +451,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
451
451
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
452
452
|
:param int|None limit: the maximum amount of candles to fetch
|
453
453
|
:param dict params: extra parameters specific to the bitbank api endpoint
|
454
|
-
:returns [[
|
454
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
455
455
|
"""
|
456
456
|
if since is None:
|
457
457
|
if limit is None:
|
@@ -667,7 +667,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
667
667
|
:param int|None since: the earliest time in ms to fetch open orders for
|
668
668
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
669
669
|
:param dict params: extra parameters specific to the bitbank api endpoint
|
670
|
-
:returns [
|
670
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
671
671
|
"""
|
672
672
|
await self.load_markets()
|
673
673
|
market = self.market(symbol)
|
@@ -690,7 +690,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
690
690
|
:param int|None since: the earliest time in ms to fetch trades for
|
691
691
|
:param int|None limit: the maximum number of trades structures to retrieve
|
692
692
|
:param dict params: extra parameters specific to the bitbank api endpoint
|
693
|
-
:returns [
|
693
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
694
694
|
"""
|
695
695
|
await self.load_markets()
|
696
696
|
request = {}
|
ccxt/async_support/bitbns.py
CHANGED
@@ -192,7 +192,7 @@ class bitbns(Exchange, ImplicitAPI):
|
|
192
192
|
"""
|
193
193
|
retrieves data on all markets for bitbns
|
194
194
|
:param dict params: extra parameters specific to the exchange api endpoint
|
195
|
-
:returns [
|
195
|
+
:returns dict[]: an array of objects representing market data
|
196
196
|
"""
|
197
197
|
response = await self.wwwGetOrderFetchMarkets(params)
|
198
198
|
#
|
@@ -382,7 +382,7 @@ class bitbns(Exchange, ImplicitAPI):
|
|
382
382
|
async def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
383
383
|
"""
|
384
384
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
385
|
-
:param [
|
385
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
386
386
|
:param dict params: extra parameters specific to the bitbns api endpoint
|
387
387
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
388
388
|
"""
|
@@ -695,7 +695,7 @@ class bitbns(Exchange, ImplicitAPI):
|
|
695
695
|
:param int|None since: the earliest time in ms to fetch open orders for
|
696
696
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
697
697
|
:param dict params: extra parameters specific to the bitbns api endpoint
|
698
|
-
:returns [
|
698
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
699
699
|
"""
|
700
700
|
if symbol is None:
|
701
701
|
raise ArgumentsRequired(self.id + ' fetchOpenOrders() requires a symbol argument')
|
@@ -811,7 +811,7 @@ class bitbns(Exchange, ImplicitAPI):
|
|
811
811
|
:param int|None since: the earliest time in ms to fetch trades for
|
812
812
|
:param int|None limit: the maximum number of trades structures to retrieve
|
813
813
|
:param dict params: extra parameters specific to the bitbns api endpoint
|
814
|
-
:returns [
|
814
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
815
815
|
"""
|
816
816
|
if symbol is None:
|
817
817
|
raise ArgumentsRequired(self.id + ' fetchMyTrades() requires a symbol argument')
|
@@ -875,7 +875,7 @@ class bitbns(Exchange, ImplicitAPI):
|
|
875
875
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
876
876
|
:param int|None limit: the maximum amount of trades to fetch
|
877
877
|
:param dict params: extra parameters specific to the bitbns api endpoint
|
878
|
-
:returns [
|
878
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
879
879
|
"""
|
880
880
|
if symbol is None:
|
881
881
|
raise ArgumentsRequired(self.id + ' fetchTrades() requires a symbol argument')
|
@@ -902,7 +902,7 @@ class bitbns(Exchange, ImplicitAPI):
|
|
902
902
|
:param int|None since: the earliest time in ms to fetch deposits for
|
903
903
|
:param int|None limit: the maximum number of deposits structures to retrieve
|
904
904
|
:param dict params: extra parameters specific to the bitbns api endpoint
|
905
|
-
:returns [
|
905
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
906
906
|
"""
|
907
907
|
if code is None:
|
908
908
|
raise ArgumentsRequired(self.id + ' fetchDeposits() requires a currency code argument')
|
@@ -946,7 +946,7 @@ class bitbns(Exchange, ImplicitAPI):
|
|
946
946
|
:param int|None since: the earliest time in ms to fetch withdrawals for
|
947
947
|
:param int|None limit: the maximum number of withdrawals structures to retrieve
|
948
948
|
:param dict params: extra parameters specific to the bitbns api endpoint
|
949
|
-
:returns [
|
949
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
950
950
|
"""
|
951
951
|
if code is None:
|
952
952
|
raise ArgumentsRequired(self.id + ' fetchWithdrawals() requires a currency code argument')
|
ccxt/async_support/bitfinex.py
CHANGED
@@ -415,9 +415,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
415
415
|
"""
|
416
416
|
*DEPRECATED* please use fetchDepositWithdrawFees instead
|
417
417
|
see https://docs.bitfinex.com/v1/reference/rest-auth-fees
|
418
|
-
:param [
|
418
|
+
:param str[]|None codes: list of unified currency codes
|
419
419
|
:param dict params: extra parameters specific to the bitfinex api endpoint
|
420
|
-
:returns [
|
420
|
+
:returns dict[]: a list of `fees structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
421
421
|
"""
|
422
422
|
await self.load_markets()
|
423
423
|
result = {}
|
@@ -447,9 +447,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
447
447
|
"""
|
448
448
|
fetch deposit and withdraw fees
|
449
449
|
see https://docs.bitfinex.com/v1/reference/rest-auth-fees
|
450
|
-
:param [
|
450
|
+
:param str[]|None codes: list of unified currency codes
|
451
451
|
:param dict params: extra parameters specific to the bitfinex api endpoint
|
452
|
-
:returns [
|
452
|
+
:returns dict[]: a list of `fees structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
453
453
|
"""
|
454
454
|
await self.load_markets()
|
455
455
|
response = await self.privatePostAccountFees(params)
|
@@ -561,7 +561,7 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
561
561
|
"""
|
562
562
|
retrieves data on all markets for bitfinex
|
563
563
|
:param dict params: extra parameters specific to the exchange api endpoint
|
564
|
-
:returns [
|
564
|
+
:returns dict[]: an array of objects representing market data
|
565
565
|
"""
|
566
566
|
ids = await self.publicGetSymbols()
|
567
567
|
#
|
@@ -827,7 +827,7 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
827
827
|
async def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
828
828
|
"""
|
829
829
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
830
|
-
:param [
|
830
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
831
831
|
:param dict params: extra parameters specific to the bitfinex api endpoint
|
832
832
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
833
833
|
"""
|
@@ -969,7 +969,7 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
969
969
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
970
970
|
:param int|None limit: the maximum amount of trades to fetch
|
971
971
|
:param dict params: extra parameters specific to the bitfinex api endpoint
|
972
|
-
:returns [
|
972
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
973
973
|
"""
|
974
974
|
await self.load_markets()
|
975
975
|
market = self.market(symbol)
|
@@ -989,7 +989,7 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
989
989
|
:param int|None since: the earliest time in ms to fetch trades for
|
990
990
|
:param int|None limit: the maximum number of trades structures to retrieve
|
991
991
|
:param dict params: extra parameters specific to the bitfinex api endpoint
|
992
|
-
:returns [
|
992
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
993
993
|
"""
|
994
994
|
if symbol is None:
|
995
995
|
raise ArgumentsRequired(self.id + ' fetchMyTrades() requires a `symbol` argument')
|
@@ -1160,7 +1160,7 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
1160
1160
|
:param int|None since: the earliest time in ms to fetch open orders for
|
1161
1161
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
1162
1162
|
:param dict params: extra parameters specific to the bitfinex api endpoint
|
1163
|
-
:returns [
|
1163
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1164
1164
|
"""
|
1165
1165
|
await self.load_markets()
|
1166
1166
|
if symbol is not None:
|
@@ -1179,7 +1179,7 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
1179
1179
|
:param int|None since: the earliest time in ms to fetch orders for
|
1180
1180
|
:param int|None limit: the maximum number of orde structures to retrieve
|
1181
1181
|
:param dict params: extra parameters specific to the bitfinex api endpoint
|
1182
|
-
:returns [
|
1182
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1183
1183
|
"""
|
1184
1184
|
await self.load_markets()
|
1185
1185
|
symbol = self.symbol(symbol)
|
@@ -1235,7 +1235,7 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
1235
1235
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
1236
1236
|
:param int|None limit: the maximum amount of candles to fetch
|
1237
1237
|
:param dict params: extra parameters specific to the bitfinex api endpoint
|
1238
|
-
:returns [[
|
1238
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
1239
1239
|
"""
|
1240
1240
|
await self.load_markets()
|
1241
1241
|
if limit is None:
|
@@ -1485,9 +1485,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
1485
1485
|
async def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
|
1486
1486
|
"""
|
1487
1487
|
fetch all open positions
|
1488
|
-
:param [
|
1488
|
+
:param str[]|None symbols: list of unified market symbols
|
1489
1489
|
:param dict params: extra parameters specific to the bitfinex api endpoint
|
1490
|
-
:returns [
|
1490
|
+
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
1491
1491
|
"""
|
1492
1492
|
await self.load_markets()
|
1493
1493
|
response = await self.privatePostPositions(params)
|
ccxt/async_support/bitfinex2.py
CHANGED
@@ -465,7 +465,7 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
465
465
|
"""
|
466
466
|
retrieves data on all markets for bitfinex2
|
467
467
|
:param dict params: extra parameters specific to the exchange api endpoint
|
468
|
-
:returns [
|
468
|
+
:returns dict[]: an array of objects representing market data
|
469
469
|
"""
|
470
470
|
spotMarketsInfo = await self.publicGetConfPubInfoPair(params)
|
471
471
|
futuresMarketsInfo = await self.publicGetConfPubInfoPairFutures(params)
|
@@ -1065,7 +1065,7 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1065
1065
|
async def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
1066
1066
|
"""
|
1067
1067
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
1068
|
-
:param [
|
1068
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1069
1069
|
:param dict params: extra parameters specific to the bitfinex2 api endpoint
|
1070
1070
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
1071
1071
|
"""
|
@@ -1228,7 +1228,7 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1228
1228
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
1229
1229
|
:param int|None limit: the maximum amount of trades to fetch
|
1230
1230
|
:param dict params: extra parameters specific to the bitfinex2 api endpoint
|
1231
|
-
:returns [
|
1231
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
1232
1232
|
"""
|
1233
1233
|
await self.load_markets()
|
1234
1234
|
market = self.market(symbol)
|
@@ -1264,7 +1264,7 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1264
1264
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
1265
1265
|
:param int|None limit: the maximum amount of candles to fetch
|
1266
1266
|
:param dict params: extra parameters specific to the bitfinex2 api endpoint
|
1267
|
-
:returns [[
|
1267
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
1268
1268
|
"""
|
1269
1269
|
await self.load_markets()
|
1270
1270
|
market = self.market(symbol)
|
@@ -1564,7 +1564,7 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1564
1564
|
cancel all open orders
|
1565
1565
|
:param str|None symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
1566
1566
|
:param dict params: extra parameters specific to the bitfinex2 api endpoint
|
1567
|
-
:returns [
|
1567
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1568
1568
|
"""
|
1569
1569
|
request = {
|
1570
1570
|
'all': 1,
|
@@ -1641,7 +1641,7 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1641
1641
|
:param int|None since: the earliest time in ms to fetch open orders for
|
1642
1642
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
1643
1643
|
:param dict params: extra parameters specific to the bitfinex2 api endpoint
|
1644
|
-
:returns [
|
1644
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1645
1645
|
"""
|
1646
1646
|
await self.load_markets()
|
1647
1647
|
request = {}
|
@@ -1700,7 +1700,7 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1700
1700
|
:param int|None since: the earliest time in ms to fetch orders for
|
1701
1701
|
:param int|None limit: the maximum number of orde structures to retrieve
|
1702
1702
|
:param dict params: extra parameters specific to the bitfinex2 api endpoint
|
1703
|
-
:returns [
|
1703
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1704
1704
|
"""
|
1705
1705
|
# returns the most recent closed or canceled orders up to circa two weeks ago
|
1706
1706
|
await self.load_markets()
|
@@ -1765,7 +1765,7 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1765
1765
|
:param int|None since: the earliest time in ms to fetch trades for
|
1766
1766
|
:param int|None limit: the maximum number of trades to retrieve
|
1767
1767
|
:param dict params: extra parameters specific to the bitfinex2 api endpoint
|
1768
|
-
:returns [
|
1768
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
1769
1769
|
"""
|
1770
1770
|
if symbol is None:
|
1771
1771
|
raise ArgumentsRequired(self.id + ' fetchOrderTrades() requires a symbol argument')
|
@@ -1787,7 +1787,7 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1787
1787
|
:param int|None since: the earliest time in ms to fetch trades for
|
1788
1788
|
:param int|None limit: the maximum number of trades structures to retrieve
|
1789
1789
|
:param dict params: extra parameters specific to the bitfinex2 api endpoint
|
1790
|
-
:returns [
|
1790
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
1791
1791
|
"""
|
1792
1792
|
await self.load_markets()
|
1793
1793
|
market = None
|
@@ -2263,9 +2263,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2263
2263
|
async def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
|
2264
2264
|
"""
|
2265
2265
|
fetch all open positions
|
2266
|
-
:param [
|
2266
|
+
:param str[]|None symbols: list of unified market symbols
|
2267
2267
|
:param dict params: extra parameters specific to the bitfinex2 api endpoint
|
2268
|
-
:returns [
|
2268
|
+
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
2269
2269
|
"""
|
2270
2270
|
await self.load_markets()
|
2271
2271
|
response = await self.privatePostAuthRPositions(params)
|