From 8db7b42f34f413a15eda7fd2c490ed7683277665 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Tue, 26 Jun 2018 23:56:50 +0800 Subject: [PATCH] =?UTF-8?q?[Add]=E6=96=B0=E5=A2=9E=E9=83=A8=E5=88=86?= =?UTF-8?q?=E5=9F=BA=E7=A1=80=E5=87=BD=E6=95=B0=E5=92=8C=E5=B8=B8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- requirements.txt | 3 ++- vnpy/trader/app/algoTrading/algoTemplate.py | 5 +++++ vnpy/trader/language/chinese/constant.py | 4 +--- vnpy/trader/language/english/constant.py | 4 +--- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/requirements.txt b/requirements.txt index 97bdf730..a22cf5c1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,4 +9,5 @@ future flask-socketio flask-restful flask-cors -gevent-websocket \ No newline at end of file +gevent-websocket +pyjwt \ No newline at end of file diff --git a/vnpy/trader/app/algoTrading/algoTemplate.py b/vnpy/trader/app/algoTrading/algoTemplate.py index 92c2a9f4..ba044ec3 100644 --- a/vnpy/trader/app/algoTrading/algoTemplate.py +++ b/vnpy/trader/app/algoTrading/algoTemplate.py @@ -147,6 +147,11 @@ class AlgoTemplate(object): def getTick(self, vtSymbol): """""" return self.engine.getTick(self, vtSymbol) + + #---------------------------------------------------------------------- + def getContract(self, vtSymbol): + """""" + return self.engine.getContract(self, vtSymbol) #---------------------------------------------------------------------- def roundValue(self, value, change): diff --git a/vnpy/trader/language/chinese/constant.py b/vnpy/trader/language/chinese/constant.py index 3bd294bc..37417925 100644 --- a/vnpy/trader/language/chinese/constant.py +++ b/vnpy/trader/language/chinese/constant.py @@ -86,15 +86,13 @@ EXCHANGE_FXCM = 'FXCM' # FXCM外汇做市商 EXCHANGE_OKCOIN = 'OKCOIN' # OKCOIN比特币交易所 EXCHANGE_HUOBI = 'HUOBI' # 火币比特币交易所 EXCHANGE_LBANK = 'LBANK' # LBANK比特币交易所 -EXCHANGE_KORBIT = 'KORBIT' # KORBIT韩国交易所 EXCHANGE_ZB = 'ZB' # 比特币中国比特币交易所 EXCHANGE_OKEX = 'OKEX' # OKEX比特币交易所 -EXCHANGE_ZAIF = "ZAIF" # ZAIF日本比特币交易所 -EXCHANGE_COINCHECK = "COINCHECK" # COINCHECK日本比特币交易所 EXCHANGE_BINANCE = "BINANCE" # 币安比特币交易所 EXCHANGE_BITFINEX = "BITFINEX" # Bitfinex比特币交易所 EXCHANGE_BITMEX = 'BITMEX' # BitMEX比特币交易所 EXCHANGE_FCOIN = 'FCOIN' # FCoin比特币交易所 +EXCHANGE_BIGONE = 'BIGONE' # BigOne比特币交易所 # 货币类型 CURRENCY_USD = 'USD' # 美元 diff --git a/vnpy/trader/language/english/constant.py b/vnpy/trader/language/english/constant.py index 852cfc56..fe4d046f 100644 --- a/vnpy/trader/language/english/constant.py +++ b/vnpy/trader/language/english/constant.py @@ -82,15 +82,13 @@ EXCHANGE_FXCM = 'FXCM' # FXCM外汇做市商 EXCHANGE_OKCOIN = 'OKCOIN' # OKCOIN比特币交易所 EXCHANGE_HUOBI = 'HUOBI' # 火币比特币交易所 EXCHANGE_LBANK = 'LBANK' # LBANK比特币交易所 -EXCHANGE_KORBIT = 'KORBIT' # KORBIT韩国交易所 EXCHANGE_ZB = 'ZB' # 比特币中国比特币交易所 EXCHANGE_OKEX = 'OKEX' # OKEX比特币交易所 -EXCHANGE_ZAIF = "ZAIF" # ZAIF日本比特币交易所 -EXCHANGE_COINCHECK = "COINCHECK" # COINCHECK日本比特币交易所 EXCHANGE_BINANCE = "BINANCE" # 币安比特币交易所 EXCHANGE_BITFINEX = "BITFINEX" # Bitfinex比特币交易所 EXCHANGE_BITMEX = 'BITMEX' # BitMEX比特币交易所 EXCHANGE_FCOIN = 'FCOIN' # FCoin比特币交易所 +EXCHANGE_BIGONE = 'BIGONE' # BigOne比特币交易所 # 货币类型 CURRENCY_USD = 'USD' # 美元