gate-io-api 0.0.27__py3-none-any.whl → 0.0.29__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.

Potentially problematic release.


This version of gate-io-api might be problematic. Click here for more details.

gate/ccxt/__init__.py CHANGED
@@ -26,7 +26,7 @@ sys.modules['ccxt'] = ccxt_module
26
26
 
27
27
  # ----------------------------------------------------------------------------
28
28
 
29
- __version__ = '4.4.80'
29
+ __version__ = '4.4.82'
30
30
 
31
31
  # ----------------------------------------------------------------------------
32
32
 
@@ -8,7 +8,7 @@ sys.modules['ccxt'] = ccxt_module
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
11
- __version__ = '4.4.80'
11
+ __version__ = '4.4.82'
12
12
 
13
13
  # -----------------------------------------------------------------------------
14
14
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # -----------------------------------------------------------------------------
4
4
 
5
- __version__ = '4.4.80'
5
+ __version__ = '4.4.82'
6
6
 
7
7
  # -----------------------------------------------------------------------------
8
8
 
gate/ccxt/base/errors.py CHANGED
@@ -1,3 +1,9 @@
1
+ # ----------------------------------------------------------------------------
2
+
3
+ # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
+ # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
+ # EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
+
1
7
  error_hierarchy = {
2
8
  'BaseError': {
3
9
  'ExchangeError': {
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.4.80'
7
+ __version__ = '4.4.82'
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
@@ -1000,7 +1000,7 @@ class Exchange(object):
1000
1000
  return string
1001
1001
 
1002
1002
  @staticmethod
1003
- def urlencode(params={}, doseq=False):
1003
+ def urlencode(params={}, doseq=False, sort=False):
1004
1004
  newParams = params.copy()
1005
1005
  for key, value in params.items():
1006
1006
  if isinstance(value, bool):
@@ -5522,6 +5522,24 @@ class Exchange(object):
5522
5522
  def create_expired_option_market(self, symbol: str):
5523
5523
  raise NotSupported(self.id + ' createExpiredOptionMarket() is not supported yet')
5524
5524
 
5525
+ def is_leveraged_currency(self, currencyCode, checkBaseCoin: Bool = False, existingCurrencies: dict = None):
5526
+ leverageSuffixes = [
5527
+ '2L', '2S', '3L', '3S', '4L', '4S', '5L', '5S', # Leveraged Tokens(LT)
5528
+ 'UP', 'DOWN', # exchange-specific(e.g. BLVT)
5529
+ 'BULL', 'BEAR', # similar
5530
+ ]
5531
+ for i in range(0, len(leverageSuffixes)):
5532
+ leverageSuffix = leverageSuffixes[i]
5533
+ if currencyCode.endswith(leverageSuffix):
5534
+ if not checkBaseCoin:
5535
+ return True
5536
+ else:
5537
+ # check if base currency is inside dict
5538
+ baseCurrencyCode = currencyCode.replace(leverageSuffix, '')
5539
+ if baseCurrencyCode in existingCurrencies:
5540
+ return True
5541
+ return False
5542
+
5525
5543
  def handle_withdraw_tag_and_params(self, tag, params):
5526
5544
  if (tag is not None) and (isinstance(tag, dict)):
5527
5545
  params = self.extend(tag, params)
gate/ccxt/pro/__init__.py CHANGED
@@ -8,7 +8,7 @@ sys.modules['ccxt'] = ccxt_module
8
8
 
9
9
  # ----------------------------------------------------------------------------
10
10
 
11
- __version__ = '4.4.80'
11
+ __version__ = '4.4.82'
12
12
 
13
13
  # ----------------------------------------------------------------------------
14
14
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gate-io-api
3
- Version: 0.0.27
3
+ Version: 0.0.29
4
4
  Summary: gate 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,11 +1,11 @@
1
1
  gate/__init__.py,sha256=rmRavmagjlyk7Z5zGWWJiY8tfYIPsk04hRzC4SYJOzA,222
2
- gate/ccxt/__init__.py,sha256=nU4VbtwH26YNAz_wZNh2UOQs7QOrUSSp7pbqTNw8RVA,6044
2
+ gate/ccxt/__init__.py,sha256=MvipGp05VBOTWq3fpq1jGAETZIIqy4KKaTFRMIudd08,6044
3
3
  gate/ccxt/gate.py,sha256=NsqL92pBgTUB0cc1y0sWZVScgLSWje98WPO7MKkKtUI,351150
4
4
  gate/ccxt/abstract/gate.py,sha256=MrRMycFEpZKJ6yC7qi0p_qcwZtU9WJi5bBbVllskGoA,45044
5
- gate/ccxt/async_support/__init__.py,sha256=L44OIz5_cfhVx4TOTpqqqnIsztBZgoxnLZogc5matmU,4777
5
+ gate/ccxt/async_support/__init__.py,sha256=dqcsd61oCwEEZQOX3Rrkc8hz5lGJuYVjZaIrlhPWb_A,4777
6
6
  gate/ccxt/async_support/gate.py,sha256=pYpJtFpqydeVZu-BZrNhS24SWh4NhOCFhh-koFgDU2o,353109
7
7
  gate/ccxt/async_support/base/__init__.py,sha256=aVYSsFi--b4InRs9zDN_wtCpj8odosAB726JdUHavrk,67
8
- gate/ccxt/async_support/base/exchange.py,sha256=fFbTwjLVQEHgO857XsJEKewCRbGEdCK3Fgxe-ju3D50,117601
8
+ gate/ccxt/async_support/base/exchange.py,sha256=xymY5wNLj91rnBu030hAcaAJS8HQQ-x4fQfx9t18fJU,117601
9
9
  gate/ccxt/async_support/base/throttler.py,sha256=tvDVcdRUVYi8fZRlEcnqtgzcgB_KMUMRs5Pu8tuU-tU,1847
10
10
  gate/ccxt/async_support/base/ws/__init__.py,sha256=uockzpLuwntKGZbs5EOWFe-Zg-k6Cj7GhNJLc_RX0so,1791
11
11
  gate/ccxt/async_support/base/ws/aiohttp_client.py,sha256=Y5HxAVXyyYduj6b6SbbUZETlq3GrVMzrkW1r-TMgpb8,6329
@@ -18,11 +18,11 @@ gate/ccxt/async_support/base/ws/order_book.py,sha256=uBUaIHhzMRykpmo4BCsdJ-t_Hoz
18
18
  gate/ccxt/async_support/base/ws/order_book_side.py,sha256=GhnGUt78pJ-AYL_Dq9produGjmBJLCI5FHIRdMz1O-g,6551
19
19
  gate/ccxt/base/__init__.py,sha256=eTx1OE3HJjspFUQjGm6LBhaQiMKJnXjkdP-JUXknyQ0,1320
20
20
  gate/ccxt/base/decimal_to_precision.py,sha256=fgWRBzRTtsf3r2INyS4f7WHlzgjB5YM1ekiwqD21aac,6634
21
- gate/ccxt/base/errors.py,sha256=Pad-6ugvGUwhoYuKUliX-N7FTrcnKCQGFjsaq2tMn0I,4610
22
- gate/ccxt/base/exchange.py,sha256=Htk-wL8Aqmj3XEffVhRsoj_OzpZuFATi0aGkV6oWk64,326255
21
+ gate/ccxt/base/errors.py,sha256=MvCrL_sAM3de616T6RE0PSxiF2xV6Qqz5b1y1ghidbk,4888
22
+ gate/ccxt/base/exchange.py,sha256=5P2wgylW2NDJMPKQJpXvQ3CYcV4eSwIZJs4ckrU1oZo,327106
23
23
  gate/ccxt/base/precise.py,sha256=koce64Yrp6vFbGijJtUt-QQ6XhJgeGTCksZ871FPp_A,8886
24
24
  gate/ccxt/base/types.py,sha256=SfxIKDSsxP7MPHWiOVI965Nr5NSEPpAno5fuveTRi3w,11423
25
- gate/ccxt/pro/__init__.py,sha256=16AcYZD7ffanBM3Az8he1KTtexA9UcVbQeYg73VNOXE,615
25
+ gate/ccxt/pro/__init__.py,sha256=3dJrd91aQNC5fMwSeLyA4ljARE7smAmh8yt9BXOxG5w,615
26
26
  gate/ccxt/pro/gate.py,sha256=TImMphR9V8h9xqDJ541s3zb4NOppfLDc-XoBkntT1nA,89399
27
27
  gate/ccxt/static_dependencies/README.md,sha256=3TCvhhn09_Cqf9BDDpao1V7EfKHDpQ6k9oWRsLFixpU,18
28
28
  gate/ccxt/static_dependencies/__init__.py,sha256=tzFje8cloqmiIE6kola3EaYC0SnD1izWnri69hzHsSw,168
@@ -283,6 +283,6 @@ gate/ccxt/static_dependencies/toolz/curried/exceptions.py,sha256=gKFOHDIayAWnX2u
283
283
  gate/ccxt/static_dependencies/toolz/curried/operator.py,sha256=ML92mknkAwzBl2NCm-4werSUmJEtSHNY9NSzhseNM9s,525
284
284
  gate/ccxt/static_dependencies/typing_inspect/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
285
285
  gate/ccxt/static_dependencies/typing_inspect/typing_inspect.py,sha256=5gIWomLPfuDpgd3gX1GlnX0MuXM3VorR4j2W2qXORiQ,28269
286
- gate_io_api-0.0.27.dist-info/METADATA,sha256=DtVRrmNUoh0SR28hb3Dk1_mu1Z7gxDXTFZbuAK6zP8I,26789
287
- gate_io_api-0.0.27.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
288
- gate_io_api-0.0.27.dist-info/RECORD,,
286
+ gate_io_api-0.0.29.dist-info/METADATA,sha256=Vtro0pfyFKDJd9D7EDpjx1YByOSmTXz_I235uoMAB_Q,26789
287
+ gate_io_api-0.0.29.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
288
+ gate_io_api-0.0.29.dist-info/RECORD,,