Skip to content

Commit

Permalink
Update realtime mock data
Browse files Browse the repository at this point in the history
  • Loading branch information
mlouielu committed May 16, 2024
1 parent 220a940 commit f0aee02
Showing 1 changed file with 3 additions and 51 deletions.
54 changes: 3 additions & 51 deletions twstock/mock/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,57 +4,9 @@


TSE_2330_TW = [
"""
{"msgArray": [{"ts": "0", "tk0": "2330.tw_tse_20170724_B_9999778918", "tk1":
"2330.tw_tse_20170724_B_9999777950", "tlong": "1500860849000", "f":
"853_1193_972_1209_817_", "ex": "tse", "g": "1221_1530_817_1038_1193_", "d":
"20170724", "it": "12", "b": "214.00_213.50_213.00_212.50_212.00_", "c":
"2330", "mt": "264564", "a": "214.50_215.00_215.50_216.00_216.50_", "n":
"\u53f0\u7a4d\u96fb", "o": "213.50", "l": "213.00", "h": "214.50", "ip": "0",
"i": "24", "w": "193.00", "v": "5094", "u": "235.00", "t": "09:47:29", "s":
"1", "pz": "213.50", "tv": "1", "p": "0", "nf":
"\u53f0\u7063\u7a4d\u9ad4\u96fb\u8def\u88fd\u9020\u80a1\u4efd\u6709\u9650\u516c\u53f8",
"ch": "2330.tw",
"z": "214.50", "y": "214.00", "ps": "1323"}], "userDelay": 5000, "rtmessage":
"OK", "referer": "", "queryTime": {"sysTime": "09:47:30", "sessionLatestTime":
-1, "sysDate": "20170724", "sessionKey": "tse_2330.tw_20170724|",
"sessionFromTime": -1, "stockInfoItem": 2065, "showChart": false,
"sessionStr": "UserSession", "stockInfo": 204322}, "rtcode": "0000"}
""",
"""
{"msgArray": [{"ts": "0", "tk0": "2330.tw_tse_20170724_B_9999766224", "tk1":
"2330.tw_tse_20170724_B_9999765954", "tlong": "1500861105000", "f":
"1059_1079_1014_1229_907_", "ex": "tse", "g": "1455_1598_797_1019_1134_", "d":
"20170724", "it": "12", "b": "214.00_213.50_213.00_212.50_212.00_", "c":
"2330", "mt": "778472", "a": "214.50_215.00_215.50_216.00_216.50_", "n":
"\u53f0\u7a4d\u96fb", "o": "213.50", "l": "213.00", "h": "214.50", "ip": "0",
"i": "24", "w": "193.00", "v": "5217", "u": "235.00", "t": "09:51:45", "s":
"0", "pz": "213.50", "tv": "1", "p": "0", "nf":
"\u53f0\u7063\u7a4d\u9ad4\u96fb\u8def\u88fd\u9020\u80a1\u4efd\u6709\u9650\u516c\u53f8",
"ch": "2330.tw",
"z": "214.50", "y": "214.00", "ps": "1323"}], "userDelay": 5000, "rtmessage":
"OK", "referer": "", "queryTime": {"sysTime": "09:51:48", "sessionLatestTime":
-1, "sysDate": "20170724", "sessionKey": "tse_2330.tw_20170724|",
"sessionFromTime": -1, "stockInfoItem": 2055, "showChart": false,
"sessionStr": "UserSession", "stockInfo": 130895}, "rtcode": "0000"}
""",
"""
{"msgArray": [{"ts": "0", "tk0": "2330.tw_tse_20170724_B_9999760446", "tk1":
"2330.tw_tse_20170724_B_9999759382", "tlong": "1500861243000", "f":
"1034_1028_1009_1253_933_", "ex": "tse", "g": "1466_1625_798_987_1117_", "d":
"20170724", "it": "12", "b": "214.00_213.50_213.00_212.50_212.00_", "c":
"2330", "mt": "962863", "a": "214.50_215.00_215.50_216.00_216.50_", "n":
"\u53f0\u7a4d\u96fb", "o": "213.50", "l": "213.00", "h": "214.50", "ip": "0",
"i": "24", "w": "193.00", "v": "5268", "u": "235.00", "t": "09:54:03", "s":
"0", "pz": "213.50", "tv": "3", "p": "0", "nf":
"\u53f0\u7063\u7a4d\u9ad4\u96fb\u8def\u88fd\u9020\u80a1\u4efd\u6709\u9650\u516c\u53f8",
"ch": "2330.tw",
"z": "214.00", "y": "214.00", "ps": "1323"}], "userDelay": 5000, "rtmessage":
"OK", "referer": "", "queryTime": {"sysTime": "09:54:10", "sessionLatestTime":
-1, "sysDate": "20170724", "sessionKey": "tse_2330.tw_20170724|",
"sessionFromTime": -1, "stockInfoItem": 1602, "showChart": false,
"sessionStr": "UserSession", "stockInfo": 119518}, "rtcode": "0000"}
""",
"""{"msgArray": [{"tv": "-", "ps": "-", "pz": "-", "bp": "0", "a": "849.0000_850.0000_851.0000_852.0000_853.0000_", "b": "848.0000_847.0000_846.0000_845.0000_844.0000_", "c": "2330", "d": "20240516", "ch": "2330.tw", "tlong": "1715827494000", "f": "170_372_260_647_514_", "ip": "0", "g": "6_50_126_107_255_", "mt": "692836", "h": "856.0000", "i": "24", "it": "12", "l": "844.0000", "n": "\\u53f0\\u7a4d\\u96fb", "o": "852.0000", "p": "0", "ex": "tse", "s": "-", "t": "10:44:54", "u": "922.0000", "v": "23350", "w": "756.0000", "nf": "\\u53f0\\u7063\\u7a4d\\u9ad4\\u96fb\\u8def\\u88fd\\u9020\\u80a1\\u4efd\\u6709\\u9650\\u516c\\u53f8", "y": "839.0000", "z": "-", "ts": "0"}], "referer": "", "userDelay": 5000, "rtcode": "0000", "queryTime": {"sysDate": "20240516", "stockInfoItem": 2300, "stockInfo": 1107969, "sessionStr": "UserSession", "sysTime": "10:45:02", "showChart": false, "sessionFromTime": 1715827477731, "sessionLatestTime": 1715827477731}, "rtmessage": "OK", "exKey": "if_tse_2330.tw_zh-tw.null", "cachedAlive": 41360}""",
"""{"msgArray": [{"tv": "-", "ps": "-", "pz": "-", "bp": "0", "a": "848.0000_849.0000_850.0000_851.0000_852.0000_", "b": "847.0000_846.0000_845.0000_844.0000_843.0000_", "c": "2330", "d": "20240516", "ch": "2330.tw", "tlong": "1715827560000", "f": "53_157_370_261_945_", "ip": "0", "g": "42_124_116_271_187_", "mt": "826330", "h": "856.0000", "i": "24", "it": "12", "l": "844.0000", "n": "\\u53f0\\u7a4d\\u96fb", "o": "852.0000", "p": "0", "ex": "tse", "s": "-", "t": "10:46:00", "u": "922.0000", "v": "23384", "w": "756.0000", "nf": "\\u53f0\\u7063\\u7a4d\\u9ad4\\u96fb\\u8def\\u88fd\\u9020\\u80a1\\u4efd\\u6709\\u9650\\u516c\\u53f8", "y": "839.0000", "z": "-", "ts": "0"}], "referer": "", "userDelay": 5000, "rtcode": "0000", "queryTime": {"sysDate": "20240516", "stockInfoItem": 762, "stockInfo": 270448, "sessionStr": "UserSession", "sysTime": "10:46:02", "showChart": false, "sessionFromTime": 1715827446503, "sessionLatestTime": 1715827446503}, "rtmessage": "OK", "exKey": "if_tse_2330.tw_zh-tw.null", "cachedAlive": 17846}""",
"""{"msgArray": [{"tv": "-", "ps": "-", "pz": "-", "bp": "0", "a": "848.0000_849.0000_850.0000_851.0000_852.0000_", "b": "847.0000_846.0000_845.0000_844.0000_843.0000_", "c": "2330", "d": "20240516", "ch": "2330.tw", "tlong": "1715827579000", "f": "64_157_371_261_947_", "ip": "0", "g": "40_124_118_270_185_", "mt": "655374", "h": "856.0000", "i": "24", "it": "12", "l": "844.0000", "n": "\\u53f0\\u7a4d\\u96fb", "o": "852.0000", "p": "0", "ex": "tse", "s": "-", "t": "10:46:19", "u": "922.0000", "v": "23388", "w": "756.0000", "nf": "\\u53f0\\u7063\\u7a4d\\u9ad4\\u96fb\\u8def\\u88fd\\u9020\\u80a1\\u4efd\\u6709\\u9650\\u516c\\u53f8", "y": "839.0000", "z": "-", "ts": "0"}], "referer": "", "userDelay": 5000, "rtcode": "0000", "queryTime": {"sysDate": "20240516", "stockInfoItem": 2216, "stockInfo": 506844, "sessionStr": "UserSession", "sysTime": "10:46:25", "showChart": false, "sessionFromTime": -1, "sessionLatestTime": -1}, "rtmessage": "OK", "exKey": "if_tse_2330.tw_zh-tw.null", "cachedAlive": 21231}""",
]


Expand Down

0 comments on commit f0aee02

Please sign in to comment.