'Return a tuple of incoming and outgoing payment address of an order.'

def get_order_addresses(self, order):

    if order.is_ask():
        return (WalletAddress(self.wallets[order.price.wallet_id].get_address()), WalletAddress(self.wallets[order.total_quantity.wallet_id].get_address()))
    else:
        return (WalletAddress(self.wallets[order.total_quantity.wallet_id].get_address()), WalletAddress(self.wallets[order.price.wallet_id].get_address()))
