ccxt 4.3.93__py2.py3-none-any.whl → 4.3.94__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.
ccxt/__init__.py CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  # ----------------------------------------------------------------------------
24
24
 
25
- __version__ = '4.3.93'
25
+ __version__ = '4.3.94'
26
26
 
27
27
  # ----------------------------------------------------------------------------
28
28
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.3.93'
7
+ __version__ = '4.3.94'
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # -----------------------------------------------------------------------------
4
4
 
5
- __version__ = '4.3.93'
5
+ __version__ = '4.3.94'
6
6
 
7
7
  # -----------------------------------------------------------------------------
8
8
 
@@ -18,6 +18,7 @@ from ccxt.base.errors import ArgumentsRequired
18
18
  from ccxt.base.errors import BadRequest
19
19
  from ccxt.base.errors import BadSymbol
20
20
  from ccxt.base.errors import InsufficientFunds
21
+ from ccxt.base.errors import InvalidOrder
21
22
  from ccxt.base.errors import OrderNotFound
22
23
  from ccxt.base.errors import NotSupported
23
24
  from ccxt.base.errors import OperationFailed
@@ -473,6 +474,7 @@ class bingx(Exchange, ImplicitAPI):
473
474
  '100419': PermissionDenied, # {"code":100419,"msg":"IP does not match IP whitelist","success":false,"timestamp":1705274099347}
474
475
  '100437': BadRequest, # {"code":100437,"msg":"The withdrawal amount is lower than the minimum limit, please re-enter.","timestamp":1689258588845}
475
476
  '101204': InsufficientFunds, # {"code":101204,"msg":"","data":{}}
477
+ '110425': InvalidOrder, # {"code":110425,"msg":"Please ensure that the minimum nominal value of the order placed must be greater than 2u","data":{}}
476
478
  },
477
479
  'broad': {},
478
480
  },
@@ -2408,6 +2410,7 @@ class bingx(Exchange, ImplicitAPI):
2408
2410
  positionSide = None
2409
2411
  hedged = self.safe_bool(params, 'hedged', False)
2410
2412
  if hedged:
2413
+ params = self.omit(params, 'reduceOnly')
2411
2414
  if reduceOnly:
2412
2415
  positionSide = 'SHORT' if (side == 'buy') else 'LONG'
2413
2416
  else:
@@ -2416,7 +2419,7 @@ class bingx(Exchange, ImplicitAPI):
2416
2419
  positionSide = 'BOTH'
2417
2420
  request['positionSide'] = positionSide
2418
2421
  request['quantity'] = amount if (market['inverse']) else self.parse_to_numeric(self.amount_to_precision(symbol, amount)) # precision not available for inverse contracts
2419
- params = self.omit(params, ['hedged', 'reduceOnly', 'triggerPrice', 'stopLossPrice', 'takeProfitPrice', 'trailingAmount', 'trailingPercent', 'trailingType', 'takeProfit', 'stopLoss', 'clientOrderId'])
2422
+ params = self.omit(params, ['hedged', 'triggerPrice', 'stopLossPrice', 'takeProfitPrice', 'trailingAmount', 'trailingPercent', 'trailingType', 'takeProfit', 'stopLoss', 'clientOrderId'])
2420
2423
  return self.extend(request, params)
2421
2424
 
2422
2425
  async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
ccxt/base/exchange.py CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.3.93'
7
+ __version__ = '4.3.94'
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
ccxt/bingx.py CHANGED
@@ -17,6 +17,7 @@ from ccxt.base.errors import ArgumentsRequired
17
17
  from ccxt.base.errors import BadRequest
18
18
  from ccxt.base.errors import BadSymbol
19
19
  from ccxt.base.errors import InsufficientFunds
20
+ from ccxt.base.errors import InvalidOrder
20
21
  from ccxt.base.errors import OrderNotFound
21
22
  from ccxt.base.errors import NotSupported
22
23
  from ccxt.base.errors import OperationFailed
@@ -472,6 +473,7 @@ class bingx(Exchange, ImplicitAPI):
472
473
  '100419': PermissionDenied, # {"code":100419,"msg":"IP does not match IP whitelist","success":false,"timestamp":1705274099347}
473
474
  '100437': BadRequest, # {"code":100437,"msg":"The withdrawal amount is lower than the minimum limit, please re-enter.","timestamp":1689258588845}
474
475
  '101204': InsufficientFunds, # {"code":101204,"msg":"","data":{}}
476
+ '110425': InvalidOrder, # {"code":110425,"msg":"Please ensure that the minimum nominal value of the order placed must be greater than 2u","data":{}}
475
477
  },
476
478
  'broad': {},
477
479
  },
@@ -2407,6 +2409,7 @@ class bingx(Exchange, ImplicitAPI):
2407
2409
  positionSide = None
2408
2410
  hedged = self.safe_bool(params, 'hedged', False)
2409
2411
  if hedged:
2412
+ params = self.omit(params, 'reduceOnly')
2410
2413
  if reduceOnly:
2411
2414
  positionSide = 'SHORT' if (side == 'buy') else 'LONG'
2412
2415
  else:
@@ -2415,7 +2418,7 @@ class bingx(Exchange, ImplicitAPI):
2415
2418
  positionSide = 'BOTH'
2416
2419
  request['positionSide'] = positionSide
2417
2420
  request['quantity'] = amount if (market['inverse']) else self.parse_to_numeric(self.amount_to_precision(symbol, amount)) # precision not available for inverse contracts
2418
- params = self.omit(params, ['hedged', 'reduceOnly', 'triggerPrice', 'stopLossPrice', 'takeProfitPrice', 'trailingAmount', 'trailingPercent', 'trailingType', 'takeProfit', 'stopLoss', 'clientOrderId'])
2421
+ params = self.omit(params, ['hedged', 'triggerPrice', 'stopLossPrice', 'takeProfitPrice', 'trailingAmount', 'trailingPercent', 'trailingType', 'takeProfit', 'stopLoss', 'clientOrderId'])
2419
2422
  return self.extend(request, params)
2420
2423
 
2421
2424
  def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
ccxt/pro/__init__.py CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.3.93'
7
+ __version__ = '4.3.94'
8
8
 
9
9
  # ----------------------------------------------------------------------------
10
10
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ccxt
3
- Version: 4.3.93
3
+ Version: 4.3.94
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
@@ -272,13 +272,13 @@ console.log(version, Object.keys(exchanges));
272
272
 
273
273
  All-in-one browser bundle (dependencies included), served from a CDN of your choice:
274
274
 
275
- * jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.3.93/dist/ccxt.browser.min.js
276
- * unpkg: https://unpkg.com/ccxt@4.3.93/dist/ccxt.browser.min.js
275
+ * jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.3.94/dist/ccxt.browser.min.js
276
+ * unpkg: https://unpkg.com/ccxt@4.3.94/dist/ccxt.browser.min.js
277
277
 
278
278
  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.
279
279
 
280
280
  ```HTML
281
- <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.3.93/dist/ccxt.browser.min.js"></script>
281
+ <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.3.94/dist/ccxt.browser.min.js"></script>
282
282
  ```
283
283
 
284
284
  Creates a global `ccxt` object:
@@ -1,4 +1,4 @@
1
- ccxt/__init__.py,sha256=qMb5cd9Zow3Yt6euqQjtAIXIr45UOEiYPgOZMxwLebs,16681
1
+ ccxt/__init__.py,sha256=RD9izeXweNprFHg2Fe71P12hf9VwLZ7GUMyVom-RTI4,16681
2
2
  ccxt/ace.py,sha256=3KFlbRm6N9hXsKUsgZbQCFPZT5WGLm4HOjR19Q3uPts,42419
3
3
  ccxt/alpaca.py,sha256=nVQJ8vG4JrjEvMlu_nPoyR2lBq41j9Z2smPq95nDhng,47504
4
4
  ccxt/ascendex.py,sha256=RCJrO6WUMycfZZsiok9DG3KWpHOeImbZcFNI-AX98k4,151336
@@ -8,7 +8,7 @@ ccxt/binance.py,sha256=T42ws9X4TMWJ5b5B51OkUuisRz1-5GKDmNaEa10YShE,641455
8
8
  ccxt/binancecoinm.py,sha256=arFnEh8mErSyi23eVPWE4iwoT7PWQyxGGVJCKCy6UJY,1702
9
9
  ccxt/binanceus.py,sha256=hdcT4OnadcdFFFjF3GtM0nWv90jqojqwdVS3xWGuW40,9163
10
10
  ccxt/binanceusdm.py,sha256=bAPcJj5HLxoCdPolriM8sJpoTBwbV78vBTbKRmWhNP4,2632
11
- ccxt/bingx.py,sha256=fwQC-bbEfM4DIWyWDXy7aQF6muF2W1IGU51weewWayY,245077
11
+ ccxt/bingx.py,sha256=Cn23Bj6NwcRr3Vt0XHVaixFOxtk_JYD_oh5ArQ6W-SQ,245332
12
12
  ccxt/bit2c.py,sha256=nJgmrsEpOaYB0ylSIVhzf-tbyLCa3g4yxpmF3BSz3Qk,37097
13
13
  ccxt/bitbank.py,sha256=rROws6WlMgzgGQiKT7vqHxOQjy-DI_-uwSxUhXzMxjY,43570
14
14
  ccxt/bitbay.py,sha256=xAIjzGRDVGwoy-Gygd99H0YN4wiaz_0lR0Z14oxaaxc,478
@@ -220,7 +220,7 @@ ccxt/abstract/xt.py,sha256=JkWvsic3L2O968BCr9H5Wd5NIbRE9aTT2A-9WbAtl0c,27146
220
220
  ccxt/abstract/yobit.py,sha256=8ycfCO8ORFly9hc0Aa47sZyX4_ZKPXS9h9yJzI-uQ7Q,1339
221
221
  ccxt/abstract/zaif.py,sha256=m15WHdl3gYy0GOXNZ8NEH8eE7sVh8c0T_ITNuU8vXeU,3935
222
222
  ccxt/abstract/zonda.py,sha256=X-hCW0SdX3YKZWixDyW-O2211M58Rno8kKJ6quY7rw4,7183
223
- ccxt/async_support/__init__.py,sha256=-tW5QrlMh0noJZj-oGJdDFNwWEg0OdPSqkn5s1kfYqs,16504
223
+ ccxt/async_support/__init__.py,sha256=otf1Cn8Q9EyG75wsYFn2ScPiMjrhKk8LYwguyS8YBn4,16504
224
224
  ccxt/async_support/ace.py,sha256=ucCkKaWRkILAIK9g4iEi1Q_-zmn0V89-rX8Al4WdK8s,42643
225
225
  ccxt/async_support/alpaca.py,sha256=HxonsP_MzbE7Z9r6hZ1rgmf_jPcP4H7H3z1YQgCv4qc,47716
226
226
  ccxt/async_support/ascendex.py,sha256=PIgHokT4gFPEUaoi_ze2T0qgu6vEs8SytRG9ocM3r7M,152124
@@ -230,7 +230,7 @@ ccxt/async_support/binance.py,sha256=mdKkkKttukXBVIi6XMdT1naJqRss9UJrUB_j8hZvD44
230
230
  ccxt/async_support/binancecoinm.py,sha256=yeE73xG5UXD_X3VPul6DMGnV_mgJfWYskpas1BUDdCU,1740
231
231
  ccxt/async_support/binanceus.py,sha256=c-K3Tk7LaRJjmYdCx8vBOqsx01uXrtvt0PC2ekBiD0g,9177
232
232
  ccxt/async_support/binanceusdm.py,sha256=8ugRkx7vyYmn67wdkEEf2f-DFMGAoC4t09usKlPVNyw,2670
233
- ccxt/async_support/bingx.py,sha256=eQZ9lCDHKzpoyvZcoDsKw9viKuX_GJ8Hkqk0tiXfMjg,246347
233
+ ccxt/async_support/bingx.py,sha256=D_tx59n5ushBEO9VQCyMFftAiL2DJirbTO2p0XCBWIA,246602
234
234
  ccxt/async_support/bit2c.py,sha256=Ix9TBLFXAlyCspEr707RGsSMsaRE22odMjdAYLfbbog,37309
235
235
  ccxt/async_support/bitbank.py,sha256=ZicMgUF9fZMYZ5EXPnUWy9S0lHYEJCv_wt0t0JZFvPg,43830
236
236
  ccxt/async_support/bitbay.py,sha256=jcaEXi2IhYTva8ezO_SfJhwxEZk7HST4J3NaxD16BQA,492
@@ -332,7 +332,7 @@ ccxt/async_support/yobit.py,sha256=GQhvYrsGHQrVdTrNHQxx9isEGqUABexlllzao9HL3f8,5
332
332
  ccxt/async_support/zaif.py,sha256=-ZTr8M2JaIRCL90VrbCDXBMAsZwbiwsFChSQ2rWODuQ,29044
333
333
  ccxt/async_support/zonda.py,sha256=jncr6Wg12S72CTpu6mCKCse1pm1f8oefVQurQSrFvP0,81733
334
334
  ccxt/async_support/base/__init__.py,sha256=aVYSsFi--b4InRs9zDN_wtCpj8odosAB726JdUHavrk,67
335
- ccxt/async_support/base/exchange.py,sha256=vvVe0ZeV4s-oKc_ngg1T0PvuCLKa2gNpkiK90Ct0LqM,110810
335
+ ccxt/async_support/base/exchange.py,sha256=rQcLKAqxOLq8Cqhb0MQvayBDKO58VAcul4Mqf9Nkzrw,110810
336
336
  ccxt/async_support/base/throttler.py,sha256=tvDVcdRUVYi8fZRlEcnqtgzcgB_KMUMRs5Pu8tuU-tU,1847
337
337
  ccxt/async_support/base/ws/__init__.py,sha256=uockzpLuwntKGZbs5EOWFe-Zg-k6Cj7GhNJLc_RX0so,1791
338
338
  ccxt/async_support/base/ws/aiohttp_client.py,sha256=5IEiT0elWI9a7Vr-KV0jgmlbpLJWBzIlrLaCkTKGaqY,5752
@@ -346,10 +346,10 @@ ccxt/async_support/base/ws/order_book_side.py,sha256=GhnGUt78pJ-AYL_Dq9produGjmB
346
346
  ccxt/base/__init__.py,sha256=eTx1OE3HJjspFUQjGm6LBhaQiMKJnXjkdP-JUXknyQ0,1320
347
347
  ccxt/base/decimal_to_precision.py,sha256=fgWRBzRTtsf3r2INyS4f7WHlzgjB5YM1ekiwqD21aac,6634
348
348
  ccxt/base/errors.py,sha256=Pad-6ugvGUwhoYuKUliX-N7FTrcnKCQGFjsaq2tMn0I,4610
349
- ccxt/base/exchange.py,sha256=_1S1LvBBZERPgzkNKpqe7709TrXEBdvTKNRDtJAD4ow,296075
349
+ ccxt/base/exchange.py,sha256=85RfuOjq7wT9NQj075Fdfjtx83pZFgp8RH47RHTpF9w,296075
350
350
  ccxt/base/precise.py,sha256=koce64Yrp6vFbGijJtUt-QQ6XhJgeGTCksZ871FPp_A,8886
351
351
  ccxt/base/types.py,sha256=TaP_RElKjGEZWuzyp4o4u2YhREyTG3rUeVT6gDffY9A,9613
352
- ccxt/pro/__init__.py,sha256=nzX_q7c1I4rZzu3tncM_q2Kdh23J0mqhlkYYtKyfz7o,7710
352
+ ccxt/pro/__init__.py,sha256=eGVB2raJWITstYeDtSIs1eJPcYqg3TaBodrZhZYKMhU,7710
353
353
  ccxt/pro/alpaca.py,sha256=xh1yg1Ok-Zh_Mfx-MBjNrfJDs6MUU0exFfEj3GuQPC4,27631
354
354
  ccxt/pro/ascendex.py,sha256=QueLgISoIxgGSOta2W7En4pwAsEXbTP5q5ef4UjpTQQ,37524
355
355
  ccxt/pro/bequant.py,sha256=33OEUWBi4D9-2w8CmkwN3aF1qS-AlLqX3pxrWwNbXPY,1552
@@ -652,8 +652,8 @@ ccxt/test/tests_async.py,sha256=yVoLZLPkB-_ay0ab_oCyYOSwkLQkLXkPFj5jHTE3esw,8442
652
652
  ccxt/test/tests_helpers.py,sha256=xhOILoZ_x3RSfQjtKt6AQlkp9DkOtpTQe8GAUUZoM6s,10069
653
653
  ccxt/test/tests_init.py,sha256=eVwwUHujX9t4rjgo4TqEeg7DDhR1Hb_e2SJN8NVGyl0,998
654
654
  ccxt/test/tests_sync.py,sha256=uu0QsWOuEpkmtV12nIffsiZZFUpM-f1k6W9nlgCDqXs,83485
655
- ccxt-4.3.93.dist-info/LICENSE.txt,sha256=EIb9221AhMHV7xF1_55STFdKTFsnJVJYkRpY2Lnvo5w,1068
656
- ccxt-4.3.93.dist-info/METADATA,sha256=ZCISg0my8CR3dd_hIt87BZuyiYgTs4l70h_hKC8uSfU,118342
657
- ccxt-4.3.93.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
658
- ccxt-4.3.93.dist-info/top_level.txt,sha256=CkQDuCTDKNcImPV60t36G6MdYfxsAPNiSaEwifVoVMo,5
659
- ccxt-4.3.93.dist-info/RECORD,,
655
+ ccxt-4.3.94.dist-info/LICENSE.txt,sha256=EIb9221AhMHV7xF1_55STFdKTFsnJVJYkRpY2Lnvo5w,1068
656
+ ccxt-4.3.94.dist-info/METADATA,sha256=g6LIV1y9ZeVKFQeC7vFneUuysjLdqcqOphZ-OihyaPo,118342
657
+ ccxt-4.3.94.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
658
+ ccxt-4.3.94.dist-info/top_level.txt,sha256=CkQDuCTDKNcImPV60t36G6MdYfxsAPNiSaEwifVoVMo,5
659
+ ccxt-4.3.94.dist-info/RECORD,,
File without changes