[Add]新增部分基础函数和常量
This commit is contained in:
parent
30be00063c
commit
8db7b42f34
@ -9,4 +9,5 @@ future
|
||||
flask-socketio
|
||||
flask-restful
|
||||
flask-cors
|
||||
gevent-websocket
|
||||
gevent-websocket
|
||||
pyjwt
|
@ -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):
|
||||
|
@ -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' # 美元
|
||||
|
@ -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' # 美元
|
||||
|
Loading…
Reference in New Issue
Block a user