def parse_order_status(self, status):
    statuses = {'-2': 'failed', '-1': 'canceled', '0': 'open', '1': 'open', '2': 'closed', '3': 'open', '4': 'canceled'}
    return self.safe_string(statuses, status, status)
def parse_order_status(self, status):
    statuses = {'-2': 'failed', '-1': 'canceled', '0': 'open', '1': 'open', '2': 'closed', '3': 'open', '4': 'canceled'}
    return self.safe_string(statuses, status, status)