Skip to content

Commit 168606e

Browse files
committed
Keep cash reserve policy backward compatible
1 parent 4d215f3 commit 168606e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def _env_flag(name: str) -> bool:
234234
NOTIFY_LANG = RUNTIME_SETTINGS.notify_lang
235235

236236
CASH_RESERVE_RATIO = STRATEGY_RUNTIME.cash_reserve_ratio
237-
CASH_RESERVE_FLOOR_USD = STRATEGY_RUNTIME.cash_reserve_floor_usd
237+
CASH_RESERVE_FLOOR_USD = getattr(STRATEGY_RUNTIME, "cash_reserve_floor_usd", 0.0)
238238
REBALANCE_THRESHOLD_RATIO = 0.02
239239
LIMIT_BUY_PREMIUM = 1.005
240240
SELL_SETTLE_DELAY_SEC = 3

0 commit comments

Comments
 (0)