Handling Lists of Order IDs When Canceling VeighNa Orders
Summary
This forum exchange explains why passing the return value of a VeighNa buy function directly to a cancel function can fail. The buy, sell, short, and cover methods return a list of order identifiers, even when the list contains only one identifier. A cancellation routine therefore needs to process the identifiers individually rather than assume the return value is a single order object or string.
The discussion adds that a converter may split an order into multiple orders, producing more than one identifier from a single submission. This is a narrow API usage note, not an analysis of order execution or trading performance. It does not explain the converter's split conditions or provide broader guidance on cancellation timing, so users would need platform documentation or further testing to understand those details.
Key ideas
- VeighNa's buy, sell, short, and cover functions return lists of order identifiers.
- A single order submission may produce multiple identifiers if a converter splits it.
- Cancellation logic should iterate over the returned identifiers individually.
- The discussion does not specify when or why a converter splits an order.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.