Administrator
2023-09-11 0d242997021955dce4a1d39b4c9e7836a15e873a
huaxin_client/trade_client.py
@@ -824,8 +824,8 @@
                # 买
                try:
                    req_rid_dict[sinfo] = (client_id, request_id, sk, local_order_id)
                    self.__tradeSimpleApi.buy(code, volume, price, sinfo)
                    threading.Thread(target=lambda: self.__tradeSimpleApi.buy(code, volume, price, sinfo),
                                     daemon=True).start()
                except Exception as e:
                    send_response(json.dumps({"code": 1, "msg": str(e)}), TYPE_ORDER, client_id,
                                  request_id)