coinex-api 0.0.35__py3-none-any.whl → 0.0.37__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.
@@ -734,33 +734,7 @@ class coinex(Exchange, ImplicitAPI):
734
734
  canWithdraw = self.safe_bool(asset, 'withdraw_enabled')
735
735
  firstChain = self.safe_dict(chains, 0, {})
736
736
  firstPrecisionString = self.parse_precision(self.safe_string(firstChain, 'withdrawal_precision'))
737
- result[code] = {
738
- 'id': currencyId,
739
- 'code': code,
740
- 'name': None,
741
- 'active': canDeposit and canWithdraw,
742
- 'deposit': canDeposit,
743
- 'withdraw': canWithdraw,
744
- 'fee': None,
745
- 'precision': self.parse_number(firstPrecisionString),
746
- 'limits': {
747
- 'amount': {
748
- 'min': None,
749
- 'max': None,
750
- },
751
- 'deposit': {
752
- 'min': None,
753
- 'max': None,
754
- },
755
- 'withdraw': {
756
- 'min': None,
757
- 'max': None,
758
- },
759
- },
760
- 'networks': {},
761
- 'type': 'crypto',
762
- 'info': coin,
763
- }
737
+ networks: dict = {}
764
738
  for j in range(0, len(chains)):
765
739
  chain = chains[j]
766
740
  networkId = self.safe_string(chain, 'chain')
@@ -797,9 +771,34 @@ class coinex(Exchange, ImplicitAPI):
797
771
  },
798
772
  'info': chain,
799
773
  }
800
- networks = self.safe_dict(result[code], 'networks', {})
801
774
  networks[networkId] = network
802
- result[code]['networks'] = networks
775
+ result[code] = self.safe_currency_structure({
776
+ 'id': currencyId,
777
+ 'code': code,
778
+ 'name': None,
779
+ 'active': canDeposit and canWithdraw,
780
+ 'deposit': canDeposit,
781
+ 'withdraw': canWithdraw,
782
+ 'fee': None,
783
+ 'precision': self.parse_number(firstPrecisionString),
784
+ 'limits': {
785
+ 'amount': {
786
+ 'min': None,
787
+ 'max': None,
788
+ },
789
+ 'deposit': {
790
+ 'min': None,
791
+ 'max': None,
792
+ },
793
+ 'withdraw': {
794
+ 'min': None,
795
+ 'max': None,
796
+ },
797
+ },
798
+ 'networks': {},
799
+ 'type': 'crypto',
800
+ 'info': coin,
801
+ })
803
802
  return result
804
803
 
805
804
  async def fetch_markets(self, params={}) -> List[Market]:
coinex/ccxt/coinex.py CHANGED
@@ -733,33 +733,7 @@ class coinex(Exchange, ImplicitAPI):
733
733
  canWithdraw = self.safe_bool(asset, 'withdraw_enabled')
734
734
  firstChain = self.safe_dict(chains, 0, {})
735
735
  firstPrecisionString = self.parse_precision(self.safe_string(firstChain, 'withdrawal_precision'))
736
- result[code] = {
737
- 'id': currencyId,
738
- 'code': code,
739
- 'name': None,
740
- 'active': canDeposit and canWithdraw,
741
- 'deposit': canDeposit,
742
- 'withdraw': canWithdraw,
743
- 'fee': None,
744
- 'precision': self.parse_number(firstPrecisionString),
745
- 'limits': {
746
- 'amount': {
747
- 'min': None,
748
- 'max': None,
749
- },
750
- 'deposit': {
751
- 'min': None,
752
- 'max': None,
753
- },
754
- 'withdraw': {
755
- 'min': None,
756
- 'max': None,
757
- },
758
- },
759
- 'networks': {},
760
- 'type': 'crypto',
761
- 'info': coin,
762
- }
736
+ networks: dict = {}
763
737
  for j in range(0, len(chains)):
764
738
  chain = chains[j]
765
739
  networkId = self.safe_string(chain, 'chain')
@@ -796,9 +770,34 @@ class coinex(Exchange, ImplicitAPI):
796
770
  },
797
771
  'info': chain,
798
772
  }
799
- networks = self.safe_dict(result[code], 'networks', {})
800
773
  networks[networkId] = network
801
- result[code]['networks'] = networks
774
+ result[code] = self.safe_currency_structure({
775
+ 'id': currencyId,
776
+ 'code': code,
777
+ 'name': None,
778
+ 'active': canDeposit and canWithdraw,
779
+ 'deposit': canDeposit,
780
+ 'withdraw': canWithdraw,
781
+ 'fee': None,
782
+ 'precision': self.parse_number(firstPrecisionString),
783
+ 'limits': {
784
+ 'amount': {
785
+ 'min': None,
786
+ 'max': None,
787
+ },
788
+ 'deposit': {
789
+ 'min': None,
790
+ 'max': None,
791
+ },
792
+ 'withdraw': {
793
+ 'min': None,
794
+ 'max': None,
795
+ },
796
+ },
797
+ 'networks': {},
798
+ 'type': 'crypto',
799
+ 'info': coin,
800
+ })
802
801
  return result
803
802
 
804
803
  def fetch_markets(self, params={}) -> List[Market]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: coinex-api
3
- Version: 0.0.35
3
+ Version: 0.0.37
4
4
  Summary: coinex crypto exchange api client
5
5
  Project-URL: Homepage, https://github.com/ccxt/ccxt
6
6
  Project-URL: Issues, https://github.com/ccxt/ccxt
@@ -1,9 +1,9 @@
1
1
  coinex/__init__.py,sha256=d633U2PpNFHvpDWLb3lItS0ObcBN0E2XgS5QkOEejI8,246
2
2
  coinex/ccxt/__init__.py,sha256=iqZCOOFCgvbwlhWsSxNsTKyxp9VEEhYDgVhe514QbLI,6048
3
- coinex/ccxt/coinex.py,sha256=z900_rtENIahJ6h5IVKeMQnG_AvQBoFBUi8nqeyExUc,267343
3
+ coinex/ccxt/coinex.py,sha256=CoCBNE0SWXgXBurhdqcsMuMsj3TnYALKFUz-_gLz2XA,267281
4
4
  coinex/ccxt/abstract/coinex.py,sha256=4TRXtWgONqkm3eSL55Y5T7Q4QxJrnOTuhP0ugsKHAWo,34856
5
5
  coinex/ccxt/async_support/__init__.py,sha256=bCU_fcegCykpEJGH1CtnNhRdqz__B-pVOVCynfhYpQI,4781
6
- coinex/ccxt/async_support/coinex.py,sha256=B-40JNdBoWgj-BCMVrdyCNpTTiN-TTV85d8Hv8WxG6E,268631
6
+ coinex/ccxt/async_support/coinex.py,sha256=lj_2qf1gnqmXbVf_pXBZddBFsHeVmh_N2JIxBHhmPwM,268569
7
7
  coinex/ccxt/async_support/base/__init__.py,sha256=aVYSsFi--b4InRs9zDN_wtCpj8odosAB726JdUHavrk,67
8
8
  coinex/ccxt/async_support/base/exchange.py,sha256=xymY5wNLj91rnBu030hAcaAJS8HQQ-x4fQfx9t18fJU,117601
9
9
  coinex/ccxt/async_support/base/throttler.py,sha256=tvDVcdRUVYi8fZRlEcnqtgzcgB_KMUMRs5Pu8tuU-tU,1847
@@ -283,6 +283,6 @@ coinex/ccxt/static_dependencies/toolz/curried/exceptions.py,sha256=gKFOHDIayAWnX
283
283
  coinex/ccxt/static_dependencies/toolz/curried/operator.py,sha256=ML92mknkAwzBl2NCm-4werSUmJEtSHNY9NSzhseNM9s,525
284
284
  coinex/ccxt/static_dependencies/typing_inspect/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
285
285
  coinex/ccxt/static_dependencies/typing_inspect/typing_inspect.py,sha256=5gIWomLPfuDpgd3gX1GlnX0MuXM3VorR4j2W2qXORiQ,28269
286
- coinex_api-0.0.35.dist-info/METADATA,sha256=TmLEQQIyqO4_anJMKb8eXDpcCGY_tgdmtkvg5Q0xbb8,19969
287
- coinex_api-0.0.35.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
288
- coinex_api-0.0.35.dist-info/RECORD,,
286
+ coinex_api-0.0.37.dist-info/METADATA,sha256=G_MZP38TGKOz6Rwx5DgzlVnqx8eyy9503kgUD6w9Hsk,19969
287
+ coinex_api-0.0.37.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
288
+ coinex_api-0.0.37.dist-info/RECORD,,