pybit
pybit copied to clipboard
Unable to set limit order to close position
The 'close_position' custom function is great; however, I can't seem to find a way to close with a limit order.
close_position is meant to be used as a quick emergency market close. The method still requires an API call to fetch position, so I didn't feel it necessary to create a limit close_position because the user can simply just fetch their position then place an opposing order. However, if it gets asked about, I'll consider adding it.