@babansfolio, 1. You need to place a market order with opposite transaction type to square off regular orders. To exit bo or co position you can use exit order method. 2. Order history API will give the different statuses of an order in the system from the time it is placed. You can always find the latest status at the end of the list. You can go through more details in the documentation. 3. You can go through documentation here to know more about the order flow. 4. You can use the field average_price in the order response.
1. You need to place a market order with opposite transaction type to square off regular orders. To exit bo or co position you can use exit order method.
2. Order history API will give the different statuses of an order in the system from the time it is placed. You can always find the latest status at the end of the list. You can go through more details in the documentation.
3. You can go through documentation here to know more about the order flow.
4. You can use the field average_price in the order response.