From c2e87f8b94b6ba47042f2a61b46d3e226633ad26 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Fri, 24 Sep 2021 18:06:17 +0800 Subject: [PATCH] =?UTF-8?q?[Mod]=20=E4=BF=AE=E6=94=B9Exchange=E6=9E=9A?= =?UTF-8?q?=E4=B8=BE=E5=80=BC=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy_ftx/ftx_gateway.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/vnpy_ftx/ftx_gateway.py b/vnpy_ftx/ftx_gateway.py index ad00a0a..bba225f 100644 --- a/vnpy_ftx/ftx_gateway.py +++ b/vnpy_ftx/ftx_gateway.py @@ -1,6 +1,3 @@ -""" -Gateway for FTX -""" import json import time import hmac @@ -17,6 +14,7 @@ Interval, Status, Direction, + Exchange ) from vnpy.trader.object import ( AccountData, @@ -37,12 +35,6 @@ from vnpy_websocket import WebsocketClient from vnpy_rest import Request, RestClient -from requests.exceptions import SSLError - - -class Exchange(Enum): - """""" - FTX = "FTX" # 中国时区 @@ -564,7 +556,7 @@ def on_send_order_error( order.status = Status.REJECTED self.gateway.on_order(order) - if not issubclass(exception_type, (ConnectionError, SSLError)): + if not issubclass(exception_type, ConnectionError): self.on_error(exception_type, exception_value, tb, request) def on_send_order_failed(self, status_code: str, request: Request) -> None: