Hi ags,

Yes, you found a bug in brokerSell method. It doesn't return the correct error code in case of a failure.

Probably next week I will release a new version of the plugin with this fixed.