ccxt 4.4.14__py2.py3-none-any.whl → 4.4.16__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 (150) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/ascendex.py +5 -5
  3. ccxt/async_support/__init__.py +1 -1
  4. ccxt/async_support/ascendex.py +5 -5
  5. ccxt/async_support/base/exchange.py +1 -1
  6. ccxt/async_support/bigone.py +6 -4
  7. ccxt/async_support/binance.py +58 -7
  8. ccxt/async_support/bingx.py +7 -6
  9. ccxt/async_support/bit2c.py +6 -4
  10. ccxt/async_support/bitbank.py +6 -4
  11. ccxt/async_support/bitbns.py +6 -4
  12. ccxt/async_support/bitfinex.py +4 -2
  13. ccxt/async_support/bitfinex2.py +4 -2
  14. ccxt/async_support/bitget.py +6 -5
  15. ccxt/async_support/bitmart.py +5 -4
  16. ccxt/async_support/bitmex.py +4 -4
  17. ccxt/async_support/bitso.py +5 -4
  18. ccxt/async_support/bitstamp.py +6 -4
  19. ccxt/async_support/bitvavo.py +6 -4
  20. ccxt/async_support/blockchaincom.py +11 -8
  21. ccxt/async_support/blofin.py +21 -0
  22. ccxt/async_support/bybit.py +6 -6
  23. ccxt/async_support/cex.py +5 -4
  24. ccxt/async_support/coinbase.py +4 -4
  25. ccxt/async_support/coinex.py +5 -5
  26. ccxt/async_support/coinone.py +6 -3
  27. ccxt/async_support/coinsph.py +5 -5
  28. ccxt/async_support/cryptocom.py +5 -4
  29. ccxt/async_support/currencycom.py +5 -5
  30. ccxt/async_support/delta.py +7 -5
  31. ccxt/async_support/deribit.py +6 -4
  32. ccxt/async_support/digifinex.py +6 -4
  33. ccxt/async_support/exmo.py +6 -4
  34. ccxt/async_support/gate.py +5 -4
  35. ccxt/async_support/gemini.py +4 -3
  36. ccxt/async_support/hashkey.py +7 -5
  37. ccxt/async_support/hitbtc.py +6 -5
  38. ccxt/async_support/hollaex.py +6 -5
  39. ccxt/async_support/htx.py +16 -6
  40. ccxt/async_support/hyperliquid.py +8 -7
  41. ccxt/async_support/idex.py +4 -4
  42. ccxt/async_support/independentreserve.py +4 -4
  43. ccxt/async_support/indodax.py +3 -3
  44. ccxt/async_support/kraken.py +7 -5
  45. ccxt/async_support/kucoin.py +6 -5
  46. ccxt/async_support/kucoinfutures.py +5 -3
  47. ccxt/async_support/kuna.py +5 -3
  48. ccxt/async_support/lbank.py +14 -12
  49. ccxt/async_support/lykke.py +6 -4
  50. ccxt/async_support/mexc.py +6 -6
  51. ccxt/async_support/ndax.py +33 -5
  52. ccxt/async_support/oceanex.py +4 -4
  53. ccxt/async_support/okcoin.py +8 -6
  54. ccxt/async_support/okx.py +17 -6
  55. ccxt/async_support/onetrading.py +8 -7
  56. ccxt/async_support/oxfun.py +6 -6
  57. ccxt/async_support/paymium.py +6 -5
  58. ccxt/async_support/phemex.py +8 -6
  59. ccxt/async_support/poloniex.py +6 -4
  60. ccxt/async_support/probit.py +7 -6
  61. ccxt/async_support/timex.py +4 -4
  62. ccxt/async_support/tokocrypto.py +5 -5
  63. ccxt/async_support/upbit.py +7 -6
  64. ccxt/async_support/vertex.py +8 -0
  65. ccxt/async_support/wavesexchange.py +9 -9
  66. ccxt/async_support/wazirx.py +24 -4
  67. ccxt/async_support/whitebit.py +6 -4
  68. ccxt/async_support/woo.py +6 -4
  69. ccxt/async_support/xt.py +7 -5
  70. ccxt/async_support/yobit.py +32 -23
  71. ccxt/async_support/zonda.py +31 -6
  72. ccxt/base/exchange.py +2 -2
  73. ccxt/base/types.py +8 -0
  74. ccxt/bigone.py +6 -4
  75. ccxt/binance.py +58 -7
  76. ccxt/bingx.py +7 -6
  77. ccxt/bit2c.py +6 -4
  78. ccxt/bitbank.py +6 -4
  79. ccxt/bitbns.py +6 -4
  80. ccxt/bitfinex.py +4 -2
  81. ccxt/bitfinex2.py +4 -2
  82. ccxt/bitget.py +6 -5
  83. ccxt/bitmart.py +5 -4
  84. ccxt/bitmex.py +4 -4
  85. ccxt/bitso.py +5 -4
  86. ccxt/bitstamp.py +6 -4
  87. ccxt/bitvavo.py +6 -4
  88. ccxt/blockchaincom.py +11 -8
  89. ccxt/blofin.py +21 -0
  90. ccxt/bybit.py +6 -6
  91. ccxt/cex.py +5 -4
  92. ccxt/coinbase.py +4 -4
  93. ccxt/coinex.py +5 -5
  94. ccxt/coinone.py +6 -3
  95. ccxt/coinsph.py +5 -5
  96. ccxt/cryptocom.py +5 -4
  97. ccxt/currencycom.py +5 -5
  98. ccxt/delta.py +7 -5
  99. ccxt/deribit.py +6 -4
  100. ccxt/digifinex.py +6 -4
  101. ccxt/exmo.py +6 -4
  102. ccxt/gate.py +5 -4
  103. ccxt/gemini.py +4 -3
  104. ccxt/hashkey.py +7 -5
  105. ccxt/hitbtc.py +6 -5
  106. ccxt/hollaex.py +6 -5
  107. ccxt/htx.py +16 -6
  108. ccxt/hyperliquid.py +8 -7
  109. ccxt/idex.py +4 -4
  110. ccxt/independentreserve.py +4 -4
  111. ccxt/indodax.py +3 -3
  112. ccxt/kraken.py +7 -5
  113. ccxt/kucoin.py +6 -5
  114. ccxt/kucoinfutures.py +5 -3
  115. ccxt/kuna.py +5 -3
  116. ccxt/lbank.py +14 -12
  117. ccxt/lykke.py +6 -4
  118. ccxt/mexc.py +6 -6
  119. ccxt/ndax.py +33 -5
  120. ccxt/oceanex.py +4 -4
  121. ccxt/okcoin.py +8 -6
  122. ccxt/okx.py +17 -6
  123. ccxt/onetrading.py +8 -7
  124. ccxt/oxfun.py +6 -6
  125. ccxt/paymium.py +6 -5
  126. ccxt/phemex.py +8 -6
  127. ccxt/poloniex.py +6 -4
  128. ccxt/pro/__init__.py +1 -1
  129. ccxt/pro/binance.py +1 -1
  130. ccxt/pro/upbit.py +42 -1
  131. ccxt/pro/vertex.py +11 -0
  132. ccxt/probit.py +7 -6
  133. ccxt/test/tests_async.py +1 -0
  134. ccxt/test/tests_sync.py +1 -0
  135. ccxt/timex.py +4 -4
  136. ccxt/tokocrypto.py +5 -5
  137. ccxt/upbit.py +7 -6
  138. ccxt/vertex.py +8 -0
  139. ccxt/wavesexchange.py +9 -9
  140. ccxt/wazirx.py +24 -4
  141. ccxt/whitebit.py +6 -4
  142. ccxt/woo.py +6 -4
  143. ccxt/xt.py +7 -5
  144. ccxt/yobit.py +32 -23
  145. ccxt/zonda.py +31 -6
  146. {ccxt-4.4.14.dist-info → ccxt-4.4.16.dist-info}/METADATA +4 -4
  147. {ccxt-4.4.14.dist-info → ccxt-4.4.16.dist-info}/RECORD +150 -150
  148. {ccxt-4.4.14.dist-info → ccxt-4.4.16.dist-info}/LICENSE.txt +0 -0
  149. {ccxt-4.4.14.dist-info → ccxt-4.4.16.dist-info}/WHEEL +0 -0
  150. {ccxt-4.4.14.dist-info → ccxt-4.4.16.dist-info}/top_level.txt +0 -0
ccxt/wavesexchange.py CHANGED
@@ -6,7 +6,7 @@
6
6
  from ccxt.base.exchange import Exchange
7
7
  from ccxt.abstract.wavesexchange import ImplicitAPI
8
8
  import json
9
- from ccxt.base.types import Balances, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
9
+ from ccxt.base.types import Balances, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
10
10
  from typing import List
11
11
  from typing import Any
12
12
  from ccxt.base.errors import ExchangeError
@@ -58,6 +58,8 @@ class wavesexchange(Exchange, ImplicitAPI):
58
58
  'fetchCrossBorrowRate': False,
59
59
  'fetchCrossBorrowRates': False,
60
60
  'fetchDepositAddress': True,
61
+ 'fetchDepositAddresses': None,
62
+ 'fetchDepositAddressesByNetwork': None,
61
63
  'fetchDepositWithdrawFee': 'emulated',
62
64
  'fetchDepositWithdrawFees': True,
63
65
  'fetchFundingHistory': False,
@@ -1018,7 +1020,7 @@ class wavesexchange(Exchange, ImplicitAPI):
1018
1020
  self.safe_number(data, 'volume', 0),
1019
1021
  ]
1020
1022
 
1021
- def fetch_deposit_address(self, code: str, params={}):
1023
+ def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
1022
1024
  """
1023
1025
  fetch the deposit address for a currency associated with self account
1024
1026
  :param str code: unified currency code
@@ -1097,12 +1099,11 @@ class wavesexchange(Exchange, ImplicitAPI):
1097
1099
  responseInner = self.nodeGetAddressesPublicKeyPublicKey(self.extend(request, request))
1098
1100
  addressInner = self.safe_string(response, 'address')
1099
1101
  return {
1100
- 'address': addressInner,
1101
- 'code': code, # kept here for backward-compatibility, but will be removed soon
1102
+ 'info': responseInner,
1102
1103
  'currency': code,
1103
1104
  'network': network,
1105
+ 'address': addressInner,
1104
1106
  'tag': None,
1105
- 'info': responseInner,
1106
1107
  }
1107
1108
  else:
1108
1109
  request: dict = {
@@ -1140,12 +1141,11 @@ class wavesexchange(Exchange, ImplicitAPI):
1140
1141
  addresses = self.safe_value(response, 'deposit_addresses')
1141
1142
  address = self.safe_string(addresses, 0)
1142
1143
  return {
1143
- 'address': address,
1144
- 'code': code, # kept here for backward-compatibility, but will be removed soon
1144
+ 'info': response,
1145
1145
  'currency': code,
1146
- 'tag': None,
1147
1146
  'network': unifiedNetwork,
1148
- 'info': response,
1147
+ 'address': address,
1148
+ 'tag': None,
1149
1149
  }
1150
1150
 
1151
1151
  def get_matcher_public_key(self):
ccxt/wazirx.py CHANGED
@@ -6,7 +6,7 @@
6
6
  from ccxt.base.exchange import Exchange
7
7
  from ccxt.abstract.wazirx import ImplicitAPI
8
8
  import hashlib
9
- from ccxt.base.types import Balances, Currencies, Currency, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
9
+ from ccxt.base.types import Balances, Currencies, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
10
10
  from typing import List
11
11
  from ccxt.base.errors import ExchangeError
12
12
  from ccxt.base.errors import PermissionDenied
@@ -50,34 +50,51 @@ class wazirx(Exchange, ImplicitAPI):
50
50
  'fetchBalance': True,
51
51
  'fetchBidsAsks': False,
52
52
  'fetchBorrowInterest': False,
53
+ 'fetchBorrowRate': False,
53
54
  'fetchBorrowRateHistories': False,
54
55
  'fetchBorrowRateHistory': False,
56
+ 'fetchBorrowRates': False,
57
+ 'fetchBorrowRatesPerSymbol': False,
55
58
  'fetchClosedOrders': False,
56
59
  'fetchCrossBorrowRate': False,
57
60
  'fetchCrossBorrowRates': False,
58
61
  'fetchCurrencies': True,
59
62
  'fetchDepositAddress': True,
63
+ 'fetchDepositAddresses': False,
60
64
  'fetchDepositAddressesByNetwork': False,
61
65
  'fetchDeposits': True,
62
66
  'fetchDepositsWithdrawals': False,
63
67
  'fetchFundingHistory': False,
68
+ 'fetchFundingInterval': False,
69
+ 'fetchFundingIntervals': False,
64
70
  'fetchFundingRate': False,
65
71
  'fetchFundingRateHistory': False,
66
72
  'fetchFundingRates': False,
73
+ 'fetchGreeks': False,
67
74
  'fetchIndexOHLCV': False,
68
75
  'fetchIsolatedBorrowRate': False,
69
76
  'fetchIsolatedBorrowRates': False,
70
77
  'fetchIsolatedPositions': False,
71
78
  'fetchLeverage': False,
79
+ 'fetchLeverages': False,
72
80
  'fetchLeverageTiers': False,
81
+ 'fetchLiquidations': False,
82
+ 'fetchMarginAdjustmentHistory': False,
73
83
  'fetchMarginMode': False,
84
+ 'fetchMarginModes': False,
74
85
  'fetchMarketLeverageTiers': False,
75
86
  'fetchMarkets': True,
76
87
  'fetchMarkOHLCV': False,
88
+ 'fetchMarkPrices': False,
89
+ 'fetchMyLiquidations': False,
90
+ 'fetchMySettlementHistory': False,
77
91
  'fetchMyTrades': False,
78
92
  'fetchOHLCV': True,
93
+ 'fetchOpenInterest': False,
79
94
  'fetchOpenInterestHistory': False,
80
95
  'fetchOpenOrders': True,
96
+ 'fetchOption': False,
97
+ 'fetchOptionChain': False,
81
98
  'fetchOrder': False,
82
99
  'fetchOrderBook': True,
83
100
  'fetchOrders': True,
@@ -89,6 +106,7 @@ class wazirx(Exchange, ImplicitAPI):
89
106
  'fetchPositionsHistory': False,
90
107
  'fetchPositionsRisk': False,
91
108
  'fetchPremiumIndexOHLCV': False,
109
+ 'fetchSettlementHistory': False,
92
110
  'fetchStatus': True,
93
111
  'fetchTicker': True,
94
112
  'fetchTickers': True,
@@ -99,6 +117,8 @@ class wazirx(Exchange, ImplicitAPI):
99
117
  'fetchTransactionFees': False,
100
118
  'fetchTransactions': False,
101
119
  'fetchTransfers': False,
120
+ 'fetchUnderlyingAssets': False,
121
+ 'fetchVolatilityHistory': False,
102
122
  'fetchWithdrawals': True,
103
123
  'reduceMargin': False,
104
124
  'repayCrossMargin': False,
@@ -1049,7 +1069,7 @@ class wazirx(Exchange, ImplicitAPI):
1049
1069
  }
1050
1070
  return result
1051
1071
 
1052
- def fetch_deposit_address(self, code: str, params={}):
1072
+ def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
1053
1073
  """
1054
1074
  fetch the deposit address for a currency associated with self account
1055
1075
  :see: https://docs.wazirx.com/#deposit-address-supporting-network-user_data
@@ -1077,11 +1097,11 @@ class wazirx(Exchange, ImplicitAPI):
1077
1097
  # }
1078
1098
  #
1079
1099
  return {
1100
+ 'info': response,
1080
1101
  'currency': code,
1102
+ 'network': self.network_code_to_id(networkCode, code),
1081
1103
  'address': self.safe_string(response, 'address'),
1082
1104
  'tag': None,
1083
- 'network': self.network_code_to_id(networkCode, code),
1084
- 'info': response,
1085
1105
  }
1086
1106
 
1087
1107
  def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
ccxt/whitebit.py CHANGED
@@ -6,7 +6,7 @@
6
6
  from ccxt.base.exchange import Exchange
7
7
  from ccxt.abstract.whitebit import ImplicitAPI
8
8
  import hashlib
9
- from ccxt.base.types import Balances, Bool, Currencies, Currency, Int, Market, MarketType, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, TradingFees, Transaction, TransferEntry
9
+ from ccxt.base.types import Balances, Bool, Currencies, Currency, DepositAddress, Int, Market, MarketType, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, TradingFees, Transaction, TransferEntry
10
10
  from typing import List
11
11
  from ccxt.base.errors import ExchangeError
12
12
  from ccxt.base.errors import AuthenticationError
@@ -62,6 +62,8 @@ class whitebit(Exchange, ImplicitAPI):
62
62
  'fetchCurrencies': True,
63
63
  'fetchDeposit': True,
64
64
  'fetchDepositAddress': True,
65
+ 'fetchDepositAddresses': False,
66
+ 'fetchDepositAddressesByNetwork': False,
65
67
  'fetchDeposits': True,
66
68
  'fetchDepositsWithdrawals': True,
67
69
  'fetchDepositWithdrawFee': 'emulated',
@@ -1758,7 +1760,7 @@ class whitebit(Exchange, ImplicitAPI):
1758
1760
  data = self.safe_list(response, 'records', [])
1759
1761
  return self.parse_trades(data, market)
1760
1762
 
1761
- def fetch_deposit_address(self, code: str, params={}):
1763
+ def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
1762
1764
  """
1763
1765
  fetch the deposit address for a currency associated with self account
1764
1766
  :see: https://docs.whitebit.com/private/http-main-v4/#get-fiat-deposit-address
@@ -1820,11 +1822,11 @@ class whitebit(Exchange, ImplicitAPI):
1820
1822
  tag = self.safe_string(account, 'memo')
1821
1823
  self.check_address(address)
1822
1824
  return {
1825
+ 'info': response,
1823
1826
  'currency': code,
1827
+ 'network': None,
1824
1828
  'address': address,
1825
1829
  'tag': tag,
1826
- 'network': None,
1827
- 'info': response,
1828
1830
  }
1829
1831
 
1830
1832
  def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
ccxt/woo.py CHANGED
@@ -6,7 +6,7 @@
6
6
  from ccxt.base.exchange import Exchange
7
7
  from ccxt.abstract.woo import ImplicitAPI
8
8
  import hashlib
9
- from ccxt.base.types import Account, Balances, Bool, Conversion, Currencies, Currency, Int, LedgerEntry, Leverage, MarginModification, Market, MarketType, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, FundingRate, FundingRates, Trade, TradingFees, Transaction, TransferEntry
9
+ from ccxt.base.types import Account, Balances, Bool, Conversion, Currencies, Currency, DepositAddress, Int, LedgerEntry, Leverage, MarginModification, Market, MarketType, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, FundingRate, FundingRates, Trade, TradingFees, Transaction, TransferEntry
10
10
  from typing import List
11
11
  from typing import Any
12
12
  from ccxt.base.errors import ExchangeError
@@ -76,6 +76,8 @@ class woo(Exchange, ImplicitAPI):
76
76
  'fetchConvertTradeHistory': True,
77
77
  'fetchCurrencies': True,
78
78
  'fetchDepositAddress': True,
79
+ 'fetchDepositAddresses': False,
80
+ 'fetchDepositAddressesByNetwork': False,
79
81
  'fetchDeposits': True,
80
82
  'fetchDepositsWithdrawals': True,
81
83
  'fetchFundingHistory': True,
@@ -1906,7 +1908,7 @@ class woo(Exchange, ImplicitAPI):
1906
1908
  result[code] = account
1907
1909
  return self.safe_balance(result)
1908
1910
 
1909
- def fetch_deposit_address(self, code: str, params={}):
1911
+ def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
1910
1912
  """
1911
1913
  fetch the deposit address for a currency associated with self account
1912
1914
  :see: https://docs.woo.org/#get-token-deposit-address
@@ -1934,11 +1936,11 @@ class woo(Exchange, ImplicitAPI):
1934
1936
  address = self.safe_string(response, 'address')
1935
1937
  self.check_address(address)
1936
1938
  return {
1939
+ 'info': response,
1937
1940
  'currency': code,
1941
+ 'network': networkCode,
1938
1942
  'address': address,
1939
1943
  'tag': tag,
1940
- 'network': networkCode,
1941
- 'info': response,
1942
1944
  }
1943
1945
 
1944
1946
  def get_asset_history_rows(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> Any:
ccxt/xt.py CHANGED
@@ -6,7 +6,7 @@
6
6
  from ccxt.base.exchange import Exchange
7
7
  from ccxt.abstract.xt import ImplicitAPI
8
8
  import hashlib
9
- from ccxt.base.types import Currencies, Currency, Int, LedgerEntry, LeverageTier, MarginModification, Market, Num, Order, OrderSide, OrderType, Str, Tickers, FundingRate, Transaction, TransferEntry
9
+ from ccxt.base.types import Currencies, Currency, DepositAddress, Int, LedgerEntry, LeverageTier, MarginModification, Market, Num, Order, OrderSide, OrderType, Str, Tickers, FundingRate, Transaction, TransferEntry
10
10
  from typing import List
11
11
  from ccxt.base.errors import ExchangeError
12
12
  from ccxt.base.errors import AuthenticationError
@@ -72,6 +72,8 @@ class xt(Exchange, ImplicitAPI):
72
72
  'fetchCurrencies': True,
73
73
  'fetchDeposit': False,
74
74
  'fetchDepositAddress': True,
75
+ 'fetchDepositAddresses': False,
76
+ 'fetchDepositAddressesByNetwork': False,
75
77
  'fetchDeposits': True,
76
78
  'fetchDepositWithdrawals': False,
77
79
  'fetchDepositWithdrawFee': False,
@@ -3421,7 +3423,7 @@ class xt(Exchange, ImplicitAPI):
3421
3423
  }
3422
3424
  return self.safe_string(ledgerType, type, type)
3423
3425
 
3424
- def fetch_deposit_address(self, code: str, params={}):
3426
+ def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
3425
3427
  """
3426
3428
  fetch the deposit address for a currency associated with self account
3427
3429
  :see: https://doc.xt.com/#deposit_withdrawaldepositAddressGet
@@ -3455,7 +3457,7 @@ class xt(Exchange, ImplicitAPI):
3455
3457
  result = self.safe_value(response, 'result', {})
3456
3458
  return self.parse_deposit_address(result, currency)
3457
3459
 
3458
- def parse_deposit_address(self, depositAddress, currency=None):
3460
+ def parse_deposit_address(self, depositAddress, currency=None) -> DepositAddress:
3459
3461
  #
3460
3462
  # {
3461
3463
  # "address": "0x7f7173cf29d3846d20ca5a3aec1120b93dbd157a",
@@ -3465,11 +3467,11 @@ class xt(Exchange, ImplicitAPI):
3465
3467
  address = self.safe_string(depositAddress, 'address')
3466
3468
  self.check_address(address)
3467
3469
  return {
3470
+ 'info': depositAddress,
3468
3471
  'currency': self.safe_currency_code(None, currency),
3472
+ 'network': None,
3469
3473
  'address': address,
3470
3474
  'tag': self.safe_string(depositAddress, 'memo'),
3471
- 'network': None,
3472
- 'info': depositAddress,
3473
3475
  }
3474
3476
 
3475
3477
  def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
ccxt/yobit.py CHANGED
@@ -6,7 +6,7 @@
6
6
  from ccxt.base.exchange import Exchange
7
7
  from ccxt.abstract.yobit import ImplicitAPI
8
8
  import hashlib
9
- from ccxt.base.types import Balances, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees
9
+ from ccxt.base.types import Balances, DepositAddress, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees
10
10
  from typing import List
11
11
  from ccxt.base.errors import ExchangeError
12
12
  from ccxt.base.errors import AuthenticationError
@@ -51,27 +51,48 @@ class yobit(Exchange, ImplicitAPI):
51
51
  'createStopMarketOrder': False,
52
52
  'createStopOrder': False,
53
53
  'fetchBalance': True,
54
+ 'fetchBorrowInterest': False,
55
+ 'fetchBorrowRate': False,
54
56
  'fetchBorrowRateHistories': False,
55
57
  'fetchBorrowRateHistory': False,
58
+ 'fetchBorrowRates': False,
59
+ 'fetchBorrowRatesPerSymbol': False,
56
60
  'fetchCrossBorrowRate': False,
57
61
  'fetchCrossBorrowRates': False,
58
62
  'fetchDepositAddress': True,
63
+ 'fetchDepositAddresses': False,
64
+ 'fetchDepositAddressesByNetwork': False,
59
65
  'fetchDeposits': False,
60
66
  'fetchFundingHistory': False,
67
+ 'fetchFundingInterval': False,
68
+ 'fetchFundingIntervals': False,
61
69
  'fetchFundingRate': False,
62
70
  'fetchFundingRateHistory': False,
63
71
  'fetchFundingRates': False,
72
+ 'fetchGreeks': False,
64
73
  'fetchIndexOHLCV': False,
65
74
  'fetchIsolatedBorrowRate': False,
66
75
  'fetchIsolatedBorrowRates': False,
76
+ 'fetchIsolatedPositions': False,
67
77
  'fetchLeverage': False,
78
+ 'fetchLeverages': False,
68
79
  'fetchLeverageTiers': False,
80
+ 'fetchLiquidations': False,
81
+ 'fetchMarginAdjustmentHistory': False,
69
82
  'fetchMarginMode': False,
83
+ 'fetchMarginModes': False,
84
+ 'fetchMarketLeverageTiers': False,
70
85
  'fetchMarkets': True,
71
86
  'fetchMarkOHLCV': False,
87
+ 'fetchMarkPrices': False,
88
+ 'fetchMyLiquidations': False,
89
+ 'fetchMySettlementHistory': False,
72
90
  'fetchMyTrades': True,
91
+ 'fetchOpenInterest': False,
73
92
  'fetchOpenInterestHistory': False,
74
93
  'fetchOpenOrders': True,
94
+ 'fetchOption': False,
95
+ 'fetchOptionChain': False,
75
96
  'fetchOrder': True,
76
97
  'fetchOrderBook': True,
77
98
  'fetchOrderBooks': True,
@@ -83,6 +104,7 @@ class yobit(Exchange, ImplicitAPI):
83
104
  'fetchPositionsHistory': False,
84
105
  'fetchPositionsRisk': False,
85
106
  'fetchPremiumIndexOHLCV': False,
107
+ 'fetchSettlementHistory': False,
86
108
  'fetchTicker': True,
87
109
  'fetchTickers': True,
88
110
  'fetchTrades': True,
@@ -91,9 +113,14 @@ class yobit(Exchange, ImplicitAPI):
91
113
  'fetchTransactions': False,
92
114
  'fetchTransfer': False,
93
115
  'fetchTransfers': False,
116
+ 'fetchUnderlyingAssets': False,
117
+ 'fetchVolatilityHistory': False,
94
118
  'fetchWithdrawals': False,
95
119
  'reduceMargin': False,
120
+ 'repayCrossMargin': False,
121
+ 'repayIsolatedMargin': False,
96
122
  'setLeverage': False,
123
+ 'setMargin': False,
97
124
  'setMarginMode': False,
98
125
  'setPositionMode': False,
99
126
  'transfer': False,
@@ -1125,10 +1152,10 @@ class yobit(Exchange, ImplicitAPI):
1125
1152
  'info': response['info'],
1126
1153
  }
1127
1154
 
1128
- def fetch_deposit_address(self, code: str, params={}):
1155
+ def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
1129
1156
  """
1130
- :see: https://yobit.net/en/api
1131
1157
  fetch the deposit address for a currency associated with self account
1158
+ :see: https://yobit.net/en/api
1132
1159
  :param str code: unified currency code
1133
1160
  :param dict [params]: extra parameters specific to the exchange API endpoint
1134
1161
  :returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
@@ -1151,29 +1178,11 @@ class yobit(Exchange, ImplicitAPI):
1151
1178
  address = self.safe_string(response['return'], 'address')
1152
1179
  self.check_address(address)
1153
1180
  return {
1154
- 'id': None,
1181
+ 'info': response,
1155
1182
  'currency': code,
1183
+ 'network': None,
1156
1184
  'address': address,
1157
1185
  'tag': None,
1158
- 'network': None,
1159
- 'info': response,
1160
- 'txid': None,
1161
- 'type': None,
1162
- 'amount': None,
1163
- 'status': None,
1164
- 'timestamp': None,
1165
- 'datetime': None,
1166
- 'addressFrom': None,
1167
- 'addressTo': None,
1168
- 'tagFrom': None,
1169
- 'tagTo': None,
1170
- 'updated': None,
1171
- 'comment': None,
1172
- 'fee': {
1173
- 'currency': None,
1174
- 'cost': None,
1175
- 'rate': None,
1176
- },
1177
1186
  }
1178
1187
 
1179
1188
  def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
ccxt/zonda.py CHANGED
@@ -6,7 +6,7 @@
6
6
  from ccxt.base.exchange import Exchange
7
7
  from ccxt.abstract.zonda import ImplicitAPI
8
8
  import hashlib
9
- from ccxt.base.types import Balances, Currency, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, TransferEntry
9
+ from ccxt.base.types import Balances, Currency, DepositAddress, Int, LedgerEntry, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, TransferEntry
10
10
  from typing import List
11
11
  from ccxt.base.errors import ExchangeError
12
12
  from ccxt.base.errors import AuthenticationError
@@ -50,32 +50,52 @@ class zonda(Exchange, ImplicitAPI):
50
50
  'createOrder': True,
51
51
  'createReduceOnlyOrder': False,
52
52
  'fetchBalance': True,
53
+ 'fetchBorrowInterest': False,
54
+ 'fetchBorrowRate': False,
53
55
  'fetchBorrowRateHistories': False,
54
56
  'fetchBorrowRateHistory': False,
57
+ 'fetchBorrowRates': False,
58
+ 'fetchBorrowRatesPerSymbol': False,
55
59
  'fetchCrossBorrowRate': False,
56
60
  'fetchCrossBorrowRates': False,
57
61
  'fetchDeposit': False,
58
62
  'fetchDepositAddress': True,
59
63
  'fetchDepositAddresses': True,
64
+ 'fetchDepositAddressesByNetwork': False,
60
65
  'fetchDeposits': None,
61
66
  'fetchFundingHistory': False,
67
+ 'fetchFundingInterval': False,
68
+ 'fetchFundingIntervals': False,
62
69
  'fetchFundingRate': False,
63
70
  'fetchFundingRateHistory': False,
64
71
  'fetchFundingRates': False,
72
+ 'fetchGreeks': False,
65
73
  'fetchIndexOHLCV': False,
66
74
  'fetchIsolatedBorrowRate': False,
67
75
  'fetchIsolatedBorrowRates': False,
76
+ 'fetchIsolatedPositions': False,
68
77
  'fetchLedger': True,
69
78
  'fetchLeverage': False,
79
+ 'fetchLeverages': False,
70
80
  'fetchLeverageTiers': False,
81
+ 'fetchLiquidations': False,
82
+ 'fetchMarginAdjustmentHistory': False,
71
83
  'fetchMarginMode': False,
84
+ 'fetchMarginModes': False,
85
+ 'fetchMarketLeverageTiers': False,
72
86
  'fetchMarkets': True,
73
87
  'fetchMarkOHLCV': False,
88
+ 'fetchMarkPrices': False,
89
+ 'fetchMyLiquidations': False,
90
+ 'fetchMySettlementHistory': False,
74
91
  'fetchMyTrades': True,
75
92
  'fetchOHLCV': True,
93
+ 'fetchOpenInterest': False,
76
94
  'fetchOpenInterestHistory': False,
77
95
  'fetchOpenOrder': False,
78
96
  'fetchOpenOrders': True,
97
+ 'fetchOption': False,
98
+ 'fetchOptionChain': False,
79
99
  'fetchOrderBook': True,
80
100
  'fetchOrderBooks': False,
81
101
  'fetchPosition': False,
@@ -83,6 +103,7 @@ class zonda(Exchange, ImplicitAPI):
83
103
  'fetchPositions': False,
84
104
  'fetchPositionsRisk': False,
85
105
  'fetchPremiumIndexOHLCV': False,
106
+ 'fetchSettlementHistory': False,
86
107
  'fetchTicker': True,
87
108
  'fetchTickers': True,
88
109
  'fetchTime': False,
@@ -93,9 +114,13 @@ class zonda(Exchange, ImplicitAPI):
93
114
  'fetchTransactionFees': False,
94
115
  'fetchTransactions': None,
95
116
  'fetchTransfer': False,
117
+ 'fetchUnderlyingAssets': False,
118
+ 'fetchVolatilityHistory': False,
96
119
  'fetchWithdrawal': False,
97
120
  'fetchWithdrawals': None,
98
121
  'reduceMargin': False,
122
+ 'repayCrossMargin': False,
123
+ 'repayIsolatedMargin': False,
99
124
  'setLeverage': False,
100
125
  'setMargin': False,
101
126
  'setMarginMode': False,
@@ -1476,7 +1501,7 @@ class zonda(Exchange, ImplicitAPI):
1476
1501
  }
1477
1502
  return self.safe_bool(fiatCurrencies, currency, False)
1478
1503
 
1479
- def parse_deposit_address(self, depositAddress, currency: Currency = None):
1504
+ def parse_deposit_address(self, depositAddress, currency: Currency = None) -> DepositAddress:
1480
1505
  #
1481
1506
  # {
1482
1507
  # "address": "33u5YAEhQbYfjHHPsfMfCoSdEjfwYjVcBE",
@@ -1490,14 +1515,14 @@ class zonda(Exchange, ImplicitAPI):
1490
1515
  address = self.safe_string(depositAddress, 'address')
1491
1516
  self.check_address(address)
1492
1517
  return {
1518
+ 'info': depositAddress,
1493
1519
  'currency': self.safe_currency_code(currencyId, currency),
1520
+ 'network': None,
1494
1521
  'address': address,
1495
1522
  'tag': self.safe_string(depositAddress, 'tag'),
1496
- 'network': None,
1497
- 'info': depositAddress,
1498
1523
  }
1499
1524
 
1500
- def fetch_deposit_address(self, code: str, params={}):
1525
+ def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
1501
1526
  """
1502
1527
  :see: https://docs.zondacrypto.exchange/reference/deposit-addresses-for-crypto
1503
1528
  fetch the deposit address for a currency associated with self account
@@ -1529,7 +1554,7 @@ class zonda(Exchange, ImplicitAPI):
1529
1554
  first = self.safe_dict(data, 0)
1530
1555
  return self.parse_deposit_address(first, currency)
1531
1556
 
1532
- def fetch_deposit_addresses(self, codes: Strings = None, params={}):
1557
+ def fetch_deposit_addresses(self, codes: Strings = None, params={}) -> List[DepositAddress]:
1533
1558
  """
1534
1559
  :see: https://docs.zondacrypto.exchange/reference/deposit-addresses-for-crypto
1535
1560
  fetch deposit addresses for multiple currencies and chain types
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ccxt
3
- Version: 4.4.14
3
+ Version: 4.4.16
4
4
  Summary: A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 100+ exchanges
5
5
  Home-page: https://ccxt.com
6
6
  Author: Igor Kroitor
@@ -271,13 +271,13 @@ console.log(version, Object.keys(exchanges));
271
271
 
272
272
  All-in-one browser bundle (dependencies included), served from a CDN of your choice:
273
273
 
274
- * jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.4.14/dist/ccxt.browser.min.js
275
- * unpkg: https://unpkg.com/ccxt@4.4.14/dist/ccxt.browser.min.js
274
+ * jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.4.16/dist/ccxt.browser.min.js
275
+ * unpkg: https://unpkg.com/ccxt@4.4.16/dist/ccxt.browser.min.js
276
276
 
277
277
  CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.
278
278
 
279
279
  ```HTML
280
- <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.4.14/dist/ccxt.browser.min.js"></script>
280
+ <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.4.16/dist/ccxt.browser.min.js"></script>
281
281
  ```
282
282
 
283
283
  Creates a global `ccxt` object: