date = datetime.strptime(i["transactionTime"], "%Y-%m-%dT%H:%M:%S.%fZ")
amount = i["amount"]["minorUnits"] / 100
if i["direction"] == "OUT":
date = datetime.strptime(i["transactionTime"], "%Y-%m-%dT%H:%M:%S.%fZ")
amount = i["amount"]["minorUnits"] / 100
if i["direction"] == "OUT":