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' # 美元