pybit icon indicating copy to clipboard operation
pybit copied to clipboard

Unable to set limit order to close position

Open shep-analytics opened this issue 5 years ago • 1 comments

The 'close_position' custom function is great; however, I can't seem to find a way to close with a limit order.

shep-analytics avatar Mar 26 '21 18:03 shep-analytics

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.

verata-veritatis avatar Mar 27 '21 18:03 verata-veritatis