pyminerva 0.0.414__tar.gz → 0.0.415__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.
- {pyminerva-0.0.414 → pyminerva-0.0.415}/PKG-INFO +1 -1
- {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva/strategy.py +7 -7
- {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva.egg-info/PKG-INFO +1 -1
- {pyminerva-0.0.414 → pyminerva-0.0.415}/setup.py +1 -1
- {pyminerva-0.0.414 → pyminerva-0.0.415}/LICENSE +0 -0
- {pyminerva-0.0.414 → pyminerva-0.0.415}/README.md +0 -0
- {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva/__init__.py +0 -0
- {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva/base.py +0 -0
- {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva/data/__init__.py +0 -0
- {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva/korea.py +0 -0
- {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva/tech.py +0 -0
- {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva/utils/__init__.py +0 -0
- {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva/utils/constant.py +0 -0
- {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva/utils/naverApi.py +0 -0
- {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva/utils/strategy_funcs.py +0 -0
- {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva.egg-info/SOURCES.txt +0 -0
- {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva.egg-info/dependency_links.txt +0 -0
- {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva.egg-info/top_level.txt +0 -0
- {pyminerva-0.0.414 → pyminerva-0.0.415}/setup.cfg +0 -0
- {pyminerva-0.0.414 → pyminerva-0.0.415}/tests/test_economics_db.py +0 -0
- {pyminerva-0.0.414 → pyminerva-0.0.415}/tests/test_global_.py +0 -0
- {pyminerva-0.0.414 → pyminerva-0.0.415}/tests/test_strategy.py +0 -0
|
@@ -109,17 +109,17 @@ def timing_strategy(ticker, short_sma, long_sma):
|
|
|
109
109
|
print(f"=== 100: {result}")
|
|
110
110
|
buf = result[result['Pivot'] == 1].reset_index()
|
|
111
111
|
# 날짜를 기준으로 최대 날짜의 인덱스를 찾기
|
|
112
|
-
latest_indices = buf.groupby('ticker'
|
|
113
|
-
|
|
112
|
+
latest_indices = buf.groupby(by=['ticker', 'date']).idxmax()
|
|
113
|
+
|
|
114
114
|
print(f"latest_indices: {latest_indices}")
|
|
115
|
-
print(f"buf.loc[latest_indices][0]: {buf.loc[latest_indices][0]}")
|
|
116
115
|
# 최대 날짜의 거래 내역을 발췌
|
|
117
|
-
#
|
|
118
|
-
|
|
116
|
+
# latest_date = buf.loc[latest_indices]
|
|
117
|
+
latest_date = datetime.strptime(buf.iloc[latest_indices], "%Y-%m-%d")
|
|
118
|
+
print(f"latest_date: {latest_date}")
|
|
119
119
|
# Change rate 비율만큼 Buy/Sell 실행할것, 초기 설정은 임계값 상승돌파하면 75% 추가매수, 하락돌파하면 75% 매도
|
|
120
|
-
# pivot_tickers =
|
|
120
|
+
# pivot_tickers = latest_date[latest_date['date'] >= day5_ago] # for test: '2023-05-16'
|
|
121
121
|
day30_ago = find_30days_ago() # 30일 이전까지 피벗날짜 없으면 실행하기 늦었다고 판단했음.
|
|
122
|
-
pivot_tickers =
|
|
122
|
+
pivot_tickers = latest_date[latest_date['date'] >= day30_ago] # for test: '2023-05-16'
|
|
123
123
|
print(f"=== 200: {pivot_tickers}")
|
|
124
124
|
base.log_report.info(f' Timing_strategy: {ticker} Only 1day '.center(60, '*'))
|
|
125
125
|
|
|
@@ -11,7 +11,7 @@ with open('requirements.txt') as f:
|
|
|
11
11
|
|
|
12
12
|
setup(
|
|
13
13
|
name='pyminerva',
|
|
14
|
-
version='0.0.
|
|
14
|
+
version='0.0.415', # version.directory.file
|
|
15
15
|
description='To get an insight from Financial Data Anlaysis',
|
|
16
16
|
url='',
|
|
17
17
|
author='Jeongmin Kang',
|
|
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
|