huaxin_api/trade_client.py
@@ -68,6 +68,8 @@ TYPE_LIST_POSITION = 4 TYPE_LIST_MONEY = 5 ENABLE_ORDER = False class TradeSimpleApi: req_id = 0 @@ -78,6 +80,8 @@ # sinfo char(32) def buy(self, code, count, price, sinfo): if not ENABLE_ORDER: return if sinfo in self.__buy_sinfo_set: raise Exception(f'下单请求已经提交:{sinfo}') self.__buy_sinfo_set.add(sinfo)