-
Notifications
You must be signed in to change notification settings - Fork 98
/
Copy pathrun_test_msg.py
42 lines (29 loc) · 1.45 KB
/
run_test_msg.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# -*- coding: utf-8 -*-
from tool.axsbe_base import INSTRUMENT_TYPE
import tool.test.test_msg as msg
import tool.test.test_pipeline as pp
import tool.msg_util as msg_util
if __name__== '__main__':
# msg.TEST_msg_byte_stream()
# msg.TEST_msg_SL()
# #
# msg.TEST_msg_ms(35000)
# #
# msg.TEST_serial(10000)
# # active_OB.TEST_OB()
# ## 185s
# msg.TEST_msg_ms_filt("data/20220817/sbe_0817a.txt", "000001", 0, 35000)
# ##
# msg.TEST_msg_text("data/20220818/lv1szdump20220818.cap.ITsbe.txt", "000997", 0, 35000)
####
# pp.test_pipeline_I1E1()
# pp.test_pipeline_id()
# # 198.0328 sec
# msg.TEST_print_securityID("data/20220617/sbe_20220617_all.log", read_nb=0, instrument_type=INSTRUMENT_TYPE.STOCK)
# msg.TEST_ApplSeqNum("data/20220812/sbe_20220812_all.log", 0)
##
msg_util.extract_security("data/20220617/sbe_20220617_all.log", "data/20220617/bat_test3.log", [2487])
# msg_util.extract_security("data/20220812/sbe_20220812_all.log", "data/20220812/bat_test2.log", [301192])
# msg_util.extract_security("data/20221010/sbe_20221010_all.log", "data/20221010/bat_test.log", [2417, 300909, 301079, 300607, 300911, 301220, 301318, 2889, 300799, 3020, 300718, 2623, 3002, 2955, 3013, 2791, 300699, 301176, 2805, 300872, 301285, 301319, 2738, 301313])
#20220812:
#2022-11-18 19:32:59,822 - behave.axob - ERROR - 301192 order SZSE STOCK ApplSeqNum=27236001 Price=-694967296 precision dnf!