Fix syntax-error in exit_reason migration
This commit is contained in:
parent
9556af1e6c
commit
77c840c2a4
@ -159,10 +159,10 @@ def migrate_trades_and_orders_table(
|
|||||||
{initial_stop_loss_pct} initial_stop_loss_pct,
|
{initial_stop_loss_pct} initial_stop_loss_pct,
|
||||||
{stoploss_order_id} stoploss_order_id, {stoploss_last_update} stoploss_last_update,
|
{stoploss_order_id} stoploss_order_id, {stoploss_last_update} stoploss_last_update,
|
||||||
{max_rate} max_rate, {min_rate} min_rate,
|
{max_rate} max_rate, {min_rate} min_rate,
|
||||||
case when {exit_reason} == 'sell_signal' then 'exit_signal'
|
case when {exit_reason} = 'sell_signal' then 'exit_signal'
|
||||||
when {exit_reason} == 'custom_sell' then 'custom_exit'
|
when {exit_reason} = 'custom_sell' then 'custom_exit'
|
||||||
when {exit_reason} == 'force_sell' then 'force_exit'
|
when {exit_reason} = 'force_sell' then 'force_exit'
|
||||||
when {exit_reason} == 'emergency_sell' then 'emergency_exit'
|
when {exit_reason} = 'emergency_sell' then 'emergency_exit'
|
||||||
else {exit_reason}
|
else {exit_reason}
|
||||||
end exit_reason,
|
end exit_reason,
|
||||||
{exit_order_status} exit_order_status,
|
{exit_order_status} exit_order_status,
|
||||||
|
Loading…
Reference in New Issue
Block a user