tickplus 0.1.0__py3-none-any.whl

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.
@@ -0,0 +1,139 @@
1
+ import json
2
+ import os
3
+ import sys
4
+ import time
5
+ import signal
6
+ from datetime import datetime
7
+
8
+ # 添加项目根目录到Python路径
9
+ sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..'))
10
+
11
+ from tickplus.scripts.StockWebSocketClient import StockWebSocketClient
12
+ from tickplus.scripts.Config import Config
13
+ from tickplus.scripts.util import DataUtil
14
+
15
+
16
+ class CompleteExampleClient(StockWebSocketClient):
17
+ """完整的 WebSocket 客户端示例"""
18
+
19
+ def __init__(self, url):
20
+ super().__init__(url)
21
+ self.message_count = 0
22
+ self.start_time = None
23
+ self.running = True
24
+
25
+ # 注册信号处理器以优雅退出
26
+ signal.signal(signal.SIGINT, self._signal_handler)
27
+ signal.signal(signal.SIGTERM, self._signal_handler)
28
+
29
+ def _signal_handler(self, signum, frame):
30
+ """处理中断信号"""
31
+ print("\n收到中断信号,正在关闭连接...")
32
+ self.running = False
33
+ self.disconnect()
34
+ sys.exit(0)
35
+
36
+ def on_open(self, ws):
37
+ """连接打开回调"""
38
+ super().on_open(ws)
39
+ self.start_time = time.time()
40
+ print("开始订阅股票数据...")
41
+
42
+ # 订阅一些示例股票
43
+ token = Config.TOKEN
44
+ auth_codes = ["auction", "minute.hsj", "000001.SZ", "600000.SH"]
45
+ self.subscribe(token, auth_codes)
46
+
47
+ def on_message(self, ws, message):
48
+ """消息处理回调"""
49
+ self.message_count += 1
50
+
51
+ if isinstance(message, bytes):
52
+ # 处理二进制数据
53
+ try:
54
+ packet = DataUtil.process_data(message)
55
+ current_time = datetime.now().strftime("%H:%M:%S.%f")[:-3]
56
+ print(f"[{current_time}] 收到二进制数据 #{self.message_count}: {str(packet)[:100]}...")
57
+
58
+ # 在这里添加您的业务逻辑
59
+ self._process_stock_data(packet)
60
+
61
+ except Exception as e:
62
+ print(f"处理二进制数据时出错: {e}")
63
+ else:
64
+ # 处理文本数据
65
+ try:
66
+ data = json.loads(message)
67
+ current_time = datetime.now().strftime("%H:%M:%S.%f")[:-3]
68
+ print(f"[{current_time}] 收到JSON数据 #{self.message_count}: {data}")
69
+
70
+ except (json.JSONDecodeError, TypeError):
71
+ print(f"收到文本数据 #{self.message_count}: {message[:100]}...")
72
+
73
+ def on_error(self, ws, error):
74
+ """错误回调"""
75
+ super().on_error(ws, error)
76
+ print(f"WebSocket 错误: {error}")
77
+
78
+ def on_close(self, ws, close_status_code, close_msg):
79
+ """关闭回调"""
80
+ super().on_close(ws, close_status_code, close_msg)
81
+ if self.start_time:
82
+ duration = time.time() - self.start_time
83
+ print(f"会话持续时间: {duration:.2f} 秒")
84
+ print(f"总共接收消息: {self.message_count} 条")
85
+
86
+ def _process_stock_data(self, data):
87
+ """处理股票数据的具体逻辑"""
88
+ # 这里可以实现您的业务逻辑
89
+ # 例如:数据存储、分析、报警等
90
+ pass
91
+
92
+ def run(self, duration=60):
93
+ """运行客户端指定时长"""
94
+ print(f"启动 WebSocket 客户端,运行 {duration} 秒...")
95
+
96
+ if self.connect():
97
+ print("成功连接到 WebSocket 服务器")
98
+
99
+ start_time = time.time()
100
+ query_at = min(5, duration)
101
+ queried = False
102
+ try:
103
+ while self.running and self.connected:
104
+ elapsed = time.time() - start_time
105
+ if not queried and elapsed >= query_at:
106
+ print("查询当前订阅...")
107
+ self.query_subscribe(Config.TOKEN)
108
+ queried = True
109
+
110
+ if elapsed >= duration:
111
+ break
112
+ time.sleep(min(1, duration - elapsed))
113
+ finally:
114
+ if self.connected:
115
+ print("取消部分订阅...")
116
+ self.unsubscribe(Config.TOKEN, ["auction", "600000.SH"])
117
+ print("运行结束,断开连接...")
118
+ self.disconnect()
119
+ else:
120
+ print("无法连接到 WebSocket 服务器")
121
+
122
+
123
+
124
+ # authCodes参数解释
125
+ # 订阅tick数据可取枚举值如下:
126
+ # - 000001.SZ - 订阅股票tick数据,按个数订阅,支持多个股票订阅。
127
+ # - auction - 订阅沪深京A股集合竞价期间竞价数据。
128
+ # - minute.hsj - 订阅沪深京A股一分钟K线数据。
129
+ # - minute.index - 订阅A股指数一分钟K线数据。
130
+ # - minute.etf - 订阅ETF一分钟K线数据。
131
+ if __name__ == "__main__":
132
+ """主函数"""
133
+ # 配置
134
+ token = Config.TOKEN
135
+ ws_url = f"ws://ws.tickplus.org/ws/{token}"
136
+
137
+ # 创建并运行客户端
138
+ client = CompleteExampleClient(ws_url)
139
+ client.run(30) # 运行30秒
@@ -0,0 +1,3 @@
1
+ class Config:
2
+ SERVER_URL = "http://api.tickplus.org" # Api调用服务地址
3
+ TOKEN = "123456789" # 激活Token参考 http://www.tickplus.org/
@@ -0,0 +1,121 @@
1
+ import os
2
+ import sys
3
+ from datetime import datetime, timedelta
4
+
5
+ # 添加项目根目录到Python路径
6
+ sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..'))
7
+
8
+ from tickplus.scripts.Config import Config
9
+ from tickplus.scripts.api import BasicApi, ProApi, ExpertApi
10
+
11
+
12
+ class StockApiClient(object):
13
+
14
+ def demoForAllApis(self):
15
+ """
16
+ 测试所有API接口
17
+ """
18
+ token = Config.TOKEN
19
+ try:
20
+ print("=" * 80)
21
+ print("开始测试所有 TickPlus API 接口")
22
+ print("=" * 80)
23
+
24
+ # ========== Basic Api 测试 ==========
25
+ print("\n【Basic Api 测试】")
26
+ print("-" * 80)
27
+
28
+ # 1. 股票列表
29
+ print("\n1. 测试 getStockList - 获取股票列表")
30
+ data = BasicApi.getStockList(symbol="stock", token=token)
31
+
32
+ # 2. 实时行情全推
33
+ print("\n2. 测试 getFullQuotes - 实时行情全推")
34
+ data = BasicApi.getFullQuotes(symbol="stock", code="000001,000002", token=token)
35
+
36
+ # 3. 实时日K线数据
37
+ print("\n3. 测试 getDayKline - 实时日K线数据")
38
+ today = datetime.now().strftime("%Y-%m-%d")
39
+ yesterday = (datetime.now() - timedelta(days=1)).strftime("%Y-%m-%d")
40
+ data = BasicApi.getDayKline(
41
+ symbol="stock", code="000001", period="1d", dividend="1",
42
+ startDate=yesterday, endDate=today, token=token
43
+ )
44
+
45
+ # 4. 行情指标
46
+ print("\n4. 测试 getFullMetric - 行情指标")
47
+ data = BasicApi.getFullMetric(code="000001,000002", token=token)
48
+
49
+ # 5. 核心财务指标
50
+ print("\n5. 测试 getFinanceCore - 核心财务指标")
51
+ data = BasicApi.getFinanceCore(code="000001", startDate="2025-01-01", endDate=today, token=token)
52
+
53
+ # 6. 股本数据
54
+ print("\n6. 测试 getCapital - 股本数据")
55
+ data = BasicApi.getCapital(code="000001", startDate="2025-01-01", endDate=today, token=token)
56
+
57
+ # 7. 盘后增量数据
58
+ print("\n7. 测试 getUpdateDayKline - 盘后增量数据")
59
+ data = BasicApi.getUpdateDayKline(symbol="stock", dividend="1", tradeDate=yesterday, token=token)
60
+
61
+ # ========== Pro Api 测试 ==========
62
+ print("\n【Pro Api 测试】")
63
+ print("-" * 80)
64
+
65
+ # 8. 实时分钟全推
66
+ print("\n8. 测试 getFullMinute - 实时分钟全推")
67
+ data = ProApi.getFullMinute(symbol="stock", code="000001,000002", token=token)
68
+
69
+ # 9. 盘中分钟快照
70
+ print("\n9. 测试 getFullMinuteSnapshot - 盘中分钟快照")
71
+ data = ProApi.getFullMinuteSnapshot(symbol="stock", code="000001,000002", token=token)
72
+
73
+ # 10. 实时分钟K线数据
74
+ print("\n10. 测试 getMinuteKline - 实时分钟K线数据")
75
+ data = ProApi.getMinuteKline(
76
+ symbol="stock", code="000001", period="1m", dividend="1",
77
+ startDate=yesterday, endDate=today, token=token
78
+ )
79
+
80
+ # 11. 日内分时
81
+ print("\n11. 测试 getTimeKline - 日内分时")
82
+ data = ProApi.getTimeKline(symbol="stock", code="000001", token=token)
83
+
84
+ # 12. 概念成分股
85
+ print("\n12. 测试 getGncgf - 概念成分股")
86
+ data = ProApi.getGncgf(symbol="hy", token=token)
87
+
88
+ # ========== Expert Api 测试 ==========
89
+ print("\n【Expert Api 测试】")
90
+ print("-" * 80)
91
+
92
+ # 13. 逐笔交易
93
+ print("\n13. 测试 getTransaction - 逐笔交易")
94
+ data = ExpertApi.getTransaction(code="000001", tradeDate=yesterday, token=token)
95
+
96
+ # 14. 集合竞价全推
97
+ print("\n14. 测试 getFullBid - 集合竞价全推")
98
+ data = ExpertApi.getFullBid(code="000001,000002", token=token)
99
+
100
+ # 15. 买卖五档
101
+ print("\n15. 测试 getFiveLevel - 买卖五档")
102
+ data = ExpertApi.getFiveLevel(symbol="stock", code="000001,000002", token=token)
103
+
104
+ # 16. 异动数据
105
+ print("\n16. 测试 getFluctuation - 异动数据")
106
+ data = ExpertApi.getFluctuation(tradeDate=today, token=token)
107
+
108
+ print("\n" + "=" * 80)
109
+ print("所有 API 接口测试完成!")
110
+ print("=" * 80)
111
+
112
+ except Exception as e:
113
+ print(f"\n调用失败: {e}")
114
+ import traceback
115
+ traceback.print_exc()
116
+
117
+
118
+ if __name__ == "__main__":
119
+ # 创建客户端实例,测试所有API接口
120
+ client = StockApiClient()
121
+ client.demoForAllApis()
@@ -0,0 +1,197 @@
1
+ import json
2
+ import os
3
+ import sys
4
+ import time
5
+
6
+ # 添加项目根目录到Python路径
7
+ sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..'))
8
+
9
+ import websocket # pip install websocket-client
10
+
11
+ from tickplus.scripts.Config import Config
12
+ from tickplus.scripts.util import DataUtil
13
+
14
+ '''
15
+ # GitHub: https://github.com/tickplusx/TickPlusSkill
16
+ # Home:http://www.tickplus.org/
17
+ '''
18
+
19
+
20
+ class StockWebSocketClient(object):
21
+
22
+ def __init__(self, url):
23
+ self.url = url # Enter your websocket URL here
24
+ self.ws = None
25
+ self.connected = False
26
+
27
+ def on_open(self, ws):
28
+ print('A new WebSocketApp is opened!')
29
+ self.connected = True
30
+ print(f"Connected to {self.url}")
31
+
32
+ def on_message(self, ws, message):
33
+ """处理接收到的消息"""
34
+ # 首先检查是否是二进制数据
35
+ if isinstance(message, bytes):
36
+ # 二进制数据(压缩的股票行情数据)如果需要解析二进制数据,可以在这里添加解析逻辑
37
+ packet = DataUtil.process_data(message)
38
+ print(f"Received data: {packet}")
39
+ else:
40
+ # 处理文本数据
41
+ try:
42
+ data = json.loads(message)
43
+ print(f"Received JSON data: {data}")
44
+ except (json.JSONDecodeError, TypeError):
45
+ print(f"Received text data: {message}")
46
+
47
+ def on_error(self, ws, error):
48
+ print(f"Error occurred: {error}")
49
+ self.connected = False
50
+
51
+ def on_close(self, ws, close_status_code, close_msg):
52
+ print(f"Connection closed. Code: {close_status_code}, Message: {close_msg}")
53
+ self.connected = False
54
+
55
+ def connect(self, timeout=30):
56
+ """建立WebSocket连接
57
+
58
+ Args:
59
+ timeout: 连接超时时间(秒)
60
+
61
+ Returns:
62
+ bool: 连接是否成功
63
+ """
64
+ # 禁用websocket的调试模式(设置为True可以看到详细的握手信息)
65
+ websocket.enableTrace(False)
66
+
67
+ print(f"Creating WebSocketApp with URL: {self.url}")
68
+ self.ws = websocket.WebSocketApp(
69
+ self.url,
70
+ on_open=self.on_open,
71
+ on_message=self.on_message,
72
+ on_error=self.on_error,
73
+ on_close=self.on_close,
74
+ )
75
+
76
+ # 使用线程运行WebSocket,避免阻塞
77
+ import threading
78
+ print("Starting WebSocket thread...")
79
+
80
+ def run_websocket():
81
+ print("Inside run_websocket, calling run_forever...")
82
+ self.ws.run_forever()
83
+ print("run_forever exited")
84
+
85
+ self.ws_thread = threading.Thread(target=run_websocket)
86
+ self.ws_thread.daemon = True
87
+ self.ws_thread.start()
88
+ print("WebSocket thread started")
89
+
90
+ # 等待连接建立
91
+ start_time = time.time()
92
+ while time.time() - start_time < timeout:
93
+ if self.connected:
94
+ print("WebSocket connection established successfully")
95
+ return True
96
+ time.sleep(0.2)
97
+
98
+ print(f"Failed to establish WebSocket connection within {timeout} seconds")
99
+ return False
100
+
101
+ def subscribe(self, token, auth_codes):
102
+ """订阅指定的股票代码或数据类型"""
103
+ if not self.connected or not self.ws:
104
+ print("WebSocket is not connected!")
105
+ return False
106
+
107
+ data = json.dumps({
108
+ "token": token,
109
+ "operation": "subscribe",
110
+ "authCodes": auth_codes
111
+ })
112
+
113
+ print(f"Sending subscription request: {data}")
114
+ try:
115
+ self.ws.send(data)
116
+ print("Subscription request sent successfully")
117
+ return True
118
+ except Exception as e:
119
+ print(f"Failed to send subscription request: {e}")
120
+ return False
121
+
122
+ def unsubscribe(self, token, auth_codes):
123
+ """取消订阅指定的股票代码或数据类型"""
124
+ if not self.connected or not self.ws:
125
+ print("WebSocket is not connected!")
126
+ return False
127
+
128
+ data = json.dumps({
129
+ "token": token,
130
+ "operation": "unsubscribe",
131
+ "authCodes": auth_codes
132
+ })
133
+
134
+ print(f"Sending unsubscription request: {data}")
135
+ try:
136
+ self.ws.send(data)
137
+ print("Unsubscription request sent successfully")
138
+ return True
139
+ except Exception as e:
140
+ print(f"Failed to send unsubscription request: {e}")
141
+ return False
142
+
143
+ def query_subscribe(self, token):
144
+ """查询当前订阅;服务端协议要求查询时 authCodes 为空数组。"""
145
+ if not self.connected or not self.ws:
146
+ print("WebSocket is not connected!")
147
+ return False
148
+
149
+ data = json.dumps({
150
+ "token": token,
151
+ "operation": "querysubscribe",
152
+ "authCodes": []
153
+ })
154
+
155
+ print(f"Sending subscription query: {data}")
156
+ try:
157
+ self.ws.send(data)
158
+ return True
159
+ except Exception as e:
160
+ print(f"Failed to send subscription query: {e}")
161
+ return False
162
+
163
+ def disconnect(self):
164
+ """断开WebSocket连接"""
165
+ if self.ws:
166
+ self.ws.close()
167
+ self.connected = False
168
+ print("WebSocket connection closed")
169
+
170
+
171
+ if __name__ == "__main__":
172
+ # 创建客户端实例,测试连接、订阅、数据接收与取消订阅
173
+ token = Config.TOKEN
174
+ client = StockWebSocketClient(f"ws://ws.tickplus.org/ws/{token}")
175
+ if client.connect():
176
+ #新增订阅
177
+ auth_codes = ["auction", "000001.SZ", "600000.SH", "minute.hsj"]
178
+ client.subscribe(token, auth_codes)
179
+ time.sleep(3)
180
+
181
+ #取消订阅
182
+ client.unsubscribe(token, auth_codes)
183
+ time.sleep(3)
184
+
185
+ #查询订阅
186
+ client.query_subscribe(token)
187
+ time.sleep(3)
188
+
189
+ #新增订阅
190
+ auth_codes = ["auction", "000001.SZ", "600000.SH", "minute.hsj"]
191
+ client.subscribe(token, auth_codes)
192
+ time.sleep(10)
193
+
194
+ # 断开连接
195
+ client.disconnect()
196
+ else:
197
+ print("无法连接到 WebSocket 服务器,请检查网络和Token")
File without changes
@@ -0,0 +1,152 @@
1
+ import json
2
+
3
+ from tickplus.scripts.Config import Config
4
+ from tickplus.scripts.util import DataUtil
5
+
6
+
7
+ def getStockList(symbol: str, token: str, method: str = "get") -> str:
8
+ """
9
+ 获取股票列表。
10
+ 历史数据收盘后六点更新。
11
+
12
+ :param symbol: stock-沪深京A股,etf-ETF基金,bond-沪深可转债,index-指数
13
+ :param token: 激活Token参考 http://www.tickplus.org/
14
+ :param method: 请求方法,默认get
15
+ :return: JSON格式的字符串数据
16
+ """
17
+ url = Config.SERVER_URL + "/plus/basic/list"
18
+ params = {"symbol": symbol, "token": token}
19
+ result = DataUtil.request(url, method, params)
20
+ data = json.loads(result)
21
+ DataUtil.printLog("/plus/basic/list", params, data)
22
+ return data
23
+
24
+
25
+ def getFullQuotes(symbol: str, token: str, code: str = "", method: str = "get") -> str:
26
+ """
27
+ 实时行情数据全推。
28
+
29
+ :param symbol: stock-沪深京A股,etf-ETF基金,bond-沪深可转债,index-指数
30
+ :param code: 股票代码。code取值为空,则表示全推全市场数据;code取值为000001,000002,则表示批量获取,股票数量最大为100个;code取值为000001,则表示获取单个股票数据。
31
+ :param token: 激活Token参考 http://www.tickplus.org/
32
+ :param method: 请求方法,默认get
33
+ :return: JSON格式的字符串数据
34
+ """
35
+ url = Config.SERVER_URL + "/plus/basic/fullquotes"
36
+ params = {"symbol": symbol, "token": token}
37
+ if code:
38
+ params["code"] = code
39
+ result = DataUtil.request(url, method, params)
40
+ data = json.loads(result)
41
+ DataUtil.printLog("/plus/basic/fullquotes", params, data)
42
+ return data
43
+
44
+
45
+ def getDayKline(symbol: str, code: str, period: str, dividend: str,
46
+ startDate: str, endDate: str, token: str, method: str = "get") -> str:
47
+ """
48
+ 实时日K线数据,按个股获取日K线数据。
49
+
50
+ :param symbol: stock-沪深京A股,etf-ETF基金,bond-沪深可转债,index-指数
51
+ :param code: 股票代码,仅支持单个股票获取
52
+ :param period: K线周期,1d-日线,1w-周线,1mon-月线,1y-年线
53
+ :param dividend: 复权类型,1-不复权,2-前复权,3-后复权
54
+ :param startDate: 开始日期
55
+ :param endDate: 结束日期
56
+ :param token: 激活Token参考 http://www.tickplus.org/
57
+ :param method: 请求方法,默认get
58
+ :return: JSON格式的字符串数据
59
+ """
60
+ url = Config.SERVER_URL + "/plus/basic/daykline"
61
+ params = {
62
+ "symbol": symbol,
63
+ "code": code,
64
+ "period": period,
65
+ "dividend": dividend,
66
+ "token": token
67
+ }
68
+ params["startDate"] = startDate
69
+ params["endDate"] = endDate
70
+ result = DataUtil.request(url, method, params)
71
+ data = json.loads(result)
72
+ DataUtil.printLog("/plus/basic/daykline", params, data)
73
+ return data
74
+
75
+
76
+ def getFullMetric(token: str, code: str = "", method: str = "get") -> str:
77
+ """
78
+ 获取行情指标实时数据,包括量比、换手率、市盈率、市净率、总市值等指标。
79
+
80
+ :param code: 股票代码。code取值为空,则表示全推全市场数据;code取值为000001,000002,则表示批量获取,股票数量最大为100个;code取值为000001,则表示获取单个股票数据。
81
+ :param token: 激活Token参考 http://www.tickplus.org/
82
+ :param method: 请求方法,默认get
83
+ :return: JSON格式的字符串数据
84
+ """
85
+ url = Config.SERVER_URL + "/plus/basic/fullmetric"
86
+ params = {"token": token}
87
+ if code:
88
+ params["code"] = code
89
+ result = DataUtil.request(url, method, params)
90
+ data = json.loads(result)
91
+ DataUtil.printLog("/plus/basic/fullmetric", params, data)
92
+ return data
93
+
94
+
95
+ def getFinanceCore(code: str, startDate: str, endDate: str, token: str, method: str = "get") -> str:
96
+ """
97
+ 核心财务指标,包括ROE、每股净资产、基本每股收益、净资产收益率等核心财务指标。
98
+
99
+ :param code: 股票代码,仅支持单个股票获取
100
+ :param startDate: 开始日期
101
+ :param endDate: 结束日期
102
+ :param token: 激活Token参考 http://www.tickplus.org/
103
+ :param method: 请求方法,默认get
104
+ :return: JSON格式的字符串数据
105
+ """
106
+ url = Config.SERVER_URL + "/plus/basic/financecore"
107
+ params = {"code": code, "token": token}
108
+ params["startDate"] = startDate
109
+ params["endDate"] = endDate
110
+ result = DataUtil.request(url, method, params)
111
+ data = json.loads(result)
112
+ DataUtil.printLog("/plus/basic/financecore", params, data)
113
+ return data
114
+
115
+
116
+ def getCapital(code: str, startDate: str, endDate: str, token: str, method: str = "get") -> str:
117
+ """
118
+ 获取股本数据,包括总股本、已上市流通A股、限售流通股份。
119
+
120
+ :param code: 股票代码,仅支持单个股票获取,不支持批量参数或ALL参数
121
+ :param startDate: 开始日期
122
+ :param endDate: 结束日期
123
+ :param token: 激活Token参考 http://www.tickplus.org/
124
+ :param method: 请求方法,默认get
125
+ :return: JSON格式的字符串数据
126
+ """
127
+ url = Config.SERVER_URL + "/plus/basic/capital"
128
+ params = {"code": code, "startDate": startDate, "endDate": endDate, "token": token}
129
+ result = DataUtil.request(url, method, params)
130
+ data = json.loads(result)
131
+ DataUtil.printLog("/plus/basic/capital", params, data)
132
+ return data
133
+
134
+
135
+ def getUpdateDayKline(symbol: str, dividend: str, tradeDate: str, token: str, method: str = "get") -> str:
136
+ """
137
+ 盘后增量更新,获取每日全市场日线数据,仅支持最近一周的增量数据。
138
+
139
+ :param symbol: stock-沪深京A股,etf-ETF基金,bond-沪深可转债,index-指数
140
+ :param dividend: 复权类型,1-不复权,2-前复权,3-后复权
141
+ :param tradeDate: 交易日期
142
+ :param token: 激活Token参考 http://www.tickplus.org/
143
+ :param method: 请求方法,默认get
144
+ :return: JSON格式的字符串数据
145
+ """
146
+ url = Config.SERVER_URL + "/plus/basic/updatedaykline"
147
+ params = {"symbol": symbol, "dividend": dividend, "token": token}
148
+ params["tradeDate"] = tradeDate
149
+ result = DataUtil.request(url, method, params)
150
+ data = json.loads(result)
151
+ DataUtil.printLog("/plus/basic/updatedaykline", params, data)
152
+ return data