                 amount=base_amount_bought,                 rate=rate,                 fee=fee,                 fee_currency=fee_currency,                 link='',                 notes=notes,             )             self.db.add_trades([trade])         