From 8c971c7d81362fe3483dacecb6e8b6b6d2e88a95 Mon Sep 17 00:00:00 2001 From: nanoric Date: Thu, 11 Oct 2018 23:09:25 -0400 Subject: [PATCH] =?UTF-8?q?[Add]=20=E5=A2=9E=E5=8A=A0OkexFutureSymbol?= =?UTF-8?q?=E7=B1=BB=E4=BB=A5=E8=A1=A8=E7=A4=BA=E5=8F=AF=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E7=9A=84=E5=90=88=E7=BA=A6=EF=BC=88=E6=97=A0=E6=B3=95=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E4=BB=8EAPI=E6=9F=A5=E8=AF=A2=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/api/okexfuture/OkexFutureApi.py | 9 +++++++++ vnpy/api/okexfuture/__init__.py | 2 ++ 2 files changed, 11 insertions(+) diff --git a/vnpy/api/okexfuture/OkexFutureApi.py b/vnpy/api/okexfuture/OkexFutureApi.py index 54b53ec2..6c351312 100644 --- a/vnpy/api/okexfuture/OkexFutureApi.py +++ b/vnpy/api/okexfuture/OkexFutureApi.py @@ -13,6 +13,15 @@ class _OkexFutureCustomExtra(object): self.onFailed = onFailed self.onSuccess = onSuccess self.extra = extra + + +######################################################################## +class OkexFutureSymbol(Enum): + BTC = 'btc_usd' + LTC = 'ltc_usd' + ETH = 'eth_usd' + ETC = 'etc_usd' + BCH = 'bch_usd' ######################################################################## diff --git a/vnpy/api/okexfuture/__init__.py b/vnpy/api/okexfuture/__init__.py index e69de29b..71802197 100644 --- a/vnpy/api/okexfuture/__init__.py +++ b/vnpy/api/okexfuture/__init__.py @@ -0,0 +1,2 @@ +from .OkexFutureApi import OkexFutureSymbol, OkexFutureContractType, OkexFutureOrder, OkexFutureOrderStatus, OkexFuturePosition, \ + OkexFuturePositionDetail, OkexFuturePriceType, OkexFutureRestClient, OkexFutureUserInfo