analyser_hj3415 3.1.1__py3-none-any.whl → 3.1.2__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- analyser_hj3415/analyser/tsa/__init__.py +9 -1
- analyser_hj3415/cli.py +78 -54
- {analyser_hj3415-3.1.1.dist-info → analyser_hj3415-3.1.2.dist-info}/METADATA +1 -1
- {analyser_hj3415-3.1.1.dist-info → analyser_hj3415-3.1.2.dist-info}/RECORD +6 -6
- {analyser_hj3415-3.1.1.dist-info → analyser_hj3415-3.1.2.dist-info}/WHEEL +0 -0
- {analyser_hj3415-3.1.1.dist-info → analyser_hj3415-3.1.2.dist-info}/entry_points.txt +0 -0
@@ -4,4 +4,12 @@ from analyser_hj3415.analyser.tsa.prophet import *
|
|
4
4
|
MIs = {
|
5
5
|
"wti": "CL=F",
|
6
6
|
"gold": "GC=F",
|
7
|
-
|
7
|
+
"silver": "SI=F",
|
8
|
+
"usdidx": "DX-Y.NYB",
|
9
|
+
"usdkrw": "KRW=X",
|
10
|
+
"sp500": "^GSPC",
|
11
|
+
"kospi": "^KS11",
|
12
|
+
"nikkei": "^N225",
|
13
|
+
"china": "^HSI",
|
14
|
+
"irx": "^IRX",
|
15
|
+
}
|
analyser_hj3415/cli.py
CHANGED
@@ -93,69 +93,89 @@ def analyser_manager():
|
|
93
93
|
red.code = args.code
|
94
94
|
print(f"*** Red - {red} ***")
|
95
95
|
pprint.pprint(red.get(args.refresh))
|
96
|
-
mymongo.Logs.save('cli','INFO', f'run >> analyser red get {args.code}')
|
96
|
+
# mymongo.Logs.save('cli','INFO', f'run >> analyser red get {args.code}')
|
97
97
|
|
98
98
|
elif args.command == 'ranking':
|
99
|
-
mymongo.Logs.save('cli','INFO', 'run >> analyser red ranking')
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
99
|
+
mymongo.Logs.save('cli', 'INFO', 'run >> analyser red ranking')
|
100
|
+
try:
|
101
|
+
if args.expect_earn is None:
|
102
|
+
result = compile.Compile.red_ranking(refresh=args.refresh)
|
103
|
+
else:
|
104
|
+
result = compile.Compile.red_ranking(expect_earn=args.expect_earn, refresh=args.refresh)
|
105
|
+
print(result)
|
106
|
+
except Exception as e:
|
107
|
+
print(e)
|
108
|
+
mymongo.Logs.save('cli', 'ERROR', f'analyser red ranking 실행중 에러 - {e}')
|
105
109
|
|
106
110
|
elif args.type == 'mil':
|
107
111
|
if args.command == 'get':
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
112
|
+
mymongo.Logs.save('cli', 'INFO', f'run >> analyser mil get {args.code}')
|
113
|
+
try:
|
114
|
+
if args.code == 'all':
|
115
|
+
mil = eval.Mil('005930')
|
116
|
+
print("**** Mil - all codes ****")
|
117
|
+
for i, code in enumerate(myredis.Corps.list_all_codes()):
|
118
|
+
mil.code = code
|
119
|
+
print(f"*** {i} / {mil} ***")
|
120
|
+
pprint.pprint(mil.get(args.refresh, verbose=False))
|
121
|
+
else:
|
122
|
+
assert tools.is_6digit(args.code), "code 인자는 6자리 숫자이어야 합니다."
|
123
|
+
mil = eval.Mil(args.code)
|
124
|
+
print(f"*** Mil - {mil} ***")
|
125
|
+
pprint.pprint(mil.get(args.refresh))
|
126
|
+
except Exception as e:
|
127
|
+
print(e)
|
128
|
+
mymongo.Logs.save('cli', 'ERROR', f'analyser mil get {args.code} 실행중 에러 - {e}')
|
121
129
|
|
122
130
|
elif args.type == 'blue':
|
123
131
|
if args.command == 'get':
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
132
|
+
mymongo.Logs.save('cli', 'INFO', f'run >> analyser blue get {args.code}')
|
133
|
+
try:
|
134
|
+
if args.code == 'all':
|
135
|
+
blue = eval.Blue('005930')
|
136
|
+
print("**** Blue - all codes ****")
|
137
|
+
for i, code in enumerate(myredis.Corps.list_all_codes()):
|
138
|
+
blue.code = code
|
139
|
+
print(f"*** {i} / {blue} ***")
|
140
|
+
pprint.pprint(blue.get(args.refresh, verbose=False))
|
141
|
+
else:
|
142
|
+
assert tools.is_6digit(args.code), "code 인자는 6자리 숫자이어야 합니다."
|
143
|
+
blue = eval.Blue(args.code)
|
144
|
+
print(f"*** Blue - {blue} ***")
|
145
|
+
pprint.pprint(blue.get(args.refresh))
|
146
|
+
except Exception as e:
|
147
|
+
print(e)
|
148
|
+
mymongo.Logs.save('cli', 'ERROR', f'analyser blue get {args.code} 실행중 에러 - {e}')
|
137
149
|
|
138
150
|
elif args.type == 'growth':
|
139
151
|
if args.command == 'get':
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
152
|
+
mymongo.Logs.save('cli', 'INFO', f'run >> analyser growth get {args.code}')
|
153
|
+
try:
|
154
|
+
if args.code == 'all':
|
155
|
+
growth = eval.Growth('005930')
|
156
|
+
print("**** Growth - all codes ****")
|
157
|
+
for i, code in enumerate(myredis.Corps.list_all_codes()):
|
158
|
+
growth.code = code
|
159
|
+
print(f"*** {i} / {growth} ***")
|
160
|
+
pprint.pprint(growth.get(args.refresh, verbose=False))
|
161
|
+
else:
|
162
|
+
assert tools.is_6digit(args.code), "code 인자는 6자리 숫자이어야 합니다."
|
163
|
+
growth = eval.Growth(args.code)
|
164
|
+
print(f"*** growth - {growth} ***")
|
165
|
+
pprint.pprint(growth.get(args.refresh))
|
166
|
+
except Exception as e:
|
167
|
+
print(e)
|
168
|
+
mymongo.Logs.save('cli', 'ERROR', f'analyser growth get {args.code} 실행중 에러 - {e}')
|
153
169
|
|
154
170
|
elif args.type == 'prophet':
|
155
171
|
if args.command == 'ranking':
|
156
|
-
|
157
|
-
|
158
|
-
|
172
|
+
mymongo.Logs.save('cli', 'INFO', 'run >> analyser prophet ranking')
|
173
|
+
try:
|
174
|
+
result = compile.Compile.prophet_ranking(refresh=args.refresh)
|
175
|
+
print(result)
|
176
|
+
except Exception as e:
|
177
|
+
print(e)
|
178
|
+
mymongo.Logs.save('cli', 'ERROR', f'analyser prophet ranking 실행중 에러 - {e}')
|
159
179
|
elif args.command == 'score':
|
160
180
|
if args.target in MIs.keys():
|
161
181
|
myprophet = tsa.MIProphet(args.target)
|
@@ -168,11 +188,15 @@ def analyser_manager():
|
|
168
188
|
|
169
189
|
elif args.type == 'lstm':
|
170
190
|
if args.command == 'caching':
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
191
|
+
mymongo.Logs.save('cli', 'INFO', f'run >> analyser lstm caching')
|
192
|
+
try:
|
193
|
+
if args.top:
|
194
|
+
compile.Compile.analyse_lstm_topn(refresh=args.refresh, top=args.top)
|
195
|
+
else:
|
196
|
+
compile.Compile.analyse_lstm_topn(refresh=args.refresh)
|
197
|
+
except Exception as e:
|
198
|
+
print(e)
|
199
|
+
mymongo.Logs.save('cli','ERROR', f'analyser lstm caching 실행중 에러 - {e}')
|
176
200
|
elif args.command == 'predict':
|
177
201
|
if args.target in MIs.keys():
|
178
202
|
mylstm = tsa.MILSTM(args.target)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
analyser_hj3415/__init__.py,sha256=f2E9Neh7Nzkhvdj7HWWlgxZK2sB95rBtaIgWEHzxK9E,450
|
2
|
-
analyser_hj3415/cli.py,sha256=
|
2
|
+
analyser_hj3415/cli.py,sha256=l-ZRCh_a2QXO-HWYb1S3d2A29pYmMb2RpsMAtoeGQDE,11727
|
3
3
|
analyser_hj3415/analyser/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
analyser_hj3415/analyser/compile.py,sha256=e3ziVf8SX0K6rk9XFPAhi7cpxTaFlKYCQ2dHACzLlPo,5763
|
5
5
|
analyser_hj3415/analyser/eval/__init__.py,sha256=IP1d0Q3nOCAD3zK1qxrC685MkJQfUh-qaXc7xptTxk8,80
|
@@ -8,7 +8,7 @@ analyser_hj3415/analyser/eval/common.py,sha256=wcWJg_jNgr02i1U62oZGgLt2iscdle9X-
|
|
8
8
|
analyser_hj3415/analyser/eval/growth.py,sha256=OXuBuPzVw3q6kpelNigiX7xvJNUP1gv26DNetc4aews,3315
|
9
9
|
analyser_hj3415/analyser/eval/mil.py,sha256=wN1jPu5zLJjoDk3kL7piL-4jWhpsAMeQpsTZll0a2dw,10568
|
10
10
|
analyser_hj3415/analyser/eval/red.py,sha256=rJbidKlo2s2EJHBGn4HDbfCDcEGP5Rst8iQeJ6jlzNA,10988
|
11
|
-
analyser_hj3415/analyser/tsa/__init__.py,sha256=
|
11
|
+
analyser_hj3415/analyser/tsa/__init__.py,sha256=0XIpMgYIiyDrSE3sp9S0J0gXwW4cpk6nQmxSjC3KkY4,371
|
12
12
|
analyser_hj3415/analyser/tsa/lstm.py,sha256=22Rd1PTBeDAvITb1zw65Y51lLB76w6MyWXNKku6RzjM,29975
|
13
13
|
analyser_hj3415/analyser/tsa/prophet.py,sha256=Xeb1GxvQQAacFtTFYN0fmzk6iYQkFSex2HDaY2Ek7OY,10154
|
14
14
|
analyser_hj3415/workroom/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -16,7 +16,7 @@ analyser_hj3415/workroom/mysklearn.py,sha256=wJXKz5MqqTzADdG2mqRMMzc_G9RzwYjj5_j
|
|
16
16
|
analyser_hj3415/workroom/mysklearn2.py,sha256=1lIy6EWEQHkOzDS-av8U0zQH6DuCLKWMI73dnJx5KRs,1495
|
17
17
|
analyser_hj3415/workroom/score.py,sha256=P6nHBJYmyhigGtT4qna4BmNtvt4B93b7SKyzdstJK24,17376
|
18
18
|
analyser_hj3415/workroom/trash.py,sha256=zF-W0piqkGr66UP6-iybo9EXh2gO0RP6R1FnIpsGkl8,12262
|
19
|
-
analyser_hj3415-3.1.
|
20
|
-
analyser_hj3415-3.1.
|
21
|
-
analyser_hj3415-3.1.
|
22
|
-
analyser_hj3415-3.1.
|
19
|
+
analyser_hj3415-3.1.2.dist-info/entry_points.txt,sha256=ZfjPnJuH8SzvhE9vftIPMBIofsc65IAWYOhqOC_L5ck,65
|
20
|
+
analyser_hj3415-3.1.2.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
|
21
|
+
analyser_hj3415-3.1.2.dist-info/METADATA,sha256=fUkCXxwBSLJA_LKypntfXbZfPxhJy-WefnP6ZUihtvg,6777
|
22
|
+
analyser_hj3415-3.1.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|