def getOrderInfo(coinType, id, method): params = {"method": method} params['coin_type'] = coinType params['id'] = id extra = {} res = Util.send2api(params, extra) return res
def getOrderIdByTradeId(coinType, tradeid, method): params = {"method": method} params['coin_type'] = coinType params['trade_id'] = tradeid extra = {} res = Util.send2api(params, extra) return res
def sellMarket(coinType, amount, tradePassword, tradeid, method): params = {"method": method} params['coin_type'] = coinType params['amount'] = amount extra = {} extra['trade_password'] = tradePassword extra['trade_id'] = tradeid res = Util.send2api(params, extra) return res
def getRealtimeMarket(): res = Util.httpGetRequest(HUOBI_VIEW_API, "/ticker_btc_json.js") return res
def getOrders(coinType, method): params = {"method": method} params['coin_type'] = coinType extra = {} res = Util.send2api(params, extra) return res
def getAccountInfo(method): params = {"method": method} extra = {} res = Util.send2api(params, extra) return res
def getRealtimeTradeData(): res = Util.httpGetRequest(HUOBI_VIEW_API, "/detail_btc_json.js") return res
def getKLineData(period, length): res = Util.httpGetRequest( HUOBI_VIEW_API, "/btc_kline_" + period + "_json.js?length=" + str(length)) return res
def getDepthData(): res = Util.httpGetRequest(HUOBI_VIEW_API, "/depth_btc_json.js") return res