更新one_token合约交易所代码

This commit is contained in:
xldistance 2019-06-21 19:23:40 +08:00 committed by GitHub
parent b479ade526
commit 922914daa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -260,7 +260,7 @@ class OnetokenRestApi(RestClient):
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"]),