BUG: fixed an issue with open orders

This commit is contained in:
Frederic Fortier
2018-02-08 17:26:48 -05:00
parent 00f232e2d7
commit e56e1f8e21
2 changed files with 11 additions and 5 deletions
+3 -3
View File
@@ -60,7 +60,7 @@ def _handle_data(context, data):
rsi=rsi,
)
orders = get_open_orders(context.asset)
orders = context.blotter.open_orders
if orders:
log.info('skipping bar until all open orders execute')
return
@@ -146,11 +146,11 @@ if __name__ == '__main__':
live = True
if live:
run_algorithm(
capital_base=0.001,
capital_base=1000,
initialize=initialize,
handle_data=handle_data,
analyze=analyze,
exchange_name='binance',
exchange_name='bittrex',
live=True,
algo_namespace=algo_namespace,
base_currency='btc',