def get_trades(self, max_id=None, count=None, instrument=None, ids=None):
        url = "{0}/{1}/accounts/{2}/trades".format(
            self.domain,
            self.API_VERSION,
            self.account_id
        )
        params = {
            "maxId": int(max_id) if max_id and max_id > 0 else None,
            "count": int(count) if count and count > 0 else None,
            "instrument": instrument,
            "ids": ','.join(ids) if ids else None
        }

        try:
            return self._Client__call(uri=url, params=params, method="get")
        except RequestException:
            return False
        except AssertionError:
            return False
Test to add a package to a dict of installed packages.
dataset/ETHPy150Open toloco/pyoanda/pyoanda/client.py/Client.get_trades--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/modules/pkg_resource_test.py/PkgresTestCase.test_add_pkg