| | |
| | | juejin.re_set_price_pres(gpcode_manager.get_gp_list()) |
| | | |
| | | def get_limit_up_codes_win(): |
| | | width = 400 |
| | | width = 500 |
| | | height = 800 |
| | | win = Tk() |
| | | win.title("今日涨停") |
| | | win.resizable(height=False, width=False) |
| | | |
| | | limit_up_datas = {} |
| | | limit_up_datas["row{}".format(0)] = {'代码': '', '首次涨停时间': '', '现价': '', '涨停封单额': ''} |
| | | limit_up_datas["row{}".format(0)] = {'代码': '', '首次涨停时间': '', '现价': '','涨幅':'', '涨停封单额': ''} |
| | | |
| | | cl = Label(win, text="更新时间:", bg="#DDDDDD", fg="#666666") |
| | | cl.place(x=10, y=10) |
| | |
| | | table_limit_up.model.setValueAt(data["code"], index, 0) |
| | | table_limit_up.model.setValueAt(data["time"], index, 1) |
| | | table_limit_up.model.setValueAt(float(data["price"]), index, 2) |
| | | table_limit_up.model.setValueAt(float(data["limitUpPercent"]), index, 3) |
| | | table_limit_up.model.setValueAt( |
| | | "{}{}".format(float(data["limitMoney"]), ("亿" if data["limitMoneyUnit"] == 0 else "万")), index, 3) |
| | | "{}{}".format(float(data["limitMoney"]), ("亿" if data["limitMoneyUnit"] == 0 else "万")), index, 4) |
| | | index += 1 |
| | | table_limit_up.redraw() |
| | | |
| | |
| | | btn.place(x=10, y=100) |
| | | |
| | | btn = Button(frame, text="修复L2数据", command=lambda: L2CodeOperate.get_instance().repaire_l2_data(code.get())) |
| | | btn.place(x=100, y=100) |
| | | btn.place(x=70 |
| | | , y=100) |
| | | |
| | | btn = Button(frame, text="导出L2数据", command=lambda: export_l2_data(code.get())) |
| | | btn.place(x=200, y=100) |
| | | btn.place(x=145, y=100) |
| | | |
| | | btn = Button(frame, text="导出L2原始数据", command=lambda: export_l2_data_origin(code.get())) |
| | | btn.place(x=260, y=100) |
| | | btn.place(x=220, y=100) |
| | | |
| | | # 交易按钮 |
| | | btn = Button(frame, textvariable=btntext, command=startJueJinGui) |