Skip to content

Conversation

@github-actions
Copy link

Automatic Release PR

This PR was automatically created after changes were pushed to develop.

Commits: 1 new commit(s)

Checklist

  • Review all changes
  • Verify CI passes
  • Approve and merge when ready for production

* Add liquidity-limited trading for illiquid markets

- Add getBestBidLiquidity() method to ExchangeService
- Add liquidityLimited parameter to buy/sell actions
- Limit order size to available liquidity at best price
- Prevents slippage on low-liquidity pairs like ZCHF/USDT

* Add exchange minimum amount check for liquidity-limited trades

* Skip orderbook entries below exchange minimum

- Add minAmount parameter to getBestBidLiquidity()
- Iterate through orderbook to find first order meeting minimum
- Pass exchange minimum to getBestBidLiquidity() in buy/sell methods

* Add configurable maxPriceDeviation parameter (#2691)

- Add maxPriceDeviation to parseBuyParams and parseSellParams
- Pass maxPriceDeviation to getAndCheckTradePrice (default: 5%)
- Improve error message to show configured max deviation

* feat: refactoring

* fix: eslint fix

---------

Co-authored-by: David May <david.leo.may@gmail.com>
@TaprootFreak TaprootFreak merged commit d945997 into main Jan 12, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants