def create_order(self, symbol, type, side, amount, price=None, params={}):
    self.load_markets()
    market = self.market(symbol)
    side = ('BID' if (side == 'buy') else 'ASK')
    request = {'market_id': market['id'], 'side': side, 'amount': self.amount_to_precision(symbol, amount), 'price': self.price_to_precision(symbol, price)}
    response = self.privatePostOrders(self.extend(request, params))
    order = self.safe_value(response, 'data')
    return self.parse_order(order, market)
def create_order(self, symbol, type, side, amount, price=None, params={}):
    self.load_markets()
    market = self.market(symbol)
    side = ('BID' if (side == 'buy') else 'ASK')
    request = {'market_id': market['id'], 'side': side, 'amount': self.amount_to_precision(symbol, amount), 'price': self.price_to_precision(symbol, price)}
    response = self.privatePostOrders(self.extend(request, params))
    order = self.safe_value(response, 'data')
    return self.parse_order(order, market)