def create_order(self, symbol, type, side, amount, price=None, params={}):
    self.load_markets()
    request = {'currencyPair': self.market_id(symbol), 'volume': amount, 'price': price, 'orderType': (0 if (side == 'buy') else 1)}
    response = self.userPostAddOrder(self.extend(request, params))
    return {'info': response, 'id': response['result']}
def create_order(self, symbol, type, side, amount, price=None, params={}):
    self.load_markets()
    request = {'currencyPair': self.market_id(symbol), 'volume': amount, 'price': price, 'orderType': (0 if (side == 'buy') else 1)}
    response = self.userPostAddOrder(self.extend(request, params))
    return {'info': response, 'id': response['result']}