Add extra tests for transactions fields
This commit is contained in:
@@ -78,6 +78,10 @@ class Transactions(util.Base):
|
||||
ts = data["timestamp"]
|
||||
txid = data["transaction_id"]
|
||||
txtype = data["transaction_type"]
|
||||
if "amount" not in data:
|
||||
return
|
||||
if "currency" not in data:
|
||||
return
|
||||
amount = data["amount"]
|
||||
if amount <= 0:
|
||||
self.log.info(f"Ignoring transaction with negative/zero amount: {txid}")
|
||||
|
||||
Reference in New Issue
Block a user