-
Notifications
You must be signed in to change notification settings - Fork 60
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
Transactions to all fail or all validate as a group #542
Comments
The problem here is that it is easy to add some logic to check a list of orders against the controls but I assume you also went to check them against themselves ie. two orders to be placed A & B:
To do this A has to be 'placed' and added to the blotter but then violated along with B if there is an issue. Trying to think of a clean way of doing this. |
liampauling
added a commit
that referenced
this issue
Jan 7, 2022
Could it help if all back orders for a selection were bunched together, and then all lay orders bunched together?The worst case scenarios would occur when all backs are matched with zero lays matched. Or vice versa.On 7 Jan 2022 8:04 am, Liam ***@***.***> wrote:
The problem here is that it is easy to add some logic to check a list of orders against the controls but I assume you also went to check them against themselves ie. two orders to be placed A & B:
Does placing order A result in order B violating
To do this A has to be 'placed' and added to the blotter but then violated along with B if there is an issue. Trying to think of a clean way of doing this.
—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I've attempted to address this with: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When placing multiple orders within a single trade, it would be nice if it was possible to make Flumine reject all the orders if any of them fail to validate. I am currently using this hacky code to achieve the desired result:
The text was updated successfully, but these errors were encountered: