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/bitflyer.py
CHANGED
|
@@ -151,7 +151,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
|
151
151
|
"""
|
|
152
152
|
retrieves data on all markets for bitflyer
|
|
153
153
|
:param dict params: extra parameters specific to the exchange api endpoint
|
|
154
|
-
:returns [
|
|
154
|
+
:returns dict[]: an array of objects representing market data
|
|
155
155
|
"""
|
|
156
156
|
jp_markets = self.publicGetGetmarkets(params)
|
|
157
157
|
#
|
|
@@ -454,7 +454,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
|
454
454
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
|
455
455
|
:param int|None limit: the maximum amount of trades to fetch
|
|
456
456
|
:param dict params: extra parameters specific to the bitflyer api endpoint
|
|
457
|
-
:returns [
|
|
457
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
|
458
458
|
"""
|
|
459
459
|
self.load_markets()
|
|
460
460
|
market = self.market(symbol)
|
|
@@ -598,7 +598,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
|
598
598
|
:param int|None since: the earliest time in ms to fetch orders for
|
|
599
599
|
:param int|None limit: the maximum number of orde structures to retrieve
|
|
600
600
|
:param dict params: extra parameters specific to the bitflyer api endpoint
|
|
601
|
-
:returns [
|
|
601
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
602
602
|
"""
|
|
603
603
|
if symbol is None:
|
|
604
604
|
raise ArgumentsRequired(self.id + ' fetchOrders() requires a `symbol` argument')
|
|
@@ -621,7 +621,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
|
621
621
|
:param int|None since: the earliest time in ms to fetch open orders for
|
|
622
622
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
|
623
623
|
:param dict params: extra parameters specific to the bitflyer api endpoint
|
|
624
|
-
:returns [
|
|
624
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
625
625
|
"""
|
|
626
626
|
request = {
|
|
627
627
|
'child_order_state': 'ACTIVE',
|
|
@@ -635,7 +635,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
|
635
635
|
:param int|None since: the earliest time in ms to fetch orders for
|
|
636
636
|
:param int|None limit: the maximum number of orde structures to retrieve
|
|
637
637
|
:param dict params: extra parameters specific to the bitflyer api endpoint
|
|
638
|
-
:returns [
|
|
638
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
639
639
|
"""
|
|
640
640
|
request = {
|
|
641
641
|
'child_order_state': 'COMPLETED',
|
|
@@ -664,7 +664,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
|
664
664
|
:param int|None since: the earliest time in ms to fetch trades for
|
|
665
665
|
:param int|None limit: the maximum number of trades structures to retrieve
|
|
666
666
|
:param dict params: extra parameters specific to the bitflyer api endpoint
|
|
667
|
-
:returns [
|
|
667
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
|
668
668
|
"""
|
|
669
669
|
if symbol is None:
|
|
670
670
|
raise ArgumentsRequired(self.id + ' fetchMyTrades() requires a `symbol` argument')
|
|
@@ -681,9 +681,9 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
|
681
681
|
def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
|
|
682
682
|
"""
|
|
683
683
|
fetch all open positions
|
|
684
|
-
:param [
|
|
684
|
+
:param str[] symbols: list of unified market symbols
|
|
685
685
|
:param dict params: extra parameters specific to the bitflyer api endpoint
|
|
686
|
-
:returns [
|
|
686
|
+
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
|
687
687
|
"""
|
|
688
688
|
if symbols is None:
|
|
689
689
|
raise ArgumentsRequired(self.id + ' fetchPositions() requires a `symbols` argument, exactly one symbol in an array')
|
|
@@ -747,7 +747,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
|
747
747
|
:param int|None since: the earliest time in ms to fetch deposits for
|
|
748
748
|
:param int|None limit: the maximum number of deposits structures to retrieve
|
|
749
749
|
:param dict params: extra parameters specific to the bitflyer api endpoint
|
|
750
|
-
:returns [
|
|
750
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
751
751
|
"""
|
|
752
752
|
self.load_markets()
|
|
753
753
|
currency = None
|
|
@@ -780,7 +780,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
|
780
780
|
:param int|None since: the earliest time in ms to fetch withdrawals for
|
|
781
781
|
:param int|None limit: the maximum number of withdrawals structures to retrieve
|
|
782
782
|
:param dict params: extra parameters specific to the bitflyer api endpoint
|
|
783
|
-
:returns [
|
|
783
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
784
784
|
"""
|
|
785
785
|
self.load_markets()
|
|
786
786
|
currency = None
|
ccxt/bitforex.py
CHANGED
|
@@ -166,7 +166,7 @@ class bitforex(Exchange, ImplicitAPI):
|
|
|
166
166
|
"""
|
|
167
167
|
retrieves data on all markets for bitforex
|
|
168
168
|
:param dict params: extra parameters specific to the exchange api endpoint
|
|
169
|
-
:returns [
|
|
169
|
+
:returns dict[]: an array of objects representing market data
|
|
170
170
|
"""
|
|
171
171
|
response = self.publicGetApiV1MarketSymbols(params)
|
|
172
172
|
#
|
|
@@ -326,7 +326,7 @@ class bitforex(Exchange, ImplicitAPI):
|
|
|
326
326
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
|
327
327
|
:param int|None limit: the maximum amount of trades to fetch
|
|
328
328
|
:param dict params: extra parameters specific to the bitforex api endpoint
|
|
329
|
-
:returns [
|
|
329
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
|
330
330
|
"""
|
|
331
331
|
self.load_markets()
|
|
332
332
|
request = {
|
|
@@ -362,7 +362,7 @@ class bitforex(Exchange, ImplicitAPI):
|
|
|
362
362
|
:param int|None since: the earliest time in ms to fetch trades for
|
|
363
363
|
:param int|None limit: the maximum number of trades structures to retrieve
|
|
364
364
|
:param dict params: extra parameters specific to the bitforex api endpoint
|
|
365
|
-
:returns [
|
|
365
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
|
366
366
|
"""
|
|
367
367
|
self.check_required_symbol('fetchMyTrades', symbol)
|
|
368
368
|
self.load_markets()
|
|
@@ -529,7 +529,7 @@ class bitforex(Exchange, ImplicitAPI):
|
|
|
529
529
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
|
530
530
|
:param int|None limit: the maximum amount of candles to fetch
|
|
531
531
|
:param dict params: extra parameters specific to the bitforex api endpoint
|
|
532
|
-
:returns [[
|
|
532
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
|
533
533
|
"""
|
|
534
534
|
self.load_markets()
|
|
535
535
|
market = self.market(symbol)
|
|
@@ -660,7 +660,7 @@ class bitforex(Exchange, ImplicitAPI):
|
|
|
660
660
|
:param int|None since: the earliest time in ms to fetch open orders for
|
|
661
661
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
|
662
662
|
:param dict params: extra parameters specific to the bitforex api endpoint
|
|
663
|
-
:returns [
|
|
663
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
664
664
|
"""
|
|
665
665
|
if symbol is None:
|
|
666
666
|
raise ArgumentsRequired(self.id + ' fetchMyTrades() requires a symbol argument')
|
|
@@ -680,7 +680,7 @@ class bitforex(Exchange, ImplicitAPI):
|
|
|
680
680
|
:param int|None since: the earliest time in ms to fetch orders for
|
|
681
681
|
:param int|None limit: the maximum number of orde structures to retrieve
|
|
682
682
|
:param dict params: extra parameters specific to the bitforex api endpoint
|
|
683
|
-
:returns [
|
|
683
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
684
684
|
"""
|
|
685
685
|
if symbol is None:
|
|
686
686
|
raise ArgumentsRequired(self.id + ' fetchMyTrades() requires a symbol argument')
|
ccxt/bitget.py
CHANGED
|
@@ -1049,7 +1049,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
|
1049
1049
|
"""
|
|
1050
1050
|
retrieves data on all markets for bitget
|
|
1051
1051
|
:param dict params: extra parameters specific to the exchange api endpoint
|
|
1052
|
-
:returns [
|
|
1052
|
+
:returns dict[]: an array of objects representing market data
|
|
1053
1053
|
"""
|
|
1054
1054
|
sandboxMode = self.safe_value(self.options, 'sandboxMode', False)
|
|
1055
1055
|
types = self.safe_value(self.options, 'fetchMarkets', ['spot', 'swap'])
|
|
@@ -1463,7 +1463,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
|
1463
1463
|
:param dict params: extra parameters specific to the bitget api endpoint
|
|
1464
1464
|
:param str|None params['pageNo']: pageNo default 1
|
|
1465
1465
|
:param str|None params['pageSize']: pageSize default 20. Max 100
|
|
1466
|
-
:returns [
|
|
1466
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
1467
1467
|
"""
|
|
1468
1468
|
self.load_markets()
|
|
1469
1469
|
if code is None:
|
|
@@ -1583,7 +1583,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
|
1583
1583
|
:param dict params: extra parameters specific to the bitget api endpoint
|
|
1584
1584
|
:param str|None params['pageNo']: pageNo default 1
|
|
1585
1585
|
:param str|None params['pageSize']: pageSize default 20. Max 100
|
|
1586
|
-
:returns [
|
|
1586
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
1587
1587
|
"""
|
|
1588
1588
|
self.load_markets()
|
|
1589
1589
|
if code is None:
|
|
@@ -1927,7 +1927,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
|
1927
1927
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
1928
1928
|
see https://bitgetlimited.github.io/apidoc/en/spot/#get-all-tickers
|
|
1929
1929
|
see https://bitgetlimited.github.io/apidoc/en/mix/#get-all-symbol-ticker
|
|
1930
|
-
:param [
|
|
1930
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1931
1931
|
:param dict params: extra parameters specific to the bitget api endpoint
|
|
1932
1932
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
|
1933
1933
|
"""
|
|
@@ -2100,7 +2100,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
|
2100
2100
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
|
2101
2101
|
:param int|None limit: the maximum amount of trades to fetch
|
|
2102
2102
|
:param dict params: extra parameters specific to the bitget api endpoint
|
|
2103
|
-
:returns [
|
|
2103
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
|
2104
2104
|
"""
|
|
2105
2105
|
self.load_markets()
|
|
2106
2106
|
market = self.market(symbol)
|
|
@@ -2267,7 +2267,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
|
2267
2267
|
:param int|None limit: the maximum amount of candles to fetch
|
|
2268
2268
|
:param dict params: extra parameters specific to the bitget api endpoint
|
|
2269
2269
|
:param int|None params['until']: timestamp in ms of the latest candle to fetch
|
|
2270
|
-
:returns [[
|
|
2270
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
|
2271
2271
|
"""
|
|
2272
2272
|
self.load_markets()
|
|
2273
2273
|
market = self.market(symbol)
|
|
@@ -2837,7 +2837,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
|
2837
2837
|
def cancel_orders(self, ids, symbol: Optional[str] = None, params={}):
|
|
2838
2838
|
"""
|
|
2839
2839
|
cancel multiple orders
|
|
2840
|
-
:param [
|
|
2840
|
+
:param str[] ids: order ids
|
|
2841
2841
|
:param str symbol: unified market symbol, default is None
|
|
2842
2842
|
:param dict params: extra parameters specific to the bitget api endpoint
|
|
2843
2843
|
:returns dict: an list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
@@ -2905,7 +2905,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
|
2905
2905
|
:param str|None symbol: unified market symbol
|
|
2906
2906
|
:param dict params: extra parameters specific to the bitget api endpoint
|
|
2907
2907
|
:param str params['code']: marginCoin unified currency code
|
|
2908
|
-
:returns [
|
|
2908
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
2909
2909
|
"""
|
|
2910
2910
|
sandboxMode = self.safe_value(self.options, 'sandboxMode', False)
|
|
2911
2911
|
self.load_markets()
|
|
@@ -3049,7 +3049,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
|
3049
3049
|
:param int|None since: the earliest time in ms to fetch open orders for
|
|
3050
3050
|
:param int|None limit: the maximum number of open order structures to retrieve
|
|
3051
3051
|
:param dict params: extra parameters specific to the bitget api endpoint
|
|
3052
|
-
:returns [
|
|
3052
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
3053
3053
|
"""
|
|
3054
3054
|
self.load_markets()
|
|
3055
3055
|
request = {}
|
|
@@ -3205,7 +3205,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
|
3205
3205
|
:param int|None since: timestamp in ms of the earliest order
|
|
3206
3206
|
:param int|None limit: the max number of closed orders to return
|
|
3207
3207
|
:param dict params: extra parameters specific to the bitget api endpoint
|
|
3208
|
-
:returns [
|
|
3208
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
3209
3209
|
"""
|
|
3210
3210
|
self.load_markets()
|
|
3211
3211
|
self.check_required_symbol('fetchClosedOrders', symbol)
|
|
@@ -3484,7 +3484,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
|
3484
3484
|
:param int|None since: the earliest time in ms to fetch trades for
|
|
3485
3485
|
:param int|None limit: the maximum number of trades structures to retrieve
|
|
3486
3486
|
:param dict params: extra parameters specific to the bitget api endpoint
|
|
3487
|
-
:returns [
|
|
3487
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
|
3488
3488
|
"""
|
|
3489
3489
|
self.check_required_symbol('fetchMyTrades', symbol)
|
|
3490
3490
|
self.load_markets()
|
|
@@ -3531,7 +3531,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
|
3531
3531
|
:param int|None since: the earliest time in ms to fetch trades for
|
|
3532
3532
|
:param int|None limit: the maximum number of trades to retrieve
|
|
3533
3533
|
:param dict params: extra parameters specific to the bitget api endpoint
|
|
3534
|
-
:returns [
|
|
3534
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
|
3535
3535
|
"""
|
|
3536
3536
|
self.check_required_symbol('fetchOrderTrades', symbol)
|
|
3537
3537
|
self.load_markets()
|
|
@@ -3621,9 +3621,9 @@ class bitget(Exchange, ImplicitAPI):
|
|
|
3621
3621
|
def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
|
|
3622
3622
|
"""
|
|
3623
3623
|
fetch all open positions
|
|
3624
|
-
:param [
|
|
3624
|
+
:param str[]|None symbols: list of unified market symbols
|
|
3625
3625
|
:param dict params: extra parameters specific to the bitget api endpoint
|
|
3626
|
-
:returns [
|
|
3626
|
+
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
|
3627
3627
|
"""
|
|
3628
3628
|
sandboxMode = self.safe_value(self.options, 'sandboxMode', False)
|
|
3629
3629
|
self.load_markets()
|
|
@@ -3787,7 +3787,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
|
3787
3787
|
:param int|None since: timestamp in ms of the earliest funding rate to fetch
|
|
3788
3788
|
: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
|
|
3789
3789
|
:param dict params: extra parameters specific to the bitget api endpoint
|
|
3790
|
-
:returns [
|
|
3790
|
+
:returns dict[]: a list of `funding rate structures <https://docs.ccxt.com/en/latest/manual.html?#funding-rate-history-structure>`
|
|
3791
3791
|
"""
|
|
3792
3792
|
self.check_required_symbol('fetchFundingRateHistory', symbol)
|
|
3793
3793
|
self.load_markets()
|
|
@@ -3898,7 +3898,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
|
3898
3898
|
:param int|None since: the starting timestamp in milliseconds
|
|
3899
3899
|
:param int|None limit: the number of entries to return
|
|
3900
3900
|
:param dict params: extra parameters specific to the bitget api endpoint
|
|
3901
|
-
:returns [
|
|
3901
|
+
:returns dict[]: a list of `funding history structures <https://docs.ccxt.com/#/?id=funding-history-structure>`
|
|
3902
3902
|
"""
|
|
3903
3903
|
self.load_markets()
|
|
3904
3904
|
market = self.market(symbol)
|
|
@@ -4209,7 +4209,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
|
4209
4209
|
:param int|None since: the earliest time in ms to fetch transfers for
|
|
4210
4210
|
:param int|None limit: the maximum number of transfers structures to retrieve
|
|
4211
4211
|
:param dict params: extra parameters specific to the bitget api endpoint
|
|
4212
|
-
:returns [
|
|
4212
|
+
:returns dict[]: a list of `transfer structures <https://docs.ccxt.com/#/?id=transfer-structure>`
|
|
4213
4213
|
"""
|
|
4214
4214
|
self.load_markets()
|
|
4215
4215
|
type = None
|
|
@@ -4407,7 +4407,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
|
4407
4407
|
"""
|
|
4408
4408
|
fetch deposit and withdraw fees
|
|
4409
4409
|
see https://bitgetlimited.github.io/apidoc/en/spot/#get-coin-list
|
|
4410
|
-
:param [
|
|
4410
|
+
:param str[]|None codes: list of unified currency codes
|
|
4411
4411
|
:param dict params: extra parameters specific to the bitget api endpoint
|
|
4412
4412
|
:returns dict: a list of `fee structures <https://docs.ccxt.com/en/latest/manual.html#fee-structure>`
|
|
4413
4413
|
"""
|
ccxt/bithumb.py
CHANGED
|
@@ -197,7 +197,7 @@ class bithumb(Exchange, ImplicitAPI):
|
|
|
197
197
|
"""
|
|
198
198
|
retrieves data on all markets for bithumb
|
|
199
199
|
:param dict params: extra parameters specific to the exchange api endpoint
|
|
200
|
-
:returns [
|
|
200
|
+
:returns dict[]: an array of objects representing market data
|
|
201
201
|
"""
|
|
202
202
|
result = []
|
|
203
203
|
quoteCurrencies = self.safe_value(self.options, 'quoteCurrencies', {})
|
|
@@ -388,7 +388,7 @@ class bithumb(Exchange, ImplicitAPI):
|
|
|
388
388
|
def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
|
389
389
|
"""
|
|
390
390
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
391
|
-
:param [
|
|
391
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
392
392
|
:param dict params: extra parameters specific to the bithumb api endpoint
|
|
393
393
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
|
394
394
|
"""
|
|
@@ -498,7 +498,7 @@ class bithumb(Exchange, ImplicitAPI):
|
|
|
498
498
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
|
499
499
|
:param int|None limit: the maximum amount of candles to fetch
|
|
500
500
|
:param dict params: extra parameters specific to the bithumb api endpoint
|
|
501
|
-
:returns [[
|
|
501
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
|
502
502
|
"""
|
|
503
503
|
self.load_markets()
|
|
504
504
|
market = self.market(symbol)
|
|
@@ -612,7 +612,7 @@ class bithumb(Exchange, ImplicitAPI):
|
|
|
612
612
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
|
613
613
|
:param int|None limit: the maximum amount of trades to fetch
|
|
614
614
|
:param dict params: extra parameters specific to the bithumb api endpoint
|
|
615
|
-
:returns [
|
|
615
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
|
616
616
|
"""
|
|
617
617
|
self.load_markets()
|
|
618
618
|
market = self.market(symbol)
|
|
@@ -831,7 +831,7 @@ class bithumb(Exchange, ImplicitAPI):
|
|
|
831
831
|
:param int|None since: the earliest time in ms to fetch open orders for
|
|
832
832
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
|
833
833
|
:param dict params: extra parameters specific to the bithumb api endpoint
|
|
834
|
-
:returns [
|
|
834
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
835
835
|
"""
|
|
836
836
|
if symbol is None:
|
|
837
837
|
raise ArgumentsRequired(self.id + ' fetchOpenOrders() requires a symbol argument')
|
ccxt/bitmart.py
CHANGED
|
@@ -692,7 +692,7 @@ class bitmart(Exchange, ImplicitAPI):
|
|
|
692
692
|
"""
|
|
693
693
|
retrieves data on all markets for bitmart
|
|
694
694
|
:param dict params: extra parameters specific to the exchange api endpoint
|
|
695
|
-
:returns [
|
|
695
|
+
:returns dict[]: an array of objects representing market data
|
|
696
696
|
"""
|
|
697
697
|
spot = self.fetch_spot_markets(params)
|
|
698
698
|
contract = self.fetch_contract_markets(params)
|
|
@@ -998,7 +998,7 @@ class bitmart(Exchange, ImplicitAPI):
|
|
|
998
998
|
"""
|
|
999
999
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
1000
1000
|
see https://developer-pro.bitmart.com/en/spot/#get-ticker-of-all-pairs-v2
|
|
1001
|
-
:param [
|
|
1001
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1002
1002
|
:param dict params: extra parameters specific to the bitmart api endpoint
|
|
1003
1003
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
|
1004
1004
|
"""
|
|
@@ -1146,7 +1146,7 @@ class bitmart(Exchange, ImplicitAPI):
|
|
|
1146
1146
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
|
1147
1147
|
:param int|None limit: the maximum amount of trades to fetch
|
|
1148
1148
|
:param dict params: extra parameters specific to the bitmart api endpoint
|
|
1149
|
-
:returns [
|
|
1149
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
|
1150
1150
|
"""
|
|
1151
1151
|
self.load_markets()
|
|
1152
1152
|
market = self.market(symbol)
|
|
@@ -1245,7 +1245,7 @@ class bitmart(Exchange, ImplicitAPI):
|
|
|
1245
1245
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
|
1246
1246
|
:param int|None limit: the maximum amount of candles to fetch
|
|
1247
1247
|
:param dict params: extra parameters specific to the bitmart api endpoint
|
|
1248
|
-
:returns [[
|
|
1248
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
|
1249
1249
|
"""
|
|
1250
1250
|
self.load_markets()
|
|
1251
1251
|
market = self.market(symbol)
|
|
@@ -1326,7 +1326,7 @@ class bitmart(Exchange, ImplicitAPI):
|
|
|
1326
1326
|
:param int|None since: the earliest time in ms to fetch trades for
|
|
1327
1327
|
:param int|None limit: the maximum number of trades structures to retrieve
|
|
1328
1328
|
:param dict params: extra parameters specific to the bitmart api endpoint
|
|
1329
|
-
:returns [
|
|
1329
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
|
1330
1330
|
"""
|
|
1331
1331
|
if symbol is None:
|
|
1332
1332
|
raise ArgumentsRequired(self.id + ' fetchMyTrades() requires a symbol argument')
|
|
@@ -1382,7 +1382,7 @@ class bitmart(Exchange, ImplicitAPI):
|
|
|
1382
1382
|
:param int|None since: the earliest time in ms to fetch trades for
|
|
1383
1383
|
:param int|None limit: the maximum number of trades to retrieve
|
|
1384
1384
|
:param dict params: extra parameters specific to the bitmart api endpoint
|
|
1385
|
-
:returns [
|
|
1385
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
|
1386
1386
|
"""
|
|
1387
1387
|
if symbol is None:
|
|
1388
1388
|
raise ArgumentsRequired(self.id + ' fetchOrderTrades() requires a symbol argument')
|
|
@@ -1894,7 +1894,7 @@ class bitmart(Exchange, ImplicitAPI):
|
|
|
1894
1894
|
see https://developer-pro.bitmart.com/en/spot/#cancel-all-orders
|
|
1895
1895
|
:param str symbol: unified market symbol of the market to cancel orders in
|
|
1896
1896
|
:param dict params: extra parameters specific to the bitmart api endpoint
|
|
1897
|
-
:returns [
|
|
1897
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
1898
1898
|
"""
|
|
1899
1899
|
self.load_markets()
|
|
1900
1900
|
request = {}
|
|
@@ -1981,7 +1981,7 @@ class bitmart(Exchange, ImplicitAPI):
|
|
|
1981
1981
|
:param int|None since: the earliest time in ms to fetch open orders for
|
|
1982
1982
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
|
1983
1983
|
:param dict params: extra parameters specific to the bitmart api endpoint
|
|
1984
|
-
:returns [
|
|
1984
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
1985
1985
|
"""
|
|
1986
1986
|
return self.fetch_orders_by_status('open', symbol, since, limit, params)
|
|
1987
1987
|
|
|
@@ -1992,7 +1992,7 @@ class bitmart(Exchange, ImplicitAPI):
|
|
|
1992
1992
|
:param int|None since: the earliest time in ms to fetch orders for
|
|
1993
1993
|
:param int|None limit: the maximum number of orde structures to retrieve
|
|
1994
1994
|
:param dict params: extra parameters specific to the bitmart api endpoint
|
|
1995
|
-
:returns [
|
|
1995
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
1996
1996
|
"""
|
|
1997
1997
|
return self.fetch_orders_by_status('closed', symbol, since, limit, params)
|
|
1998
1998
|
|
|
@@ -2256,7 +2256,7 @@ class bitmart(Exchange, ImplicitAPI):
|
|
|
2256
2256
|
:param int|None since: the earliest time in ms to fetch deposits for
|
|
2257
2257
|
:param int|None limit: the maximum number of deposits structures to retrieve
|
|
2258
2258
|
:param dict params: extra parameters specific to the bitmart api endpoint
|
|
2259
|
-
:returns [
|
|
2259
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
2260
2260
|
"""
|
|
2261
2261
|
return self.fetch_transactions_by_type('deposit', code, since, limit, params)
|
|
2262
2262
|
|
|
@@ -2306,7 +2306,7 @@ class bitmart(Exchange, ImplicitAPI):
|
|
|
2306
2306
|
:param int|None since: the earliest time in ms to fetch withdrawals for
|
|
2307
2307
|
:param int|None limit: the maximum number of withdrawals structures to retrieve
|
|
2308
2308
|
:param dict params: extra parameters specific to the bitmart api endpoint
|
|
2309
|
-
:returns [
|
|
2309
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
2310
2310
|
"""
|
|
2311
2311
|
return self.fetch_transactions_by_type('withdraw', code, since, limit, params)
|
|
2312
2312
|
|
|
@@ -2758,7 +2758,7 @@ class bitmart(Exchange, ImplicitAPI):
|
|
|
2758
2758
|
:param int|None since: the earliest time in ms to fetch borrrow interest for
|
|
2759
2759
|
:param int|None limit: the maximum number of structures to retrieve
|
|
2760
2760
|
:param dict params: extra parameters specific to the bitmart api endpoint
|
|
2761
|
-
:returns [
|
|
2761
|
+
:returns dict[]: a list of `borrow interest structures <https://docs.ccxt.com/#/?id=borrow-interest-structure>`
|
|
2762
2762
|
"""
|
|
2763
2763
|
if symbol is None:
|
|
2764
2764
|
raise ArgumentsRequired(self.id + ' fetchBorrowInterest() requires a symbol argument')
|
|
@@ -2831,7 +2831,7 @@ class bitmart(Exchange, ImplicitAPI):
|
|
|
2831
2831
|
* @ignore
|
|
2832
2832
|
marginMode specified by params["marginMode"], self.options["marginMode"], self.options["defaultMarginMode"], params["margin"] = True or self.options["defaultType"] = 'margin'
|
|
2833
2833
|
:param dict params: extra parameters specific to the exchange api endpoint
|
|
2834
|
-
:returns
|
|
2834
|
+
:returns array: the marginMode in lowercase
|
|
2835
2835
|
"""
|
|
2836
2836
|
marginMode = None
|
|
2837
2837
|
marginMode, params = super(bitmart, self).handle_margin_mode_and_params(methodName, params, defaultValue)
|
ccxt/bitmex.py
CHANGED
|
@@ -446,7 +446,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
446
446
|
"""
|
|
447
447
|
retrieves data on all markets for bitmex
|
|
448
448
|
:param dict params: extra parameters specific to the exchange api endpoint
|
|
449
|
-
:returns [
|
|
449
|
+
:returns dict[]: an array of objects representing market data
|
|
450
450
|
"""
|
|
451
451
|
response = self.publicGetInstrumentActiveAndIndices(params)
|
|
452
452
|
#
|
|
@@ -861,7 +861,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
861
861
|
:param int|None since: the earliest time in ms to fetch orders for
|
|
862
862
|
:param int|None limit: the maximum number of orde structures to retrieve
|
|
863
863
|
:param dict params: extra parameters specific to the bitmex api endpoint
|
|
864
|
-
:returns [
|
|
864
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
865
865
|
"""
|
|
866
866
|
self.load_markets()
|
|
867
867
|
market = None
|
|
@@ -889,7 +889,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
889
889
|
:param int|None since: the earliest time in ms to fetch open orders for
|
|
890
890
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
|
891
891
|
:param dict params: extra parameters specific to the bitmex api endpoint
|
|
892
|
-
:returns [
|
|
892
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
893
893
|
"""
|
|
894
894
|
request = {
|
|
895
895
|
'filter': {
|
|
@@ -905,7 +905,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
905
905
|
:param int|None since: the earliest time in ms to fetch orders for
|
|
906
906
|
:param int|None limit: the maximum number of orde structures to retrieve
|
|
907
907
|
:param dict params: extra parameters specific to the bitmex api endpoint
|
|
908
|
-
:returns [
|
|
908
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
909
909
|
"""
|
|
910
910
|
# Bitmex barfs if you set 'open': False in the filter...
|
|
911
911
|
orders = self.fetch_orders(symbol, since, limit, params)
|
|
@@ -918,7 +918,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
918
918
|
:param int|None since: the earliest time in ms to fetch trades for
|
|
919
919
|
:param int|None limit: the maximum number of trades structures to retrieve
|
|
920
920
|
:param dict params: extra parameters specific to the bitmex api endpoint
|
|
921
|
-
:returns [
|
|
921
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
|
922
922
|
"""
|
|
923
923
|
self.load_markets()
|
|
924
924
|
market = None
|
|
@@ -1272,7 +1272,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
1272
1272
|
def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
|
1273
1273
|
"""
|
|
1274
1274
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
1275
|
-
:param [
|
|
1275
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1276
1276
|
:param dict params: extra parameters specific to the bitmex api endpoint
|
|
1277
1277
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
|
1278
1278
|
"""
|
|
@@ -1356,7 +1356,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
1356
1356
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
|
1357
1357
|
:param int|None limit: the maximum amount of candles to fetch
|
|
1358
1358
|
:param dict params: extra parameters specific to the bitmex api endpoint
|
|
1359
|
-
:returns [[
|
|
1359
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
|
1360
1360
|
"""
|
|
1361
1361
|
self.load_markets()
|
|
1362
1362
|
# send JSON key/value pairs, such as {"key": "value"}
|
|
@@ -1650,7 +1650,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
1650
1650
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
|
1651
1651
|
:param int|None limit: the maximum amount of trades to fetch
|
|
1652
1652
|
:param dict params: extra parameters specific to the bitmex api endpoint
|
|
1653
|
-
:returns [
|
|
1653
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
|
1654
1654
|
"""
|
|
1655
1655
|
self.load_markets()
|
|
1656
1656
|
market = self.market(symbol)
|
|
@@ -1788,7 +1788,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
1788
1788
|
def cancel_orders(self, ids, symbol: Optional[str] = None, params={}):
|
|
1789
1789
|
"""
|
|
1790
1790
|
cancel multiple orders
|
|
1791
|
-
:param [
|
|
1791
|
+
:param str[] ids: order ids
|
|
1792
1792
|
:param str|None symbol: not used by bitmex cancelOrders()
|
|
1793
1793
|
:param dict params: extra parameters specific to the bitmex api endpoint
|
|
1794
1794
|
:returns dict: an list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
@@ -1811,7 +1811,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
1811
1811
|
cancel all open orders
|
|
1812
1812
|
:param str|None symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
|
1813
1813
|
:param dict params: extra parameters specific to the bitmex api endpoint
|
|
1814
|
-
:returns [
|
|
1814
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
1815
1815
|
"""
|
|
1816
1816
|
self.load_markets()
|
|
1817
1817
|
request = {}
|
|
@@ -1864,9 +1864,9 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
1864
1864
|
def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
|
|
1865
1865
|
"""
|
|
1866
1866
|
fetch all open positions
|
|
1867
|
-
:param [
|
|
1867
|
+
:param str[]|None symbols: list of unified market symbols
|
|
1868
1868
|
:param dict params: extra parameters specific to the bitmex api endpoint
|
|
1869
|
-
:returns [
|
|
1869
|
+
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
|
1870
1870
|
"""
|
|
1871
1871
|
self.load_markets()
|
|
1872
1872
|
response = self.privateGetPosition(params)
|
|
@@ -2159,7 +2159,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
2159
2159
|
def fetch_funding_rates(self, symbols: Optional[List[str]] = None, params={}):
|
|
2160
2160
|
"""
|
|
2161
2161
|
fetch the funding rate for multiple markets
|
|
2162
|
-
:param [
|
|
2162
|
+
:param str[]|None symbols: list of unified market symbols
|
|
2163
2163
|
:param dict params: extra parameters specific to the bitmex api endpoint
|
|
2164
2164
|
:returns dict: a dictionary of `funding rates structures <https://docs.ccxt.com/#/?id=funding-rates-structure>`, indexe by market symbols
|
|
2165
2165
|
"""
|
|
@@ -2213,7 +2213,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
2213
2213
|
:param int|None params['start']: starting point for results
|
|
2214
2214
|
:param str|None params['columns']: array of column names to fetch in info, if omitted, will return all columns
|
|
2215
2215
|
:param str|None params['filter']: generic table filter, send json key/value pairs, such as {"key": "value"}, you can key on individual fields, and do more advanced querying on timestamps, see the `timestamp docs <https://www.bitmex.com/app/restAPI#Timestamp-Filters>` for more details
|
|
2216
|
-
:returns [
|
|
2216
|
+
:returns dict[]: a list of `funding rate structures <https://docs.ccxt.com/en/latest/manual.html?#funding-rate-history-structure>`
|
|
2217
2217
|
"""
|
|
2218
2218
|
self.load_markets()
|
|
2219
2219
|
request = {}
|
|
@@ -2419,7 +2419,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
2419
2419
|
"""
|
|
2420
2420
|
fetch deposit and withdraw fees
|
|
2421
2421
|
see https://www.bitmex.com/api/explorer/#not /Wallet/Wallet_getAssetsConfig
|
|
2422
|
-
:param [
|
|
2422
|
+
:param str[]|None codes: list of unified currency codes
|
|
2423
2423
|
:param dict params: extra parameters specific to the bitmex api endpoint
|
|
2424
2424
|
:returns dict: a list of `fee structures <https://docs.ccxt.com/en/latest/manual.html#fee-structure>`
|
|
2425
2425
|
"""
|