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

Support for Trade take profit and take loss operations #275

Open
MDUYN opened this issue Dec 3, 2024 · 0 comments
Open

Support for Trade take profit and take loss operations #275

MDUYN opened this issue Dec 3, 2024 · 0 comments

Comments

@MDUYN
Copy link
Collaborator

MDUYN commented Dec 3, 2024

If we can support stateless state serialisation and de-seriliazation we would like to have trade operations support.

Functionality should be inline with the following:

trade = self.get_trade(order_id=order.id)

# Take profit based on percentage growth number
trade.add_take_profit(TakeProfit(percentage_growth=20, percentage_amount=20))

# Take profit based on absolute growth number
trade.add_take_profit(TakeProfit(growth=20, amount=20))
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

No branches or pull requests

1 participant