Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#596 Properties fix #623

Merged
merged 5 commits into from
Sep 27, 2019
Merged

#596 Properties fix #623

merged 5 commits into from
Sep 27, 2019

Conversation

thehapax
Copy link
Collaborator

@thehapax thehapax requested a review from joelvai June 20, 2019 18:13
@thehapax
Copy link
Collaborator Author

@bitProfessor just fyi i change structure slightly so that base doesn't override properties. Please adjust in Unit Test. thx.

@thehapax
Copy link
Collaborator Author

saw an error with balances property. working to fix this now.

@thehapax
Copy link
Collaborator Author

@bitProfessor some odd going on with the balances property in base and bitshares order engine. If removed from base, it creates infinite order place and cancel loop. I think possibly due to methods that depend on balances in inherited class. Have not had a look yet, but issue still needs to be resolved.

@bitProfessor
Copy link
Collaborator

bitProfessor commented Jun 22, 2019 via email

@PermieBTS
Copy link
Collaborator

@thehapax

@thehapax
Copy link
Collaborator Author

@PermieBTS i'm thinking about it!

@thehapax
Copy link
Collaborator Author

What can I do? On 06/22/2019 04:17, octomatic wrote: @bitProfessor some odd going on with the balances property in base and bitshares order engine. If removed from base, it creates infinite order place and cancel loop. I think possibly due to methods that depend on balances in inherited class. Have not had a look yet, but issue still needs to be resolved. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

I think for the BaseStrategy - it needs to be modified so that we import the BitsharesOrderEngine and create an instance instead of inheriting it. its not really decoupled properly. For BitsharesPriceFeed, it can imported or inherited, the code split is ok

@bitProfessor
Copy link
Collaborator

bitProfessor commented Jul 17, 2019 via email

@bitProfessor
Copy link
Collaborator

hi @thehapax,I found that the devel branch is not up to date, should I fork your branch?

@thehapax
Copy link
Collaborator Author

hi @thehapax,I found that the devel branch is not up to date, should I fork your branch?

I think its git checkout -b thehapax:596-properties --set-upstream-to=codaone/devel

followed by git pull to in order to update the branch. i believe you should be able to make commits directly, let me know if you can't

@thehapax
Copy link
Collaborator Author

FYI - i updated the branch @bitProfessor . You also have access to modify the branch now

@bitProfessor
Copy link
Collaborator

FYI - i updated the branch @bitProfessor . You also have access to modify the branch now

okay

@bitProfessor
Copy link
Collaborator

@bitProfessor some odd going on with the balances property in base and bitshares order engine. If removed from base, it creates infinite order place and cancel loop. I think possibly due to methods that depend on balances in inherited class. Have not had a look yet, but issue still needs to be resolved.

I tried to reproduce the error. Can you tell me which function is called specifically when I get the error?(I have run test_base.py, test_bitshares_engine.py)

@thehapax
Copy link
Collaborator Author

@bitProfessor some odd going on with the balances property in base and bitshares order engine. If removed from base, it creates infinite order place and cancel loop. I think possibly due to methods that depend on balances in inherited class. Have not had a look yet, but issue still needs to be resolved.

I tried to reproduce the error. Can you tell me which function is called specifically when I get the error?(I have run test_base.py, test_bitshares_engine.py)

If you remove the balances method from the base.py, i get the error.

@property
    def balances(self):
        """ Returns all the balances of the account assigned for the worker.

            :return: Balances in list where each asset is in their own Amount object
        """
        return self._account.balances

@bitProfessor
Copy link
Collaborator

1、i remove the balances method from the base.py:
I run test_relative_orders_unittest.py, print out orders, and it looks all right.
2、 are u sure that no other threads are running in your environment?

@thehapax
Copy link
Collaborator Author

1、i remove the balances method from the base.py:
I run test_relative_orders_unittest.py, print out orders, and it looks all right.
2、 are u sure that no other threads are running in your environment?

Does it work ok for SO as well?
have no other threads running

@joelvai joelvai merged commit 76a200d into Codaone:devel Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants