mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
update wallets after forcesell
This commit is contained in:
parent
2b4d821d30
commit
58ceda4b90
|
@ -425,6 +425,7 @@ class RPC:
|
|||
for trade in Trade.get_open_trades():
|
||||
_exec_forcesell(trade)
|
||||
Trade.session.flush()
|
||||
self._freqtrade.wallets.update()
|
||||
return {'result': 'Created sell orders for all open trades.'}
|
||||
|
||||
# Query for trade
|
||||
|
@ -437,6 +438,7 @@ class RPC:
|
|||
|
||||
_exec_forcesell(trade)
|
||||
Trade.session.flush()
|
||||
self._freqtrade.wallets.update()
|
||||
return {'result': f'Created sell order for trade {trade_id}.'}
|
||||
|
||||
def _rpc_forcebuy(self, pair: str, price: Optional[float]) -> Optional[Trade]:
|
||||
|
|
Loading…
Reference in New Issue
Block a user