def create_order(self, symbol, type, side, amount, price=None, params={}):
    self.load_markets()
    request = {'book': self.market_id(symbol), 'side': side, 'type': type, 'major': self.amount_to_precision(symbol, amount)}
    if (type == 'limit'):
        request['price'] = self.price_to_precision(symbol, price)
    response = self.privatePostOrders(self.extend(request, params))
    id = self.safe_string(response['payload'], 'oid')
    return {'info': response, 'id': id}
def create_order(self, symbol, type, side, amount, price=None, params={}):
    self.load_markets()
    request = {'book': self.market_id(symbol), 'side': side, 'type': type, 'major': self.amount_to_precision(symbol, amount)}
    if (type == 'limit'):
        request['price'] = self.price_to_precision(symbol, price)
    response = self.privatePostOrders(self.extend(request, params))
    id = self.safe_string(response['payload'], 'oid')
    return {'info': response, 'id': id}