Files
mt5cli/tests
agent 2adb8d9ecf fix: always use mt5cli calculate_volume_by_margin to prevent LACK OF FUNDS (#47)
Remove native-client delegation in calculate_margin_and_volume() so the
pdmt5 linear estimate can no longer overstate affordable volume on
foreign-denominated instruments or CFDs. The module's own
calculate_volume_by_margin() verifies each candidate volume against
order_calc_margin() and returns the largest stepped lot that fits the
margin budget.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-23 03:30:50 +00:00
..