gate-io-api 0.0.90__py3-none-any.whl → 0.0.91__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.5.6'
29
+ __version__ = '4.5.7'
30
30
 
31
31
  # ----------------------------------------------------------------------------
32
32
 
@@ -8,7 +8,7 @@ sys.modules['ccxt'] = ccxt_module
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
11
- __version__ = '4.5.6'
11
+ __version__ = '4.5.7'
12
12
 
13
13
  # -----------------------------------------------------------------------------
14
14
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # -----------------------------------------------------------------------------
4
4
 
5
- __version__ = '4.5.6'
5
+ __version__ = '4.5.7'
6
6
 
7
7
  # -----------------------------------------------------------------------------
8
8
 
@@ -1440,8 +1440,8 @@ class gate(Exchange, ImplicitAPI):
1440
1440
  # "leverage_min": "1",
1441
1441
  # "leverage_max": "100",
1442
1442
  # "risk_limit_max": "8000000",
1443
- # "maker_fee_rate": "-0.00025",
1444
- # "taker_fee_rate": "0.00075",
1443
+ # "maker_fee_rate": "-0.00025", # not actual value for regular users
1444
+ # "taker_fee_rate": "0.00075", # not actual value for regular users
1445
1445
  # "funding_rate": "0.002053",
1446
1446
  # "order_size_max": 1000000,
1447
1447
  # "funding_next_apply": 1610035200,
@@ -1485,8 +1485,8 @@ class gate(Exchange, ImplicitAPI):
1485
1485
  # "risk_limit_base": "140.726652109199",
1486
1486
  # "risk_limit_step": "1000000",
1487
1487
  # "risk_limit_max": "8000000",
1488
- # "maker_fee_rate": "-0.00025",
1489
- # "taker_fee_rate": "0.00075",
1488
+ # "maker_fee_rate": "-0.00025", # not actual value for regular users
1489
+ # "taker_fee_rate": "0.00075", # not actual value for regular users
1490
1490
  # "ref_discount_rate": "0",
1491
1491
  # "ref_rebate_rate": "0.2",
1492
1492
  # "order_price_deviate": "0.5",
@@ -1523,8 +1523,6 @@ class gate(Exchange, ImplicitAPI):
1523
1523
  maxMultiplier = Precise.string_add('1', priceDeviate)
1524
1524
  minPrice = Precise.string_mul(minMultiplier, markPrice)
1525
1525
  maxPrice = Precise.string_mul(maxMultiplier, markPrice)
1526
- takerPercent = self.safe_string(market, 'taker_fee_rate')
1527
- makerPercent = self.safe_string(market, 'maker_fee_rate', takerPercent)
1528
1526
  isLinear = quote == settle
1529
1527
  contractSize = self.safe_string(market, 'quanto_multiplier')
1530
1528
  # exception only for one market: https://api.gateio.ws/api/v4/futures/btc/contracts
@@ -1549,8 +1547,8 @@ class gate(Exchange, ImplicitAPI):
1549
1547
  'contract': True,
1550
1548
  'linear': isLinear,
1551
1549
  'inverse': not isLinear,
1552
- 'taker': self.parse_number(Precise.string_div(takerPercent, '100')), # Fee is in %, so divide by 100
1553
- 'maker': self.parse_number(Precise.string_div(makerPercent, '100')),
1550
+ 'taker': None,
1551
+ 'maker': None,
1554
1552
  'contractSize': self.parse_number(contractSize),
1555
1553
  'expiry': expiry,
1556
1554
  'expiryDatetime': self.iso8601(expiry),
@@ -1649,8 +1647,6 @@ class gate(Exchange, ImplicitAPI):
1649
1647
  maxMultiplier = Precise.string_add('1', priceDeviate)
1650
1648
  minPrice = Precise.string_mul(minMultiplier, markPrice)
1651
1649
  maxPrice = Precise.string_mul(maxMultiplier, markPrice)
1652
- takerPercent = self.safe_string(market, 'taker_fee_rate')
1653
- makerPercent = self.safe_string(market, 'maker_fee_rate', takerPercent)
1654
1650
  result.append({
1655
1651
  'id': id,
1656
1652
  'symbol': symbol,
@@ -1670,8 +1666,8 @@ class gate(Exchange, ImplicitAPI):
1670
1666
  'contract': True,
1671
1667
  'linear': True,
1672
1668
  'inverse': False,
1673
- 'taker': self.parse_number(Precise.string_div(takerPercent, '100')), # Fee is in %, so divide by 100
1674
- 'maker': self.parse_number(Precise.string_div(makerPercent, '100')),
1669
+ 'taker': None,
1670
+ 'maker': None,
1675
1671
  'contractSize': self.parse_number('1'),
1676
1672
  'expiry': expiry,
1677
1673
  'expiryDatetime': self.iso8601(expiry),
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.5.6'
7
+ __version__ = '4.5.7'
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
gate/ccxt/gate.py CHANGED
@@ -1439,8 +1439,8 @@ class gate(Exchange, ImplicitAPI):
1439
1439
  # "leverage_min": "1",
1440
1440
  # "leverage_max": "100",
1441
1441
  # "risk_limit_max": "8000000",
1442
- # "maker_fee_rate": "-0.00025",
1443
- # "taker_fee_rate": "0.00075",
1442
+ # "maker_fee_rate": "-0.00025", # not actual value for regular users
1443
+ # "taker_fee_rate": "0.00075", # not actual value for regular users
1444
1444
  # "funding_rate": "0.002053",
1445
1445
  # "order_size_max": 1000000,
1446
1446
  # "funding_next_apply": 1610035200,
@@ -1484,8 +1484,8 @@ class gate(Exchange, ImplicitAPI):
1484
1484
  # "risk_limit_base": "140.726652109199",
1485
1485
  # "risk_limit_step": "1000000",
1486
1486
  # "risk_limit_max": "8000000",
1487
- # "maker_fee_rate": "-0.00025",
1488
- # "taker_fee_rate": "0.00075",
1487
+ # "maker_fee_rate": "-0.00025", # not actual value for regular users
1488
+ # "taker_fee_rate": "0.00075", # not actual value for regular users
1489
1489
  # "ref_discount_rate": "0",
1490
1490
  # "ref_rebate_rate": "0.2",
1491
1491
  # "order_price_deviate": "0.5",
@@ -1522,8 +1522,6 @@ class gate(Exchange, ImplicitAPI):
1522
1522
  maxMultiplier = Precise.string_add('1', priceDeviate)
1523
1523
  minPrice = Precise.string_mul(minMultiplier, markPrice)
1524
1524
  maxPrice = Precise.string_mul(maxMultiplier, markPrice)
1525
- takerPercent = self.safe_string(market, 'taker_fee_rate')
1526
- makerPercent = self.safe_string(market, 'maker_fee_rate', takerPercent)
1527
1525
  isLinear = quote == settle
1528
1526
  contractSize = self.safe_string(market, 'quanto_multiplier')
1529
1527
  # exception only for one market: https://api.gateio.ws/api/v4/futures/btc/contracts
@@ -1548,8 +1546,8 @@ class gate(Exchange, ImplicitAPI):
1548
1546
  'contract': True,
1549
1547
  'linear': isLinear,
1550
1548
  'inverse': not isLinear,
1551
- 'taker': self.parse_number(Precise.string_div(takerPercent, '100')), # Fee is in %, so divide by 100
1552
- 'maker': self.parse_number(Precise.string_div(makerPercent, '100')),
1549
+ 'taker': None,
1550
+ 'maker': None,
1553
1551
  'contractSize': self.parse_number(contractSize),
1554
1552
  'expiry': expiry,
1555
1553
  'expiryDatetime': self.iso8601(expiry),
@@ -1648,8 +1646,6 @@ class gate(Exchange, ImplicitAPI):
1648
1646
  maxMultiplier = Precise.string_add('1', priceDeviate)
1649
1647
  minPrice = Precise.string_mul(minMultiplier, markPrice)
1650
1648
  maxPrice = Precise.string_mul(maxMultiplier, markPrice)
1651
- takerPercent = self.safe_string(market, 'taker_fee_rate')
1652
- makerPercent = self.safe_string(market, 'maker_fee_rate', takerPercent)
1653
1649
  result.append({
1654
1650
  'id': id,
1655
1651
  'symbol': symbol,
@@ -1669,8 +1665,8 @@ class gate(Exchange, ImplicitAPI):
1669
1665
  'contract': True,
1670
1666
  'linear': True,
1671
1667
  'inverse': False,
1672
- 'taker': self.parse_number(Precise.string_div(takerPercent, '100')), # Fee is in %, so divide by 100
1673
- 'maker': self.parse_number(Precise.string_div(makerPercent, '100')),
1668
+ 'taker': None,
1669
+ 'maker': None,
1674
1670
  'contractSize': self.parse_number('1'),
1675
1671
  'expiry': expiry,
1676
1672
  'expiryDatetime': self.iso8601(expiry),
gate/ccxt/pro/__init__.py CHANGED
@@ -8,7 +8,7 @@ sys.modules['ccxt'] = ccxt_module
8
8
 
9
9
  # ----------------------------------------------------------------------------
10
10
 
11
- __version__ = '4.5.6'
11
+ __version__ = '4.5.7'
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.90
3
+ Version: 0.0.91
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=KZz2rKbIX8jGVWvyluyTXsYzZdgzmuruNBnpPlfede4,6126
3
- gate/ccxt/gate.py,sha256=MfRouh3INstOZ0FzKB_vAImzTFfe9oNRcrZUS0p_XMY,354721
2
+ gate/ccxt/__init__.py,sha256=3x2DVNUOnPIuqf2M356syZ4ZK53q7aKXvj-nthaaQWk,6126
3
+ gate/ccxt/gate.py,sha256=XvGzHzLcCAoIJMq2olARLjY8D1lj4jQDOIFOx0pBmFw,354283
4
4
  gate/ccxt/abstract/gate.py,sha256=MrRMycFEpZKJ6yC7qi0p_qcwZtU9WJi5bBbVllskGoA,45044
5
- gate/ccxt/async_support/__init__.py,sha256=jVq9B5k-dTT37Hzl-Cuzd7scM3ML9jWF5O_xi0qaxq8,4859
6
- gate/ccxt/async_support/gate.py,sha256=KqvRPFWET-EiA1FdYfWXA61j-QcUpd60tNhStjgWP8Q,356686
5
+ gate/ccxt/async_support/__init__.py,sha256=jPCHaCnylQzDS0grAG4AbSNa2uVsqUjE5CqN0JDlKlc,4859
6
+ gate/ccxt/async_support/gate.py,sha256=1ryx6TLbpcBubkASNMDuYcBQSFhoPMBmLqxlWqiOPI4,356248
7
7
  gate/ccxt/async_support/base/__init__.py,sha256=aVYSsFi--b4InRs9zDN_wtCpj8odosAB726JdUHavrk,67
8
- gate/ccxt/async_support/base/exchange.py,sha256=6Zi61lSs9WMY3guxZ3kHr8pzDe6du_Sg2h2OS76CBXw,121432
8
+ gate/ccxt/async_support/base/exchange.py,sha256=oRegJjkuRKReYdiDlqBdVWelkzXoyKbCTI8lskWBCGw,121432
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/cache.py,sha256=xf2VOtfUwloxSlIQ39M1RGZHWQzyS9IGhB5NX6cDcAc,8370
@@ -17,10 +17,10 @@ gate/ccxt/async_support/base/ws/order_book_side.py,sha256=GhnGUt78pJ-AYL_Dq9prod
17
17
  gate/ccxt/base/__init__.py,sha256=eTx1OE3HJjspFUQjGm6LBhaQiMKJnXjkdP-JUXknyQ0,1320
18
18
  gate/ccxt/base/decimal_to_precision.py,sha256=3XI30u9YudHbTA438397u5rkdlXa3atxwZEfUus3C4k,6803
19
19
  gate/ccxt/base/errors.py,sha256=LdTTHPmxpeFHJze93mGl7I3maqTgN0y_1mJ6coWkXmA,4734
20
- gate/ccxt/base/exchange.py,sha256=wn_4H8fZPOLHhDnWSZEpCMrQA2hzpPckzT2CuEfPEyk,343891
20
+ gate/ccxt/base/exchange.py,sha256=z1TCuTKRamNgP_fnQGegYtaE8xe9sFz51x8QyeKZmUI,343891
21
21
  gate/ccxt/base/precise.py,sha256=koce64Yrp6vFbGijJtUt-QQ6XhJgeGTCksZ871FPp_A,8886
22
22
  gate/ccxt/base/types.py,sha256=Gvbogh9i7pPH7Z18xesYeDPribqqwq8uKpOv-YODFBs,11505
23
- gate/ccxt/pro/__init__.py,sha256=xx-N2JGK_kf6bY7I2fI6sZgoYJrz_AyI43pYd-fhgTE,4173
23
+ gate/ccxt/pro/__init__.py,sha256=ix827NR-PWyQFY2n5V6l9JFi9-nw86sj481UNITS15Q,4173
24
24
  gate/ccxt/pro/gate.py,sha256=Pl64TJO43NcLrqDGs2oU16bPfFqIjOHllJTkpGMuErI,89805
25
25
  gate/ccxt/static_dependencies/README.md,sha256=3TCvhhn09_Cqf9BDDpao1V7EfKHDpQ6k9oWRsLFixpU,18
26
26
  gate/ccxt/static_dependencies/__init__.py,sha256=tzFje8cloqmiIE6kola3EaYC0SnD1izWnri69hzHsSw,168
@@ -281,6 +281,6 @@ gate/ccxt/static_dependencies/toolz/curried/exceptions.py,sha256=gKFOHDIayAWnX2u
281
281
  gate/ccxt/static_dependencies/toolz/curried/operator.py,sha256=ML92mknkAwzBl2NCm-4werSUmJEtSHNY9NSzhseNM9s,525
282
282
  gate/ccxt/static_dependencies/typing_inspect/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
283
283
  gate/ccxt/static_dependencies/typing_inspect/typing_inspect.py,sha256=5gIWomLPfuDpgd3gX1GlnX0MuXM3VorR4j2W2qXORiQ,28269
284
- gate_io_api-0.0.90.dist-info/METADATA,sha256=r_IA60VYLSi1OLYPE8Jw3_NqRPKKsRY8d8qEBW9Qb0M,26827
285
- gate_io_api-0.0.90.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
286
- gate_io_api-0.0.90.dist-info/RECORD,,
284
+ gate_io_api-0.0.91.dist-info/METADATA,sha256=Ej65v84tIZsfZOzKabJb1mvEyIGU-SwM5v-Fnz_8ai0,26827
285
+ gate_io_api-0.0.91.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
286
+ gate_io_api-0.0.91.dist-info/RECORD,,