def getUserNowEntrustSheet(): coinFrom = 'ltc' #代币 coinTo = 'btc' #法币 # _type = '2' #买:1 卖:2 默认:返回全部 page = '1' #要查看的页数 pageSize = '2' #一页多少条数据 startTime = '2017-06-12 12:00:00' #开始时间 endTime = '2018-06-08 12:00:00' #结束时间 print BitZ_Mode().getUserNowEntrustSheet(coinFrom,coinTo,page,pageSize,startTime,endTime)
def cancelEntrustSheet(): entrustSheetId='677582069' #委托单ID print BitZ_Mode().cancelEntrustSheet(entrustSheetId)
def cancelAllEntrustSheet(): trustAllId='677579845,662188888' #委托单ID(多个中间逗号隔开) print BitZ_Mode().cancelAllEntrustSheet(trustAllId)
def coinRate(): print BitZ_Mode().coinRate()
def addEntrustSheet(): _type = '2' #买:1 卖:2 price = '0.54548541' #价格 number = '100' #数量 symbol = 'bz_usdt' #交易对 print BitZ_Mode().addEntrustSheet(_type,price,number,symbol)
def ticker(): symbol='bz_usdt' #交易对 print BitZ_Mode().ticker(symbol)
def currencyCoinRate(): print BitZ_Mode().currencyCoinRate()
def kline(): symbol = 'bz_usdt' #交易对 resolution = '1min' #时间 分钟:Xmin ,小时:Xhour , 天:Xday size = '300' toTime = '2018-07-27 20:53:00' #获取toTime时间前的数据 print BitZ_Mode().kline(symbol,resolution,size,toTime=toTime)
def symbolList(): print BitZ_Mode().symbolList()
def order(): symbol = 'uc_eth' #交易对 print BitZ_Mode().order(symbol)
def depth(): symbol='bz_usdt' #交易对 print BitZ_Mode().depth(symbol)
def getUserAssets(): print BitZ_Mode().getUserAssets()
def getEntrustSheetInfo(): entrustSheetId = '662120573' #委托单ID print BitZ_Mode().getEntrustSheetInfo(entrustSheetId)
def tickerall(): print BitZ_Mode().tickerall()