Skip to content

Commit

Permalink
Update okex_gateway.py
Browse files Browse the repository at this point in the history
  • Loading branch information
noranhe committed May 21, 2021
1 parent ab043d5 commit e64b801
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vnpy_okex/okex_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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"]],
Expand Down

0 comments on commit e64b801

Please sign in to comment.