Skip to content

Commit

Permalink
更新one_token合约交易所代码
Browse files Browse the repository at this point in the history
  • Loading branch information
xldistance committed Jun 21, 2019
1 parent b479ade commit 922914d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vnpy/gateway/onetoken/onetoken_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def on_query_contract(self, data, request):
symbol = instrument_data["name"]
contract = ContractData(
symbol=symbol,
exchange=Exchange.OKEX, # todo
exchange=Exchange(instrument_data['symbol'].split('/')[0].upper()),
name=symbol,
product=Product.SPOT, # todo
size=float(instrument_data["min_amount"]),
Expand Down

0 comments on commit 922914d

Please sign in to comment.