piker icon indicating copy to clipboard operation
piker copied to clipboard

Order mode allocator limit field should not allow value smaller then current pp

Open goodboy opened this issue 4 years ago • 0 comments

@iamzoltan found this and results in a -ve buy size 😂 (which makes sense under allocator limit algebra btw).

We need to add logic to the limit write block in the setings handler to prevent it from being set greater then the piker.ui._position.PositionTracker.live_pp value.

Likely the best UX approach would be to ignore the input if less then .live_pp, set back the current pp value, and then set an error status using the god widget to indicate to the user that the input was invalid.

goodboy avatar Jan 31 '22 13:01 goodboy