pyqqq 0.12.192__tar.gz → 0.12.193__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.
Potentially problematic release.
This version of pyqqq might be problematic. Click here for more details.
- {pyqqq-0.12.192 → pyqqq-0.12.193}/PKG-INFO +1 -1
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyproject.toml +1 -1
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/brokerage/kis/tr_client.py +2 -1
- {pyqqq-0.12.192 → pyqqq-0.12.193}/README.md +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/__init__.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/backtest/__init__.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/backtest/broker.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/backtest/environment.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/backtest/logger.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/backtest/positionprovider.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/backtest/strategy.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/backtest/utils.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/backtest/wallclock.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/brokerage/__init__.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/brokerage/ebest/__init__.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/brokerage/ebest/domestic_stock.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/brokerage/ebest/oauth.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/brokerage/ebest/simple.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/brokerage/ebest/tr_client.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/brokerage/helper.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/brokerage/kis/__init__.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/brokerage/kis/domestic_stock.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/brokerage/kis/oauth.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/brokerage/kis/overseas_stock.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/brokerage/kis/simple.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/brokerage/kis/simple_overseas.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/brokerage/multiprocess_tracker.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/brokerage/tracker.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/config.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/data/__init__.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/data/daily.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/data/domestic.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/data/index.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/data/minutes.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/data/overseas.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/data/realtime.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/data/ticks.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/data/us_stocks.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/datatypes.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/executors/__init__.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/executors/hook.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/utils/__init__.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/utils/api_client.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/utils/array.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/utils/casting.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/utils/compute.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/utils/copycat.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/utils/daily_tickers.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/utils/display.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/utils/kvstore.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/utils/limiter.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/utils/local_cache.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/utils/logger.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/utils/market_schedule.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/utils/mock_api.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/utils/position_classifier.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/utils/retry.py +0 -0
- {pyqqq-0.12.192 → pyqqq-0.12.193}/pyqqq/utils/singleton.py +0 -0
|
@@ -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 =
|
|
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:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|