discoin.Transaction

class discoin.Transaction(transaction_obj)

Transaction object

Parameters
  • id – (str) The ID or receipt of the transaction

  • currency_from – (discoin.Currency) The currency object that the transaction is coming from

  • currency_to – (discoin.Currency) The currency object that the transaction is going to

  • amount – (float) The original amount of the transaction

  • user_id – (int) the id of the user who requested the transaction

  • handled – (bool) if the transaction has been marked as proccessed

  • timestamp – (datetime.datetime) The timestamp for when the transaction took place

  • payout – (float) The amount calculated to its final destination

__init__(transaction_obj)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(transaction_obj)

Initialize self.