Skip to content

Commit

Permalink
Merge pull request #9 from noranhe/main
Browse files Browse the repository at this point in the history
Update okex_gateway.py
  • Loading branch information
vnpy authored May 24, 2021
2 parents e707b47 + e64b801 commit ae08e5d
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 @@ -384,7 +384,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 @@ -956,7 +956,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 ae08e5d

Please sign in to comment.