pyqqq 0.12.204__py3-none-any.whl → 0.12.206__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 pyqqq might be problematic. Click here for more details.

@@ -1,7 +1,9 @@
1
1
  import asyncio
2
+ import datetime as dtm
2
3
  import json
3
4
  import random
4
5
  import ssl
6
+ import traceback
5
7
  from enum import Enum
6
8
  from typing import AsyncGenerator, Callable
7
9
 
@@ -184,7 +186,14 @@ class EBestTRWebsocketClient:
184
186
 
185
187
  except ssl.SSLZeroReturnError:
186
188
  self.logger.error(f"{self.session_id}: SSLZeroReturnError")
187
- await asyncio.sleep(0.5)
189
+
190
+ if not hasattr(self, "_sslzero_exc_count"):
191
+ self._sslzero_exc_count = 0
192
+ if self._sslzero_exc_count < 3:
193
+ self._sslzero_exc_count += 1
194
+ traceback.print_exc()
195
+
196
+ await asyncio.sleep(random.uniform(1, 2))
188
197
  continue
189
198
 
190
199
  except TimeoutError as e:
@@ -967,7 +967,7 @@ class KISSimpleDomesticStock:
967
967
  Returns:
968
968
  StockOrder: 주문 정보
969
969
  """
970
- result = self.get_today_order_history(order_no=odno)
970
+ result = self.get_today_order_history(order_no=odno, exchanges=list(OrderExchange))
971
971
  if len(result) > 0:
972
972
  return result[0]
973
973
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyqqq
3
- Version: 0.12.204
3
+ Version: 0.12.206
4
4
  Summary: Package for quantitative strategy development on the PyQQQ platform
5
5
  License: MIT
6
6
  Author: PyQQQ team
@@ -12,13 +12,13 @@ pyqqq/brokerage/ebest/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
12
12
  pyqqq/brokerage/ebest/domestic_stock.py,sha256=zG5gC_yMUixqIrHazmLOmCpSMAcm9lC9xh8__I0VuOU,77420
13
13
  pyqqq/brokerage/ebest/oauth.py,sha256=3HzReoXDLpDNqLuPBL-3H3vgQmlYQKS1vBkutU_BdZ4,2713
14
14
  pyqqq/brokerage/ebest/simple.py,sha256=Ade3m18yhGt1fyn7ZbN-LmyNKiFP2ahUMSLLqMXWc0g,27585
15
- pyqqq/brokerage/ebest/tr_client.py,sha256=70rFptErXAzadyUA6eLHA-hJea9UEOoILw9wJGsbejc,7908
15
+ pyqqq/brokerage/ebest/tr_client.py,sha256=0-qNc-SZdzVN_J_zChS_u1-S9FaEEwelbcTO9EflJ_U,8214
16
16
  pyqqq/brokerage/helper.py,sha256=6pDiHo2eqsppC5ObIUMJibeMZ7cq8V9pVzNLTsdAy1w,6675
17
17
  pyqqq/brokerage/kis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  pyqqq/brokerage/kis/domestic_stock.py,sha256=8ENXqEj66I0qUrXobw26_Vjc-zEy8444AGNqKBW9_UI,233326
19
19
  pyqqq/brokerage/kis/oauth.py,sha256=jA7QydFEe5NN8t0QSwEhFoFtQiwTP4fr2segcibOXVU,7805
20
20
  pyqqq/brokerage/kis/overseas_stock.py,sha256=Jh79ruHjD-MP3qguN2PFeWHJFyKO4vgq8VGxw-g3kVE,88380
21
- pyqqq/brokerage/kis/simple.py,sha256=D4Vh5fHg1WrC9S-RhMaXuiDn5Pw-WQcZFbCJhcRgP2c,43533
21
+ pyqqq/brokerage/kis/simple.py,sha256=JGJlaZpjzfP8UKwAaJoQwKsLobqWRwdn-ks8znAe_p4,43564
22
22
  pyqqq/brokerage/kis/simple_overseas.py,sha256=hx18_RxFt5U72qUjiMuTtAjGXR9Qh05JMNZlx-QC3yU,50362
23
23
  pyqqq/brokerage/kis/tr_client.py,sha256=3n4ywdJva7V843ffhQVVFctazc-dNIvLAxUIU8GSrds,5636
24
24
  pyqqq/brokerage/multiprocess_tracker.py,sha256=Xx0hSpRZYITBGWjxclOEtNZdHV5agX94s34q1A8EE-Y,7283
@@ -55,6 +55,6 @@ pyqqq/utils/mock_api.py,sha256=7EsaVQ9mOVZQAqtQW24isPnk9QTbJII7x3guhFyEMAE,10569
55
55
  pyqqq/utils/position_classifier.py,sha256=tIbZMm_baru0F0qv6QDc5b2-oJYNvmn9HyrRr3xaAXU,14975
56
56
  pyqqq/utils/retry.py,sha256=ENNvjRyswn6nwue5JSqyC82QlBJSAMlJYj_gj0kqutY,2187
57
57
  pyqqq/utils/singleton.py,sha256=m6NZ8fwVDpI6U-gUUihMPgVK_NkDh-Z1NSAtjisrpjY,810
58
- pyqqq-0.12.204.dist-info/METADATA,sha256=tCAHdw9MByY1bmyssREqgh58QvNt1tCn7QYaZ60-eMs,1664
59
- pyqqq-0.12.204.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
60
- pyqqq-0.12.204.dist-info/RECORD,,
58
+ pyqqq-0.12.206.dist-info/METADATA,sha256=rNXufQK1_BzUzQbhKm2ybxfDVGujdx4dJQD4m4iqUTw,1664
59
+ pyqqq-0.12.206.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
60
+ pyqqq-0.12.206.dist-info/RECORD,,