Merge pull request #1856 from xldistance/patch-26

更新one_token合约交易所代码
This commit is contained in:
vn.py 2019-06-22 10:51:33 +08:00 committed by GitHub
commit 8b0b92a091
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"]),