Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

Commit

Permalink
[Mod] 修改Exchange枚举值加载
Browse files Browse the repository at this point in the history
  • Loading branch information
vnpy committed Sep 24, 2021
1 parent ff7fdfe commit c2e87f8
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions vnpy_ftx/ftx_gateway.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
"""
Gateway for FTX
"""
import json
import time
import hmac
Expand All @@ -17,6 +14,7 @@
Interval,
Status,
Direction,
Exchange
)
from vnpy.trader.object import (
AccountData,
Expand All @@ -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"


# 中国时区
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit c2e87f8

Please sign in to comment.