We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Liquidate method returns a list of order ticket IDs with any status.
Liquidate
Only returns IDs of filled orders.
Remove ticket.Status == OrderStatus.Filled condition.
ticket.Status == OrderStatus.Filled
For consistency with other trading and orders methods, Liquidate should return a list of OrderTicket.
OrderTicket
public List<OrderTicket> Liquidate(Symbol symbolToLiquidate = null, string tag = "Liquidated")
See also #6818
Call Liquidate for daily data. It will create MOO orders, ticket.Status == OrderStatus.Filled is false and the returned list is empty.
false
master
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected Behavior
Liquidate
method returns a list of order ticket IDs with any status.Actual Behavior
Only returns IDs of filled orders.
Potential Solution
Remove
ticket.Status == OrderStatus.Filled
condition.For consistency with other trading and orders methods,
Liquidate
should return a list ofOrderTicket
.See also #6818
Reproducing the Problem
Call Liquidate for daily data. It will create MOO orders,
ticket.Status == OrderStatus.Filled
isfalse
and the returned list is empty.Checklist
master
branchThe text was updated successfully, but these errors were encountered: