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.
Files changed (22) hide show
  1. {pyminerva-0.0.414 → pyminerva-0.0.415}/PKG-INFO +1 -1
  2. {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva/strategy.py +7 -7
  3. {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva.egg-info/PKG-INFO +1 -1
  4. {pyminerva-0.0.414 → pyminerva-0.0.415}/setup.py +1 -1
  5. {pyminerva-0.0.414 → pyminerva-0.0.415}/LICENSE +0 -0
  6. {pyminerva-0.0.414 → pyminerva-0.0.415}/README.md +0 -0
  7. {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva/__init__.py +0 -0
  8. {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva/base.py +0 -0
  9. {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva/data/__init__.py +0 -0
  10. {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva/korea.py +0 -0
  11. {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva/tech.py +0 -0
  12. {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva/utils/__init__.py +0 -0
  13. {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva/utils/constant.py +0 -0
  14. {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva/utils/naverApi.py +0 -0
  15. {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva/utils/strategy_funcs.py +0 -0
  16. {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva.egg-info/SOURCES.txt +0 -0
  17. {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva.egg-info/dependency_links.txt +0 -0
  18. {pyminerva-0.0.414 → pyminerva-0.0.415}/pyminerva.egg-info/top_level.txt +0 -0
  19. {pyminerva-0.0.414 → pyminerva-0.0.415}/setup.cfg +0 -0
  20. {pyminerva-0.0.414 → pyminerva-0.0.415}/tests/test_economics_db.py +0 -0
  21. {pyminerva-0.0.414 → pyminerva-0.0.415}/tests/test_global_.py +0 -0
  22. {pyminerva-0.0.414 → pyminerva-0.0.415}/tests/test_strategy.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyminerva
3
- Version: 0.0.414
3
+ Version: 0.0.415
4
4
  Summary: To get an insight from Financial Data Anlaysis
5
5
  Home-page:
6
6
  Author: Jeongmin Kang
@@ -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')['date'].idxmax()
113
- print(f"buf.groupby('ticker')['date']: {buf.groupby('ticker')['date']}")
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
- # latest_records = buf.loc[latest_indices]
118
- latest_records = datetime.strptime(buf.loc[latest_indices][0], "%Y-%m-%d")
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 = latest_records[latest_records['date'] >= day5_ago] # for test: '2023-05-16'
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 = latest_records[latest_records['date'] >= day30_ago] # for test: '2023-05-16'
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyminerva
3
- Version: 0.0.414
3
+ Version: 0.0.415
4
4
  Summary: To get an insight from Financial Data Anlaysis
5
5
  Home-page:
6
6
  Author: Jeongmin Kang
@@ -11,7 +11,7 @@ with open('requirements.txt') as f:
11
11
 
12
12
  setup(
13
13
  name='pyminerva',
14
- version='0.0.414', # version.directory.file
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