BUG: fixed a standardization issue with historical data in live mode

This commit is contained in:
Frederic Fortier
2017-12-12 14:19:10 -05:00
parent a7bcf063c3
commit 7091546b2b
3 changed files with 27 additions and 23 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ def handle_data(context, data):
context.asset,
fields='price',
bar_count=20,
frequency='5T'
frequency='30T'
)
last_traded = prices.index[-1]
print('last candle date: {}'.format(last_traded))
@@ -127,7 +127,7 @@ run_algorithm(
initialize=initialize,
handle_data=handle_data,
analyze=None,
exchange_name='binance',
exchange_name='gdax',
live=True,
algo_namespace='simple_loop',
base_currency='eth',