def trades(self, book, **kwargs): """Get a list of recent trades from the specified book. Args: book (str): Specifies which book to use. Default is btc_mxn marker (str, optional): Returns objects that are older or newer (depending on 'sort') than the object which has the marker value as ID limit (int, optional): Limit the number of results to parameter value, max=100, default=25 sort (str, optional): Sorting by datetime: 'asc', 'desc' Defuault is 'desc' Returns: A list of bitso.Trades instances. """ url = '%s/trades/' % self.base_url parameters = {} parameters['book'] = book if 'marker' in kwargs: parameters['marker'] = kwargs['marker'] if 'limit' in kwargs: parameters['limit'] = kwargs['limit'] if 'sort' in kwargs: parameters['sort'] = kwargs['sort'] resp = self._request_url(url, 'GET', params=parameters) return [Trade._NewFromJsonDict(x) for x in resp['payload']]