async def create_order(self, symbol, type, side, amount, price=None, params={}):
    (await self.load_markets())
    method = (('privatePostExchange' + self.capitalize(side)) + type)
    market = self.market(symbol)
    request = {'quantity': self.amount_to_precision(symbol, amount), 'currencyPair': market['id']}
    if (type == 'limit'):
        request['price'] = self.price_to_precision(symbol, price)
    response = (await getattr(self, method)(self.extend(request, params)))
    result = {'info': response, 'id': str(response['orderId'])}
    success = self.safe_value(response, 'success')
    if success:
        result['status'] = 'open'
    return result
async def create_order(self, symbol, type, side, amount, price=None, params={}):
    (await self.load_markets())
    method = (('privatePostExchange' + self.capitalize(side)) + type)
    market = self.market(symbol)
    request = {'quantity': self.amount_to_precision(symbol, amount), 'currencyPair': market['id']}
    if (type == 'limit'):
        request['price'] = self.price_to_precision(symbol, price)
    response = (await getattr(self, method)(self.extend(request, params)))
    result = {'info': response, 'id': str(response['orderId'])}
    success = self.safe_value(response, 'success')
    if success:
        result['status'] = 'open'
    return result