one last step before tests

This commit is contained in:
misagh
2018-11-25 22:02:59 +01:00
parent 29c23e3136
commit 962b02b079
5 changed files with 33 additions and 3 deletions

View File

@@ -475,7 +475,8 @@ class FreqtradeBot(object):
amount = stake_amount / buy_limit
order_id = self.exchange.buy(pair=pair, ordertype=self.strategy.order_types['buy'],
amount=amount, rate=buy_limit)['id']
amount=amount, rate=buy_limit,
time_in_force=self.strategy.order_time_in_force['buy'])['id']
self.rpc.send_msg({
'type': RPCMessageType.BUY_NOTIFICATION,
@@ -782,7 +783,10 @@ class FreqtradeBot(object):
# Execute sell and update trade record
order_id = self.exchange.sell(pair=str(trade.pair),
ordertype=self.strategy.order_types[sell_type],
amount=trade.amount, rate=limit)['id']
amount=trade.amount, rate=limit,
time_in_force=self.strategy.order_time_in_force['sell']
)['id']
trade.open_order_id = order_id
trade.close_rate_requested = limit
trade.sell_reason = sell_reason.value