# print(gate_query.tradeHistory('btc_usdt')) # Get account fund balances # 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', '11222')) # Cancel order # print(gate_trade.cancelOrder('267040896', 'etc_btc')) # Cancel all orders # print(gate_trade.cancelAllOrders('0', 'etc_btc')) # Get order status # print(gate_trade.getOrder('267040896', 'eth_btc')) # Get my last 24h trades # print(gate_trade.mytradeHistory('etc_btc', '267040896')) # withdraw # print(gate_trade.withdraw('btc', '88', btcAddress))xport CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:.
#val_bifi_usd= round(bal_usd*0.998/(2*d_s_bifi_usd+f_bifi_usd), 4) #print('ХОРОШИЙ СПРЕД, ПОКУПАЮ', val_bifi_usd, 'BIFI ПО ЦЕНЕ', d_b_bifi_usd-0.0001, 'USDT') if (bal_usd >= B * USD and s_bcd_usd >= f_bcd_usd and bal_bcd_usd <= bal_bifi_usd + BAL): gate.buy('bcd_usdt', d_b_bcd_usd + 0.001, val_b_bcd_usd) elif (bal_usd >= B * USD and s_bcd_usd >= f_bcd_usd and proc_bcd_usd >= X): gate.buy('bcd_usdt', d_b_bcd_usd + 0.001, val_b_bcd_usd) #elif (bal_usd >= B*USD and d_s_bcd_usd == d_b_bcd_usd+0.001): gate.buy('bcd_usdt', d_b_bcd_usd+0.001, BCD) elif (bal_usd >= B * USD and bal_bcd_usd <= bal_bifi_usd + BAL): gate.buy('bcd_usdt', d_b_bcd_usd - f_bcd_usd, val_b_bcd_usd) #ОРДЕРА НА ПРОДАЖУ if (s_btc_usd >= f_btc_usd and BAL <= bal_btc_usd): gate.sell('btc_usdt', d_s_btc_usd - 0.01, val_s_btc_usd), print('ХОРОШИЙ СПРЕД, ПРОДАЮ', val_s_btc_usd, 'BTC ПО ЦЕНЕ', d_s_btc_usd - 0.01, 'USDT') elif (s_btc_usd >= f_btc_usd and bal_btc_usd >= BAL and proc_btc_usd >= X): gate.sell('btc_usdt', d_s_btc_usd - 0.01, val_s_btc_usd), print('ХОРОШИЙ %, ПРОДАЮ', val_s_btc_usd, 'BTC ПО ЦЕНЕ', d_s_btc_usd - 0.01, 'USDT') elif (BAL <= bal_btc_usd): gate.sell('btc_usdt', d_s_btc_usd + f_btc_usd, val_s_btc_usd), print('ПРОДАЮ', val_s_btc_usd, 'BTC ПО ЦЕНЕ', d_s_btc_usd + f_btc_usd, 'USDT') else: print('ДОСТАТОЧНО БАКСОВ ИЛИ МАЛО BTC') if (s_eth_usd >= f_eth_usd and BAL <= bal_eth_usd): gate.sell('eth_usdt', d_s_eth_usd - 0.01,