def parse_order(self, order, market=None):
    id = self.safe_string(order, 'oid')
    side = self.safe_string(order, 'side')
    status = self.parse_order_status(self.safe_string(order, 'status'))
    marketId = self.safe_string(order, 'book')
    symbol = self.safe_symbol(marketId, market, '_')
    orderType = self.safe_string(order, 'type')
    timestamp = self.parse8601(self.safe_string(order, 'created_at'))
    price = self.safe_string(order, 'price')
    amount = self.safe_string(order, 'original_amount')
    remaining = self.safe_string(order, 'unfilled_amount')
    clientOrderId = self.safe_string(order, 'client_id')
    return self.safe_order({'info': order, 'id': id, 'clientOrderId': clientOrderId, 'timestamp': timestamp, 'datetime': self.iso8601(timestamp), 'lastTradeTimestamp': None, 'symbol': symbol, 'type': orderType, 'timeInForce': None, 'postOnly': None, 'side': side, 'price': price, 'stopPrice': None, 'amount': amount, 'cost': None, 'remaining': remaining, 'filled': None, 'status': status, 'fee': None, 'average': None, 'trades': None}, market)
def parse_order(self, order, market=None):
    id = self.safe_string(order, 'oid')
    side = self.safe_string(order, 'side')
    status = self.parse_order_status(self.safe_string(order, 'status'))
    marketId = self.safe_string(order, 'book')
    symbol = self.safe_symbol(marketId, market, '_')
    orderType = self.safe_string(order, 'type')
    timestamp = self.parse8601(self.safe_string(order, 'created_at'))
    price = self.safe_string(order, 'price')
    amount = self.safe_string(order, 'original_amount')
    remaining = self.safe_string(order, 'unfilled_amount')
    clientOrderId = self.safe_string(order, 'client_id')
    return self.safe_order({'info': order, 'id': id, 'clientOrderId': clientOrderId, 'timestamp': timestamp, 'datetime': self.iso8601(timestamp), 'lastTradeTimestamp': None, 'symbol': symbol, 'type': orderType, 'timeInForce': None, 'postOnly': None, 'side': side, 'price': price, 'stopPrice': None, 'amount': amount, 'cost': None, 'remaining': remaining, 'filled': None, 'status': status, 'fee': None, 'average': None, 'trades': None}, market)