Allow exchange-minimum Kelly layers

This commit is contained in:
Codex
2026-06-27 16:00:31 +03:00
parent 07d132632d
commit 7d84bf38cc
4 changed files with 117 additions and 5 deletions
+4
View File
@@ -278,6 +278,10 @@ class PaperBroker:
value = default
return max(low, min(high, value))
def minimum_entry_budget(self, instrument: Instrument | None, ticker: Ticker | None = None) -> float:
fill_price = self._buy_price(ticker) if ticker is not None else None
return self._minimum_entry_budget(instrument, fill_price)
def _minimum_entry_budget(self, instrument: Instrument | None, fill_price: float | None = None) -> float:
minimum = max(0.0, self.settings.min_position_usdt)
if instrument: