| | |
| | | |
| | | |
| | | # ------------------------------开盘啦------------------------------------- |
| | | def load_kpl(url, data): |
| | | fdata = {"type": "kpl", "data": {"ctype": "kpl", "data": {"url": url, "data": data}}} |
| | | def load_kpl(url, data, timeout): |
| | | fdata = {"type": "kpl", "data": {"ctype": "kpl", "data": {"url": url, "data": data, "timeout": timeout}}} |
| | | return fdata |
| | | |
| | | |
| | |
| | | return fdata |
| | | |
| | | |
| | | # ------------------------------L2订阅代码的实时涨幅------------------------------------ |
| | | def load_l2_subscript_codes_rate(datas): |
| | | fdata = {"type": "l2_subscript_codes_rate", "data": {"ctype": "l2_subscript_codes_rate", "data": datas}} |
| | | return fdata |
| | | |
| | | |
| | | # ------------------------------消息推送------------------------------------ |
| | | def load_push_msg(data): |
| | | fdata = {"type": "push_msg", "data": {"ctype": "push_msg", "data": data}} |
| | | return fdata |
| | | |
| | | |
| | | # ------------------------------获取三方板块------------------------------------ |
| | | def get_third_blocks(code, source): |
| | | fdata = {"type": "get_third_blocks", |
| | | "data": {"ctype": "get_third_blocks", "data": {"code": code, "source": source}}} |
| | | return fdata |