From e64b80111ed167af98eab0629a70b8fa3b3cc25f Mon Sep 17 00:00:00 2001 From: noranhe <63988546+noranhe@users.noreply.github.com> Date: Fri, 21 May 2021 14:47:45 +0800 Subject: [PATCH] Update okex_gateway.py --- vnpy_okex/okex_gateway.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnpy_okex/okex_gateway.py b/vnpy_okex/okex_gateway.py index c9c5719..2bfd9b5 100644 --- a/vnpy_okex/okex_gateway.py +++ b/vnpy_okex/okex_gateway.py @@ -383,7 +383,7 @@ def query_history(self, req: HistoryRequest) -> List[BarData]: for bar_list in data["data"]: ts, o, h, l, c, vol, _ = bar_list dt = parse_timestamp(ts) - bar = BarData( + bar: BarData = BarData( symbol=req.symbol, exchange=req.exchange, datetime=dt, @@ -955,7 +955,7 @@ def parse_order_data(data: dict, gateway_name: str) -> OrderData: else: order_id: str = data["ordId"] - order = OrderData( + order: OrderData = OrderData( symbol=data["instId"], exchange=Exchange.OKEX, type=ORDERTYPE_OKEX2VT[data["ordType"]],