pyqqq 0.12.192__py3-none-any.whl → 0.12.193__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.

@@ -23,6 +23,7 @@ class KISTRClient:
23
23
  def __init__(self, auth: KISAuth, corp_data: dict = None):
24
24
  self.auth = auth
25
25
  self.corp_data = corp_data
26
+ self.session = requests.Session()
26
27
 
27
28
  @retry(requests.HTTPError)
28
29
  def request(self, path: str, tr_id: str, tr_cont: str = "", params: dict = None, body: dict = None, method: str = "GET"):
@@ -57,7 +58,7 @@ class KISTRClient:
57
58
 
58
59
  url = f"{self.auth.host_url}{path}"
59
60
 
60
- r = requests.request(method=method, url=url, headers=headers, params=params, json=body)
61
+ r = self.session.request(method=method, url=url, headers=headers, params=params, json=body)
61
62
 
62
63
  if r.status_code != 200:
63
64
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyqqq
3
- Version: 0.12.192
3
+ Version: 0.12.193
4
4
  Summary: Package for quantitative strategy development on the PyQQQ platform
5
5
  License: MIT
6
6
  Author: PyQQQ team
@@ -20,7 +20,7 @@ pyqqq/brokerage/kis/oauth.py,sha256=jA7QydFEe5NN8t0QSwEhFoFtQiwTP4fr2segcibOXVU,
20
20
  pyqqq/brokerage/kis/overseas_stock.py,sha256=9QUkEX13Lev5BcXMfK2GLve4xwFptOd1vXh4lDbrpYw,90096
21
21
  pyqqq/brokerage/kis/simple.py,sha256=u0XdYtOL18urqQp9l4ekSDHDZBe-VRiO_cNcFdNu96c,43014
22
22
  pyqqq/brokerage/kis/simple_overseas.py,sha256=1DuQBuJosg0mJQV7Ey2N3UOY8F3uOhzPDay4ncothuc,50360
23
- pyqqq/brokerage/kis/tr_client.py,sha256=cTQ7opSeFGjhx-ZP6u7-i49A4iNQ-Jz-YHhY8YpGMPY,5447
23
+ pyqqq/brokerage/kis/tr_client.py,sha256=hyiuzoHB_l5o0ARZKmCZlgsI9gTNDjmsPNZWT8wEZSU,5493
24
24
  pyqqq/brokerage/multiprocess_tracker.py,sha256=Xx0hSpRZYITBGWjxclOEtNZdHV5agX94s34q1A8EE-Y,7283
25
25
  pyqqq/brokerage/tracker.py,sha256=G2_tCzS_QQvUURsc_vSVbe2hBRmjMXIU3BlfSlqReNs,24151
26
26
  pyqqq/config.py,sha256=55Vqc_pGkdbrBdCV1aLgoH_n5IFxmMC59sbPHId3LoI,498
@@ -53,6 +53,6 @@ pyqqq/utils/mock_api.py,sha256=7EsaVQ9mOVZQAqtQW24isPnk9QTbJII7x3guhFyEMAE,10569
53
53
  pyqqq/utils/position_classifier.py,sha256=tIbZMm_baru0F0qv6QDc5b2-oJYNvmn9HyrRr3xaAXU,14975
54
54
  pyqqq/utils/retry.py,sha256=4mw9MQvgSBC8bTLvDauaCEI5N9tL8upHCk8rSfaVRG8,2066
55
55
  pyqqq/utils/singleton.py,sha256=m6NZ8fwVDpI6U-gUUihMPgVK_NkDh-Z1NSAtjisrpjY,810
56
- pyqqq-0.12.192.dist-info/METADATA,sha256=k_-IvhS3-SJejJohK_Coy93efqfkJhbnkBe2WX_iYjk,1664
57
- pyqqq-0.12.192.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
58
- pyqqq-0.12.192.dist-info/RECORD,,
56
+ pyqqq-0.12.193.dist-info/METADATA,sha256=Uy4n4l9hniGAfuu032-MjwUe8TDr7SM2NA1T_xvtgMI,1664
57
+ pyqqq-0.12.193.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
58
+ pyqqq-0.12.193.dist-info/RECORD,,