Bump platform and requisition throughput on successful trades

This commit is contained in:
2023-03-20 13:54:56 +00:00
parent 9627fb7d41
commit 04f5595a86
10 changed files with 139 additions and 28 deletions

View File

@@ -294,7 +294,9 @@ class NordigenClient(BaseClient, AggregatorClient):
else:
raise Exception(f"No way to get reference: {transaction}")
async def get_transactions(self, account_id, process=False, pending=False):
async def get_transactions(
self, account_id, req=None, process=False, pending=False
):
"""
Get all transactions for an account.
:param account_id: account to fetch transactions for
@@ -307,7 +309,7 @@ class NordigenClient(BaseClient, AggregatorClient):
self.normalise_transactions(parsed, state="booked")
if process:
await self.process_transactions(account_id, parsed)
await self.process_transactions(account_id, parsed, req=req)
if pending:
parsed_pending = response["pending"]
self.normalise_transactions(parsed_pending, state="pending")