From e4f4ed4f624e90128239b0b3c471a81bb6ac9a95 Mon Sep 17 00:00:00 2001 From: Archer Date: Tue, 16 Apr 2019 16:12:17 +0800 Subject: [PATCH] update: removed unused import --- vnpy/gateway/onetoken/onetoken_gateway.py | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/vnpy/gateway/onetoken/onetoken_gateway.py b/vnpy/gateway/onetoken/onetoken_gateway.py index a0ada054..03e1c4a5 100644 --- a/vnpy/gateway/onetoken/onetoken_gateway.py +++ b/vnpy/gateway/onetoken/onetoken_gateway.py @@ -4,40 +4,29 @@ import hashlib import hmac -import sys -import time import json -from copy import copy +import time from datetime import datetime from threading import Lock -from urllib.parse import urlencode +from urllib.parse import urlparse from requests import ConnectionError from vnpy.api.rest import Request, RestClient -from vnpy.api.websocket import WebsocketClient from vnpy.trader.constant import ( Direction, Exchange, - OrderType, - Product, Status, Offset ) from vnpy.trader.gateway import BaseGateway from vnpy.trader.object import ( - TickData, - OrderData, - TradeData, PositionData, AccountData, - ContractData, OrderRequest, CancelRequest, SubscribeRequest, ) -from urllib.parse import urlparse - REST_HOST = 'https://1token.trade/api/v1/trade'