Example #1
0
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)
Example #2
0
def cancelEntrustSheet():
    entrustSheetId='677582069'   #委托单ID
    print BitZ_Mode().cancelEntrustSheet(entrustSheetId)
Example #3
0
def cancelAllEntrustSheet():
    trustAllId='677579845,662188888'   #委托单ID(多个中间逗号隔开)
    print BitZ_Mode().cancelAllEntrustSheet(trustAllId)
Example #4
0
def coinRate():
    print BitZ_Mode().coinRate()
Example #5
0
def addEntrustSheet():
    _type = '2'             #买:1  卖:2
    price = '0.54548541'            #价格
    number = '100'            #数量
    symbol = 'bz_usdt'      #交易对
    print BitZ_Mode().addEntrustSheet(_type,price,number,symbol)
Example #6
0
def ticker():
    symbol='bz_usdt'  #交易对
    print BitZ_Mode().ticker(symbol)
Example #7
0
def currencyCoinRate():
    print BitZ_Mode().currencyCoinRate()
Example #8
0
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)
Example #9
0
def symbolList():
    print BitZ_Mode().symbolList()
Example #10
0
def order():
    symbol = 'uc_eth'    #交易对
    print BitZ_Mode().order(symbol)
Example #11
0
def depth():
    symbol='bz_usdt'   #交易对
    print BitZ_Mode().depth(symbol)
Example #12
0
def getUserAssets():
    print BitZ_Mode().getUserAssets()
Example #13
0
def getEntrustSheetInfo():
    entrustSheetId = '662120573'           #委托单ID
    print BitZ_Mode().getEntrustSheetInfo(entrustSheetId)
Example #14
0
def tickerall():
    print BitZ_Mode().tickerall()