Fix a bug with max size calculation

This commit is contained in:
warproxxx
2025-06-22 10:07:14 -07:00
parent 7ed78050f3
commit 9b327f451e
+3
View File
@@ -227,6 +227,9 @@ async def perform_trade(market):
# Calculate how much to buy or sell based on our position
buy_amount, sell_amount = get_buy_sell_amount(position, bid_price, row, other_position)
# Get max_size for logging (same logic as in get_buy_sell_amount)
max_size = row.get('max_size', row['trade_size'])
# Prepare order object with all necessary information
order = {