def fetch_my_trades(self, symbol=None, since=None, limit=None, params={}):
    if (symbol is None):
        raise ArgumentsRequired((self.id + ' fetchMyTrades() requires a symbol argument'))
    self.load_markets()
    market = self.market(symbol)
    if ((limit is not None) and (limit > 100)):
        limit = 100
    request = {'instrument_id': market['id']}
    defaultType = self.safe_string_2(self.options, 'fetchMyTrades', 'defaultType')
    type = self.safe_string(params, 'type', defaultType)
    query = self.omit(params, 'type')
    method = (type + 'GetFills')
    response = getattr(self, method)(self.extend(request, query))
    return self.parse_my_trades(response, market, since, limit, params)
def fetch_my_trades(self, symbol=None, since=None, limit=None, params={}):
    if (symbol is None):
        raise ArgumentsRequired((self.id + ' fetchMyTrades() requires a symbol argument'))
    self.load_markets()
    market = self.market(symbol)
    if ((limit is not None) and (limit > 100)):
        limit = 100
    request = {'instrument_id': market['id']}
    defaultType = self.safe_string_2(self.options, 'fetchMyTrades', 'defaultType')
    type = self.safe_string(params, 'type', defaultType)
    query = self.omit(params, 'type')
    method = (type + 'GetFills')
    response = getattr(self, method)(self.extend(request, query))
    return self.parse_my_trades(response, market, since, limit, params)