Map a lowercase OpenAlgo order_status to the chart's status.
An unrecognised status reads unknown. It used to read working, which
asserted that an order nobody could classify was live in the book and
draggable on the chart. OpenAlgo's own broker mappings emit the literal
string unknown when a broker sends a state they do not recognise, so this
default was reachable in production, not only from a malformed payload.
Map a lowercase OpenAlgo order_status to the chart's status.
An unrecognised status reads
unknown. It used to readworking, which asserted that an order nobody could classify was live in the book and draggable on the chart. OpenAlgo's own broker mappings emit the literal stringunknownwhen a broker sends a state they do not recognise, so this default was reachable in production, not only from a malformed payload.