exchanges-wrapper 1.3.7__tar.gz → 1.3.7.post1__tar.gz

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 (20) hide show
  1. {exchanges_wrapper-1.3.7 → exchanges_wrapper-1.3.7.post1}/PKG-INFO +2 -2
  2. {exchanges_wrapper-1.3.7 → exchanges_wrapper-1.3.7.post1}/exchanges_wrapper/__init__.py +1 -1
  3. {exchanges_wrapper-1.3.7 → exchanges_wrapper-1.3.7.post1}/exchanges_wrapper/exch_srv.py +1 -12
  4. {exchanges_wrapper-1.3.7 → exchanges_wrapper-1.3.7.post1}/exchanges_wrapper/huobi_parser.py +1 -1
  5. {exchanges_wrapper-1.3.7 → exchanges_wrapper-1.3.7.post1}/pyproject.toml +1 -1
  6. {exchanges_wrapper-1.3.7 → exchanges_wrapper-1.3.7.post1}/LICENSE.md +0 -0
  7. {exchanges_wrapper-1.3.7 → exchanges_wrapper-1.3.7.post1}/README.md +0 -0
  8. {exchanges_wrapper-1.3.7 → exchanges_wrapper-1.3.7.post1}/exchanges_wrapper/api_pb2.py +0 -0
  9. {exchanges_wrapper-1.3.7 → exchanges_wrapper-1.3.7.post1}/exchanges_wrapper/api_pb2_grpc.py +0 -0
  10. {exchanges_wrapper-1.3.7 → exchanges_wrapper-1.3.7.post1}/exchanges_wrapper/bitfinex_parser.py +0 -0
  11. {exchanges_wrapper-1.3.7 → exchanges_wrapper-1.3.7.post1}/exchanges_wrapper/c_structures.py +0 -0
  12. {exchanges_wrapper-1.3.7 → exchanges_wrapper-1.3.7.post1}/exchanges_wrapper/client.py +0 -0
  13. {exchanges_wrapper-1.3.7 → exchanges_wrapper-1.3.7.post1}/exchanges_wrapper/definitions.py +0 -0
  14. {exchanges_wrapper-1.3.7 → exchanges_wrapper-1.3.7.post1}/exchanges_wrapper/errors.py +0 -0
  15. {exchanges_wrapper-1.3.7 → exchanges_wrapper-1.3.7.post1}/exchanges_wrapper/events.py +0 -0
  16. {exchanges_wrapper-1.3.7 → exchanges_wrapper-1.3.7.post1}/exchanges_wrapper/exch_srv_cfg.toml.template +0 -0
  17. {exchanges_wrapper-1.3.7 → exchanges_wrapper-1.3.7.post1}/exchanges_wrapper/http_client.py +0 -0
  18. {exchanges_wrapper-1.3.7 → exchanges_wrapper-1.3.7.post1}/exchanges_wrapper/okx_parser.py +0 -0
  19. {exchanges_wrapper-1.3.7 → exchanges_wrapper-1.3.7.post1}/exchanges_wrapper/proto/exchanges_wrapper/api.proto +0 -0
  20. {exchanges_wrapper-1.3.7 → exchanges_wrapper-1.3.7.post1}/exchanges_wrapper/web_sockets.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: exchanges-wrapper
3
- Version: 1.3.7
3
+ Version: 1.3.7.post1
4
4
  Summary: REST API and WebSocket asyncio wrapper with grpc powered multiplexer server
5
5
  Author-email: Thomas Marchand <thomas.marchand@tuta.io>, Jerry Fedorenko <jerry.fedorenko@yahoo.com>
6
6
  Requires-Python: >=3.8
@@ -11,7 +11,7 @@ Classifier: License :: OSI Approved :: MIT License
11
11
  Classifier: Operating System :: Unix
12
12
  Classifier: Operating System :: Microsoft :: Windows
13
13
  Classifier: Operating System :: MacOS
14
- Requires-Dist: crypto-ws-api==2.0.2
14
+ Requires-Dist: crypto-ws-api==2.0.2.post1
15
15
  Requires-Dist: grpcio==1.48.2
16
16
  Requires-Dist: grpcio-tools==1.48.2
17
17
  Requires-Dist: idna==3.4
@@ -12,7 +12,7 @@ __maintainer__ = "Jerry Fedorenko"
12
12
  __contact__ = "https://github.com/DogsTailFarmer"
13
13
  __email__ = "jerry.fedorenko@yahoo.com"
14
14
  __credits__ = ["https://github.com/DanyaSWorlD"]
15
- __version__ = "1.3.7"
15
+ __version__ = "1.3.7.post1"
16
16
 
17
17
  from pathlib import Path
18
18
  import shutil
@@ -312,7 +312,7 @@ class Martin(api_pb2_grpc.MartinServicer):
312
312
  await _queue.put(weakref.ref(event)())
313
313
  elif res.get('status') == 'PARTIALLY_FILLED':
314
314
  try:
315
- trades = await client.fetch_order_trade_list(symbol=request.symbol, order_id=request.order_id)
315
+ trades = await client.fetch_order_trade_list(request.trade_id, request.symbol, request.order_id)
316
316
  except asyncio.CancelledError:
317
317
  pass # Task cancellation should not be logged as an error
318
318
  except Exception as _ex:
@@ -322,17 +322,6 @@ class Martin(api_pb2_grpc.MartinServicer):
322
322
  for trade in trades:
323
323
  event = OrderTradesEvent(trade)
324
324
  await _queue.put(weakref.ref(event)())
325
- try:
326
- trades = await client.fetch_order_trade_list(request.trade_id, request.symbol, request.order_id)
327
- except asyncio.CancelledError:
328
- pass # Task cancellation should not be logged as an error
329
- except Exception as _ex:
330
- logger.error(f"Fetch order trades for {open_client.name}: {request.symbol} exception: {_ex}")
331
- else:
332
- logger.debug(f"FetchOrder.trades: {trades}")
333
- for trade in trades:
334
- event = OrderTradesEvent(trade)
335
- await _queue.put(weakref.ref(event)())
336
325
  json_format.ParseDict(res, response)
337
326
  return response
338
327
 
@@ -469,7 +469,7 @@ def account_trade_list(res: []) -> []:
469
469
  binance_trade = {
470
470
  "symbol": trade.get('symbol').upper(),
471
471
  "id": trade.get('trade-id'),
472
- "orderId": trade.get('id'),
472
+ "orderId": trade.get('order-id'),
473
473
  "orderListId": -1,
474
474
  "price": price,
475
475
  "qty": qty,
@@ -17,7 +17,7 @@ dynamic = ["version", "description"]
17
17
  requires-python = ">=3.8"
18
18
 
19
19
  dependencies = [
20
- "crypto-ws-api==2.0.2",
20
+ "crypto-ws-api==2.0.2.post1",
21
21
  "grpcio==1.48.2",
22
22
  "grpcio-tools==1.48.2",
23
23
  "idna==3.4",