ccxt 4.3.88__py2.py3-none-any.whl → 4.3.90__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 (105) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/ace.py +1 -0
  3. ccxt/alpaca.py +3 -2
  4. ccxt/ascendex.py +102 -116
  5. ccxt/async_support/__init__.py +1 -1
  6. ccxt/async_support/ace.py +1 -0
  7. ccxt/async_support/alpaca.py +3 -2
  8. ccxt/async_support/ascendex.py +102 -116
  9. ccxt/async_support/base/exchange.py +1 -1
  10. ccxt/async_support/bigone.py +1 -0
  11. ccxt/async_support/bingx.py +30 -17
  12. ccxt/async_support/bit2c.py +1 -0
  13. ccxt/async_support/bitbank.py +1 -0
  14. ccxt/async_support/bitfinex.py +1 -0
  15. ccxt/async_support/bitfinex2.py +21 -22
  16. ccxt/async_support/bitflyer.py +1 -0
  17. ccxt/async_support/bitget.py +3 -2
  18. ccxt/async_support/bitmart.py +4 -8
  19. ccxt/async_support/bitmex.py +1 -0
  20. ccxt/async_support/bitopro.py +1 -0
  21. ccxt/async_support/bitrue.py +62 -71
  22. ccxt/async_support/bitso.py +1 -0
  23. ccxt/async_support/bitstamp.py +1 -0
  24. ccxt/async_support/bitvavo.py +1 -0
  25. ccxt/async_support/blockchaincom.py +1 -0
  26. ccxt/async_support/btcalpha.py +1 -0
  27. ccxt/async_support/btcbox.py +1 -0
  28. ccxt/async_support/btcmarkets.py +1 -0
  29. ccxt/async_support/bybit.py +2 -0
  30. ccxt/async_support/cex.py +1 -0
  31. ccxt/async_support/coinbaseexchange.py +1 -0
  32. ccxt/async_support/coinbaseinternational.py +2 -1
  33. ccxt/async_support/coinex.py +1 -16
  34. ccxt/async_support/cryptocom.py +0 -12
  35. ccxt/async_support/hitbtc.py +1 -0
  36. ccxt/async_support/huobijp.py +0 -8
  37. ccxt/async_support/kraken.py +48 -48
  38. ccxt/async_support/latoken.py +1 -0
  39. ccxt/async_support/mexc.py +1 -61
  40. ccxt/async_support/okcoin.py +4 -9
  41. ccxt/async_support/okx.py +1 -8
  42. ccxt/async_support/onetrading.py +1 -0
  43. ccxt/async_support/phemex.py +1 -0
  44. ccxt/async_support/poloniexfutures.py +1 -0
  45. ccxt/async_support/probit.py +1 -0
  46. ccxt/async_support/vertex.py +1 -0
  47. ccxt/async_support/whitebit.py +5 -3
  48. ccxt/async_support/woo.py +1 -0
  49. ccxt/async_support/woofipro.py +1 -0
  50. ccxt/base/exchange.py +6 -4
  51. ccxt/bigone.py +1 -0
  52. ccxt/bingx.py +30 -17
  53. ccxt/bit2c.py +1 -0
  54. ccxt/bitbank.py +1 -0
  55. ccxt/bitfinex.py +1 -0
  56. ccxt/bitfinex2.py +21 -22
  57. ccxt/bitflyer.py +1 -0
  58. ccxt/bitget.py +3 -2
  59. ccxt/bitmart.py +4 -8
  60. ccxt/bitmex.py +1 -0
  61. ccxt/bitopro.py +1 -0
  62. ccxt/bitrue.py +62 -71
  63. ccxt/bitso.py +1 -0
  64. ccxt/bitstamp.py +1 -0
  65. ccxt/bitvavo.py +1 -0
  66. ccxt/blockchaincom.py +1 -0
  67. ccxt/btcalpha.py +1 -0
  68. ccxt/btcbox.py +1 -0
  69. ccxt/btcmarkets.py +1 -0
  70. ccxt/bybit.py +2 -0
  71. ccxt/cex.py +1 -0
  72. ccxt/coinbaseexchange.py +1 -0
  73. ccxt/coinbaseinternational.py +2 -1
  74. ccxt/coinex.py +1 -16
  75. ccxt/cryptocom.py +0 -12
  76. ccxt/hitbtc.py +1 -0
  77. ccxt/huobijp.py +0 -8
  78. ccxt/kraken.py +48 -48
  79. ccxt/latoken.py +1 -0
  80. ccxt/mexc.py +1 -61
  81. ccxt/okcoin.py +4 -9
  82. ccxt/okx.py +1 -8
  83. ccxt/onetrading.py +1 -0
  84. ccxt/phemex.py +1 -0
  85. ccxt/poloniexfutures.py +1 -0
  86. ccxt/pro/__init__.py +1 -1
  87. ccxt/pro/binance.py +280 -0
  88. ccxt/pro/bingx.py +235 -85
  89. ccxt/pro/bithumb.py +4 -0
  90. ccxt/pro/bitvavo.py +1 -0
  91. ccxt/pro/bybit.py +253 -2
  92. ccxt/pro/cex.py +1 -0
  93. ccxt/pro/coinex.py +941 -662
  94. ccxt/pro/lbank.py +1 -2
  95. ccxt/pro/okx.py +142 -2
  96. ccxt/probit.py +1 -0
  97. ccxt/vertex.py +1 -0
  98. ccxt/whitebit.py +5 -3
  99. ccxt/woo.py +1 -0
  100. ccxt/woofipro.py +1 -0
  101. {ccxt-4.3.88.dist-info → ccxt-4.3.90.dist-info}/METADATA +4 -4
  102. {ccxt-4.3.88.dist-info → ccxt-4.3.90.dist-info}/RECORD +105 -105
  103. {ccxt-4.3.88.dist-info → ccxt-4.3.90.dist-info}/LICENSE.txt +0 -0
  104. {ccxt-4.3.88.dist-info → ccxt-4.3.90.dist-info}/WHEEL +0 -0
  105. {ccxt-4.3.88.dist-info → ccxt-4.3.90.dist-info}/top_level.txt +0 -0
ccxt/bitfinex2.py CHANGED
@@ -397,6 +397,25 @@ class bitfinex2(Exchange, ImplicitAPI):
397
397
  'withdraw': {
398
398
  'includeFee': False,
399
399
  },
400
+ 'networks': {
401
+ 'BTC': 'BITCOIN',
402
+ 'LTC': 'LITECOIN',
403
+ 'ERC20': 'ETHEREUM',
404
+ 'OMNI': 'TETHERUSO',
405
+ 'LIQUID': 'TETHERUSL',
406
+ 'TRC20': 'TETHERUSX',
407
+ 'EOS': 'TETHERUSS',
408
+ 'AVAX': 'TETHERUSDTAVAX',
409
+ 'SOL': 'TETHERUSDTSOL',
410
+ 'ALGO': 'TETHERUSDTALG',
411
+ 'BCH': 'TETHERUSDTBCH',
412
+ 'KSM': 'TETHERUSDTKSM',
413
+ 'DVF': 'TETHERUSDTDVF',
414
+ 'OMG': 'TETHERUSDTOMG',
415
+ },
416
+ 'networksById': {
417
+ 'TETHERUSE': 'ERC20',
418
+ },
400
419
  },
401
420
  'exceptions': {
402
421
  'exact': {
@@ -791,7 +810,7 @@ class bitfinex2(Exchange, ImplicitAPI):
791
810
  networkId = self.safe_string(pair, 0)
792
811
  currencyId = self.safe_string(self.safe_value(pair, 1, []), 0)
793
812
  if currencyId == cleanId:
794
- network = self.safe_network(networkId)
813
+ network = self.network_id_to_code(networkId)
795
814
  networks[network] = {
796
815
  'info': networkId,
797
816
  'id': networkId.lower(),
@@ -814,26 +833,6 @@ class bitfinex2(Exchange, ImplicitAPI):
814
833
  result[code]['networks'] = networks
815
834
  return result
816
835
 
817
- def safe_network(self, networkId):
818
- networksById: dict = {
819
- 'BITCOIN': 'BTC',
820
- 'LITECOIN': 'LTC',
821
- 'ETHEREUM': 'ERC20',
822
- 'TETHERUSE': 'ERC20',
823
- 'TETHERUSO': 'OMNI',
824
- 'TETHERUSL': 'LIQUID',
825
- 'TETHERUSX': 'TRC20',
826
- 'TETHERUSS': 'EOS',
827
- 'TETHERUSDTAVAX': 'AVAX',
828
- 'TETHERUSDTSOL': 'SOL',
829
- 'TETHERUSDTALG': 'ALGO',
830
- 'TETHERUSDTBCH': 'BCH',
831
- 'TETHERUSDTKSM': 'KSM',
832
- 'TETHERUSDTDVF': 'DVF',
833
- 'TETHERUSDTOMG': 'OMG',
834
- }
835
- return self.safe_string(networksById, networkId, networkId)
836
-
837
836
  def fetch_balance(self, params={}) -> Balances:
838
837
  """
839
838
  query for balance and get the amount of funds available for trading or funds locked in orders
@@ -2249,7 +2248,7 @@ class bitfinex2(Exchange, ImplicitAPI):
2249
2248
  currencyId = self.safe_string(transaction, 1)
2250
2249
  code = self.safe_currency_code(currencyId, currency)
2251
2250
  networkId = self.safe_string(transaction, 2)
2252
- network = self.safe_network(networkId)
2251
+ network = self.network_id_to_code(networkId)
2253
2252
  timestamp = self.safe_integer(transaction, 5)
2254
2253
  updated = self.safe_integer(transaction, 6)
2255
2254
  status = self.parse_transaction_status(self.safe_string(transaction, 9))
ccxt/bitflyer.py CHANGED
@@ -687,6 +687,7 @@ class bitflyer(Exchange, ImplicitAPI):
687
687
  """
688
688
  fetches information on an order made by the user
689
689
  :see: https://lightning.bitflyer.com/docs?lang=en#list-orders
690
+ :param str id: the order id
690
691
  :param str symbol: unified symbol of the market the order was made in
691
692
  :param dict [params]: extra parameters specific to the exchange API endpoint
692
693
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
ccxt/bitget.py CHANGED
@@ -3846,7 +3846,7 @@ class bitget(Exchange, ImplicitAPI):
3846
3846
  if feeCostString is not None:
3847
3847
  # swap
3848
3848
  fee = {
3849
- 'cost': self.parse_number(Precise.string_abs(feeCostString)),
3849
+ 'cost': self.parse_number(Precise.string_neg(feeCostString)),
3850
3850
  'currency': market['settle'],
3851
3851
  }
3852
3852
  feeDetail = self.safe_value(order, 'feeDetail')
@@ -3860,7 +3860,7 @@ class bitget(Exchange, ImplicitAPI):
3860
3860
  feeObject = feeValue
3861
3861
  break
3862
3862
  fee = {
3863
- 'cost': self.parse_number(Precise.string_abs(self.safe_string(feeObject, 'totalFee'))),
3863
+ 'cost': self.parse_number(Precise.string_neg(self.safe_string(feeObject, 'totalFee'))),
3864
3864
  'currency': self.safe_currency_code(self.safe_string(feeObject, 'feeCoinCode')),
3865
3865
  }
3866
3866
  postOnly = None
@@ -4770,6 +4770,7 @@ class bitget(Exchange, ImplicitAPI):
4770
4770
  fetches information on an order made by the user
4771
4771
  :see: https://www.bitget.com/api-doc/spot/trade/Get-Order-Info
4772
4772
  :see: https://www.bitget.com/api-doc/contract/trade/Get-Order-Details
4773
+ :param str id: the order id
4773
4774
  :param str symbol: unified symbol of the market the order was made in
4774
4775
  :param dict [params]: extra parameters specific to the exchange API endpoint
4775
4776
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
ccxt/bitmart.py CHANGED
@@ -3209,7 +3209,10 @@ class bitmart(Exchange, ImplicitAPI):
3209
3209
  parts = chain.split('-')
3210
3210
  partsLength = len(parts)
3211
3211
  networkId = self.safe_string(parts, partsLength - 1)
3212
- network = self.safe_network_code(networkId, currency)
3212
+ if networkId == self.safe_string(currency, 'name'):
3213
+ network = self.safe_string(currency, 'code')
3214
+ else:
3215
+ network = self.network_id_to_code(networkId)
3213
3216
  self.check_address(address)
3214
3217
  return {
3215
3218
  'info': depositAddress,
@@ -3219,13 +3222,6 @@ class bitmart(Exchange, ImplicitAPI):
3219
3222
  'network': network,
3220
3223
  }
3221
3224
 
3222
- def safe_network_code(self, networkId, currency=None):
3223
- name = self.safe_string(currency, 'name')
3224
- if networkId == name:
3225
- code = self.safe_string(currency, 'code')
3226
- return code
3227
- return self.network_id_to_code(networkId)
3228
-
3229
3225
  def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
3230
3226
  """
3231
3227
  make a withdrawal
ccxt/bitmex.py CHANGED
@@ -861,6 +861,7 @@ class bitmex(Exchange, ImplicitAPI):
861
861
  """
862
862
  fetches information on an order made by the user
863
863
  :see: https://www.bitmex.com/api/explorer/#not /Order/Order_getOrders
864
+ :param str id: the order id
864
865
  :param str symbol: unified symbol of the market the order was made in
865
866
  :param dict [params]: extra parameters specific to the exchange API endpoint
866
867
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
ccxt/bitopro.py CHANGED
@@ -1118,6 +1118,7 @@ class bitopro(Exchange, ImplicitAPI):
1118
1118
  """
1119
1119
  fetches information on an order made by the user
1120
1120
  :see: https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_an_order_data.md
1121
+ :param str id: the order id
1121
1122
  :param str symbol: unified symbol of the market the order was made in
1122
1123
  :param dict [params]: extra parameters specific to the exchange API endpoint
1123
1124
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
ccxt/bitrue.py CHANGED
@@ -355,6 +355,67 @@ class bitrue(Exchange, ImplicitAPI):
355
355
  'networks': {
356
356
  'ERC20': 'ETH',
357
357
  'TRC20': 'TRX',
358
+ 'AETERNITY': 'Aeternity',
359
+ 'AION': 'AION',
360
+ 'ALGO': 'Algorand',
361
+ 'ASK': 'ASK',
362
+ 'ATOM': 'ATOM',
363
+ 'AVAXC': 'AVAX C-Chain',
364
+ 'BCH': 'BCH',
365
+ 'BEP2': 'BEP2',
366
+ 'BEP20': 'BEP20',
367
+ 'Bitcoin': 'Bitcoin',
368
+ 'BRP20': 'BRP20',
369
+ 'ADA': 'Cardano',
370
+ 'CASINOCOIN': 'CasinoCoin',
371
+ 'CASINOCOIN-XRPL': 'CasinoCoin XRPL',
372
+ 'CONTENTOS': 'Contentos',
373
+ 'DASH': 'Dash',
374
+ 'DECOIN': 'Decoin',
375
+ 'DFI': 'DeFiChain',
376
+ 'DGB': 'DGB',
377
+ 'DIVI': 'Divi',
378
+ 'DOGE': 'dogecoin',
379
+ 'EOS': 'EOS',
380
+ 'ETC': 'ETC',
381
+ 'FILECOIN': 'Filecoin',
382
+ 'FREETON': 'FREETON',
383
+ 'HBAR': 'HBAR',
384
+ 'HEDERA': 'Hedera Hashgraph',
385
+ 'HRC20': 'HRC20',
386
+ 'ICON': 'ICON',
387
+ 'ICP': 'ICP',
388
+ 'IGNIS': 'Ignis',
389
+ 'INTERNETCOMPUTER': 'Internet Computer',
390
+ 'IOTA': 'IOTA',
391
+ 'KAVA': 'KAVA',
392
+ 'KSM': 'KSM',
393
+ 'LTC': 'LiteCoin',
394
+ 'LUNA': 'Luna',
395
+ 'MATIC': 'MATIC',
396
+ 'MOBILECOIN': 'Mobile Coin',
397
+ 'MONACOIN': 'MonaCoin',
398
+ 'XMR': 'Monero',
399
+ 'NEM': 'NEM',
400
+ 'NEP5': 'NEP5',
401
+ 'OMNI': 'OMNI',
402
+ 'PAC': 'PAC',
403
+ 'DOT': 'Polkadot',
404
+ 'RAVEN': 'Ravencoin',
405
+ 'SAFEX': 'Safex',
406
+ 'SOL': 'SOLANA',
407
+ 'SGB': 'Songbird',
408
+ 'XML': 'Stellar Lumens',
409
+ 'XYM': 'Symbol',
410
+ 'XTZ': 'Tezos',
411
+ 'theta': 'theta',
412
+ 'THETA': 'THETA',
413
+ 'VECHAIN': 'VeChain',
414
+ 'WANCHAIN': 'Wanchain',
415
+ 'XINFIN': 'XinFin Network',
416
+ 'XRP': 'XRP',
417
+ 'XRPL': 'XRPL',
418
+ 'ZIL': 'ZIL',
358
419
  },
359
420
  'defaultType': 'spot',
360
421
  'timeframes': {
@@ -521,77 +582,6 @@ class bitrue(Exchange, ImplicitAPI):
521
582
  #
522
583
  return self.safe_integer(response, 'serverTime')
523
584
 
524
- def safe_network(self, networkId):
525
- uppercaseNetworkId = networkId.upper()
526
- networksById: dict = {
527
- 'Aeternity': 'Aeternity',
528
- 'AION': 'AION',
529
- 'Algorand': 'Algorand',
530
- 'ASK': 'ASK',
531
- 'ATOM': 'ATOM',
532
- 'AVAX C-Chain': 'AVAX C-Chain',
533
- 'bch': 'bch',
534
- 'BCH': 'BCH',
535
- 'BEP2': 'BEP2',
536
- 'BEP20': 'BEP20',
537
- 'Bitcoin': 'Bitcoin',
538
- 'BRP20': 'BRP20',
539
- 'Cardano': 'ADA',
540
- 'CasinoCoin': 'CasinoCoin',
541
- 'CasinoCoin XRPL': 'CasinoCoin XRPL',
542
- 'Contentos': 'Contentos',
543
- 'Dash': 'Dash',
544
- 'Decoin': 'Decoin',
545
- 'DeFiChain': 'DeFiChain',
546
- 'DGB': 'DGB',
547
- 'Divi': 'Divi',
548
- 'dogecoin': 'DOGE',
549
- 'EOS': 'EOS',
550
- 'ERC20': 'ERC20',
551
- 'ETC': 'ETC',
552
- 'Filecoin': 'Filecoin',
553
- 'FREETON': 'FREETON',
554
- 'HBAR': 'HBAR',
555
- 'Hedera Hashgraph': 'Hedera Hashgraph',
556
- 'HRC20': 'HRC20',
557
- 'ICON': 'ICON',
558
- 'ICP': 'ICP',
559
- 'Ignis': 'Ignis',
560
- 'Internet Computer': 'Internet Computer',
561
- 'IOTA': 'IOTA',
562
- 'KAVA': 'KAVA',
563
- 'KSM': 'KSM',
564
- 'LiteCoin': 'LiteCoin',
565
- 'Luna': 'Luna',
566
- 'MATIC': 'MATIC',
567
- 'Mobile Coin': 'Mobile Coin',
568
- 'MonaCoin': 'MonaCoin',
569
- 'Monero': 'Monero',
570
- 'NEM': 'NEM',
571
- 'NEP5': 'NEP5',
572
- 'OMNI': 'OMNI',
573
- 'PAC': 'PAC',
574
- 'Polkadot': 'Polkadot',
575
- 'Ravencoin': 'Ravencoin',
576
- 'Safex': 'Safex',
577
- 'SOLANA': 'SOL',
578
- 'Songbird': 'Songbird',
579
- 'Stellar Lumens': 'Stellar Lumens',
580
- 'Symbol': 'Symbol',
581
- 'Tezos': 'XTZ',
582
- 'theta': 'theta',
583
- 'THETA': 'THETA',
584
- 'TRC20': 'TRC20',
585
- 'VeChain': 'VeChain',
586
- 'VECHAIN': 'VECHAIN',
587
- 'Wanchain': 'Wanchain',
588
- 'XinFin Network': 'XinFin Network',
589
- 'XRP': 'XRP',
590
- 'XRPL': 'XRPL',
591
- 'ZIL': 'ZIL',
592
- }
593
- return self.safe_string_2(networksById, networkId, uppercaseNetworkId, networkId)
594
-
595
585
  def fetch_currencies(self, params={}) -> Currencies:
596
586
  """
597
587
  fetches all available currencies on an exchange
@@ -1941,6 +1931,7 @@ class bitrue(Exchange, ImplicitAPI):
1941
1931
  :see: https://github.com/Bitrue-exchange/Spot-official-api-docs#query-order-user_data
1942
1932
  :see: https://www.bitrue.com/api-docs#query-order-user_data-hmac-sha256
1943
1933
  :see: https://www.bitrue.com/api_docs_includes_file/delivery.html#query-order-user_data-hmac-sha256
1934
+ :param str id: the order id
1944
1935
  :param str symbol: unified symbol of the market the order was made in
1945
1936
  :param dict [params]: extra parameters specific to the exchange API endpoint
1946
1937
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
ccxt/bitso.py CHANGED
@@ -1129,6 +1129,7 @@ class bitso(Exchange, ImplicitAPI):
1129
1129
  """
1130
1130
  fetches information on an order made by the user
1131
1131
  :see: https://docs.bitso.com/bitso-api/docs/look-up-orders
1132
+ :param str id: the order id
1132
1133
  :param str symbol: not used by bitso fetchOrder
1133
1134
  :param dict [params]: extra parameters specific to the exchange API endpoint
1134
1135
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
ccxt/bitstamp.py CHANGED
@@ -1466,6 +1466,7 @@ class bitstamp(Exchange, ImplicitAPI):
1466
1466
  """
1467
1467
  fetches information on an order made by the user
1468
1468
  :see: https://www.bitstamp.net/api/#tag/Orders/operation/GetOrderStatus
1469
+ :param str id: the order id
1469
1470
  :param str symbol: unified symbol of the market the order was made in
1470
1471
  :param dict [params]: extra parameters specific to the exchange API endpoint
1471
1472
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
ccxt/bitvavo.py CHANGED
@@ -1255,6 +1255,7 @@ class bitvavo(Exchange, ImplicitAPI):
1255
1255
  """
1256
1256
  fetches information on an order made by the user
1257
1257
  :see: https://docs.bitvavo.com/#tag/Trading-endpoints/paths/~1order/get
1258
+ :param str id: the order id
1258
1259
  :param str symbol: unified symbol of the market the order was made in
1259
1260
  :param dict [params]: extra parameters specific to the exchange API endpoint
1260
1261
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
ccxt/blockchaincom.py CHANGED
@@ -1036,6 +1036,7 @@ class blockchaincom(Exchange, ImplicitAPI):
1036
1036
  """
1037
1037
  fetches information on an order made by the user
1038
1038
  :see: https://api.blockchain.com/v3/#getorderbyid
1039
+ :param str id: the order id
1039
1040
  :param str symbol: not used by blockchaincom fetchOrder
1040
1041
  :param dict [params]: extra parameters specific to the exchange API endpoint
1041
1042
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
ccxt/btcalpha.py CHANGED
@@ -760,6 +760,7 @@ class btcalpha(Exchange, ImplicitAPI):
760
760
  """
761
761
  :see: https://btc-alpha.github.io/api-docs/#retrieve-single-order
762
762
  fetches information on an order made by the user
763
+ :param str id: the order id
763
764
  :param str symbol: not used by btcalpha fetchOrder
764
765
  :param dict [params]: extra parameters specific to the exchange API endpoint
765
766
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
ccxt/btcbox.py CHANGED
@@ -549,6 +549,7 @@ class btcbox(Exchange, ImplicitAPI):
549
549
  """
550
550
  fetches information on an order made by the user
551
551
  :see: https://blog.btcbox.jp/en/archives/8762#toc16
552
+ :param str id: the order id
552
553
  :param str symbol: unified symbol of the market the order was made in
553
554
  :param dict [params]: extra parameters specific to the exchange API endpoint
554
555
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
ccxt/btcmarkets.py CHANGED
@@ -1018,6 +1018,7 @@ class btcmarkets(Exchange, ImplicitAPI):
1018
1018
  """
1019
1019
  fetches information on an order made by the user
1020
1020
  :see: https://docs.btcmarkets.net/v3/#operation/getOrderById
1021
+ :param str id: the order id
1021
1022
  :param str symbol: not used by btcmarkets fetchOrder
1022
1023
  :param dict [params]: extra parameters specific to the exchange API endpoint
1023
1024
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
ccxt/bybit.py CHANGED
@@ -4493,6 +4493,7 @@ class bybit(Exchange, ImplicitAPI):
4493
4493
  """
4494
4494
  fetches information on an order made by the user *classic accounts only*
4495
4495
  :see: https://bybit-exchange.github.io/docs/v5/order/order-list
4496
+ :param str id: the order id
4496
4497
  :param str symbol: unified symbol of the market the order was made in
4497
4498
  :param dict [params]: extra parameters specific to the exchange API endpoint
4498
4499
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -4520,6 +4521,7 @@ class bybit(Exchange, ImplicitAPI):
4520
4521
  """
4521
4522
  *classic accounts only/ spot not supported* fetches information on an order made by the user *classic accounts only*
4522
4523
  :see: https://bybit-exchange.github.io/docs/v5/order/order-list
4524
+ :param str id: the order id
4523
4525
  :param str symbol: unified symbol of the market the order was made in
4524
4526
  :param dict [params]: extra parameters specific to the exchange API endpoint
4525
4527
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
ccxt/cex.py CHANGED
@@ -1149,6 +1149,7 @@ class cex(Exchange, ImplicitAPI):
1149
1149
  """
1150
1150
  :see: https://docs.cex.io/?python#get-order-details
1151
1151
  fetches information on an order made by the user
1152
+ :param str id: the order id
1152
1153
  :param str symbol: not used by cex fetchOrder
1153
1154
  :param dict [params]: extra parameters specific to the exchange API endpoint
1154
1155
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
ccxt/coinbaseexchange.py CHANGED
@@ -1047,6 +1047,7 @@ class coinbaseexchange(Exchange, ImplicitAPI):
1047
1047
  """
1048
1048
  :see: https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getorder
1049
1049
  fetches information on an order made by the user
1050
+ :param str id: the order id
1050
1051
  :param str symbol: not used by coinbaseexchange fetchOrder
1051
1052
  :param dict [params]: extra parameters specific to the exchange API endpoint
1052
1053
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -754,11 +754,12 @@ class coinbaseinternational(Exchange, ImplicitAPI):
754
754
  currencyId = self.safe_string(network, 'asset_name')
755
755
  currencyCode = self.safe_currency_code(currencyId)
756
756
  networkId = self.safe_string(network, 'network_arn_id')
757
+ networkIdForCode = self.safe_string_n(network, ['network_name', 'display_name', 'network_arn_id'], '')
757
758
  return self.safe_network({
758
759
  'info': network,
759
760
  'id': networkId,
760
761
  'name': self.safe_string(network, 'display_name'),
761
- 'network': self.network_id_to_code(self.safe_string_n(network, ['network_name', 'display_name', 'network_arn_id'], ''), currencyCode),
762
+ 'network': self.network_id_to_code(networkIdForCode, currencyCode),
762
763
  'active': None,
763
764
  'deposit': None,
764
765
  'withdraw': None,
ccxt/coinex.py CHANGED
@@ -3558,24 +3558,9 @@ class coinex(Exchange, ImplicitAPI):
3558
3558
  options = self.safe_dict(self.options, 'fetchDepositAddress', {})
3559
3559
  fillResponseFromRequest = self.safe_bool(options, 'fillResponseFromRequest', True)
3560
3560
  if fillResponseFromRequest:
3561
- depositAddress['network'] = self.safe_network_code(network, currency)
3561
+ depositAddress['network'] = self.network_id_to_code(network, currency).upper()
3562
3562
  return depositAddress
3563
3563
 
3564
- def safe_network(self, networkId, currency: Currency = None):
3565
- networks = self.safe_value(currency, 'networks', {})
3566
- networksCodes = list(networks.keys())
3567
- networksCodesLength = len(networksCodes)
3568
- if networkId is None and networksCodesLength == 1:
3569
- return networks[networksCodes[0]]
3570
- return {
3571
- 'id': networkId,
3572
- 'network': None if (networkId is None) else networkId.upper(),
3573
- }
3574
-
3575
- def safe_network_code(self, networkId, currency: Currency = None):
3576
- network = self.safe_network(networkId, currency)
3577
- return network['network']
3578
-
3579
3564
  def parse_deposit_address(self, depositAddress, currency: Currency = None):
3580
3565
  #
3581
3566
  # {
ccxt/cryptocom.py CHANGED
@@ -1673,18 +1673,6 @@ class cryptocom(Exchange, ImplicitAPI):
1673
1673
  keys = list(depositAddresses.keys())
1674
1674
  return depositAddresses[keys[0]]
1675
1675
 
1676
- def safe_network(self, networkId):
1677
- networksById: dict = {
1678
- 'BTC': 'BTC',
1679
- 'ETH': 'ETH',
1680
- 'SOL': 'SOL',
1681
- 'BNB': 'BNB',
1682
- 'CRONOS': 'CRONOS',
1683
- 'MATIC': 'MATIC',
1684
- 'OP': 'OP',
1685
- }
1686
- return self.safe_string(networksById, networkId, networkId)
1687
-
1688
1676
  def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1689
1677
  """
1690
1678
  fetch all deposits made to an account
ccxt/hitbtc.py CHANGED
@@ -1371,6 +1371,7 @@ class hitbtc(Exchange, ImplicitAPI):
1371
1371
  statuses: dict = {
1372
1372
  'PENDING': 'pending',
1373
1373
  'FAILED': 'failed',
1374
+ 'ROLLED_BACK': 'failed',
1374
1375
  'SUCCESS': 'ok',
1375
1376
  }
1376
1377
  return self.safe_string(statuses, status, status)
ccxt/huobijp.py CHANGED
@@ -1564,14 +1564,6 @@ class huobijp(Exchange, ImplicitAPI):
1564
1564
  def currency_to_precision(self, code, fee, networkCode=None):
1565
1565
  return self.decimal_to_precision(fee, 0, self.currencies[code]['precision'], self.precisionMode)
1566
1566
 
1567
- def safe_network(self, networkId):
1568
- lastCharacterIndex = len(networkId) - 1
1569
- lastCharacter = networkId[lastCharacterIndex]
1570
- if lastCharacter == '1':
1571
- networkId = networkId[0:lastCharacterIndex]
1572
- networksById: dict = {}
1573
- return self.safe_string(networksById, networkId, networkId)
1574
-
1575
1567
  def parse_deposit_address(self, depositAddress, currency: Currency = None):
1576
1568
  #
1577
1569
  # {