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/bittrex.py
CHANGED
|
@@ -302,7 +302,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
|
302
302
|
"""
|
|
303
303
|
retrieves data on all markets for bittrex
|
|
304
304
|
:param dict params: extra parameters specific to the exchange api endpoint
|
|
305
|
-
:returns [
|
|
305
|
+
:returns dict[]: an array of objects representing market data
|
|
306
306
|
"""
|
|
307
307
|
response = self.publicGetMarkets(params)
|
|
308
308
|
#
|
|
@@ -558,7 +558,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
|
558
558
|
def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
|
559
559
|
"""
|
|
560
560
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
561
|
-
:param [
|
|
561
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
562
562
|
:param dict params: extra parameters specific to the bittrex api endpoint
|
|
563
563
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
|
564
564
|
"""
|
|
@@ -646,7 +646,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
|
646
646
|
def fetch_bids_asks(self, symbols: Optional[List[str]] = None, params={}):
|
|
647
647
|
"""
|
|
648
648
|
fetches the bid and ask price and volume for multiple markets
|
|
649
|
-
:param [
|
|
649
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
650
650
|
:param dict params: extra parameters specific to the binance api endpoint
|
|
651
651
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
|
652
652
|
"""
|
|
@@ -762,7 +762,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
|
762
762
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
|
763
763
|
:param int|None limit: the maximum amount of trades to fetch
|
|
764
764
|
:param dict params: extra parameters specific to the bittrex api endpoint
|
|
765
|
-
:returns [
|
|
765
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
|
766
766
|
"""
|
|
767
767
|
self.load_markets()
|
|
768
768
|
market = self.market(symbol)
|
|
@@ -874,7 +874,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
|
874
874
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
|
875
875
|
:param int|None limit: the maximum amount of candles to fetch
|
|
876
876
|
:param dict params: extra parameters specific to the bittrex api endpoint
|
|
877
|
-
:returns [[
|
|
877
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
|
878
878
|
"""
|
|
879
879
|
self.load_markets()
|
|
880
880
|
market = self.market(symbol)
|
|
@@ -928,7 +928,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
|
928
928
|
:param int|None since: the earliest time in ms to fetch open orders for
|
|
929
929
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
|
930
930
|
:param dict params: extra parameters specific to the bittrex api endpoint
|
|
931
|
-
:returns [
|
|
931
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
932
932
|
"""
|
|
933
933
|
self.load_markets()
|
|
934
934
|
request = {}
|
|
@@ -995,7 +995,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
|
995
995
|
:param int|None since: the earliest time in ms to fetch trades for
|
|
996
996
|
:param int|None limit: the maximum number of trades to retrieve
|
|
997
997
|
:param dict params: extra parameters specific to the bittrex api endpoint
|
|
998
|
-
:returns [
|
|
998
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
|
999
999
|
"""
|
|
1000
1000
|
self.load_markets()
|
|
1001
1001
|
request = {
|
|
@@ -1254,7 +1254,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
|
1254
1254
|
cancel all open orders
|
|
1255
1255
|
:param str|None symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
|
1256
1256
|
:param dict params: extra parameters specific to the bittrex api endpoint
|
|
1257
|
-
:returns [
|
|
1257
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
1258
1258
|
"""
|
|
1259
1259
|
self.load_markets()
|
|
1260
1260
|
request = {}
|
|
@@ -1322,7 +1322,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
|
1322
1322
|
:param int|None params['endDate']: Filters out result after self timestamp. Uses ISO-8602 format.
|
|
1323
1323
|
:param str|None params['nextPageToken']: The unique identifier of the item that the resulting query result should start after, in the sort order of the given endpoint. Used for traversing a paginated set in the forward direction.
|
|
1324
1324
|
:param str|None params['previousPageToken']: The unique identifier of the item that the resulting query result should end before, in the sort order of the given endpoint. Used for traversing a paginated set in the reverse direction.
|
|
1325
|
-
:returns [
|
|
1325
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
1326
1326
|
"""
|
|
1327
1327
|
self.load_markets()
|
|
1328
1328
|
# https://support.bittrex.com/hc/en-us/articles/115003723911
|
|
@@ -1361,7 +1361,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
|
1361
1361
|
:param int|None params['endDate']: Filters out result after self timestamp. Uses ISO-8602 format.
|
|
1362
1362
|
:param str|None params['nextPageToken']: The unique identifier of the item that the resulting query result should start after, in the sort order of the given endpoint. Used for traversing a paginated set in the forward direction.
|
|
1363
1363
|
:param str|None params['previousPageToken']: The unique identifier of the item that the resulting query result should end before, in the sort order of the given endpoint. Used for traversing a paginated set in the reverse direction.
|
|
1364
|
-
:returns [
|
|
1364
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
1365
1365
|
"""
|
|
1366
1366
|
self.load_markets()
|
|
1367
1367
|
return self.fetch_deposits(code, since, limit, self.extend(params, {'status': 'pending'}))
|
|
@@ -1395,7 +1395,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
|
1395
1395
|
:param int|None params['endDate']: Filters out result after self timestamp. Uses ISO-8602 format.
|
|
1396
1396
|
:param str|None params['nextPageToken']: The unique identifier of the item that the resulting query result should start after, in the sort order of the given endpoint. Used for traversing a paginated set in the forward direction.
|
|
1397
1397
|
:param str|None params['previousPageToken']: The unique identifier of the item that the resulting query result should end before, in the sort order of the given endpoint. Used for traversing a paginated set in the reverse direction.
|
|
1398
|
-
:returns [
|
|
1398
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
1399
1399
|
"""
|
|
1400
1400
|
self.load_markets()
|
|
1401
1401
|
# https://support.bittrex.com/hc/en-us/articles/115003723911
|
|
@@ -1431,7 +1431,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
|
1431
1431
|
:param int|None params['endDate']: Filters out result after self timestamp. Uses ISO-8602 format.
|
|
1432
1432
|
:param str|None params['nextPageToken']: The unique identifier of the item that the resulting query result should start after, in the sort order of the given endpoint. Used for traversing a paginated set in the forward direction.
|
|
1433
1433
|
:param str|None params['previousPageToken']: The unique identifier of the item that the resulting query result should end before, in the sort order of the given endpoint. Used for traversing a paginated set in the reverse direction.
|
|
1434
|
-
:returns [
|
|
1434
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
1435
1435
|
"""
|
|
1436
1436
|
self.load_markets()
|
|
1437
1437
|
return self.fetch_withdrawals(code, since, limit, self.extend(params, {'status': 'pending'}))
|
|
@@ -1734,7 +1734,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
|
1734
1734
|
:param int|None since: the earliest time in ms to fetch trades for
|
|
1735
1735
|
:param int|None limit: the maximum number of trades structures to retrieve
|
|
1736
1736
|
:param dict params: extra parameters specific to the bittrex api endpoint
|
|
1737
|
-
:returns [
|
|
1737
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
|
1738
1738
|
"""
|
|
1739
1739
|
self.load_markets()
|
|
1740
1740
|
request = {}
|
|
@@ -1758,7 +1758,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
|
1758
1758
|
:param int|None since: the earliest time in ms to fetch orders for
|
|
1759
1759
|
:param int|None limit: the maximum number of orde structures to retrieve
|
|
1760
1760
|
:param dict params: extra parameters specific to the bittrex api endpoint
|
|
1761
|
-
:returns [
|
|
1761
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
1762
1762
|
"""
|
|
1763
1763
|
self.load_markets()
|
|
1764
1764
|
stop = self.safe_value(params, 'stop')
|
|
@@ -1933,7 +1933,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
|
1933
1933
|
def fetch_deposit_withdraw_fees(self, codes: Optional[List[str]] = None, params={}):
|
|
1934
1934
|
"""
|
|
1935
1935
|
fetch deposit and withdraw fees
|
|
1936
|
-
:param [
|
|
1936
|
+
:param str[]|None codes: list of unified currency codes
|
|
1937
1937
|
:param dict params: extra parameters specific to the bittrex api endpoint
|
|
1938
1938
|
:returns dict: a list of `fee structures <https://docs.ccxt.com/en/latest/manual.html#fee-structure>`
|
|
1939
1939
|
"""
|
ccxt/bitvavo.py
CHANGED
|
@@ -332,7 +332,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
|
332
332
|
"""
|
|
333
333
|
retrieves data on all markets for bitvavo
|
|
334
334
|
:param dict params: extra parameters specific to the exchange api endpoint
|
|
335
|
-
:returns [
|
|
335
|
+
:returns dict[]: an array of objects representing market data
|
|
336
336
|
"""
|
|
337
337
|
response = self.publicGetMarkets(params)
|
|
338
338
|
currencies = self.fetch_currencies_from_cache(params)
|
|
@@ -567,7 +567,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
|
567
567
|
def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
|
568
568
|
"""
|
|
569
569
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
570
|
-
:param [
|
|
570
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
571
571
|
:param dict params: extra parameters specific to the bitvavo api endpoint
|
|
572
572
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
|
573
573
|
"""
|
|
@@ -600,7 +600,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
|
600
600
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
|
601
601
|
:param int|None limit: the maximum amount of trades to fetch
|
|
602
602
|
:param dict params: extra parameters specific to the bitvavo api endpoint
|
|
603
|
-
:returns [
|
|
603
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
|
604
604
|
"""
|
|
605
605
|
self.load_markets()
|
|
606
606
|
market = self.market(symbol)
|
|
@@ -821,7 +821,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
|
821
821
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
|
822
822
|
:param int|None limit: the maximum amount of candles to fetch
|
|
823
823
|
:param dict params: extra parameters specific to the bitvavo api endpoint
|
|
824
|
-
:returns [[
|
|
824
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
|
825
825
|
"""
|
|
826
826
|
self.load_markets()
|
|
827
827
|
market = self.market(symbol)
|
|
@@ -1083,7 +1083,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
|
1083
1083
|
cancel all open orders
|
|
1084
1084
|
:param str|None symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
|
1085
1085
|
:param dict params: extra parameters specific to the bitvavo api endpoint
|
|
1086
|
-
:returns [
|
|
1086
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
1087
1087
|
"""
|
|
1088
1088
|
self.load_markets()
|
|
1089
1089
|
request = {}
|
|
@@ -1160,7 +1160,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
|
1160
1160
|
:param int|None since: the earliest time in ms to fetch orders for
|
|
1161
1161
|
:param int|None limit: the maximum number of orde structures to retrieve
|
|
1162
1162
|
:param dict params: extra parameters specific to the bitvavo api endpoint
|
|
1163
|
-
:returns [
|
|
1163
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
1164
1164
|
"""
|
|
1165
1165
|
if symbol is None:
|
|
1166
1166
|
raise ArgumentsRequired(self.id + ' fetchOrders() requires a symbol argument')
|
|
@@ -1224,7 +1224,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
|
1224
1224
|
:param int|None since: the earliest time in ms to fetch open orders for
|
|
1225
1225
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
|
1226
1226
|
:param dict params: extra parameters specific to the bitvavo api endpoint
|
|
1227
|
-
:returns [
|
|
1227
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
1228
1228
|
"""
|
|
1229
1229
|
self.load_markets()
|
|
1230
1230
|
request = {
|
|
@@ -1400,7 +1400,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
|
1400
1400
|
:param int|None since: the earliest time in ms to fetch trades for
|
|
1401
1401
|
:param int|None limit: the maximum number of trades structures to retrieve
|
|
1402
1402
|
:param dict params: extra parameters specific to the bitvavo api endpoint
|
|
1403
|
-
:returns [
|
|
1403
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
|
1404
1404
|
"""
|
|
1405
1405
|
if symbol is None:
|
|
1406
1406
|
raise ArgumentsRequired(self.id + ' fetchMyTrades() requires a symbol argument')
|
|
@@ -1478,7 +1478,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
|
1478
1478
|
:param int|None since: the earliest time in ms to fetch withdrawals for
|
|
1479
1479
|
:param int|None limit: the maximum number of withdrawals structures to retrieve
|
|
1480
1480
|
:param dict params: extra parameters specific to the bitvavo api endpoint
|
|
1481
|
-
:returns [
|
|
1481
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
1482
1482
|
"""
|
|
1483
1483
|
self.load_markets()
|
|
1484
1484
|
request = {
|
|
@@ -1519,7 +1519,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
|
1519
1519
|
:param int|None since: the earliest time in ms to fetch deposits for
|
|
1520
1520
|
:param int|None limit: the maximum number of deposits structures to retrieve
|
|
1521
1521
|
:param dict params: extra parameters specific to the bitvavo api endpoint
|
|
1522
|
-
:returns [
|
|
1522
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
1523
1523
|
"""
|
|
1524
1524
|
self.load_markets()
|
|
1525
1525
|
request = {
|
|
@@ -1686,7 +1686,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
|
1686
1686
|
"""
|
|
1687
1687
|
fetch deposit and withdraw fees
|
|
1688
1688
|
see https://docs.bitvavo.com/#tag/General/paths/~1assets/get
|
|
1689
|
-
:param [
|
|
1689
|
+
:param str[]|None codes: list of unified currency codes
|
|
1690
1690
|
:param dict params: extra parameters specific to the bitvavo api endpoint
|
|
1691
1691
|
:returns dict: a list of `fee structures <https://docs.ccxt.com/en/latest/manual.html#fee-structure>`
|
|
1692
1692
|
"""
|
ccxt/bkex.py
CHANGED
|
@@ -282,7 +282,7 @@ class bkex(Exchange, ImplicitAPI):
|
|
|
282
282
|
see https://bkexapi.github.io/docs/api_en.htm?shell#basicInformation-1
|
|
283
283
|
see https://bkexapi.github.io/docs/api_en.htm?shell#contract-market-symbols
|
|
284
284
|
:param dict params: extra parameters specific to the exchange api endpoint
|
|
285
|
-
:returns [
|
|
285
|
+
:returns dict[]: an array of objects representing market data
|
|
286
286
|
"""
|
|
287
287
|
promises = [
|
|
288
288
|
self.publicSpotGetCommonSymbols(params),
|
|
@@ -505,7 +505,7 @@ class bkex(Exchange, ImplicitAPI):
|
|
|
505
505
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
|
506
506
|
:param int|None limit: the maximum amount of candles to fetch
|
|
507
507
|
:param dict params: extra parameters specific to the bkex api endpoint
|
|
508
|
-
:returns [[
|
|
508
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
|
509
509
|
"""
|
|
510
510
|
self.load_markets()
|
|
511
511
|
market = self.market(symbol)
|
|
@@ -664,7 +664,7 @@ class bkex(Exchange, ImplicitAPI):
|
|
|
664
664
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
665
665
|
see https://bkexapi.github.io/docs/api_en.htm?shell#quotationData-2
|
|
666
666
|
see https://bkexapi.github.io/docs/api_en.htm?shell#contract-ticker-data
|
|
667
|
-
:param [
|
|
667
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
668
668
|
:param dict params: extra parameters specific to the bkex api endpoint
|
|
669
669
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
|
670
670
|
"""
|
|
@@ -872,7 +872,7 @@ class bkex(Exchange, ImplicitAPI):
|
|
|
872
872
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
|
873
873
|
:param int|None limit: the maximum amount of trades to fetch
|
|
874
874
|
:param dict params: extra parameters specific to the bkex api endpoint
|
|
875
|
-
:returns [
|
|
875
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
|
876
876
|
"""
|
|
877
877
|
self.load_markets()
|
|
878
878
|
market = self.market(symbol)
|
|
@@ -1075,7 +1075,7 @@ class bkex(Exchange, ImplicitAPI):
|
|
|
1075
1075
|
:param int|None since: the earliest time in ms to fetch deposits for
|
|
1076
1076
|
:param int|None limit: the maximum number of deposits structures to retrieve
|
|
1077
1077
|
:param dict params: extra parameters specific to the bkex api endpoint
|
|
1078
|
-
:returns [
|
|
1078
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
1079
1079
|
"""
|
|
1080
1080
|
if code is None:
|
|
1081
1081
|
raise ArgumentsRequired(self.id + ' fetchDeposits() requires code argument')
|
|
@@ -1126,7 +1126,7 @@ class bkex(Exchange, ImplicitAPI):
|
|
|
1126
1126
|
:param int|None since: the earliest time in ms to fetch withdrawals for
|
|
1127
1127
|
:param int|None limit: the maximum number of withdrawals structures to retrieve
|
|
1128
1128
|
:param dict params: extra parameters specific to the bkex api endpoint
|
|
1129
|
-
:returns [
|
|
1129
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
1130
1130
|
"""
|
|
1131
1131
|
if code is None:
|
|
1132
1132
|
raise ArgumentsRequired(self.id + ' fetchWithdrawals() requires code argument')
|
|
@@ -1280,7 +1280,7 @@ class bkex(Exchange, ImplicitAPI):
|
|
|
1280
1280
|
def cancel_orders(self, ids, symbol: Optional[str] = None, params={}):
|
|
1281
1281
|
"""
|
|
1282
1282
|
cancel multiple orders
|
|
1283
|
-
:param [
|
|
1283
|
+
:param str[] ids: order ids
|
|
1284
1284
|
:param str|None symbol: unified market symbol, default is None
|
|
1285
1285
|
:param dict params: extra parameters specific to the bkex api endpoint
|
|
1286
1286
|
:returns dict: an list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
@@ -1313,7 +1313,7 @@ class bkex(Exchange, ImplicitAPI):
|
|
|
1313
1313
|
:param int|None since: the earliest time in ms to fetch open orders for
|
|
1314
1314
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
|
1315
1315
|
:param dict params: extra parameters specific to the bkex api endpoint
|
|
1316
|
-
:returns [
|
|
1316
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
1317
1317
|
"""
|
|
1318
1318
|
if symbol is None:
|
|
1319
1319
|
raise ArgumentsRequired(self.id + ' fetchOpenOrders() requires a symbol argument')
|
|
@@ -1405,7 +1405,7 @@ class bkex(Exchange, ImplicitAPI):
|
|
|
1405
1405
|
:param int|None since: the earliest time in ms to fetch orders for
|
|
1406
1406
|
:param int|None limit: the maximum number of orde structures to retrieve
|
|
1407
1407
|
:param dict params: extra parameters specific to the bkex api endpoint
|
|
1408
|
-
:returns [
|
|
1408
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
1409
1409
|
"""
|
|
1410
1410
|
if symbol is None:
|
|
1411
1411
|
raise ArgumentsRequired(self.id + ' fetchClosedOrders() requires a symbol argument')
|
|
@@ -1553,7 +1553,7 @@ class bkex(Exchange, ImplicitAPI):
|
|
|
1553
1553
|
"""
|
|
1554
1554
|
*DEPRECATED* please use fetchDepositWithdrawFees instead
|
|
1555
1555
|
see https://bkexapi.github.io/docs/api_en.htm?shell#basicInformation-2
|
|
1556
|
-
:param [
|
|
1556
|
+
:param str[]|None codes: list of unified currency codes
|
|
1557
1557
|
:param dict params: extra parameters specific to the bkex api endpoint
|
|
1558
1558
|
:returns dict: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
|
1559
1559
|
"""
|
|
@@ -1624,7 +1624,7 @@ class bkex(Exchange, ImplicitAPI):
|
|
|
1624
1624
|
"""
|
|
1625
1625
|
fetch deposit and withdraw fees
|
|
1626
1626
|
see https://bkexapi.github.io/docs/api_en.htm?shell#basicInformation-2
|
|
1627
|
-
:param [
|
|
1627
|
+
:param str[]|None codes: list of unified currency codes
|
|
1628
1628
|
:param dict params: extra parameters specific to the bkex api endpoint
|
|
1629
1629
|
:returns dict: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
|
1630
1630
|
"""
|
|
@@ -1686,7 +1686,7 @@ class bkex(Exchange, ImplicitAPI):
|
|
|
1686
1686
|
:param int|None since: timestamp in ms of the earliest funding rate to fetch
|
|
1687
1687
|
: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
|
|
1688
1688
|
:param dict params: extra parameters specific to the bkex api endpoint
|
|
1689
|
-
:returns [
|
|
1689
|
+
:returns dict[]: a list of `funding rate structures <https://docs.ccxt.com/en/latest/manual.html?#funding-rate-history-structure>`
|
|
1690
1690
|
"""
|
|
1691
1691
|
if symbol is None:
|
|
1692
1692
|
raise ArgumentsRequired(self.id + ' fetchFundingRateHistory() requires a symbol argument')
|
ccxt/bl3p.py
CHANGED
|
@@ -263,7 +263,7 @@ class bl3p(Exchange, ImplicitAPI):
|
|
|
263
263
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
|
264
264
|
:param int|None limit: the maximum amount of trades to fetch
|
|
265
265
|
:param dict params: extra parameters specific to the bl3p api endpoint
|
|
266
|
-
:returns [
|
|
266
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
|
267
267
|
"""
|
|
268
268
|
market = self.market(symbol)
|
|
269
269
|
response = self.publicGetMarketTrades(self.extend({
|
ccxt/blockchaincom.py
CHANGED
|
@@ -190,7 +190,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
|
190
190
|
"""
|
|
191
191
|
retrieves data on all markets for blockchaincom
|
|
192
192
|
:param dict params: extra parameters specific to the exchange api endpoint
|
|
193
|
-
:returns [
|
|
193
|
+
:returns dict[]: an array of objects representing market data
|
|
194
194
|
"""
|
|
195
195
|
#
|
|
196
196
|
# "USDC-GBP": {
|
|
@@ -402,7 +402,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
|
402
402
|
def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
|
403
403
|
"""
|
|
404
404
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
405
|
-
:param [
|
|
405
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
406
406
|
:param dict params: extra parameters specific to the blockchaincom api endpoint
|
|
407
407
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
|
408
408
|
"""
|
|
@@ -614,7 +614,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
|
614
614
|
:param int|None since: the earliest time in ms to fetch orders for
|
|
615
615
|
:param int|None limit: the maximum number of orde structures to retrieve
|
|
616
616
|
:param dict params: extra parameters specific to the blockchaincom api endpoint
|
|
617
|
-
:returns [
|
|
617
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
618
618
|
"""
|
|
619
619
|
state = 'FILLED'
|
|
620
620
|
return self.fetch_orders_by_state(state, symbol, since, limit, params)
|
|
@@ -626,7 +626,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
|
626
626
|
:param int|None since: the earliest time in ms to fetch open orders for
|
|
627
627
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
|
628
628
|
:param dict params: extra parameters specific to the blockchaincom api endpoint
|
|
629
|
-
:returns [
|
|
629
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
630
630
|
"""
|
|
631
631
|
state = 'OPEN'
|
|
632
632
|
return self.fetch_orders_by_state(state, symbol, since, limit, params)
|
|
@@ -698,7 +698,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
|
698
698
|
:param int|None since: the earliest time in ms to fetch trades for
|
|
699
699
|
:param int|None limit: the maximum number of trades structures to retrieve
|
|
700
700
|
:param dict params: extra parameters specific to the blockchaincom api endpoint
|
|
701
|
-
:returns [
|
|
701
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
|
702
702
|
"""
|
|
703
703
|
self.load_markets()
|
|
704
704
|
request = {}
|
|
@@ -891,7 +891,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
|
891
891
|
:param int|None since: the earliest time in ms to fetch withdrawals for
|
|
892
892
|
:param int|None limit: the maximum number of withdrawals structures to retrieve
|
|
893
893
|
:param dict params: extra parameters specific to the blockchaincom api endpoint
|
|
894
|
-
:returns [
|
|
894
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
895
895
|
"""
|
|
896
896
|
self.load_markets()
|
|
897
897
|
request = {
|
|
@@ -928,7 +928,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
|
928
928
|
:param int|None since: the earliest time in ms to fetch deposits for
|
|
929
929
|
:param int|None limit: the maximum number of deposits structures to retrieve
|
|
930
930
|
:param dict params: extra parameters specific to the blockchaincom api endpoint
|
|
931
|
-
:returns [
|
|
931
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
932
932
|
"""
|
|
933
933
|
self.load_markets()
|
|
934
934
|
request = {
|
ccxt/btcalpha.py
CHANGED
|
@@ -157,7 +157,7 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
|
157
157
|
"""
|
|
158
158
|
retrieves data on all markets for btcalpha
|
|
159
159
|
:param dict params: extra parameters specific to the exchange api endpoint
|
|
160
|
-
:returns [
|
|
160
|
+
:returns dict[]: an array of objects representing market data
|
|
161
161
|
"""
|
|
162
162
|
response = self.publicGetPairs(params)
|
|
163
163
|
#
|
|
@@ -240,7 +240,7 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
|
240
240
|
"""
|
|
241
241
|
see https://btc-alpha.github.io/api-docs/#tickers
|
|
242
242
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
243
|
-
:param [
|
|
243
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
244
244
|
:param dict params: extra parameters specific to the btcalpha api endpoint
|
|
245
245
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
|
246
246
|
"""
|
|
@@ -417,7 +417,7 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
|
417
417
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
|
418
418
|
:param int|None limit: the maximum amount of trades to fetch
|
|
419
419
|
:param dict params: extra parameters specific to the btcalpha api endpoint
|
|
420
|
-
:returns [
|
|
420
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
|
421
421
|
"""
|
|
422
422
|
self.load_markets()
|
|
423
423
|
market = None
|
|
@@ -437,7 +437,7 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
|
437
437
|
:param int|None since: the earliest time in ms to fetch deposits for
|
|
438
438
|
:param int|None limit: the maximum number of deposits structures to retrieve
|
|
439
439
|
:param dict params: extra parameters specific to the btcalpha api endpoint
|
|
440
|
-
:returns [
|
|
440
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
441
441
|
"""
|
|
442
442
|
self.load_markets()
|
|
443
443
|
currency = None
|
|
@@ -463,7 +463,7 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
|
463
463
|
:param int|None since: the earliest time in ms to fetch withdrawals for
|
|
464
464
|
:param int|None limit: the maximum number of withdrawals structures to retrieve
|
|
465
465
|
:param dict params: extra parameters specific to the btcalpha api endpoint
|
|
466
|
-
:returns [
|
|
466
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
467
467
|
"""
|
|
468
468
|
self.load_markets()
|
|
469
469
|
currency = None
|
|
@@ -567,7 +567,7 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
|
567
567
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
|
568
568
|
:param int|None limit: the maximum amount of candles to fetch
|
|
569
569
|
:param dict params: extra parameters specific to the btcalpha api endpoint
|
|
570
|
-
:returns [[
|
|
570
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
|
571
571
|
"""
|
|
572
572
|
self.load_markets()
|
|
573
573
|
market = self.market(symbol)
|
|
@@ -754,7 +754,7 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
|
754
754
|
:param int|None since: the earliest time in ms to fetch orders for
|
|
755
755
|
:param int|None limit: the maximum number of orde structures to retrieve
|
|
756
756
|
:param dict params: extra parameters specific to the btcalpha api endpoint
|
|
757
|
-
:returns [
|
|
757
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
758
758
|
"""
|
|
759
759
|
self.load_markets()
|
|
760
760
|
request = {}
|
|
@@ -774,7 +774,7 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
|
774
774
|
:param int|None since: the earliest time in ms to fetch open orders for
|
|
775
775
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
|
776
776
|
:param dict params: extra parameters specific to the btcalpha api endpoint
|
|
777
|
-
:returns [
|
|
777
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
778
778
|
"""
|
|
779
779
|
request = {
|
|
780
780
|
'status': '1',
|
|
@@ -788,7 +788,7 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
|
788
788
|
:param int|None since: the earliest time in ms to fetch orders for
|
|
789
789
|
:param int|None limit: the maximum number of orde structures to retrieve
|
|
790
790
|
:param dict params: extra parameters specific to the btcalpha api endpoint
|
|
791
|
-
:returns [
|
|
791
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
792
792
|
"""
|
|
793
793
|
request = {
|
|
794
794
|
'status': '3',
|
|
@@ -802,7 +802,7 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
|
802
802
|
:param int|None since: the earliest time in ms to fetch trades for
|
|
803
803
|
:param int|None limit: the maximum number of trades structures to retrieve
|
|
804
804
|
:param dict params: extra parameters specific to the btcalpha api endpoint
|
|
805
|
-
:returns [
|
|
805
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
|
806
806
|
"""
|
|
807
807
|
self.load_markets()
|
|
808
808
|
request = {}
|
ccxt/btcbox.py
CHANGED
|
@@ -257,7 +257,7 @@ class btcbox(Exchange, ImplicitAPI):
|
|
|
257
257
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
|
258
258
|
:param int|None limit: the maximum amount of trades to fetch
|
|
259
259
|
:param dict params: extra parameters specific to the btcbox api endpoint
|
|
260
|
-
:returns [
|
|
260
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
|
261
261
|
"""
|
|
262
262
|
self.load_markets()
|
|
263
263
|
market = self.market(symbol)
|
|
@@ -465,7 +465,7 @@ class btcbox(Exchange, ImplicitAPI):
|
|
|
465
465
|
:param int|None since: the earliest time in ms to fetch orders for
|
|
466
466
|
:param int|None limit: the maximum number of orde structures to retrieve
|
|
467
467
|
:param dict params: extra parameters specific to the btcbox api endpoint
|
|
468
|
-
:returns [
|
|
468
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
469
469
|
"""
|
|
470
470
|
return self.fetch_orders_by_type('all', symbol, since, limit, params)
|
|
471
471
|
|
|
@@ -476,7 +476,7 @@ class btcbox(Exchange, ImplicitAPI):
|
|
|
476
476
|
:param int|None since: the earliest time in ms to fetch open orders for
|
|
477
477
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
|
478
478
|
:param dict params: extra parameters specific to the btcbox api endpoint
|
|
479
|
-
:returns [
|
|
479
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
480
480
|
"""
|
|
481
481
|
return self.fetch_orders_by_type('open', symbol, since, limit, params)
|
|
482
482
|
|
ccxt/btcmarkets.py
CHANGED
|
@@ -210,7 +210,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
|
210
210
|
:param int|None since: the earliest time in ms to fetch deposits for
|
|
211
211
|
:param int|None limit: the maximum number of deposits structures to retrieve
|
|
212
212
|
:param dict params: extra parameters specific to the btcmarkets api endpoint
|
|
213
|
-
:returns [
|
|
213
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
214
214
|
"""
|
|
215
215
|
return self.fetch_transactions_with_method('privateGetDeposits', code, since, limit, params)
|
|
216
216
|
|
|
@@ -221,7 +221,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
|
221
221
|
:param int|None since: the earliest time in ms to fetch withdrawals for
|
|
222
222
|
:param int|None limit: the maximum number of withdrawals structures to retrieve
|
|
223
223
|
:param dict params: extra parameters specific to the btcmarkets api endpoint
|
|
224
|
-
:returns [
|
|
224
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
225
225
|
"""
|
|
226
226
|
return self.fetch_transactions_with_method('privateGetWithdrawals', code, since, limit, params)
|
|
227
227
|
|
|
@@ -344,7 +344,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
|
344
344
|
"""
|
|
345
345
|
retrieves data on all markets for btcmarkets
|
|
346
346
|
:param dict params: extra parameters specific to the exchange api endpoint
|
|
347
|
-
:returns [
|
|
347
|
+
:returns dict[]: an array of objects representing market data
|
|
348
348
|
"""
|
|
349
349
|
response = self.publicGetMarkets(params)
|
|
350
350
|
#
|
|
@@ -492,7 +492,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
|
492
492
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
|
493
493
|
:param int|None limit: the maximum amount of candles to fetch
|
|
494
494
|
:param dict params: extra parameters specific to the btcmarkets api endpoint
|
|
495
|
-
:returns [[
|
|
495
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
|
496
496
|
"""
|
|
497
497
|
self.load_markets()
|
|
498
498
|
market = self.market(symbol)
|
|
@@ -714,7 +714,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
|
714
714
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
|
715
715
|
:param int|None limit: the maximum amount of trades to fetch
|
|
716
716
|
:param dict params: extra parameters specific to the btcmarkets api endpoint
|
|
717
|
-
:returns [
|
|
717
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
|
718
718
|
"""
|
|
719
719
|
self.load_markets()
|
|
720
720
|
market = self.market(symbol)
|
|
@@ -822,7 +822,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
|
822
822
|
def cancel_orders(self, ids, symbol: Optional[str] = None, params={}):
|
|
823
823
|
"""
|
|
824
824
|
cancel multiple orders
|
|
825
|
-
:param [
|
|
825
|
+
:param str[] ids: order ids
|
|
826
826
|
:param str|None symbol: not used by btcmarkets cancelOrders()
|
|
827
827
|
:param dict params: extra parameters specific to the btcmarkets api endpoint
|
|
828
828
|
:returns dict: an list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
@@ -969,7 +969,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
|
969
969
|
:param int|None since: the earliest time in ms to fetch orders for
|
|
970
970
|
:param int|None limit: the maximum number of orde structures to retrieve
|
|
971
971
|
:param dict params: extra parameters specific to the btcmarkets api endpoint
|
|
972
|
-
:returns [
|
|
972
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
973
973
|
"""
|
|
974
974
|
self.load_markets()
|
|
975
975
|
request = {
|
|
@@ -993,7 +993,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
|
993
993
|
:param int|None since: the earliest time in ms to fetch open orders for
|
|
994
994
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
|
995
995
|
:param dict params: extra parameters specific to the btcmarkets api endpoint
|
|
996
|
-
:returns [
|
|
996
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
997
997
|
"""
|
|
998
998
|
request = {'status': 'open'}
|
|
999
999
|
return self.fetch_orders(symbol, since, limit, self.extend(request, params))
|
|
@@ -1005,7 +1005,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
|
1005
1005
|
:param int|None since: the earliest time in ms to fetch orders for
|
|
1006
1006
|
:param int|None limit: the maximum number of orde structures to retrieve
|
|
1007
1007
|
:param dict params: extra parameters specific to the btcmarkets api endpoint
|
|
1008
|
-
:returns [
|
|
1008
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
1009
1009
|
"""
|
|
1010
1010
|
orders = self.fetch_orders(symbol, since, limit, params)
|
|
1011
1011
|
return self.filter_by(orders, 'status', 'closed')
|
|
@@ -1017,7 +1017,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
|
1017
1017
|
:param int|None since: the earliest time in ms to fetch trades for
|
|
1018
1018
|
:param int|None limit: the maximum number of trades structures to retrieve
|
|
1019
1019
|
:param dict params: extra parameters specific to the btcmarkets api endpoint
|
|
1020
|
-
:returns [
|
|
1020
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
|
1021
1021
|
"""
|
|
1022
1022
|
self.load_markets()
|
|
1023
1023
|
request = {}
|