analyser_hj3415 3.0.0__py3-none-any.whl → 3.0.1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- analyser_hj3415/cli.py +11 -3
- {analyser_hj3415-3.0.0.dist-info → analyser_hj3415-3.0.1.dist-info}/METADATA +1 -1
- {analyser_hj3415-3.0.0.dist-info → analyser_hj3415-3.0.1.dist-info}/RECORD +5 -5
- {analyser_hj3415-3.0.0.dist-info → analyser_hj3415-3.0.1.dist-info}/WHEEL +0 -0
- {analyser_hj3415-3.0.0.dist-info → analyser_hj3415-3.0.1.dist-info}/entry_points.txt +0 -0
analyser_hj3415/cli.py
CHANGED
@@ -39,6 +39,7 @@ def analyser_manager():
|
|
39
39
|
# red - get 파서
|
40
40
|
red_get_parser = red_subparser.add_parser('get', help='red get 책정 및 레디스 저장')
|
41
41
|
red_get_parser.add_argument('code', type=str, help='종목코드 or all')
|
42
|
+
red_get_parser.add_argument('-e', '--expect_earn', type=float, help='기대수익률 (실수 값 입력)')
|
42
43
|
red_get_parser.add_argument('-r', '--refresh', action='store_true', help='래디스 캐시를 사용하지 않고 강제로 재계산 할지')
|
43
44
|
|
44
45
|
# mil 명령어 서브파서
|
@@ -69,8 +70,12 @@ def analyser_manager():
|
|
69
70
|
|
70
71
|
if args.type == 'red':
|
71
72
|
if args.command == 'get':
|
72
|
-
if args.
|
73
|
+
if args.expect_earn is None:
|
73
74
|
red = eval.Red('005930')
|
75
|
+
else:
|
76
|
+
red = eval.Red('005930', expect_earn=args.expect_earn)
|
77
|
+
if args.code == 'all':
|
78
|
+
|
74
79
|
print("**** Red - all codes ****")
|
75
80
|
for i, code in enumerate(myredis.Corps.list_all_codes()):
|
76
81
|
red.code = code
|
@@ -79,14 +84,17 @@ def analyser_manager():
|
|
79
84
|
else:
|
80
85
|
assert tools.is_6digit(args.code), "code 인자는 6자리 숫자이어야 합니다."
|
81
86
|
# 저장된 기대수익률을 불러서 임시저장
|
82
|
-
red =
|
87
|
+
red.code = args.code
|
83
88
|
print(f"*** Red - {red} ***")
|
84
89
|
pprint.pprint(red.get(args.refresh))
|
85
90
|
mymongo.Logs.save('cli','INFO', f'run >> analyser red get {args.code}')
|
86
91
|
|
87
92
|
elif args.command == 'ranking':
|
88
93
|
mymongo.Logs.save('cli','INFO', 'run >> analyser red ranking')
|
89
|
-
|
94
|
+
if args.expect_earn is None:
|
95
|
+
result = eval.Red.ranking(refresh=args.refresh)
|
96
|
+
else:
|
97
|
+
result = eval.Red.ranking(expect_earn=args.expect_earn, refresh=args.refresh)
|
90
98
|
print(result)
|
91
99
|
|
92
100
|
elif args.type == 'mil':
|
@@ -1,5 +1,5 @@
|
|
1
1
|
analyser_hj3415/__init__.py,sha256=huF0tm8fFC96sODN9TmVRmPhDizQ0yBTKNOw8miOBh0,448
|
2
|
-
analyser_hj3415/cli.py,sha256=
|
2
|
+
analyser_hj3415/cli.py,sha256=b1oK0_mt248eCQuavKh6R4irgtA9XxkSUFfAgLf8hAo,9204
|
3
3
|
analyser_hj3415/analyser/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
analyser_hj3415/analyser/score.py,sha256=cqTHXLBh38N9zlmNzChWZJ42O7gdXhjw_jVevOxDUo8,6420
|
5
5
|
analyser_hj3415/analyser/eval/__init__.py,sha256=IP1d0Q3nOCAD3zK1qxrC685MkJQfUh-qaXc7xptTxk8,80
|
@@ -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.0.
|
20
|
-
analyser_hj3415-3.0.
|
21
|
-
analyser_hj3415-3.0.
|
22
|
-
analyser_hj3415-3.0.
|
19
|
+
analyser_hj3415-3.0.1.dist-info/entry_points.txt,sha256=ZfjPnJuH8SzvhE9vftIPMBIofsc65IAWYOhqOC_L5ck,65
|
20
|
+
analyser_hj3415-3.0.1.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
|
21
|
+
analyser_hj3415-3.0.1.dist-info/METADATA,sha256=a1hvHhQURatp_A7dL52s5HKQ2KU8Ok6Q_-2AEHsgldQ,6776
|
22
|
+
analyser_hj3415-3.0.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|