Handle Error From Calling close_position
#136
Labels
Broker API
Relates to the Broker API
enhancement
New feature or request
Trading API
Relates to the Trading API
Is there an existing issue for this?
Is your feature request related to a problem? Please describe.
Currently, the API will throw an error if we try to close a position that is does not exist. The SDK does not handle this error, meaning if the user calls
close_position
on a non-existing position, their code will throw an APIError.Describe the solution you'd like.
Instead, the SDK should handle this error and return a
FailedClosePositionDetails
object,Describe an alternate solution.
No response
Anything else? (Additional Context)
No response
The text was updated successfully, but these errors were encountered: