|
|
@ -268,6 +268,9 @@ class Status:
|
|
|
|
assert(self.logged_in())
|
|
|
|
assert(self.logged_in())
|
|
|
|
|
|
|
|
|
|
|
|
def compress_deposit_commands():
|
|
|
|
def compress_deposit_commands():
|
|
|
|
|
|
|
|
if not self.transfers:
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
dummy, initial_balance = self.transfers[0]
|
|
|
|
dummy, initial_balance = self.transfers[0]
|
|
|
|
balance_before = initial_balance
|
|
|
|
balance_before = initial_balance
|
|
|
|
compressed_deposit = DepositCommand(Decimal('0'))
|
|
|
|
compressed_deposit = DepositCommand(Decimal('0'))
|
|
|
@ -283,6 +286,9 @@ class Status:
|
|
|
|
self.transfers = others
|
|
|
|
self.transfers = others
|
|
|
|
|
|
|
|
|
|
|
|
def process_buy_commands_combined():
|
|
|
|
def process_buy_commands_combined():
|
|
|
|
|
|
|
|
if not self.transfers:
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
# Compress BuyCommands, use a single bulkbuy
|
|
|
|
# Compress BuyCommands, use a single bulkbuy
|
|
|
|
dummy, initial_balance = self.transfers[0]
|
|
|
|
dummy, initial_balance = self.transfers[0]
|
|
|
|
balance_before = initial_balance
|
|
|
|
balance_before = initial_balance
|
|
|
|