# Ticker print("具体交易的行情") print(gate_query.ticker('btc_usdt')) # Market depth of pair print("交易对的市场深度") print(gate_query.orderBook('btc_usdt')) # Trade History print("返回最新80条历史成交记录") print(gate_query.tradeHistory('btc_usdt')) # Get account fund balances print("获取帐号资金余额API") print(gate_trade.balances()) # get new address print(gate_trade.depositAddres('btc')) # get deposit withdrawal history print(gate_trade.depositsWithdrawals('1469092370', '1569092370')) # Place order sell print(gate_trade.buy('etc_btc', '0.001', '123')) # Place order sell print(gate_trade.sell('etc_btc', '0.001', '123')) # Cancel order print(gate_trade.cancelOrder('267040896', 'etc_btc'))
print('Комиссия BIFI/USDT =>>', f_bifi_usd) print('Комиссия BCD/USDT =>>', f_bcd_usd) print('Комиссия BCX/USDT =>>', f_bcx_usd) print('Комиссия TRX/USDT =>>', f_trx_usd) print('Комиссия GOD/USDT =>>', f_god_usd) print('Комиссия ADA/USDT =>>', f_ada_usd) print('Комиссия BCH/USDT =>>', f_bch_usd) print('Комиссия XRP/USDT =>>', f_xrp_usd) # Market trade history of individual pairs #print (gate.tradeHistory('bifi_usdt')) #history_bifi_usd = gate.tradeHistory('bifi_usdt')['data']['rate'][0] #print (history_bifi_usd) # Get account funds bal = gate.balances() #print (bal) s = re.split(r'"', bal) print(s) bala_usd = float(s[13]) bala_bch = float(s[9]) bala_eth = float(s[45]) bala_btc = float(s[53]) bala_bcd = float(s[21]) bala_bcx = float(s[25]) bala_bifi = float(s[57]) bala_trx = float(s[61]) bala_god = float(s[33]) bala_ada = float(s[49]) bala_xrp = float(s[121])