[Add]新增部分基础函数和常量

This commit is contained in:
vn.py 2018-06-26 23:56:50 +08:00
parent 30be00063c
commit 8db7b42f34
4 changed files with 9 additions and 7 deletions

View File

@ -9,4 +9,5 @@ future
flask-socketio
flask-restful
flask-cors
gevent-websocket
gevent-websocket
pyjwt

View File

@ -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):

View File

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

View File

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