exchanges-wrapper 2.1.31__tar.gz → 2.1.32__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-2.1.31 → exchanges_wrapper-2.1.32}/PKG-INFO +1 -1
  2. {exchanges_wrapper-2.1.31 → exchanges_wrapper-2.1.32}/exchanges_wrapper/__init__.py +1 -1
  3. {exchanges_wrapper-2.1.31 → exchanges_wrapper-2.1.32}/exchanges_wrapper/parsers/okx.py +5 -4
  4. {exchanges_wrapper-2.1.31 → exchanges_wrapper-2.1.32}/LICENSE.md +0 -0
  5. {exchanges_wrapper-2.1.31 → exchanges_wrapper-2.1.32}/README.md +0 -0
  6. {exchanges_wrapper-2.1.31 → exchanges_wrapper-2.1.32}/exchanges_wrapper/client.py +0 -0
  7. {exchanges_wrapper-2.1.31 → exchanges_wrapper-2.1.32}/exchanges_wrapper/definitions.py +0 -0
  8. {exchanges_wrapper-2.1.31 → exchanges_wrapper-2.1.32}/exchanges_wrapper/errors.py +0 -0
  9. {exchanges_wrapper-2.1.31 → exchanges_wrapper-2.1.32}/exchanges_wrapper/events.py +0 -0
  10. {exchanges_wrapper-2.1.31 → exchanges_wrapper-2.1.32}/exchanges_wrapper/exch_srv.py +0 -0
  11. {exchanges_wrapper-2.1.31 → exchanges_wrapper-2.1.32}/exchanges_wrapper/exch_srv_cfg.toml.template +0 -0
  12. {exchanges_wrapper-2.1.31 → exchanges_wrapper-2.1.32}/exchanges_wrapper/http_client.py +0 -0
  13. {exchanges_wrapper-2.1.31 → exchanges_wrapper-2.1.32}/exchanges_wrapper/lib.py +0 -0
  14. {exchanges_wrapper-2.1.31 → exchanges_wrapper-2.1.32}/exchanges_wrapper/martin/__init__.py +0 -0
  15. {exchanges_wrapper-2.1.31 → exchanges_wrapper-2.1.32}/exchanges_wrapper/parsers/bitfinex.py +0 -0
  16. {exchanges_wrapper-2.1.31 → exchanges_wrapper-2.1.32}/exchanges_wrapper/parsers/bybit.py +0 -0
  17. {exchanges_wrapper-2.1.31 → exchanges_wrapper-2.1.32}/exchanges_wrapper/parsers/huobi.py +0 -0
  18. {exchanges_wrapper-2.1.31 → exchanges_wrapper-2.1.32}/exchanges_wrapper/proto/martin.proto +0 -0
  19. {exchanges_wrapper-2.1.31 → exchanges_wrapper-2.1.32}/exchanges_wrapper/web_sockets.py +0 -0
  20. {exchanges_wrapper-2.1.31 → exchanges_wrapper-2.1.32}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: exchanges-wrapper
3
- Version: 2.1.31
3
+ Version: 2.1.32
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.9
@@ -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__ = "2.1.31"
15
+ __version__ = "2.1.32"
16
16
 
17
17
  from pathlib import Path
18
18
  import shutil
@@ -15,10 +15,11 @@ def fetch_server_time(res: []) -> {}:
15
15
 
16
16
  def exchange_info(server_time: int, trading_symbol: [], tickers: [], symbol_t) -> {}:
17
17
  symbols = []
18
- symbols_price = {
19
- pair.get('instId').replace('-', ''): Decimal(pair.get('last', '0'))
20
- for pair in tickers
21
- }
18
+ symbols_price = {}
19
+ for pair in tickers:
20
+ last_price = pair.get('last', '0')
21
+ if last_price != '':
22
+ symbols_price[pair.get('instId').replace('-', '')] = Decimal(last_price)
22
23
  for market in trading_symbol:
23
24
  _symbol = market.get("instId").replace('-', '')
24
25
  if symbols_price.get(_symbol) and _symbol == symbol_t: