Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/test_trading_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def test_get_average_buy_price(self, trading_bot):

def test_calculate_total_portfolio_value(self, trading_bot):
"""Test portfolio value calculation."""
trading_bot.available_balance = Decimal('300')
trading_bot.available_balance = Decimal('300')33
Copy link

Copilot AI Mar 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears that '33' has been erroneously appended to the Decimal constructor string. Remove the extraneous '33' so that the line correctly sets the balance to Decimal('300').

Suggested change
trading_bot.available_balance = Decimal('300')33
trading_bot.available_balance = Decimal('300')

Copilot uses AI. Check for mistakes.
trading_bot.allocated_balances['BTC/USDT'] = Decimal('200')
trading_bot.allocated_balances['ETH/USDT'] = Decimal('100')
trading_bot.positions['BTC/USDT'] = Decimal('0.5') # Worth 50 at price 100
Expand Down
Loading