From 922914daa78fcc7b999f1ac6c8440ad06cce7641 Mon Sep 17 00:00:00 2001 From: xldistance <819873074@qq.com> Date: Fri, 21 Jun 2019 19:23:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0one=5Ftoken=E5=90=88=E7=BA=A6?= =?UTF-8?q?=E4=BA=A4=E6=98=93=E6=89=80=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/gateway/onetoken/onetoken_gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/gateway/onetoken/onetoken_gateway.py b/vnpy/gateway/onetoken/onetoken_gateway.py index 22a5bb5d..f2e9136e 100644 --- a/vnpy/gateway/onetoken/onetoken_gateway.py +++ b/vnpy/gateway/onetoken/onetoken_gateway.py @@ -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"]),