ccxt 4.4.95__py2.py3-none-any.whl → 4.4.97__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.
Files changed (110) hide show
  1. ccxt/__init__.py +3 -1
  2. ccxt/abstract/binance.py +3 -0
  3. ccxt/abstract/binancecoinm.py +3 -0
  4. ccxt/abstract/binanceus.py +3 -0
  5. ccxt/abstract/binanceusdm.py +3 -0
  6. ccxt/abstract/foxbit.py +26 -0
  7. ccxt/abstract/hyperliquid.py +1 -1
  8. ccxt/abstract/phemex.py +1 -0
  9. ccxt/apex.py +3 -3
  10. ccxt/ascendex.py +2 -2
  11. ccxt/async_support/__init__.py +3 -1
  12. ccxt/async_support/apex.py +3 -3
  13. ccxt/async_support/ascendex.py +2 -2
  14. ccxt/async_support/base/exchange.py +10 -5
  15. ccxt/async_support/base/ws/future.py +5 -3
  16. ccxt/async_support/binance.py +90 -34
  17. ccxt/async_support/binancecoinm.py +5 -1
  18. ccxt/async_support/binanceus.py +3 -1
  19. ccxt/async_support/binanceusdm.py +3 -1
  20. ccxt/async_support/bingx.py +1 -1
  21. ccxt/async_support/bitget.py +30 -143
  22. ccxt/async_support/bitmart.py +2 -2
  23. ccxt/async_support/bitrue.py +13 -8
  24. ccxt/async_support/bybit.py +14 -5
  25. ccxt/async_support/coinbaseexchange.py +4 -2
  26. ccxt/async_support/coinbaseinternational.py +2 -2
  27. ccxt/async_support/coinspot.py +36 -1
  28. ccxt/async_support/cryptocom.py +78 -3
  29. ccxt/async_support/cryptomus.py +41 -1
  30. ccxt/async_support/defx.py +1 -1
  31. ccxt/async_support/derive.py +1 -1
  32. ccxt/async_support/ellipx.py +40 -0
  33. ccxt/async_support/exmo.py +1 -1
  34. ccxt/async_support/foxbit.py +1935 -0
  35. ccxt/async_support/gate.py +1 -2
  36. ccxt/async_support/hashkey.py +39 -0
  37. ccxt/async_support/hyperliquid.py +42 -27
  38. ccxt/async_support/independentreserve.py +35 -0
  39. ccxt/async_support/indodax.py +34 -0
  40. ccxt/async_support/kucoin.py +3 -2
  41. ccxt/async_support/kucoinfutures.py +3 -2
  42. ccxt/async_support/latoken.py +42 -0
  43. ccxt/async_support/luno.py +36 -0
  44. ccxt/async_support/mercado.py +34 -0
  45. ccxt/async_support/mexc.py +31 -32
  46. ccxt/async_support/modetrade.py +3 -3
  47. ccxt/async_support/okcoin.py +1 -1
  48. ccxt/async_support/okx.py +10 -3
  49. ccxt/async_support/onetrading.py +1 -1
  50. ccxt/async_support/oxfun.py +2 -1
  51. ccxt/async_support/paradex.py +2 -2
  52. ccxt/async_support/phemex.py +36 -31
  53. ccxt/async_support/vertex.py +3 -2
  54. ccxt/async_support/woo.py +6 -2
  55. ccxt/async_support/woofipro.py +2 -2
  56. ccxt/base/decimal_to_precision.py +16 -10
  57. ccxt/base/errors.py +6 -0
  58. ccxt/base/exchange.py +60 -17
  59. ccxt/binance.py +90 -34
  60. ccxt/binancecoinm.py +5 -1
  61. ccxt/binanceus.py +3 -1
  62. ccxt/binanceusdm.py +3 -1
  63. ccxt/bingx.py +1 -1
  64. ccxt/bitget.py +30 -143
  65. ccxt/bitmart.py +2 -2
  66. ccxt/bitrue.py +13 -8
  67. ccxt/bybit.py +14 -5
  68. ccxt/coinbaseexchange.py +4 -2
  69. ccxt/coinbaseinternational.py +2 -2
  70. ccxt/coinspot.py +36 -1
  71. ccxt/cryptocom.py +78 -3
  72. ccxt/cryptomus.py +41 -1
  73. ccxt/defx.py +1 -1
  74. ccxt/derive.py +1 -1
  75. ccxt/ellipx.py +40 -0
  76. ccxt/exmo.py +1 -1
  77. ccxt/foxbit.py +1935 -0
  78. ccxt/gate.py +1 -2
  79. ccxt/hashkey.py +39 -0
  80. ccxt/hyperliquid.py +42 -27
  81. ccxt/independentreserve.py +35 -0
  82. ccxt/indodax.py +34 -0
  83. ccxt/kucoin.py +3 -2
  84. ccxt/kucoinfutures.py +3 -2
  85. ccxt/latoken.py +42 -0
  86. ccxt/luno.py +36 -0
  87. ccxt/mercado.py +34 -0
  88. ccxt/mexc.py +31 -32
  89. ccxt/modetrade.py +3 -3
  90. ccxt/okcoin.py +1 -1
  91. ccxt/okx.py +10 -3
  92. ccxt/onetrading.py +1 -1
  93. ccxt/oxfun.py +2 -1
  94. ccxt/paradex.py +2 -2
  95. ccxt/phemex.py +36 -31
  96. ccxt/pro/__init__.py +1 -1
  97. ccxt/pro/binancecoinm.py +3 -1
  98. ccxt/pro/binanceus.py +3 -1
  99. ccxt/pro/binanceusdm.py +3 -1
  100. ccxt/pro/bybit.py +33 -1
  101. ccxt/test/tests_async.py +15 -0
  102. ccxt/test/tests_sync.py +15 -0
  103. ccxt/vertex.py +3 -2
  104. ccxt/woo.py +6 -2
  105. ccxt/woofipro.py +2 -2
  106. {ccxt-4.4.95.dist-info → ccxt-4.4.97.dist-info}/METADATA +19 -19
  107. {ccxt-4.4.95.dist-info → ccxt-4.4.97.dist-info}/RECORD +110 -107
  108. {ccxt-4.4.95.dist-info → ccxt-4.4.97.dist-info}/LICENSE.txt +0 -0
  109. {ccxt-4.4.95.dist-info → ccxt-4.4.97.dist-info}/WHEEL +0 -0
  110. {ccxt-4.4.95.dist-info → ccxt-4.4.97.dist-info}/top_level.txt +0 -0
@@ -34,11 +34,15 @@ class cryptomus(Exchange, ImplicitAPI):
34
34
  'future': False,
35
35
  'option': False,
36
36
  'addMargin': False,
37
+ 'borrowCrossMargin': False,
38
+ 'borrowIsolatedMargin': False,
39
+ 'borrowMargin': False,
37
40
  'cancelAllOrders': False,
38
41
  'cancelAllOrdersAfter': False,
39
42
  'cancelOrder': True,
40
43
  'cancelOrders': False,
41
44
  'cancelWithdraw': False,
45
+ 'closeAllPositions': False,
42
46
  'closePosition': False,
43
47
  'createConvertTrade': False,
44
48
  'createDepositAddress': False,
@@ -48,6 +52,8 @@ class cryptomus(Exchange, ImplicitAPI):
48
52
  'createMarketSellOrderWithCost': False,
49
53
  'createOrder': True,
50
54
  'createOrderWithTakeProfitAndStopLoss': False,
55
+ 'createOrderWithTakeProfitAndStopLossWs': False,
56
+ 'createPostOnlyOrder': False,
51
57
  'createReduceOnlyOrder': False,
52
58
  'createStopLimitOrder': False,
53
59
  'createStopLossOrder': False,
@@ -59,6 +65,12 @@ class cryptomus(Exchange, ImplicitAPI):
59
65
  'createTriggerOrder': False,
60
66
  'fetchAccounts': False,
61
67
  'fetchBalance': True,
68
+ 'fetchBorrowInterest': False,
69
+ 'fetchBorrowRate': False,
70
+ 'fetchBorrowRateHistories': False,
71
+ 'fetchBorrowRateHistory': False,
72
+ 'fetchBorrowRates': False,
73
+ 'fetchBorrowRatesPerSymbol': False,
62
74
  'fetchCanceledAndClosedOrders': True,
63
75
  'fetchCanceledOrders': False,
64
76
  'fetchClosedOrder': False,
@@ -67,27 +79,48 @@ class cryptomus(Exchange, ImplicitAPI):
67
79
  'fetchConvertQuote': False,
68
80
  'fetchConvertTrade': False,
69
81
  'fetchConvertTradeHistory': False,
82
+ 'fetchCrossBorrowRate': False,
83
+ 'fetchCrossBorrowRates': False,
70
84
  'fetchCurrencies': True,
71
85
  'fetchDepositAddress': False,
72
86
  'fetchDeposits': False,
73
87
  'fetchDepositsWithdrawals': False,
74
88
  'fetchFundingHistory': False,
89
+ 'fetchFundingInterval': False,
90
+ 'fetchFundingIntervals': False,
75
91
  'fetchFundingRate': False,
76
92
  'fetchFundingRateHistory': False,
77
93
  'fetchFundingRates': False,
94
+ 'fetchGreeks': False,
78
95
  'fetchIndexOHLCV': False,
96
+ 'fetchIsolatedBorrowRate': False,
97
+ 'fetchIsolatedBorrowRates': False,
98
+ 'fetchIsolatedPositions': False,
79
99
  'fetchLedger': False,
80
100
  'fetchLeverage': False,
101
+ 'fetchLeverages': False,
81
102
  'fetchLeverageTiers': False,
103
+ 'fetchLiquidations': False,
104
+ 'fetchLongShortRatio': False,
105
+ 'fetchLongShortRatioHistory': False,
82
106
  'fetchMarginAdjustmentHistory': False,
83
107
  'fetchMarginMode': False,
108
+ 'fetchMarginModes': False,
109
+ 'fetchMarketLeverageTiers': False,
84
110
  'fetchMarkets': True,
85
111
  'fetchMarkOHLCV': False,
112
+ 'fetchMarkPrices': False,
113
+ 'fetchMyLiquidations': False,
114
+ 'fetchMySettlementHistory': False,
86
115
  'fetchMyTrades': False,
87
116
  'fetchOHLCV': False,
117
+ 'fetchOpenInterest': False,
88
118
  'fetchOpenInterestHistory': False,
119
+ 'fetchOpenInterests': False,
89
120
  'fetchOpenOrder': False,
90
121
  'fetchOpenOrders': True,
122
+ 'fetchOption': False,
123
+ 'fetchOptionChain': False,
91
124
  'fetchOrder': True,
92
125
  'fetchOrderBook': True,
93
126
  'fetchOrders': False,
@@ -98,7 +131,9 @@ class cryptomus(Exchange, ImplicitAPI):
98
131
  'fetchPositions': False,
99
132
  'fetchPositionsForSymbol': False,
100
133
  'fetchPositionsHistory': False,
134
+ 'fetchPositionsRisk': False,
101
135
  'fetchPremiumIndexOHLCV': False,
136
+ 'fetchSettlementHistory': False,
102
137
  'fetchStatus': False,
103
138
  'fetchTicker': False,
104
139
  'fetchTickers': True,
@@ -108,11 +143,16 @@ class cryptomus(Exchange, ImplicitAPI):
108
143
  'fetchTradingFees': True,
109
144
  'fetchTransactions': False,
110
145
  'fetchTransfers': False,
146
+ 'fetchVolatilityHistory': False,
111
147
  'fetchWithdrawals': False,
112
148
  'reduceMargin': False,
149
+ 'repayCrossMargin': False,
150
+ 'repayIsolatedMargin': False,
151
+ 'repayMargin': False,
113
152
  'sandbox': False,
114
153
  'setLeverage': False,
115
154
  'setMargin': False,
155
+ 'setMarginMode': False,
116
156
  'setPositionMode': False,
117
157
  'transfer': False,
118
158
  'withdraw': False,
@@ -712,7 +752,7 @@ class cryptomus(Exchange, ImplicitAPI):
712
752
  # "success": True
713
753
  # }
714
754
  #
715
- return response
755
+ return self.safe_order({'info': response})
716
756
 
717
757
  async def fetch_canceled_and_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
718
758
  """
@@ -1455,7 +1455,7 @@ class defx(Exchange, ImplicitAPI):
1455
1455
  # }
1456
1456
  # }
1457
1457
  #
1458
- return response
1458
+ return [self.safe_order({'info': response})]
1459
1459
 
1460
1460
  async def fetch_position(self, symbol: str, params={}):
1461
1461
  """
@@ -1630,7 +1630,7 @@ class derive(Exchange, ImplicitAPI):
1630
1630
  # "result": "ok"
1631
1631
  # }
1632
1632
  #
1633
- return response
1633
+ return [self.safe_order({'info': response})]
1634
1634
 
1635
1635
  async def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1636
1636
  """
@@ -38,11 +38,15 @@ class ellipx(Exchange, ImplicitAPI):
38
38
  'future': False,
39
39
  'option': False,
40
40
  'addMargin': False,
41
+ 'borrowCrossMargin': False,
42
+ 'borrowIsolatedMargin': False,
43
+ 'borrowMargin': False,
41
44
  'cancelAllOrders': False,
42
45
  'cancelAllOrdersAfter': False,
43
46
  'cancelOrder': True,
44
47
  'cancelOrders': False,
45
48
  'cancelWithdraw': False,
49
+ 'closeAllPositions': False,
46
50
  'closePosition': False,
47
51
  'createConvertTrade': False,
48
52
  'createDepositAddress': False,
@@ -52,6 +56,8 @@ class ellipx(Exchange, ImplicitAPI):
52
56
  'createMarketSellOrderWithCost': False,
53
57
  'createOrder': True,
54
58
  'createOrderWithTakeProfitAndStopLoss': False,
59
+ 'createOrderWithTakeProfitAndStopLossWs': False,
60
+ 'createPostOnlyOrder': False,
55
61
  'createReduceOnlyOrder': False,
56
62
  'createStopLimitOrder': False,
57
63
  'createStopLossOrder': False,
@@ -63,6 +69,12 @@ class ellipx(Exchange, ImplicitAPI):
63
69
  'createTriggerOrder': False,
64
70
  'fetchAccounts': False,
65
71
  'fetchBalance': True,
72
+ 'fetchBorrowInterest': False,
73
+ 'fetchBorrowRate': False,
74
+ 'fetchBorrowRateHistories': False,
75
+ 'fetchBorrowRateHistory': False,
76
+ 'fetchBorrowRates': False,
77
+ 'fetchBorrowRatesPerSymbol': False,
66
78
  'fetchCanceledAndClosedOrders': False,
67
79
  'fetchCanceledOrders': False,
68
80
  'fetchClosedOrder': False,
@@ -71,27 +83,48 @@ class ellipx(Exchange, ImplicitAPI):
71
83
  'fetchConvertQuote': False,
72
84
  'fetchConvertTrade': False,
73
85
  'fetchConvertTradeHistory': False,
86
+ 'fetchCrossBorrowRate': False,
87
+ 'fetchCrossBorrowRates': False,
74
88
  'fetchCurrencies': True,
75
89
  'fetchDepositAddress': True,
76
90
  'fetchDeposits': False,
77
91
  'fetchDepositsWithdrawals': False,
78
92
  'fetchFundingHistory': False,
93
+ 'fetchFundingInterval': False,
94
+ 'fetchFundingIntervals': False,
79
95
  'fetchFundingRate': False,
80
96
  'fetchFundingRateHistory': False,
81
97
  'fetchFundingRates': False,
98
+ 'fetchGreeks': False,
82
99
  'fetchIndexOHLCV': False,
100
+ 'fetchIsolatedBorrowRate': False,
101
+ 'fetchIsolatedBorrowRates': False,
102
+ 'fetchIsolatedPositions': False,
83
103
  'fetchLedger': False,
84
104
  'fetchLeverage': False,
105
+ 'fetchLeverages': False,
85
106
  'fetchLeverageTiers': False,
107
+ 'fetchLiquidations': False,
108
+ 'fetchLongShortRatio': False,
109
+ 'fetchLongShortRatioHistory': False,
86
110
  'fetchMarginAdjustmentHistory': False,
87
111
  'fetchMarginMode': False,
112
+ 'fetchMarginModes': False,
113
+ 'fetchMarketLeverageTiers': False,
88
114
  'fetchMarkets': True,
89
115
  'fetchMarkOHLCV': False,
116
+ 'fetchMarkPrices': False,
117
+ 'fetchMyLiquidations': False,
118
+ 'fetchMySettlementHistory': False,
90
119
  'fetchMyTrades': False,
91
120
  'fetchOHLCV': True,
121
+ 'fetchOpenInterest': False,
92
122
  'fetchOpenInterestHistory': False,
123
+ 'fetchOpenInterests': False,
93
124
  'fetchOpenOrder': False,
94
125
  'fetchOpenOrders': True,
126
+ 'fetchOption': False,
127
+ 'fetchOptionChain': False,
95
128
  'fetchOrder': True,
96
129
  'fetchOrderBook': True,
97
130
  'fetchOrders': True,
@@ -102,7 +135,9 @@ class ellipx(Exchange, ImplicitAPI):
102
135
  'fetchPositions': False,
103
136
  'fetchPositionsForSymbol': False,
104
137
  'fetchPositionsHistory': False,
138
+ 'fetchPositionsRisk': False,
105
139
  'fetchPremiumIndexOHLCV': False,
140
+ 'fetchSettlementHistory': False,
106
141
  'fetchStatus': False,
107
142
  'fetchTicker': True,
108
143
  'fetchTickers': False,
@@ -112,11 +147,16 @@ class ellipx(Exchange, ImplicitAPI):
112
147
  'fetchTradingFees': False,
113
148
  'fetchTransactions': False,
114
149
  'fetchTransfers': False,
150
+ 'fetchVolatilityHistory': False,
115
151
  'fetchWithdrawals': False,
116
152
  'reduceMargin': False,
153
+ 'repayCrossMargin': False,
154
+ 'repayIsolatedMargin': False,
155
+ 'repayMargin': False,
117
156
  'sandbox': False,
118
157
  'setLeverage': False,
119
158
  'setMargin': False,
159
+ 'setMarginMode': False,
120
160
  'setPositionMode': False,
121
161
  'transfer': False,
122
162
  'withdraw': True,
@@ -957,7 +957,7 @@ class exmo(Exchange, ImplicitAPI):
957
957
  request['from'] = to - (limit * duration) - 1
958
958
  request['to'] = to
959
959
  else:
960
- request['from'] = self.parse_to_int(since / 1000) - 1
960
+ request['from'] = self.parse_to_int(since / 1000)
961
961
  if untilIsDefined:
962
962
  request['to'] = min(until, now)
963
963
  else: