def other_worker(bitshares, kh_worker_name, config_other_account): worker = StrategyBase(name=kh_worker_name, config=config_other_account, bitshares_instance=bitshares) yield worker worker.cancel_all_orders() time.sleep(1.1)
def other_orders(bitshares, kh_worker_name, config_other_account): """ Place some orders from second account to simulate foreign trader """ worker = StrategyBase(name=kh_worker_name, config=config_other_account, bitshares_instance=bitshares) worker.place_market_buy_order(10, 0.9) worker.place_market_buy_order(10, 1) worker.place_market_sell_order(10, 2.1) worker.place_market_sell_order(10, 2) yield worker worker.cancel_all_orders() time.sleep(1.1)
def other_worker(ro_worker_name, config_other_account): worker = StrategyBase(name=ro_worker_name, config=config_other_account) yield worker worker.cancel_all_orders() time.sleep(1.1)
def strategybase(worker_name, config, bitshares): worker = StrategyBase(worker_name, config=config, bitshares_instance=bitshares) yield worker worker.cancel_all_orders() time.sleep(1.1)