Fix a bug with max size calculation
This commit is contained in:
@@ -228,6 +228,9 @@ async def perform_trade(market):
|
|||||||
# Calculate how much to buy or sell based on our position
|
# 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)
|
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
|
# Prepare order object with all necessary information
|
||||||
order = {
|
order = {
|
||||||
"token": token,
|
"token": token,
|
||||||
|
|||||||
Reference in New Issue
Block a user